mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Fixes #3181
This commit is contained in:
parent
9a9365a04d
commit
a8c3ac6cee
@ -52,7 +52,7 @@ import java.util.UUID;
|
|||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
|
|
||||||
@CommandDeclaration(command = "setowner",
|
@CommandDeclaration(command = "setowner",
|
||||||
permission = "plots.set.owner",
|
permission = "plots.admin.command.setowner",
|
||||||
usage = "/plot setowner <player>",
|
usage = "/plot setowner <player>",
|
||||||
aliases = {"owner", "so", "seto"},
|
aliases = {"owner", "so", "seto"},
|
||||||
category = CommandCategory.CLAIMING,
|
category = CommandCategory.CLAIMING,
|
||||||
@ -136,7 +136,7 @@ public class Owner extends SetCommand {
|
|||||||
if (plot.isOwner(uuid)) {
|
if (plot.isOwner(uuid)) {
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("member.already_owner"),
|
TranslatableCaption.of("member.already_owner"),
|
||||||
Template.of("player", PlayerManager.getName(uuid))
|
Template.of("player", PlayerManager.getName(uuid, false))
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -144,7 +144,7 @@ public class Owner extends SetCommand {
|
|||||||
.hasPermission(player, Permission.PERMISSION_ADMIN_COMMAND_SET_OWNER)) {
|
.hasPermission(player, Permission.PERMISSION_ADMIN_COMMAND_SET_OWNER)) {
|
||||||
if (other == null) {
|
if (other == null) {
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("invalid_player_offline"),
|
TranslatableCaption.of("errors.invalid_player_offline"),
|
||||||
Template.of("player", PlayerManager.getName(uuid))
|
Template.of("player", PlayerManager.getName(uuid))
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
@ -188,7 +188,7 @@ public class Owner extends SetCommand {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (hasConfirmation(player)) {
|
if (hasConfirmation(player)) {
|
||||||
CmdConfirm.addPending(player, "/plot set owner " + value, run);
|
CmdConfirm.addPending(player, "/plot setowner " + value, run);
|
||||||
} else {
|
} else {
|
||||||
TaskManager.runTask(run);
|
TaskManager.runTask(run);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user