mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-22 21:43:41 +00:00
Check the player we are bringing has permission to enter the world vs the initiating user the final frontier
This commit is contained in:
parent
2fbdf7e4d6
commit
a1ac58d17c
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ public class Commandtp extends EssentialsCommand
|
|||
throw new Exception(_("teleportDisabled", toPlayer.getDisplayName()));
|
||||
}
|
||||
if (target.getWorld() != toPlayer.getWorld() && ess.getSettings().isWorldTeleportPermissions()
|
||||
&& !player.isAuthorized("essentials.world." + toPlayer.getWorld().getName()))
|
||||
&& !target.isAuthorized("essentials.world." + toPlayer.getWorld().getName()))
|
||||
{
|
||||
throw new Exception(_("noPerm", "essentials.world." + toPlayer.getWorld().getName()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue