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: