mirror of
https://github.com/nkomarn/harbor.git
synced 2024-09-29 06:57:35 +02:00
Register Listener
This commit is contained in:
parent
a9b9932a08
commit
1ae113328d
@ -4,6 +4,7 @@ import com.earth2me.essentials.Essentials;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import xyz.nkomarn.Harbor.command.HarborCommand;
|
||||
import xyz.nkomarn.Harbor.listener.PlayerListener;
|
||||
import xyz.nkomarn.Harbor.task.Checker;
|
||||
import xyz.nkomarn.Harbor.util.Config;
|
||||
import xyz.nkomarn.Harbor.util.Metrics;
|
||||
@ -23,6 +24,7 @@ public class Harbor extends JavaPlugin {
|
||||
}
|
||||
|
||||
getCommand("harbor").setExecutor(new HarborCommand());
|
||||
getServer().getPluginManager().registerEvents(new PlayerListener(), this);
|
||||
|
||||
// bStats
|
||||
final Metrics metrics = new Metrics(this);
|
||||
|
Loading…
Reference in New Issue
Block a user