mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Even more
Ok seriously, I stop here
This commit is contained in:
parent
86a0816b26
commit
603d1ee9bb
@ -71,8 +71,8 @@ public class Add extends Command {
|
||||
checkTrue(plot.isOwner(player.getUUID()) || Permissions
|
||||
.hasPermission(player, Captions.PERMISSION_ADMIN_COMMAND_TRUST),
|
||||
Captions.NO_PLOT_PERMS);
|
||||
checkTrue(args.length == 1, Captions.COMMAND_SYNTAX, getUsage());
|
||||
|
||||
checkTrue(args.length == 1, TranslatableCaption.of("commandconfig.command_syntax"),
|
||||
Template.of("value", "/plot add <player | *>"));
|
||||
final CompletableFuture<Boolean> future = new CompletableFuture<>();
|
||||
PlayerManager.getUUIDsFromString(args[0], (uuids, throwable) -> {
|
||||
if (throwable != null) {
|
||||
@ -86,7 +86,8 @@ public class Add extends Command {
|
||||
return;
|
||||
} else {
|
||||
try {
|
||||
checkTrue(!uuids.isEmpty(), Captions.INVALID_PLAYER, args[0]);
|
||||
checkTrue(!uuids.isEmpty(), TranslatableCaption.of("errors.invalid_player"),
|
||||
Template.of("value", args[0]));
|
||||
Iterator<UUID> iterator = uuids.iterator();
|
||||
int size = plot.getTrusted().size() + plot.getMembers().size();
|
||||
while (iterator.hasNext()) {
|
||||
|
@ -415,7 +415,7 @@
|
||||
"owner.now_owner": "<prefix><dark_aqua>You are now the plot owner of plot <plot>.</dark_aqua>",
|
||||
|
||||
"signs.owner_sign_line_1": "<gold>ID: </gold><gray><id></gray>",
|
||||
"signs.owner_sign_line_2": "<gold>Owner:</gold>",
|
||||
"signs.owner_sign_line_2": "<gold>Owner: </gold><gray><owner></gray>",
|
||||
"signs.owner_sign_line_3": "<gray><plr></gray>",
|
||||
"signs.owner_sign_line_4": "<dark_gray>Claimed</dark_gray>",
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user