mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +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