mirror of
https://github.com/kaboomserver/extras.git
synced 2025-01-07 23:17:55 +00:00
Improved target selector detection for /title command
This commit is contained in:
parent
1adb54013a
commit
207387a028
1 changed files with 4 additions and 1 deletions
|
@ -129,7 +129,10 @@ public final class ServerCommand implements Listener {
|
|||
break;
|
||||
case "/minecraft:title":
|
||||
case "/title":
|
||||
if (command.contains("selector")) {
|
||||
if (command.contains("@a")
|
||||
|| command.contains("@e")
|
||||
|| command.contains("@p")
|
||||
|| command.contains("@r")) {
|
||||
return "cancel";
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue