Skip to content
Permalink
Browse files

Register empty plugin

  • Loading branch information...
bmhm committed Apr 4, 2016
1 parent 9bff838 commit 3da7d337ec8c02f948963b93a12127b8201acd53
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/main/java/de/bmarwell/bukkit/ExamplePlugin.java
@@ -11,6 +11,9 @@

package de.bmarwell.bukkit;

import de.bmarwell.bukkit.listener.PlayerTeleportListener;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

/**
@@ -26,6 +29,15 @@ public void onDisable() {

@Override
public void onEnable() {
// 1.) init your config.

// 2.) register events.
registerEvents();
}

private void registerEvents() {
Bukkit.getServer().getPluginManager().registerEvents(
new PlayerTeleportListener(), this);
}

}

0 comments on commit 3da7d33

Please sign in to comment.
You can’t perform that action at this time.