This commit is contained in:
Jesse Boyd 2018-05-17 15:17:45 +10:00
parent f479a70594
commit 67a70d4ade
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -73,9 +73,11 @@ public class Owner extends SetCommand {
}
final String finalName = name;
final UUID finalUUID = uuid;
boolean removeDenied = plot.isDenied(finalUUID);
Runnable run = new Runnable() {
@Override
public void run() {
if (removeDenied) plot.removeDenied(finalUUID);
plot.setOwner(finalUUID);
plot.setSign(finalName);
MainUtil.sendMessage(player, C.SET_OWNER);