mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 00:58:50 +01:00
Player should not be able to send empty shout/question messages (#3341)
This commit is contained in:
parent
db729241c9
commit
9e01a1a427
@ -38,9 +38,9 @@ public abstract class EssentialsChatPlayer implements Listener {
|
||||
|
||||
final char prefix = message.charAt(0);
|
||||
if (prefix == ess.getSettings().getChatShout()) {
|
||||
return "shout";
|
||||
return message.length() > 1 ? "shout" : "";
|
||||
} else if (prefix == ess.getSettings().getChatQuestion()) {
|
||||
return "question";
|
||||
return message.length() > 1 ? "question" : "";
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user