Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The island level decreases when you type the /is level command #2203

Open
empiremcnetwork opened this issue Aug 20, 2024 · 5 comments
Open
Assignees
Labels
😴 No response Reports that haven't received a respond for over a week ❌ Unconfirmed Bugs that were reported but yet to be replicatable

Comments

@empiremcnetwork
Copy link

Minecraft's Version

1.20.4

Plugin's Version

SuperiorSkyblock2-2024.2-b300.jar

Describe the bug

If the player uses the /is level command away from the valuable blocks that give the island level, the island level will be halved, and even if the player goes to the blocks and uses the /is level command, that level will not be restored.

To Reproduce

Stack the valuable blocks, move away from the island or do not be on the island. Use the /is level command and your island level will be halved.

Additional Information

This bug has been around since May 2024, this bug is not in the development builds of late March and first week of April. If the player uses the /is level command away from the island, the island level is halved.

@empiremcnetwork empiremcnetwork added the Pending Pending reports to be investigated label Aug 20, 2024
@empiremcnetwork
Copy link
Author

Let me give you some more information: My server crashed momentarily due to the PinataParty plugin and I had to close it with CTRL + C. After I turned the server back on, the island level of the players had dropped by half. After that incident, this started to happen, even if the player's level was full, after 1-2 days /is Even if he uses the level command or not, it drops by half again. I think it only happens to some players, it does not count the stacked blocks exactly.

@OmerBenGera
Copy link
Member

/is level goes through all the "dirty chunks" (dirty chunks are chunks that the plugin knows contain blocks in them) and read their blocks, then calculate the amount of each block (even for non-loaded chunks)

If it doesnt work as intended, make sure the chunk is dirty - you can do so by placing a block inside it, then check if it changed anything.

You can also use the /is admin debug command, it can show you the chunks that were calculated

@OmerBenGera OmerBenGera added ❌ Unconfirmed Bugs that were reported but yet to be replicatable and removed Pending Pending reports to be investigated labels Aug 21, 2024
@empiremcnetwork
Copy link
Author

Every time I close and open the server, my players' island levels drop by half, I tried the debug thing you said but it's not a solution. There is no such problem in the March-April SuperiorSkyblock2 version, these problems started at the end of April. Every time I close and open the server, my players' island levels drop continuously, maybe the code you wrote doesn't count the blocks in the chunks, you can see how many blocks there are but it doesn't work on the island level, the stacking block setting is on, as I said, the plugin doesn't count the stacked blocks properly every time I close and open the server.

@OmerBenGera
Copy link
Member

OmerBenGera commented Aug 24, 2024

When the server stops, the plugin saves the block counts to DB, not the worth or level.
Then, when the server starts up, it calculates the worth and level from the block counts that were saved.
It does not recalculate the block counts again.
Also, you mentioned in the title of the bug report that it happens when running /is level, however now you mention it happens when restarting - I need to know exactly how and when it occurs.

Are you able to replicate the issue on a server with only SSB installed, default config files?

@OmerBenGera
Copy link
Member

Any news regarding this?

@OmerBenGera OmerBenGera added the 😴 No response Reports that haven't received a respond for over a week label Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
😴 No response Reports that haven't received a respond for over a week ❌ Unconfirmed Bugs that were reported but yet to be replicatable
Projects
None yet
Development

No branches or pull requests

2 participants