diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-02-11 12:06:42 -0800 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-02-11 12:06:42 -0800 |
commit | de1554cb680b0fc588e505dd296a780681dc3a97 (patch) | |
tree | 502286a3951db6bb2f22f9dddf88d023ee3527a2 | |
parent | f0ee026fb97ac69822cd3f2f74b5e088ba7b3b66 (diff) | |
parent | 9efd0eb6f9f61b7063c469ec69148949c268a007 (diff) | |
download | Essentials-de1554cb680b0fc588e505dd296a780681dc3a97.tar Essentials-de1554cb680b0fc588e505dd296a780681dc3a97.tar.gz Essentials-de1554cb680b0fc588e505dd296a780681dc3a97.tar.lz Essentials-de1554cb680b0fc588e505dd296a780681dc3a97.tar.xz Essentials-de1554cb680b0fc588e505dd296a780681dc3a97.zip |
Merge pull request #45 from Wolvereness/master
Fix /tpaccept permission check
Refactoring to follow.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandtpaccept.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtpaccept.java b/Essentials/src/com/earth2me/essentials/commands/Commandtpaccept.java index 2e3e024a3..456a77c37 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandtpaccept.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandtpaccept.java @@ -22,7 +22,7 @@ public class Commandtpaccept extends EssentialsCommand final User target = user.getTeleportRequest(); if (target == null || target.getBase() instanceof OfflinePlayer - || (user.isTeleportRequestHere() && !target.isAuthorized("essentials.tpahere"))) + || (user.isTeleportRequestHere() ? !target.isAuthorized("essentials.tpahere") : !target.isAuthorized("essentials.tpa"))) { throw new Exception(_("noPendingRequest")); } |