1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-01-17 21:39:26 +01:00

Check shout/question messages are longer than 1 character.

This commit is contained in:
KHobbits 2012-01-20 22:54:47 +00:00
parent a44c6d51f7
commit 19ca37d392

View File

@ -45,7 +45,7 @@ public class EssentialsChatPlayerListenerNormal extends EssentialsChatPlayer
final User user = chatStore.getUser(); final User user = chatStore.getUser();
chatStore.setRadius(radius); chatStore.setRadius(radius);
if (event.getMessage().length() > 0 && chatStore.getType().length() > 0) if (event.getMessage().length() > 1 && chatStore.getType().length() > 0)
{ {
final StringBuilder permission = new StringBuilder(); final StringBuilder permission = new StringBuilder();
permission.append("essentials.chat.").append(chatStore.getType()); permission.append("essentials.chat.").append(chatStore.getType());