[SOLVED] How do you setup your mod/plugin environment?

Alright, I think I get it. So basically follow that README.md and then follow your debugging guide.

Edit: I am getting this error

This is my simple Primary.java class.

package com.playground;

import com.google.inject.Inject;
import org.spongepowered.api.event.Subscribe;
import org.spongepowered.api.event.state.PreInitializationEvent;
import org.spongepowered.api.plugin.Plugin;

import java.util.logging.Logger;

/**

  • Created by TheAwesomeGems on 5/16/2015.
    */
    @Plugin(id = “playground”, name = “Playground”, version = “0.1”)
    public class Primary
    {
    @Inject Plugin plugin;
    @Inject Logger logger;
private static Primary instance;
public static Primary getInstance() { return instance; }
public Primary()
{
    instance = this;
}
@Subscribe
public void onPreInit(PreInitializationEvent e)
{
    logger.info("Playground is loading...");
}

}

From that error, it looks as though you’re still adding Sponge to the classpath of your Plugin. Are you sure that’s reversed?

Yep, I added my plugin on the buildpath of Sponge and running Sponge Server.

Here is a screenshot

Paste your Run/Debug Configuration?

Here

Solved over IRC. :smile:

Nothing in @TheAwesomeGem’s setup was wrong, so don’t worry if your (whoever may be reading this) setup looks the same - it should.

/me flies off into the sunset.

1 Like

Yep, just follow the Readme and then his guide on debugging and it should all work and it’s pretty straight forward than any other instruction. Coming from me who is pretty bad at understanding instructions.

Updated title to reflect that the issue was solved.

1 Like