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

[Bug]: Upgrade Shop is not working #525

Open
Bhrol opened this issue Feb 24, 2024 · 3 comments
Open

[Bug]: Upgrade Shop is not working #525

Bhrol opened this issue Feb 24, 2024 · 3 comments
Labels
0.3.x Targeted for a 0.3.x version bug Something isn't working

Comments

@Bhrol
Copy link

Bhrol commented Feb 24, 2024

Bug description

Using the plugin in 1.20.4, when I launch the game in one team mode (using cheat mode) and buy an upgrade from the upgrade shop (using the certain-poupular-server/upgrade-shop.yml for example), it just give me the item of the shop and does not give the expected effect (no sharpness or protection).

BedWars dump (can be obtained via /bw dump)

No response

Console log

I tried to get the dump but instead had this :

[02:00:03] [Thread-13/WARN]: java.lang.IllegalArgumentException: Configuration does not accept objects of type class java.util.stream.ReferencePipeline$3
[02:00:03] [Thread-13/WARN]: at BedWars-0.3.0-SNAPSHOT-dev.jar//org.screamingsandals.bedwars.lib.ext.configurate.ScalarConfigValue.set(ScalarConfigValue.java:45)
[02:00:03] [Thread-13/WARN]: at BedWars-0.3.0-SNAPSHOT-dev.jar//org.screamingsandals.bedwars.lib.ext.configurate.AbstractConfigurationNode.insertNewValue(AbstractConfigurationNode.java:264)
[02:00:03] [Thread-13/WARN]: at BedWars-0.3.0-SNAPSHOT-dev.jar//org.screamingsandals.bedwars.lib.ext.configurate.AbstractConfigurationNode.raw(AbstractConfigurationNode.java:340)
[02:00:03] [Thread-13/WARN]: at BedWars-0.3.0-SNAPSHOT-dev.jar//org.screamingsandals.bedwars.lib.ext.configurate.MapConfigValue.set(MapConfigValue.java:75)
[02:00:03] [Thread-13/WARN]: at BedWars-0.3.0-SNAPSHOT-dev.jar//org.screamingsandals.bedwars.lib.ext.configurate.AbstractConfigurationNode.insertNewValue(AbstractConfigurationNode.java:264)
[02:00:03] [Thread-13/WARN]: at BedWars-0.3.0-SNAPSHOT-dev.jar//org.screamingsandals.bedwars.lib.ext.configurate.AbstractConfigurationNode.set(AbstractConfigurationNode.java:177)
[02:00:03] [Thread-13/WARN]: at BedWars-0.3.0-SNAPSHOT-dev.jar//org.screamingsandals.bedwars.commands.DumpCommand.lambda$construct$15(DumpCommand.java:344)
[02:00:03] [Thread-13/WARN]: at java.base/java.lang.Thread.run(Unknown Source)

Additional information

The plugin I used is one I builded using your repo, but I really didn't change much so it has no impact on the part of the shop.

@Bhrol Bhrol added bug Something isn't working needs triage Needs to be confirmed labels Feb 24, 2024
@zlataovce zlataovce added the 0.3.x Targeted for a 0.3.x version label Feb 24, 2024
@Misat11 Misat11 removed the needs triage Needs to be confirmed label Feb 24, 2024
@Misat11
Copy link
Member

Misat11 commented Feb 24, 2024

Hello,

upgrades are not implemented yet in the development versions of 0.3.0. There is currently no ETA for this feature to be implemented.

Btw thank you for the discovery that /bw dump does not work :)

@Bhrol
Copy link
Author

Bhrol commented Feb 24, 2024

Thanks for your fast answer.

Actually this morning I downgraded to v2.31 (just remodifying the line of codes I needed) , and the upgrade shop still don't work (all the previous upgrade shop i setted up went down but i resetted one called the &lTeam&aUpgrade with the good shop file)

This time I've got the dump : https://paste.gg/79ef783a1fe94be2976fd23e977534d2

I also have an other question that has nothing to do with the problem : is there a way to publish a scoreboard of players and teams at the end of the game ?

@Misat11
Copy link
Member

Misat11 commented Feb 24, 2024

Current releases (0.2.x) do not have an upgrade shop at all, there's an addon called SBA which adds it. We have plans to merge this addon into the main plugin in 0.3.0, however it is not finished yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.3.x Targeted for a 0.3.x version bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants