fix: fixed #50, error with re renewrent
This commit is contained in:
parent
5afff455ea
commit
03ed556e83
@ -173,7 +173,7 @@ public class RECommand extends BaseCommand
|
||||
{
|
||||
Messages.sendMessage(player, RealEstate.instance.messages.msgErrorCommandUsage, "/re renewrent [enable|disable]");
|
||||
}
|
||||
else if(cr.buyer.equals(player.getUniqueId()))
|
||||
else if(cr.buyer != null && cr.buyer.equals(player.getUniqueId()))
|
||||
{
|
||||
cr.autoRenew = newStatus.equalsIgnoreCase("enable");
|
||||
RealEstate.transactionsStore.saveData();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user