mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 03:30:11 +00:00
Check admin for setowner null
This commit is contained in:
parent
2c11a292f4
commit
3d8d75170d
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue