mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-02 06:28:20 +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);
|
final char prefix = message.charAt(0);
|
||||||
if (prefix == ess.getSettings().getChatShout()) {
|
if (prefix == ess.getSettings().getChatShout()) {
|
||||||
return "shout";
|
return message.length() > 1 ? "shout" : "";
|
||||||
} else if (prefix == ess.getSettings().getChatQuestion()) {
|
} else if (prefix == ess.getSettings().getChatQuestion()) {
|
||||||
return "question";
|
return message.length() > 1 ? "question" : "";
|
||||||
} else {
|
} else {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user