mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-28 10:21:22 +01:00
Rename the kicklist command to denylist.
This commit is contained in:
parent
c2722abc19
commit
7d40df9d8c
@ -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),
|
||||
|
@ -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;
|
||||
}
|
@ -25,7 +25,7 @@ public class CommandsCommand extends BaseCommand {
|
||||
"/<command> delay [delay=(ticks)] (command)...: delay a command",
|
||||
"/<command> denylogin [delay=(ticks)] (player) (minutes) [(reason)...]",
|
||||
"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> exemptions (player): Show exemptions.",
|
||||
"/<command> exempt (player) [(check type)]: Exempt a player.",
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user