mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-23 19:16:40 +01:00
Don't show a deny message if it's an empty string.
This commit is contained in:
parent
f858c175f9
commit
d6f12804ea
@ -100,7 +100,7 @@ private void tellErrorMessage(DelegateEvent event, Cause cause, Location locatio
|
||||
if (lastTime == null || now - lastTime >= LAST_MESSAGE_DELAY) {
|
||||
RegionQuery query = getPlugin().getRegionContainer().createQuery();
|
||||
String message = query.queryValue(location, player, DefaultFlag.DENY_MESSAGE);
|
||||
if (message != null) {
|
||||
if (message != null && !message.isEmpty()) {
|
||||
player.sendMessage(message.replace("%what%", what));
|
||||
}
|
||||
WGMetadata.put(player, DENY_MESSAGE_KEY, now);
|
||||
|
Loading…
Reference in New Issue
Block a user