Fix /tpaccept timing out requests too soon.

This commit is contained in:
Ali Moghnieh 2016-11-23 13:41:11 +00:00
parent cfc2b7ff2f
commit 3c18efc4a6
No known key found for this signature in database
GPG key ID: F09D3A1BAF2E6D70

View file

@ -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"));
}