Nucleus icon indicating copy to clipboard operation
Nucleus copied to clipboard

Teleports on cooldown are still charging players.

Open Arklite opened this issue 3 years ago • 1 comments

What is the bug? RTP Home And TPA are all charging the player the cost I assigned even when the command is on cooldown.

What version of Nucleus are you running? Nucleus version 2.4.0 (built from commit d4ec0f9e9) Nucleus-2.4.0-MC1.12.2-SpongeAPI7.3-plugin.jar

What version of Sponge are you running? 7.3.1 spongeforge-1.12.2-2838-7.3.1-RC4082.jar

Provide a link to the file generated by /nucleus info https://pastebin.com/8vCSLzai or https://gist.github.com/Arklite/2dbbe36be3e312174bd3104271c1ca86

To Reproduce Steps to reproduce the behavior: Set a cost on any of the teleport commands in commands.conf (eg cost=10 under tpa) Set a coodlown on any of the teleport commands in commands.conf (eg cooldown=900) check balance (/balance from total economy) Use the command once to initiate the cooldown Check balance has been deducted. Use the command again this time you get the message you cannot use this command for 900 seconds check balance and find another 10 has been deducted even though the teleport did not complete

Expected behavior Should not take the currency from the player while on cooldown. Taken from your command.conf file that says "The cost will only be deducted if successful"

Logs https://gist.github.com/Arklite/960dd133692e0f441971429fa3db260e

Arklite avatar Jun 15 '21 21:06 Arklite

I cannot replicate this issue using

  • EconomyLite 2.1.15.1
  • Luckperms 5.3.48
  • Nucleus 2.4.0
  • Sponge 7.3.0

Tested using RTP https://i.imgur.com/trDjB6v.png

Began with 80 coins, successfully RTP'd and coinage deducted 15 second cooldown, and I was blocked 3 times, andmy coinage remained at 70

DrZoddiak avatar Jun 25 '21 05:06 DrZoddiak