Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Teleports on cooldown are still charging players. #1604

Open
Arklite opened this issue Jun 15, 2021 · 1 comment
Open

Teleports on cooldown are still charging players. #1604

Arklite opened this issue Jun 15, 2021 · 1 comment

Comments

@Arklite
Copy link

Arklite commented Jun 15, 2021

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 d4ec0f9)
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

@DrZoddiak
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants