diff --git a/api/src/main/java/net/md_5/bungee/api/event/ChatEvent.java b/api/src/main/java/net/md_5/bungee/api/event/ChatEvent.java index a0c327f3..e8654a60 100644 --- a/api/src/main/java/net/md_5/bungee/api/event/ChatEvent.java +++ b/api/src/main/java/net/md_5/bungee/api/event/ChatEvent.java @@ -38,6 +38,6 @@ public class ChatEvent extends TargetedEvent implements Cancellable */ public boolean isCommand() { - return message.charAt( 0 ) == '/'; + return message.length() > 0 && message.charAt( 0 ) == '/'; } }