Skip to content

Commit

Permalink
Fix message for denied tp.
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorfromhell committed Feb 25, 2024
1 parent 04ed44a commit a5938a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit a5938a7

Please sign in to comment.