From 9efd0eb6f9f61b7063c469ec69148949c268a007 Mon Sep 17 00:00:00 2001 From: Wolvereness Date: Thu, 9 Feb 2012 23:14:57 -0600 Subject: [PATCH] Fix exploit with /tpaccept if sender no longer has permission --- .../src/com/earth2me/essentials/commands/Commandtpaccept.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")); }