🛠️Plugin API

Plugin's own api.

Getting started:

Currenty for plugin developement you'll have to own the plugin to use this plugin's api.

To begin, add the plugin's jar file to the build path of your project.

Events:

@EventHandler
public void onGameStartEvent(GameStartEvent event) {
    Game game = event.getGame();
}

Called when the game starts. You can get the game object and access all the necessary data from it.

@EventHandler
public void onGameEndEvent(GameEndEvent event) {
    Game game = event.getGame();
}

Called when the game ends. You can get the game object and access all the necessary data from it.

@EventHandler
public void onGameLoadEvent(GameLoadEvent event) {
    Game game = event.getGame();
    World world = event.getWorld();
}

Called when the game is loaded. Usually happens after the server is starting.

Called when any of the games changes game state.

Called when the player joins the game.

Called when the player leaves the game.

Called when the player ends their turn and gets their new score.

Called on ball hit.

Objects:

Last updated