mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 20:29:20 +00:00
Fix exploit with /tpaccept if sender no longer has permission
This commit is contained in:
parent
f0ee026fb9
commit
9efd0eb6f9
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ public class Commandtpaccept extends EssentialsCommand
|
||||||
final User target = user.getTeleportRequest();
|
final User target = user.getTeleportRequest();
|
||||||
if (target == null
|
if (target == null
|
||||||
|| target.getBase() instanceof OfflinePlayer
|
|| target.getBase() instanceof OfflinePlayer
|
||||||
|| (user.isTeleportRequestHere() && !target.isAuthorized("essentials.tpahere")))
|
|| (user.isTeleportRequestHere() ? !target.isAuthorized("essentials.tpahere") : !target.isAuthorized("essentials.tpa")))
|
||||||
{
|
{
|
||||||
throw new Exception(_("noPendingRequest"));
|
throw new Exception(_("noPendingRequest"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue