EssentialsX

EssentialsX

2M Downloads

/tpa and /tpahere always charge the player

FayoraRose opened this issue ยท 2 comments

commented

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

  1. Set a command costs for either tpa and/or tpahere
  2. Have 2 players online
  3. 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.

commented

Arguably this works as intended, as the cost is tied to using the command, not whatever the implied usage of the command is.

commented

Command costs charge for using the command, this is not a bug. Closing this as "works as intended" however if you would like to open a feature request instead for charging on command outcome I think that would be valid.