mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-12-31 20:42:17 +00:00
Player should not be able to send empty shout/question messages (#3341)
This commit is contained in:
parent
db729241c9
commit
9e01a1a427
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue