📝 Getting Started - gumpdev/mars GitHub Wiki

To get started we need to start Mars and declare your intention with Mars.init(plugin), when you start Mars will register all intents events:

public final class Test extends JavaPlugin{
    @Override
    public void onEnable() {
        //'this' need be your plugin main class
        //'Intent.ALL' active all modules
        Mars.init(this, Intent.ALL);
    }
}

List of all intents:

  • ALL
  • ARMOR_STAND
  • CHAT
  • ITEMS
  • INVENTORY
  • INTERACTIONS

(you can start Mars like this: Mars.init(this, Intent.CHAT, Intent.ITEMS))