/tpa and /tpahere always charge the player
FayoraRose opened this issue ยท 2 comments
Type of bug
Other unexpected behaviour
/ess dump all
output
https://essentialsx.net/dump.html?id=9859e91ebe63449998f83fa970e9d37c
Error log (if applicable)
No response
Bug description
When running /tpa or /tpahere with command-costs set, the player is immediately charged for the teleport attempt without waiting for the outcome
Steps to reproduce
- Set a command costs for either tpa and/or tpahere
- Have 2 players online
- Attempt to run one of the commands directed at the other player
Expected behaviour
No money should be deducted until teleport has been accepted by the other player and the teleport fully completed after any configured teleport delays. (Standard /tp and /tphere work correctly and wait until after warmups before charging money)
Actual behaviour
Money is charged immediately after running the command.
Arguably this works as intended, as the cost is tied to using the command, not whatever the implied usage of the command is.