fixes owner bug

This commit is contained in:
boy0001 2014-12-01 09:38:49 +11:00
parent a424bb006f
commit 0fca78c61a
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ public class Helpers extends SubCommand {
return true;
}
final Plot plot = PlayerFunctions.getCurrentPlot(plr);
if ((plot.owner == null) || !plot.hasRights(plr)) {
if ((plot.owner == null) || !plot.getOwner().equals(plr)) {
PlayerFunctions.sendMessage(plr, C.NO_PLOT_PERMS);
return true;
}

View File

@ -50,7 +50,7 @@ public class Trusted extends SubCommand {
return true;
}
final Plot plot = PlayerFunctions.getCurrentPlot(plr);
if ((plot.owner == null) || !plot.hasRights(plr)) {
if ((plot.owner == null) || !plot.getOwner().equals(plr)) {
PlayerFunctions.sendMessage(plr, C.NO_PLOT_PERMS);
return true;
}