Stargate Rewritten

Stargate Rewritten

241 Downloads

Player does not get charged when using gate

Thorinwasher opened this issue ยท 1 comments

commented

How to replicate:

  • set useEconomy: true
  • set usageCost: 5

Use a gate that is not in your own personal network

Expected behavior:

  • User gets charged 5
  • User teleports
    Behavior:
  • User teleports
commented

There is an additional issue with this fix. The return value of charge is not used, so a player can teleport even if the payment couldn't be processed.