Originally it was @SpongeEventHandler, but now you can only use @Subscribe
Thanks. How would one submit for an update edit on the OP here? Flag?
To be honest, I donât know if one can âsubmitâ for an update, but I suppose contacting Tux2 or a moderator with some suggested updates could work. I suppose you could flag it as well. Its really up to you.
Canât wait.
Iâm happy thereâs no plugin.yml anymore like in bukkit.
Thank you, excited to see how this project goes!
I am quite confused with this whole Gradle stuff. In Bukkit, i just downloaded a bukkit.jar and made this a library in the project-setup in Eclipse. (It did not include the whole api when extracting). Is there currently a similar way, or am i just stupid?
Learn to use gradle and youâll love it. Of course you can just dl the sponge api and set the jar as dependency, but why would you do such things? Youâll make me cry.
Dont cry! Iâll continue trying to understand Gradle! ^^
But there is currently no jar downloadlink, is it? Because i thought you have to download that whole zip thing and have to compile it on your own⌠using Gradle xD
Or am i wrong?
You can dl it directly from the maven. http://repo.spongepowered.org/Sponge/maven/org/spongepowered/spongeapi/
Thanks, that worked. That leave me with another question-- why was it updated to @Subscribe
in the first place. Also, why is it named that?
Itâs named that ecause you subscribe to the event. Youâre basically listening for the start event and using it as and entry point for your plugin, as you would have used onEnable. It was updated cause sbdy found @SpongeEventHandler
to be a stupid name, which it is
Personally, I dont think @SpongeEventHandler
is a bad name at all. It describes what it is for very well, which is the whole idea of variable names. Why not just have variable1 or variable2. The point of variable names are to describe what it does.
But @Subscribe
is the more obvious name, if youâve ever worked with an Annotation-based EvenBus before (eg. Forgeâs)
You can use an âotherâ flag to petition the moderators to make it into a community wiki, and then people can edit it.
I agree 100% with this. I think we decided on hrocn or something on that. also, keeping everying for a basic Welcome to this server! plugin in 1 .java instead of 3 different filesâŚ
Yes. I donât mind the plugin.yml being there and all that stuff, but IMO things like that should be optional functionality.
Thanks for the tips, @Tux2
You helped me a lot with this advice.