fix: fixed #50, error with re renewrent

This commit is contained in:
Etienne Dx 2022-04-15 14:45:18 +02:00 committed by EtienneDx
parent 5afff455ea
commit 03ed556e83

View File

@ -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();