From 7d40df9d8c6c06ee6ef933e98df88e2a7c992e49 Mon Sep 17 00:00:00 2001 From: asofold Date: Tue, 29 Jul 2014 21:11:31 +0200 Subject: [PATCH] Rename the kicklist command to denylist. --- .../nocheatplus/command/NoCheatPlusCommand.java | 4 ++-- .../{KickListCommand.java => DenyListCommand.java} | 9 +++++---- .../nocheatplus/command/admin/CommandsCommand.java | 2 +- NCPPlugin/src/main/resources/plugin.yml | 10 +++++----- 4 files changed, 13 insertions(+), 12 deletions(-) rename NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/actions/{KickListCommand.java => DenyListCommand.java} (68%) diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/NoCheatPlusCommand.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/NoCheatPlusCommand.java index 561518c2..fcdf2560 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/NoCheatPlusCommand.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/NoCheatPlusCommand.java @@ -15,7 +15,7 @@ import fr.neatmonster.nocheatplus.command.actions.AllowLoginCommand; import fr.neatmonster.nocheatplus.command.actions.BanCommand; import fr.neatmonster.nocheatplus.command.actions.DenyLoginCommand; import fr.neatmonster.nocheatplus.command.actions.KickCommand; -import fr.neatmonster.nocheatplus.command.actions.KickListCommand; +import fr.neatmonster.nocheatplus.command.actions.DenyListCommand; import fr.neatmonster.nocheatplus.command.actions.TellCommand; import fr.neatmonster.nocheatplus.command.actions.delay.DelayCommand; import fr.neatmonster.nocheatplus.command.admin.CommandsCommand; @@ -91,7 +91,7 @@ public class NoCheatPlusCommand extends BaseCommand{ new InfoCommand(plugin), new InspectCommand(plugin), new KickCommand(plugin), - new KickListCommand(plugin), + new DenyListCommand(plugin), new LagCommand(plugin), new VersionCommand(plugin), new NotifyCommand(plugin), diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/actions/KickListCommand.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/actions/DenyListCommand.java similarity index 68% rename from NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/actions/KickListCommand.java rename to NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/actions/DenyListCommand.java index d9828649..ec26ef1c 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/actions/KickListCommand.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/actions/DenyListCommand.java @@ -11,17 +11,18 @@ import fr.neatmonster.nocheatplus.command.BaseCommand; import fr.neatmonster.nocheatplus.permissions.Permissions; import fr.neatmonster.nocheatplus.utilities.StringUtil; -public class KickListCommand extends BaseCommand { +public class DenyListCommand extends BaseCommand { - public KickListCommand(JavaPlugin plugin) { - super(plugin, "kicklist", Permissions.COMMAND_KICKLIST); + public DenyListCommand(JavaPlugin plugin) { + super(plugin, "denylist", Permissions.COMMAND_KICKLIST, + new String[]{"kicklist", "tempbanned", "deniedlist", "denyloginlist", "deniedlogin"}); } @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { final String[] kicked = NCPAPIProvider.getNoCheatPlusAPI().getLoginDeniedPlayers(); if (kicked.length < 100) Arrays.sort(kicked); - sender.sendMessage(TAG + "Temporarily kicked players:"); + sender.sendMessage(TAG + "Players denied to login (temporarily):"); sender.sendMessage(StringUtil.join(Arrays.asList(kicked), " ")); return true; } diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/admin/CommandsCommand.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/admin/CommandsCommand.java index 824abbcf..977e6fda 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/admin/CommandsCommand.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/admin/CommandsCommand.java @@ -25,7 +25,7 @@ public class CommandsCommand extends BaseCommand { "/ delay [delay=(ticks)] (command)...: delay a command", "/ denylogin [delay=(ticks)] (player) (minutes) [(reason)...]", "More administrative commands:", - "/ kicklist: Show players, currently denied to log in.", + "/ denylist: Show players, currently denied to log in.", "/ allowlogin (player): Allow a player to login again.", "/ exemptions (player): Show exemptions.", "/ exempt (player) [(check type)]: Exempt a player.", diff --git a/NCPPlugin/src/main/resources/plugin.yml b/NCPPlugin/src/main/resources/plugin.yml index 620c4d26..ae0924bf 100644 --- a/NCPPlugin/src/main/resources/plugin.yml +++ b/NCPPlugin/src/main/resources/plugin.yml @@ -284,8 +284,8 @@ permissions: description: Allow use of the ncp ban command. nocheatplus.command.kick: description: Allow use of the ncp kick command. - nocheatplus.command.kicklist: - description: Allow use of the ncp kicklist command. + nocheatplus.command.denylist: + description: Allow use of the ncp denylist command (view players who are denied to login right now). nocheatplus.command.lag: description: Allow use of the ncp lag command. nocheatplus.command.tell: @@ -334,7 +334,7 @@ permissions: nocheatplus.command.top: true nocheatplus.command.info: true nocheatplus.command.exemptions: true - nocheatplus.command.kicklist: true + nocheatplus.command.denylist: true nocheatplus.command.commands: true # TODO: Put lag here ? nocheatplus.shortcut.monitor: @@ -425,9 +425,9 @@ permissions: children: nocheatplus.command.kick: true nocheatplus.admin.kicklist: - description: Obsolete, use nocheatplus.command.kicklist instead. + description: Obsolete, use nocheatplus.command.denylist instead. children: - nocheatplus.command.kicklist: true + nocheatplus.command.denylist: true nocheatplus.admin.lag: description: Obsolete, use nocheatplus.command.lag instead. children: