Skip to content

A Java library to create Minecraft minigames using Bukkit/Spigot

License

Notifications You must be signed in to change notification settings

LeLuxNet/MinigameLib

Repository files navigation

MinigameLib

This is a Java library to create Minecraft minigames in Bukkit

Create a minigame

You need:

  • In the plugin.yml:
softdepends: Vault

commands:
  map:
    permission: minigamelib.map
  start:
    permission: minigamelib.start

permissions:
  minigamelib.*:
    children:
      minigamelib.map: true
      minigamelib.start: true
  minigamelib.map:
    default: true
  minigamelib.start:
    default: op
  minigame.*:
    default: op
    children:
      minigamelib.*: true
      yourminigame.perm1: true
  • As Main class
public class Main extends Minigame {

    @Override
    public void preInitialisation() {
        // This Code will execute at PreInitialisation
    }

    @Override
    public GameConfig initialisation() {
        // This Code will execute at Initialisation

        // You must return a GameConfig
        GameConfig config = new GameConfig(...);
        return config;
    }

    @Override
    public void postInitialisation() {
        // This Code will execute at PostInitialisation
    }

    @Override
    public void onStop() {
        // This Code will execute at Stop
    }
}

About

A Java library to create Minecraft minigames using Bukkit/Spigot

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages