mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 12:02:53 +00:00
Adding world permission checks to:
tpaall tpall tpahere tphere tpohere User is required to have the permission for the world he is in, before he can teleport users outside this world, to it.
This commit is contained in:
parent
5d45495371
commit
97eed50ccc
6 changed files with 30 additions and 2 deletions
|
@ -42,6 +42,11 @@ public class Commandtpall extends EssentialsCommand
|
|||
{
|
||||
continue;
|
||||
}
|
||||
if (user.getWorld() != player.getWorld() && ess.getSettings().isWorldTeleportPermissions()
|
||||
&& !user.isAuthorized("essentials.world." + user.getWorld().getName()))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
try
|
||||
{
|
||||
player.getTeleport().now(user, false, TeleportCause.COMMAND);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue