mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Check admin for setowner null
This commit is contained in:
parent
2c11a292f4
commit
3d8d75170d
@ -42,6 +42,9 @@ public class Owner extends SetCommand {
|
||||
}
|
||||
if (uuid == null || value.equalsIgnoreCase("-")) {
|
||||
if (value.equalsIgnoreCase("none") || value.equalsIgnoreCase("null") || value.equalsIgnoreCase("-")) {
|
||||
if (!Permissions.hasPermission(player, C.PERMISSION_ADMIN_COMMAND_SETOWNER.s(), true)) {
|
||||
return false;
|
||||
}
|
||||
Set<Plot> connected = plot.getConnectedPlots();
|
||||
plot.unlinkPlot(false, false);
|
||||
for (Plot current : connected) {
|
||||
|
Loading…
Reference in New Issue
Block a user