Search in sources :

Example 1 with JoinSignCreate

use of com.gmail.stefvanschiedev.buildinggame.events.block.JoinSignCreate in project buildinggame by stefvanschie.

the class Main method onEnable.

/**
 * Called whenever this plugin is being enabled
 *
 * @since 2.1.0
 */
@Override
public void onEnable() {
    instance = this;
    SettingsManager.getInstance().setup(this);
    JoinSign.load();
    new BukkitCommandManager(this).registerCommand(new BuildingGameCommand());
    Bukkit.getPluginManager().registerEvents(new JoinSignBreak(), this);
    Bukkit.getPluginManager().registerEvents(new JoinSignCreate(), this);
    Bukkit.getPluginManager().registerEvents(new ClickJoinSign(), this);
    // connects the client to the server
    BungeeCordHandler.getInstance();
    getLogger().info("BuildingGame - BungeeCord Addon has been enabled");
}
Also used : BukkitCommandManager(co.aikar.commands.BukkitCommandManager) JoinSignCreate(com.gmail.stefvanschiedev.buildinggame.events.block.JoinSignCreate) JoinSignBreak(com.gmail.stefvanschiedev.buildinggame.events.block.JoinSignBreak) ClickJoinSign(com.gmail.stefvanschiedev.buildinggame.events.player.signs.ClickJoinSign) BuildingGameCommand(com.gmail.stefvanschiedev.buildinggame.command.BuildingGameCommand)

Aggregations

BukkitCommandManager (co.aikar.commands.BukkitCommandManager)1 BuildingGameCommand (com.gmail.stefvanschiedev.buildinggame.command.BuildingGameCommand)1 JoinSignBreak (com.gmail.stefvanschiedev.buildinggame.events.block.JoinSignBreak)1 JoinSignCreate (com.gmail.stefvanschiedev.buildinggame.events.block.JoinSignCreate)1 ClickJoinSign (com.gmail.stefvanschiedev.buildinggame.events.player.signs.ClickJoinSign)1