EssentialsX

EssentialsX

2M Downloads

Teleport cooldown behavior change for TP requests

takatalvi opened this issue ยท 0 comments

commented

Situation:
Currently, when teleport-cooldown is set to a non-zero value, it affects teleports themselves - using /home, /spawn, /warp, and/or /tp. When sending a /tpa or /tpahere request, the request is sent, but when the other player accepts it and your cooldown had not yet elapsed, you will get a timeBeforeTeleport message, which can be frustrating to players, as their teleport gets cancelled after waiting for the request approval.

Enhancement:
Add /tpa and /tpahere to the list of commands affected by teleport-cooldown. That way, when the player cannot teleport yet (their countdown has not yet reached 0), their request will not be sent and therefore the player will immediately know what's going on, not having to wait for /tpaccept only to get turned down right away.

Thanks!