From a5938a71cbd00c5ca455fd62654ba5429701d81d Mon Sep 17 00:00:00 2001 From: Daniel V Date: Sun, 25 Feb 2024 18:01:01 -0500 Subject: [PATCH] Fix message for denied tp. --- .../phantomworlds/listeners/player/PlayerTeleportListener.java | 2 +- src/main/resources/messages.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/lokka30/phantomworlds/listeners/player/PlayerTeleportListener.java b/src/main/java/me/lokka30/phantomworlds/listeners/player/PlayerTeleportListener.java index 53f3224..36423cb 100644 --- a/src/main/java/me/lokka30/phantomworlds/listeners/player/PlayerTeleportListener.java +++ b/src/main/java/me/lokka30/phantomworlds/listeners/player/PlayerTeleportListener.java @@ -61,7 +61,7 @@ public void onPortal(PlayerTeleportEvent event) { } if(plugin.worldManager.tpAwaiting.containsKey(event.getPlayer().getUniqueId())) { - if(!event.isCancelled()) { + if(event.isCancelled()) { (new MultiMessage( PhantomWorlds.instance().messages.getConfig() diff --git a/src/main/resources/messages.yml b/src/main/resources/messages.yml index 8baeff6..5991965 100644 --- a/src/main/resources/messages.yml +++ b/src/main/resources/messages.yml @@ -12,7 +12,8 @@ common: list-delimiter: '&7, &b' - denied: '%prefix% You do not have access to the world ''&b%world%&7''.' + denied: + - '%prefix% You do not have access to the world ''&b%world%&7''.' command: