mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
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:
parent
0f9396499a
commit
9f604a909d
15 changed files with 15 additions and 15 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue