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
Some little bugs #3
Comments
Ah yes, that's my fault. I'll update the README when I get on my pc tomorrow :) As for the other issue, that's how java serialization/deserialization works, it should be the exact same class (meaning same package) on either side. I suggest you use Maven or Gradle to create a common project for the Bukkit and BungeeCord plugins and shade the common project into both JARs. Failing that you can simply do as your currently doing making sure the packages are the same. I will try update the error message displayed tomorrow to make it easier to understand and fix :) |
Ok thanks :) I'm just using a common project, it's only for other people if they are wondering why it's not working. |
Basically the serialVersionUID is a number which should only be changed if breaking changes are made to the packet. It prevents the packet being de-serialized if the serialVersionUIDs of the packet being sent, and the receiving sides copy of the packet do not match. There's a more detailed explanation available here http://stackoverflow.com/questions/285793/what-is-a-serialversionuid-and-why-should-i-use-it |
…additonal NullPointerException being thrown) FIXES #3
Aha, I understand. Thanks! |
Okay, awesome :D if you encounter any more questions/issues, let me know |
Of course :) |
The gateway cannot be initialized directly, like this:
If i do it how it's written in the documentation, it gives me an IllegalPluginAccessException:
You have to wait and do it after the plugin has been enabled (in the onEnable()), like so:
This applies for the Bukkit and the BungeeCord plugin. Maybe you should update the README for both.
If I have the same Packet (class) on BungeeCord and Bukkit, but in a different package, then I get the following NullPointerException on this line:
Maybe you can fix this :)
Regards, JBou
The text was updated successfully, but these errors were encountered: