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

Merge pull request #45 from Wolvereness/master

Fix /tpaccept permission check
Refactoring to follow.
This commit is contained in:
KHobbits
2012-02-11 12:06:42 -08:00

View File

@@ -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"));
}