mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-24 00:51:22 +01:00
Don't send empty messages from chorus-fruit/enderpearl teleports.
This commit is contained in:
parent
310ce9a662
commit
129d27351a
@ -393,7 +393,7 @@ public void onPlayerTeleport(PlayerTeleportEvent event) {
|
||||
message = set.queryValue(localPlayer, Flags.ENTRY_DENY_MESSAGE);
|
||||
}
|
||||
if (cancel) {
|
||||
if (message != null) {
|
||||
if (message != null && !message.isEmpty()) {
|
||||
player.sendMessage(message);
|
||||
}
|
||||
event.setCancelled(true);
|
||||
@ -412,7 +412,7 @@ public void onPlayerTeleport(PlayerTeleportEvent event) {
|
||||
message = set.queryValue(localPlayer, Flags.ENTRY_DENY_MESSAGE);
|
||||
}
|
||||
if (cancel) {
|
||||
if (message != null) {
|
||||
if (message != null && !message.isEmpty()) {
|
||||
player.sendMessage(message);
|
||||
}
|
||||
event.setCancelled(true);
|
||||
|
Loading…
Reference in New Issue
Block a user