Added exception handler
This commit is contained in:
parent
777e723105
commit
131c489ccd
1 changed files with 3 additions and 1 deletions
|
@ -2,12 +2,14 @@ package main;
|
||||||
|
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
|
import buttondevteam.lib.TBMCCoreAPI;
|
||||||
|
|
||||||
public class MainPlugin extends JavaPlugin {
|
public class MainPlugin extends JavaPlugin {
|
||||||
|
|
||||||
public void onEnable(){
|
public void onEnable(){
|
||||||
|
|
||||||
//getServer().getPluginManager().registerEvents(new WorldLoadListener(this), this);
|
//getServer().getPluginManager().registerEvents(new WorldLoadListener(this), this);
|
||||||
getServer().getPluginManager().registerEvents(new WorldChangeListener(this), this);
|
TBMCCoreAPI.RegisterEventsForExceptions(new WorldChangeListener(this), this);
|
||||||
MainPlugin.getPlugin(this.getClass()).getServer().getListeningPluginChannels();
|
MainPlugin.getPlugin(this.getClass()).getServer().getListeningPluginChannels();
|
||||||
|
|
||||||
saveDefaultConfig();
|
saveDefaultConfig();
|
||||||
|
|
Loading…
Reference in a new issue