Check length before checking if command.

This commit is contained in:
md_5 2013-03-24 16:32:54 +11:00
parent cf4846baa9
commit 75bc2738b9

View File

@ -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 ) == '/';
}
}