mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-29 13:25:30 +00:00
Fix /tpaccept
timing out requests too soon.
This commit is contained in:
parent
cfc2b7ff2f
commit
3c18efc4a6
|
@ -40,7 +40,7 @@ public class Commandtpaccept extends EssentialsCommand {
|
|||
throw new Exception(tl("noPendingRequest"));
|
||||
}
|
||||
|
||||
if (user.hasOutstandingTeleportRequest()) {
|
||||
if (!user.hasOutstandingTeleportRequest()) {
|
||||
user.requestTeleport(null, false);
|
||||
throw new Exception(tl("requestTimedOut"));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue