RPGStats
RPGStats copied to clipboard
/rpgcheat level options don't account for custom adjusted formula values.
Describe the bug
The /rpgcheat player skill add/set levels x
command uses the default formula values as hardcoded for calculating the amount of XP to give to the recieving player.
To Reproduce Steps to reproduce the behavior:
- Change the formula values in config
- Give a player a few levels through rpgcheat
- The player will recieve less/more levels than what you intended to give.
Expected behavior The player getting the exact amount of levels you intended.
Environment
- [x] Server
- [ ] Client
- [ ] Singleplayer
- [ ] Lan Server
I mean theres literally 0 way this is the issue https://github.com/SilverAndro/RPGStats/blob/master/src/main/java/mc/rpgstats/command/CheatCommand.java#L116
Something else would have to be the issue here, because its calling the exact same method everything else uses
I mean theres literally 0 way this is the issue https://github.com/SilverAndro/RPGStats/blob/master/src/main/java/mc/rpgstats/command/CheatCommand.java#L116
Something else would have to be the issue here, because its calling the exact same method everything else uses
It's pretty much what would happen if the level estimation used hardcoded values, so i'm assuming that. The issue is still around, i guess.
That command is hacked together haha, it wouldn't surprise me if its got even more bugs
Ok so im now seeing this in my dev env and, I have no clue
Ill investigate but this is super bizzare