mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
fixes owner bug
This commit is contained in:
parent
a424bb006f
commit
0fca78c61a
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user