mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-08 03:50:06 +01:00
Merge pull request #45 from Wolvereness/master
Fix /tpaccept permission check Refactoring to follow.
This commit is contained in:
commit
de1554cb68
@ -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 New Issue
Block a user