mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-25 09:31:46 +01:00
Improved colors in purge-related messages
This commit is contained in:
parent
960a8a7a00
commit
c1741aa37f
@ -45,7 +45,7 @@ public class AdminPurgeCommand extends CompositeCommand implements Listener {
|
||||
@Override
|
||||
public boolean canExecute(User user, String label, List<String> args) {
|
||||
if (inPurge) {
|
||||
user.sendMessage("commands.admin.purge.purge-in-progress");
|
||||
user.sendMessage("commands.admin.purge.purge-in-progress", TextVariables.LABEL, this.getTopLabel());
|
||||
return false;
|
||||
}
|
||||
if (args.isEmpty()) {
|
||||
@ -88,7 +88,7 @@ public class AdminPurgeCommand extends CompositeCommand implements Listener {
|
||||
|
||||
void removeIslands() {
|
||||
inPurge = true;
|
||||
user.sendMessage("commands.admin.purge.see-console-for-status");
|
||||
user.sendMessage("commands.admin.purge.see-console-for-status", TextVariables.LABEL, this.getTopLabel());
|
||||
it = islands.iterator();
|
||||
count = 0;
|
||||
// Delete first island
|
||||
|
@ -32,7 +32,7 @@ public class AdminPurgeUnownedCommand extends ConfirmableCommand {
|
||||
}
|
||||
AdminPurgeCommand parentCommand = ((AdminPurgeCommand)getParent());
|
||||
if (parentCommand.isInPurge()) {
|
||||
user.sendMessage("commands.admin.purge.purge-in-progress");
|
||||
user.sendMessage("commands.admin.purge.purge-in-progress", TextVariables.LABEL, this.getTopLabel());
|
||||
return false;
|
||||
}
|
||||
Set<String> unowned = getUnownedIslands();
|
||||
|
@ -75,12 +75,12 @@ commands:
|
||||
parameters: "[days]"
|
||||
description: "purge islands abandoned for more than [days]"
|
||||
days-or-more: "Must be at least 1 day or more"
|
||||
purgable-islands: "Found [number] purgable islands."
|
||||
purge-in-progress: "&c Purging in progress. Use purge stop to cancel"
|
||||
purgable-islands: "&a Found &b [number] &a purgable islands."
|
||||
purge-in-progress: "&c Purging in progress. Use &b /[label] purge stop &c to cancel."
|
||||
number-error: "&c Argument must be a number of days"
|
||||
confirm: "&d Type [label] purge confirm to start purging"
|
||||
completed: "&a Purging stopped"
|
||||
see-console-for-status: "Purge started. See console for status"
|
||||
confirm: "&d Type &b /[label] purge confirm &d to start purging"
|
||||
completed: "&a Purging stopped."
|
||||
see-console-for-status: "&a Purge started. See console for status or use &b /[label] purge status&a."
|
||||
protect:
|
||||
description: "Toggle island purge protection"
|
||||
move-to-island: "&c Move to an island first!"
|
||||
|
Loading…
Reference in New Issue
Block a user