use of pl.themolka.arcade.listener.ProtectionListeners 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));
}
Aggregations