I’ll be making a video shortly/soon to make an example plugin with this.
Hot-reloading works with your plugin code, the Sponge mixins themselves can not be hot-swapped.
Through the VCS control buttons, basically the following steps:
Select ‘Pull…’
And you get the following dialogue box.
I’m using JDK 7 in the videos, but JDK 8 is perfectly fine to use. When using JDK 8 make absolutely sure that you’re using com.google.common.base.Optional and not java.util.Optional otherwise your plugin will require using JRE 8 and of course will not be compatible with any servers running JRE 6 or 7.
Doesn’t seem to work for me. I get this error whenever I am trying to start up my plugin module server.
May 04, 2015 5:57:56 PM com.google.inject.internal.MessageProcessor visit
INFO: An exception was caught and reported. Message: java.lang.ClassCastException: net.minecraftforge.fml.common.MinecraftDummyContainer cannot be cast to org.spongepowered.api.plugin.PluginContainer
java.lang.ClassCastException: net.minecraftforge.fml.common.MinecraftDummyContainer cannot be cast to org.spongepowered.api.plugin.PluginContainer
@gabizou Thank you for making these videos and forgive me I’m extremely new to programing.
Regarding the first video I ran to this error during importing from Gradle.
Could not read script '...\GitHub\Sponge\SpongeCommon\gradle\implementation.gradle' as it does not exist.
How can you add arbitrary plugins into the server? For example, I usually have WorldEdit/WorldGuard + a few others as my base plugin set when developing. Can you do the same here?
I can’t seem to launch the server within IntelliJ.
I verified that Java JDK is correctly installed.
When I run sponge server in IntelliJ using javac 1.8.0_45 I get a ton of errors like:
“Error:(36, 55) java: generics are not supported in -source 1.3
(use -source 5 or higher to enable generics)”