File tree Expand file tree Collapse file tree
EssentialsChat/src/main/java/com/earth2me/essentials/chat/processing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ protected void handleChatFormat(AsyncPlayerChatEvent event) {
9696 format = format .replace ("{9}" , nickname == null ? username : nickname );
9797
9898 // Local, shout and question chat types are only enabled when there's a valid radius
99- if (chat .getRadius () > 0 && event .getMessage ().length () > 1 ) {
99+ if (chat .getRadius () > 0 && event .getMessage ().length () > 0 ) {
100100 if (chat .getType ().isEmpty ()) {
101101 if (user .isToggleShout () && event .getMessage ().charAt (0 ) == ess .getSettings ().getChatShout ()) {
102102 event .setMessage (event .getMessage ().substring (1 ));
@@ -139,7 +139,7 @@ protected void handleChatRecipients(AsyncPlayerChatEvent event) {
139139
140140 final User user = chat .getUser ();
141141
142- if (event .getMessage ().length () > 1 ) {
142+ if (event .getMessage ().length () > 0 ) {
143143 if (chat .getType ().isEmpty ()) {
144144 if (!user .isAuthorized ("essentials.chat.local" )) {
145145 user .sendMessage (tl ("notAllowedToLocal" ));
You can’t perform that action at this time.
0 commit comments