Fixed "unknown command" on vanilla commands with no args (even though it's intended behavior...)

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot 2011-09-15 03:04:55 +01:00
parent 0f9396499a
commit 9f604a909d
15 changed files with 15 additions and 15 deletions

View file

@ -29,6 +29,6 @@ public class BanCommand extends VanillaCommand {
@Override
public boolean matches(String input) {
return input.startsWith("ban ");
return input.startsWith("ban ") || input.equalsIgnoreCase("ban");
}
}

View file

@ -29,6 +29,6 @@ public class BanIpCommand extends VanillaCommand {
@Override
public boolean matches(String input) {
return input.startsWith("ban-ip ");
return input.startsWith("ban-ip ") || input.equalsIgnoreCase("ban-ip");
}
}

View file

@ -37,6 +37,6 @@ public class DeopCommand extends VanillaCommand {
@Override
public boolean matches(String input) {
return input.startsWith("deop ");
return input.startsWith("deop ") || input.equalsIgnoreCase("deop");
}
}

View file

@ -54,6 +54,6 @@ public class GameModeCommand extends VanillaCommand {
@Override
public boolean matches(String input) {
return input.startsWith("gamemode ");
return input.startsWith("gamemode ") || input.equalsIgnoreCase("gamemode");
}
}

View file

@ -56,6 +56,6 @@ public class GiveCommand extends VanillaCommand {
@Override
public boolean matches(String input) {
return input.startsWith("give ");
return input.startsWith("give ") || input.equalsIgnoreCase("give");
}
}

View file

@ -36,6 +36,6 @@ public class KickCommand extends VanillaCommand {
@Override
public boolean matches(String input) {
return input.startsWith("kick ");
return input.startsWith("kick ") || input.equalsIgnoreCase("kick");
}
}

View file

@ -34,6 +34,6 @@ public class MeCommand extends VanillaCommand {
@Override
public boolean matches(String input) {
return input.startsWith("me ");
return input.startsWith("me ") || input.equalsIgnoreCase("me");
}
}

View file

@ -37,6 +37,6 @@ public class OpCommand extends VanillaCommand {
@Override
public boolean matches(String input) {
return input.startsWith("op ");
return input.startsWith("op ") || input.equalsIgnoreCase("op");
}
}

View file

@ -29,6 +29,6 @@ public class PardonCommand extends VanillaCommand {
@Override
public boolean matches(String input) {
return input.startsWith("pardon ");
return input.startsWith("pardon ") || input.equalsIgnoreCase("pardon");
}
}

View file

@ -29,6 +29,6 @@ public class PardonIpCommand extends VanillaCommand {
@Override
public boolean matches(String input) {
return input.startsWith("pardon-ip ");
return input.startsWith("pardon-ip ") || input.equalsIgnoreCase("pardon-ip");
}
}

View file

@ -39,6 +39,6 @@ public class SayCommand extends VanillaCommand {
@Override
public boolean matches(String input) {
return input.startsWith("say ");
return input.startsWith("say ") || input.equalsIgnoreCase("say");
}
}

View file

@ -39,6 +39,6 @@ public class TeleportCommand extends VanillaCommand {
@Override
public boolean matches(String input) {
return input.startsWith("tp ");
return input.startsWith("tp ") || input.equalsIgnoreCase("tp");
}
}

View file

@ -49,6 +49,6 @@ public class TellCommand extends VanillaCommand {
@Override
public boolean matches(String input) {
return input.startsWith("tell ");
return input.startsWith("tell ") || input.equalsIgnoreCase("tell");
}
}

View file

@ -59,6 +59,6 @@ public class TimeCommand extends VanillaCommand {
@Override
public boolean matches(String input) {
return input.startsWith("time ");
return input.startsWith("time ") || input.equalsIgnoreCase("time");
}
}

View file

@ -85,6 +85,6 @@ public class WhitelistCommand extends VanillaCommand {
@Override
public boolean matches(String input) {
return input.startsWith("whitelist ");
return input.startsWith("whitelist ") || input.equalsIgnoreCase("whitelist");
}
}