mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 12:02:53 +00:00
Fix /tpaccept
timing out requests too soon.
This commit is contained in:
parent
cfc2b7ff2f
commit
3c18efc4a6
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ public class Commandtpaccept extends EssentialsCommand {
|
||||||
throw new Exception(tl("noPendingRequest"));
|
throw new Exception(tl("noPendingRequest"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user.hasOutstandingTeleportRequest()) {
|
if (!user.hasOutstandingTeleportRequest()) {
|
||||||
user.requestTeleport(null, false);
|
user.requestTeleport(null, false);
|
||||||
throw new Exception(tl("requestTimedOut"));
|
throw new Exception(tl("requestTimedOut"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue