Rename the kicklist command to denylist.

This commit is contained in:
asofold 2014-07-29 21:11:31 +02:00
parent c2722abc19
commit 7d40df9d8c
4 changed files with 13 additions and 12 deletions

View File

@ -15,7 +15,7 @@ import fr.neatmonster.nocheatplus.command.actions.AllowLoginCommand;
import fr.neatmonster.nocheatplus.command.actions.BanCommand; import fr.neatmonster.nocheatplus.command.actions.BanCommand;
import fr.neatmonster.nocheatplus.command.actions.DenyLoginCommand; import fr.neatmonster.nocheatplus.command.actions.DenyLoginCommand;
import fr.neatmonster.nocheatplus.command.actions.KickCommand; 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.TellCommand;
import fr.neatmonster.nocheatplus.command.actions.delay.DelayCommand; import fr.neatmonster.nocheatplus.command.actions.delay.DelayCommand;
import fr.neatmonster.nocheatplus.command.admin.CommandsCommand; import fr.neatmonster.nocheatplus.command.admin.CommandsCommand;
@ -91,7 +91,7 @@ public class NoCheatPlusCommand extends BaseCommand{
new InfoCommand(plugin), new InfoCommand(plugin),
new InspectCommand(plugin), new InspectCommand(plugin),
new KickCommand(plugin), new KickCommand(plugin),
new KickListCommand(plugin), new DenyListCommand(plugin),
new LagCommand(plugin), new LagCommand(plugin),
new VersionCommand(plugin), new VersionCommand(plugin),
new NotifyCommand(plugin), new NotifyCommand(plugin),

View File

@ -11,17 +11,18 @@ import fr.neatmonster.nocheatplus.command.BaseCommand;
import fr.neatmonster.nocheatplus.permissions.Permissions; import fr.neatmonster.nocheatplus.permissions.Permissions;
import fr.neatmonster.nocheatplus.utilities.StringUtil; import fr.neatmonster.nocheatplus.utilities.StringUtil;
public class KickListCommand extends BaseCommand { public class DenyListCommand extends BaseCommand {
public KickListCommand(JavaPlugin plugin) { public DenyListCommand(JavaPlugin plugin) {
super(plugin, "kicklist", Permissions.COMMAND_KICKLIST); super(plugin, "denylist", Permissions.COMMAND_KICKLIST,
new String[]{"kicklist", "tempbanned", "deniedlist", "denyloginlist", "deniedlogin"});
} }
@Override @Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
final String[] kicked = NCPAPIProvider.getNoCheatPlusAPI().getLoginDeniedPlayers(); final String[] kicked = NCPAPIProvider.getNoCheatPlusAPI().getLoginDeniedPlayers();
if (kicked.length < 100) Arrays.sort(kicked); 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), " ")); sender.sendMessage(StringUtil.join(Arrays.asList(kicked), " "));
return true; return true;
} }

View File

@ -25,7 +25,7 @@ public class CommandsCommand extends BaseCommand {
"/<command> delay [delay=(ticks)] (command)...: delay a command", "/<command> delay [delay=(ticks)] (command)...: delay a command",
"/<command> denylogin [delay=(ticks)] (player) (minutes) [(reason)...]", "/<command> denylogin [delay=(ticks)] (player) (minutes) [(reason)...]",
"More administrative commands:", "More administrative commands:",
"/<command> kicklist: Show players, currently denied to log in.", "/<command> denylist: Show players, currently denied to log in.",
"/<command> allowlogin (player): Allow a player to login again.", "/<command> allowlogin (player): Allow a player to login again.",
"/<command> exemptions (player): Show exemptions.", "/<command> exemptions (player): Show exemptions.",
"/<command> exempt (player) [(check type)]: Exempt a player.", "/<command> exempt (player) [(check type)]: Exempt a player.",

View File

@ -284,8 +284,8 @@ permissions:
description: Allow use of the ncp ban command. description: Allow use of the ncp ban command.
nocheatplus.command.kick: nocheatplus.command.kick:
description: Allow use of the ncp kick command. description: Allow use of the ncp kick command.
nocheatplus.command.kicklist: nocheatplus.command.denylist:
description: Allow use of the ncp kicklist command. description: Allow use of the ncp denylist command (view players who are denied to login right now).
nocheatplus.command.lag: nocheatplus.command.lag:
description: Allow use of the ncp lag command. description: Allow use of the ncp lag command.
nocheatplus.command.tell: nocheatplus.command.tell:
@ -334,7 +334,7 @@ permissions:
nocheatplus.command.top: true nocheatplus.command.top: true
nocheatplus.command.info: true nocheatplus.command.info: true
nocheatplus.command.exemptions: true nocheatplus.command.exemptions: true
nocheatplus.command.kicklist: true nocheatplus.command.denylist: true
nocheatplus.command.commands: true nocheatplus.command.commands: true
# TODO: Put lag here ? # TODO: Put lag here ?
nocheatplus.shortcut.monitor: nocheatplus.shortcut.monitor:
@ -425,9 +425,9 @@ permissions:
children: children:
nocheatplus.command.kick: true nocheatplus.command.kick: true
nocheatplus.admin.kicklist: nocheatplus.admin.kicklist:
description: Obsolete, use nocheatplus.command.kicklist instead. description: Obsolete, use nocheatplus.command.denylist instead.
children: children:
nocheatplus.command.kicklist: true nocheatplus.command.denylist: true
nocheatplus.admin.lag: nocheatplus.admin.lag:
description: Obsolete, use nocheatplus.command.lag instead. description: Obsolete, use nocheatplus.command.lag instead.
children: children: