mirror of
https://github.com/kaboomserver/extras.git
synced 2025-01-07 23:17:55 +00:00
Sync changes
This commit is contained in:
parent
95d3e151df
commit
235d2c9788
2 changed files with 8 additions and 7 deletions
|
@ -100,9 +100,9 @@ public final class ServerCommand implements Listener {
|
|||
|| "setblock".equalsIgnoreCase(arr[i + 1])
|
||||
|| "tellraw".equalsIgnoreCase(arr[i + 1])
|
||||
|| "title".equalsIgnoreCase(arr[i + 1])) {
|
||||
command = parseCharCodes(command)
|
||||
if (command.contains("selector")
|
||||
|| command.contains("translate")) {
|
||||
final String charCommand = parseCharCodes(command);
|
||||
if (charCommand.contains("selector")
|
||||
|| charCommand.contains("translate")) {
|
||||
return "cancel";
|
||||
}
|
||||
}
|
||||
|
@ -176,9 +176,9 @@ public final class ServerCommand implements Listener {
|
|||
case "/setblock":
|
||||
case "/tellraw":
|
||||
case "/title":
|
||||
command = parseCharCodes(command)
|
||||
if (command.contains("selector")
|
||||
|| command.contains("translate")) {
|
||||
final String charCommand = parseCharCodes(command);
|
||||
if (charCommand.contains("selector")
|
||||
|| charCommand.contains("translate")) {
|
||||
return "cancel";
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -9,5 +9,6 @@
|
|||
<suppress checks="Javadoc" files="."/>
|
||||
<suppress checks="LineLength" files="."/>
|
||||
<suppress checks="MagicNumber" files="."/>
|
||||
<suppress checks="MethodLength" files="."/>
|
||||
<suppress checks="NewlineAtEndOfFile" files="."/>
|
||||
</suppressions>
|
||||
</suppressions>
|
||||
|
|
Loading…
Reference in a new issue