Move the per world permissions:

essentials.world.worldname is moved to essentials.worlds.worldname
This commit is contained in:
KHobbits 2012-09-08 22:50:20 +01:00
parent 78a580bc40
commit f9659dae68
13 changed files with 28 additions and 28 deletions

View file

@ -102,9 +102,9 @@ public class Commandhome extends EssentialsCommand
throw new NotEnoughArgumentsException();
}
if (user.getWorld() != loc.getWorld() && ess.getSettings().isWorldHomePermissions()
&& !user.isAuthorized("essentials.world." + loc.getWorld().getName()))
&& !user.isAuthorized("essentials.worlds." + loc.getWorld().getName()))
{
throw new Exception(_("noPerm", "essentials.world." + loc.getWorld().getName()));
throw new Exception(_("noPerm", "essentials.worlds." + loc.getWorld().getName()));
}
user.getTeleport().home(loc, charge);
}