1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-10-05 02:21:38 +02:00

adding per-group teleport permissions

This commit is contained in:
Riaku
2013-02-07 16:06:55 -06:00
parent fa20d24957
commit fbc8167ea9
8 changed files with 40 additions and 2 deletions

View File

@@ -24,6 +24,11 @@ public class Commandtpahere extends EssentialsCommand
}
ISettings settings = ess.getSettings();
if (settings.getData().getGeneral().isPerGroupTeleport() && !Permissions.PERGROUPTELEPORT.isAuthorized(
user, ess.getRanks().getMainGroup(user)))
{
throw new Exception(_("noPerm", "essentials.tp." + player));
}
if (user.getPlayer().getWorld() != player.getPlayer().getWorld() && settings.getData().getGeneral().isWorldTeleportPermissions() && !Permissions.WORLD.isAuthorized(
user, user.getPlayer().getWorld().getName()))
{