mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 12:25:46 +01:00
Fixes #1445
This commit is contained in:
parent
5cbd2f44bd
commit
8d442f58d4
@ -54,11 +54,11 @@ public class Owner extends SetCommand {
|
||||
C.INVALID_PLAYER.send(player, value);
|
||||
return false;
|
||||
}
|
||||
final PlotPlayer other = UUIDHandler.getPlayer(uuid);
|
||||
if (plot.isOwner(uuid)) {
|
||||
C.ALREADY_OWNER.send(player);
|
||||
C.ALREADY_OWNER.send(player, MainUtil.getName(uuid));
|
||||
return false;
|
||||
}
|
||||
final PlotPlayer other = UUIDHandler.getPlayer(uuid);
|
||||
if (!Permissions.hasPermission(player, C.PERMISSION_ADMIN_COMMAND_SETOWNER)) {
|
||||
if (other == null) {
|
||||
C.INVALID_PLAYER_OFFLINE.send(player, value);
|
||||
|
Loading…
Reference in New Issue
Block a user