mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 12:35:15 +01:00
Fixes #1928
This commit is contained in:
parent
f479a70594
commit
67a70d4ade
@ -73,9 +73,11 @@ public class Owner extends SetCommand {
|
|||||||
}
|
}
|
||||||
final String finalName = name;
|
final String finalName = name;
|
||||||
final UUID finalUUID = uuid;
|
final UUID finalUUID = uuid;
|
||||||
|
boolean removeDenied = plot.isDenied(finalUUID);
|
||||||
Runnable run = new Runnable() {
|
Runnable run = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (removeDenied) plot.removeDenied(finalUUID);
|
||||||
plot.setOwner(finalUUID);
|
plot.setOwner(finalUUID);
|
||||||
plot.setSign(finalName);
|
plot.setSign(finalName);
|
||||||
MainUtil.sendMessage(player, C.SET_OWNER);
|
MainUtil.sendMessage(player, C.SET_OWNER);
|
||||||
|
Loading…
Reference in New Issue
Block a user