Essentials.sethome.others doesn't imply essentials.sethome.multiple.

Restore essentials.home.others permission check.
This commit is contained in:
KHobbits 2011-08-24 02:48:38 +01:00
parent 6946488e0d
commit 8cc249c2d3
2 changed files with 16 additions and 4 deletions

View file

@ -25,7 +25,7 @@ public class Commandhome extends EssentialsCommand
if (args.length > 0)
{
nameParts = args[0].split(":");
if (nameParts[0].length() == args[0].length())
if (nameParts[0].length() == args[0].length() || !user.isAuthorized("essentials.home.others"))
{
homeName = nameParts[0];
}