13
0
geforkt von Mirrors/Paper

Remove unnecessary Overrides in Default commands.

By: EvilSeph <evilseph@gmail.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2012-11-15 23:03:03 -05:00
Ursprung bf632e042c
Commit 9267baab20
29 geänderte Dateien mit 0 neuen und 145 gelöschten Zeilen

Datei anzeigen

@ -39,11 +39,6 @@ public class BanCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("ban");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -54,11 +54,6 @@ public class BanIpCommand extends VanillaCommand {
Command.broadcastCommandMessage(sender, "Banned IP Address " + ip);
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("ban-ip");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -56,9 +56,4 @@ public class BanListCommand extends VanillaCommand {
}
return ImmutableList.of();
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("banlist");
}
}

Datei anzeigen

@ -69,11 +69,6 @@ public class ClearCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("clear");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -22,11 +22,6 @@ public class DefaultGameModeCommand extends VanillaCommand {
this.setPermission("bukkit.command.defaultgamemode");
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase(this.getName());
}
@Override
public boolean execute(CommandSender sender, String commandLabel, String[] args) {
if (!testPermission(sender)) return true;

Datei anzeigen

@ -41,11 +41,6 @@ public class DeopCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("deop");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -66,11 +66,6 @@ public class DifficultyCommand extends VanillaCommand {
}
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("difficulty");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -75,11 +75,6 @@ public class ExpCommand extends VanillaCommand {
return false;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("xp");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -82,11 +82,6 @@ public class GameModeCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("gamemode");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -66,11 +66,6 @@ public class GameRuleCommand extends VanillaCommand {
return Bukkit.getWorlds().get(0);
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("gamerule");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -74,11 +74,6 @@ public class GiveCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("give");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -45,11 +45,6 @@ public class KickCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("kick");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -39,11 +39,6 @@ public class KillCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("kill");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -42,11 +42,6 @@ public class ListCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("list");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -32,9 +32,4 @@ public class MeCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("me");
}
}

Datei anzeigen

@ -38,11 +38,6 @@ public class OpCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("op");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -34,11 +34,6 @@ public class PardonCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("pardon");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -38,11 +38,6 @@ public class PardonIpCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("pardon-ip");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -35,11 +35,6 @@ public class SaveCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("save-all");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -30,11 +30,6 @@ public class SaveOffCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("save-off");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -30,11 +30,6 @@ public class SaveOnCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("save-on");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -44,11 +44,6 @@ public class SayCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("say");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -66,11 +66,6 @@ public class SpawnpointCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("spawnpoint");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -27,11 +27,6 @@ public class StopCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("stop");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -110,11 +110,6 @@ public class TeleportCommand extends VanillaCommand {
return result;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("tp");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -72,11 +72,6 @@ public class TimeCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("time");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -45,11 +45,6 @@ public class ToggleDownfallCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("toggledownfall");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -58,11 +58,6 @@ public class WeatherCommand extends VanillaCommand {
return true;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("weather");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) {
Validate.notNull(sender, "Sender cannot be null");

Datei anzeigen

@ -93,11 +93,6 @@ public class WhitelistCommand extends VanillaCommand {
return false;
}
@Override
public boolean matches(String input) {
return input.equalsIgnoreCase("whitelist");
}
@Override
public List<String> tabComplete(CommandSender sender, String alias, String[] args) {
Validate.notNull(sender, "Sender cannot be null");