mirror of
https://github.com/kaboomserver/extras.git
synced 2025-02-14 05:01:19 +00:00
Remove a few patches (#297)
This commit is contained in:
parent
41b19fe6ea
commit
4f1d2a0eab
1 changed files with 3 additions and 7 deletions
|
@ -26,7 +26,6 @@ public final class ServerCommand implements Listener {
|
||||||
|| "locatebiome".equalsIgnoreCase(cmd)
|
|| "locatebiome".equalsIgnoreCase(cmd)
|
||||||
|| "me".equalsIgnoreCase(cmd)
|
|| "me".equalsIgnoreCase(cmd)
|
||||||
|| "msg".equalsIgnoreCase(cmd)
|
|| "msg".equalsIgnoreCase(cmd)
|
||||||
|| "particle".equalsIgnoreCase(cmd)
|
|
||||||
|| "reload".equalsIgnoreCase(cmd)
|
|| "reload".equalsIgnoreCase(cmd)
|
||||||
|| "save-all".equalsIgnoreCase(cmd)
|
|| "save-all".equalsIgnoreCase(cmd)
|
||||||
|| "say".equalsIgnoreCase(cmd)
|
|| "say".equalsIgnoreCase(cmd)
|
||||||
|
@ -101,8 +100,7 @@ public final class ServerCommand implements Listener {
|
||||||
|| "tellraw".equalsIgnoreCase(arr[i + 1])
|
|| "tellraw".equalsIgnoreCase(arr[i + 1])
|
||||||
|| "title".equalsIgnoreCase(arr[i + 1])) {
|
|| "title".equalsIgnoreCase(arr[i + 1])) {
|
||||||
final String charCommand = parseCharCodes(command);
|
final String charCommand = parseCharCodes(command);
|
||||||
if (charCommand.contains("selector")
|
if (charCommand.contains("selector")) {
|
||||||
|| charCommand.contains("translate")) {
|
|
||||||
return "cancel";
|
return "cancel";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -125,8 +123,7 @@ public final class ServerCommand implements Listener {
|
||||||
if (command.contains("auto")) {
|
if (command.contains("auto")) {
|
||||||
return command.replace("auto", "[auto]");
|
return command.replace("auto", "[auto]");
|
||||||
}
|
}
|
||||||
if (command.contains("selector")
|
if (command.contains("selector")) {
|
||||||
|| command.contains("translate")) {
|
|
||||||
return "cancel";
|
return "cancel";
|
||||||
}
|
}
|
||||||
case "/minecraft:gamerule":
|
case "/minecraft:gamerule":
|
||||||
|
@ -179,8 +176,7 @@ public final class ServerCommand implements Listener {
|
||||||
case "/tellraw":
|
case "/tellraw":
|
||||||
case "/title":
|
case "/title":
|
||||||
final String charCommand = parseCharCodes(command);
|
final String charCommand = parseCharCodes(command);
|
||||||
if (charCommand.contains("selector")
|
if (charCommand.contains("selector")) {
|
||||||
|| charCommand.contains("translate")) {
|
|
||||||
return "cancel";
|
return "cancel";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue