From 207387a0285005a91f21f33495d5970df9efe262 Mon Sep 17 00:00:00 2001 From: mathiascode Date: Wed, 20 Jan 2021 09:38:26 +0200 Subject: [PATCH] Improved target selector detection for /title command --- .../java/pw/kaboom/extras/modules/server/ServerCommand.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/pw/kaboom/extras/modules/server/ServerCommand.java b/src/main/java/pw/kaboom/extras/modules/server/ServerCommand.java index b85d86f..b6613dd 100644 --- a/src/main/java/pw/kaboom/extras/modules/server/ServerCommand.java +++ b/src/main/java/pw/kaboom/extras/modules/server/ServerCommand.java @@ -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;