Search in sources :

Example 1 with GeneralListeners

use of pl.themolka.arcade.listener.GeneralListeners in project Arcade2 by ShootGame.

the class ArcadePlugin method loadServer.

private void loadServer() {
    Node node = this.getSettings().getData().child("server");
    if (node == null) {
        node = Node.empty();
    }
    String name = node.propertyValue("name");
    if (name != null && this.serverName.equals(DEFAULT_SERVER_NAME)) {
        this.serverName = name;
    }
    this.registerListenerObject(new BlockTransformListeners(this));
    this.registerListenerObject(new GeneralListeners(this));
    this.registerListenerObject(new ProtectionListeners(this));
    // dead events
    this.registerListenerObject(new DeadListeners(this));
    // sessions
    this.registerListenerObject(new Sessions(this));
    // windows
    this.registerListenerObject(new WindowListeners(this));
}
Also used : DeadListeners(pl.themolka.arcade.event.DeadListeners) Node(pl.themolka.arcade.dom.Node) GeneralListeners(pl.themolka.arcade.listener.GeneralListeners) Sessions(pl.themolka.arcade.session.Sessions) BlockTransformListeners(pl.themolka.arcade.listener.BlockTransformListeners) ProtectionListeners(pl.themolka.arcade.listener.ProtectionListeners) WindowListeners(pl.themolka.arcade.window.WindowListeners)

Aggregations

Node (pl.themolka.arcade.dom.Node)1 DeadListeners (pl.themolka.arcade.event.DeadListeners)1 BlockTransformListeners (pl.themolka.arcade.listener.BlockTransformListeners)1 GeneralListeners (pl.themolka.arcade.listener.GeneralListeners)1 ProtectionListeners (pl.themolka.arcade.listener.ProtectionListeners)1 Sessions (pl.themolka.arcade.session.Sessions)1 WindowListeners (pl.themolka.arcade.window.WindowListeners)1