File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
EssentialsChat/src/main/java/com/earth2me/essentials/chat/processing Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ protected void handleChatFormat(AbstractChatEvent event) {
107107 // Local, shout and question chat types are only enabled when there's a valid radius
108108 if (chat .getRadius () > 0 && !event .getMessage ().isEmpty ()) {
109109 if (event .getMessage ().length () > 1 && ((chat .getType () == ChatType .SHOUT && event .getMessage ().charAt (0 ) == ess .getSettings ().getChatShout ()) || (chat .getType () == ChatType .QUESTION && event .getMessage ().charAt (0 ) == ess .getSettings ().getChatQuestion ()))) {
110- event .setMessage (event .getMessage ().substring (1 ));
110+ event .setMessage (event .getMessage ().substring (1 ). trim () );
111111 }
112112
113113 // Prevent messages like "!&c" or "?&c" from being sent which would cause an empty message
You can’t perform that action at this time.
0 commit comments