diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-10-07 22:40:04 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-10-07 22:40:04 +0100 |
commit | 4982cc950e4b35b5d9232f6937fb1f75dfea4719 (patch) | |
tree | c6592ad20907d8d2d33af655e8aaafa8245ba880 | |
parent | 98d657ec4b65658b9925a073e6803243362983f0 (diff) | |
download | Essentials-4982cc950e4b35b5d9232f6937fb1f75dfea4719.tar Essentials-4982cc950e4b35b5d9232f6937fb1f75dfea4719.tar.gz Essentials-4982cc950e4b35b5d9232f6937fb1f75dfea4719.tar.lz Essentials-4982cc950e4b35b5d9232f6937fb1f75dfea4719.tar.xz Essentials-4982cc950e4b35b5d9232f6937fb1f75dfea4719.zip |
Add alt warp perm for others
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandbalance.java | 1 | ||||
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandwarp.java | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandbalance.java b/Essentials/src/com/earth2me/essentials/commands/Commandbalance.java index 15c3c9088..e4aebd197 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandbalance.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandbalance.java @@ -27,6 +27,7 @@ public class Commandbalance extends EssentialsCommand @Override public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception { + //TODO: Remove 'other' perm final double bal = (args.length < 1 || !(user.isAuthorized("essentials.balance.others") || user.isAuthorized("essentials.balance.other")) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandwarp.java b/Essentials/src/com/earth2me/essentials/commands/Commandwarp.java index 4268ed797..9755d451d 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandwarp.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandwarp.java @@ -37,8 +37,9 @@ public class Commandwarp extends EssentialsCommand } if (args.length > 0) { + //TODO: Remove 'otherplayers' permission. User otherUser = null; - if (args.length == 2 && user.isAuthorized("essentials.warp.otherplayers")) + if (args.length == 2 && (user.isAuthorized("essentials.warp.otherplayers") || user.isAuthorized("essentials.warp.others"))) { otherUser = ess.getUser(server.getPlayer(args[1])); if (otherUser == null) |