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

Support 1.21.0 #25

Open
dasdev20 opened this issue Jul 4, 2024 · 4 comments
Open

Support 1.21.0 #25

dasdev20 opened this issue Jul 4, 2024 · 4 comments

Comments

@dasdev20
Copy link

dasdev20 commented Jul 4, 2024

I tried to run the plugin on the 1.21.0 test server and got a loading error.
Cannot invoke "Object.toString()" because "username" is null

You can see the full text of the error below.

[09:51:47] [Server thread/INFO]: [BeaconWaypoints] Enabling BeaconWaypoints v1.7
[09:51:47] [Server thread/INFO]: [BeaconWaypoints] Loading module for version 1.21-R0.1-SNAPSHOT
[09:51:47] [Server thread/ERROR]: Error occurred while enabling BeaconWaypoints v1.7 (Is it up to da>
java.lang.NullPointerException: Cannot invoke "Object.toString()" because "username" is null
        at BeaconWaypoints-1.7.jar/com.github.dawsonvilamaa.beaconwaypoint.Main.loadData(Main.java:1>
        at BeaconWaypoints-1.7.jar/com.github.dawsonvilamaa.beaconwaypoint.Main.onEnable(Main.java:1>
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288) ~[paper-api-1.21-R0.1-S>
        at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstan>
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImp>
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper->
        at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:629) ~[paper-1.21.jar:1.>
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:578) ~[paper-1.21.jar:1>
        at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:752) ~[paper-1.21.ja>
        at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:514) ~[paper-1.21.jar>
        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:327) ~[pap>
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1219) ~[paper-1.21.ja>
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329) ~[paper-1.21>
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

Since the author has already added a class for version 1.21, I think the problem may be with the raw version of the paper assembly.

But if this is not the case please add support for version 1.21

@dasdev20 dasdev20 changed the title Support 1.21 Support 1.21.0 Jul 4, 2024
@energy-sync
Copy link
Owner

Can you post your json file for your waypoints? I think this an error from reading it

@dasdev20
Copy link
Author

dasdev20 commented Jul 10, 2024

@energy-sync,
Thank you, for your answer.

Indeed, there is a problem with the files of private user portals.
As I understand it, the record format has changed and the username column has been added.
Old format:
{"uuid":"0d5bb9a4-054e-3dea-a26b-65fe26774771","waypoints":[]}
New Format:
{"uuid":"0d5bb9a4-054e-3dea-a26b-65fe26774771","waypoints":[],"username":"Username"}

After adding the appropriate column, I launched the plugin on experimental 1.21

@energy-sync
Copy link
Owner

I added a new release with changes to account for the username field not being there. Could you download it and test to make sure the issue is resolved? https://github.com/energy-sync/BeaconWaypoints/releases/tag/v1.7.1

@dasdev20
Copy link
Author

dasdev20 commented Jul 11, 2024

@energy-sync,
Thank you for your prompt work. Resolved.

I used the private user portal file from version 1.6.5, and ran it with the plugin version 1.7.1. Now the username column has been auto added to the file and the plugin has launched.

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

No branches or pull requests

2 participants