75 |
|
|
76 |
|
|
77 |
|
|
|
SnitchingChest snitch = new SnitchingChest(this); |
|
|
getCommand("snitchingchest").setExecutor(snitch); |
|
|
pm.registerEvents( snitch, this); |
|
78 |
|
|
79 |
|
|
80 |
|
|
86 |
} |
} |
87 |
}; |
}; |
88 |
messageWrapper = new MessageWrapper(this, ddlInstaller); |
messageWrapper = new MessageWrapper(this, ddlInstaller); |
89 |
pm.registerEvents( messageWrapper, this); |
pm.registerEvents( messageWrapper, this); |
90 |
|
|
91 |
|
SnitchingChest snitch = new SnitchingChest(this, ddlInstaller); |
92 |
|
getCommand("snitchingchest").setExecutor(snitch); |
93 |
|
pm.registerEvents( snitch, this); |
94 |
|
|
95 |
|
|
96 |
//register web plugins |
//register web plugins |
97 |
//pm.registerEvent(Event.Type.CUSTOM_EVENT, new StatusListener(getServer(), logintimeHandler.getConfig(), home.getConfig() ), Priority.Normal, this); |
//pm.registerEvent(Event.Type.CUSTOM_EVENT, new StatusListener(getServer(), logintimeHandler.getConfig(), home.getConfig() ), Priority.Normal, this); |
103 |
Class.forName("de.codeinfection.quickwango.ApiBukkit.ApiServer.ApiController"); //if it fails it throws an exception |
Class.forName("de.codeinfection.quickwango.ApiBukkit.ApiServer.ApiController"); //if it fails it throws an exception |
104 |
WebLoader.getInstance().load(this, logintimeHandler.getConfig(), home.getConfig()); |
WebLoader.getInstance().load(this, logintimeHandler.getConfig(), home.getConfig()); |
105 |
|
|
106 |
getLogger().warning("ApiBukkit found, status listener registered"); |
getLogger().info("ApiBukkit found, status listener registered"); |
107 |
|
|
108 |
} catch (ClassNotFoundException e) { |
} catch (ClassNotFoundException e) { |
109 |
getLogger().warning("Could not find ApiBukkit - web status is disabled" ); |
getLogger().warning("Could not find ApiBukkit - web status is disabled" ); |
125 |
return messageWrapper; |
return messageWrapper; |
126 |
} |
} |
127 |
|
|
128 |
@SuppressWarnings({ "unchecked", "rawtypes" }) |
//@SuppressWarnings({ "unchecked", "rawtypes" }) |
129 |
@Override |
@Override |
130 |
public List<Class<?>> getDatabaseClasses() { |
public List<Class<?>> getDatabaseClasses() { |
131 |
System.out.println("getDatabaseClasses"); |
List<Class<?>> list = new ArrayList<Class<?>>(); |
|
List list = new ArrayList(); |
|
132 |
|
|
133 |
list.add(MessageBean.class); |
list.add(MessageBean.class); |
134 |
|
list.add(SnitchingChestBean.class); |
135 |
|
|
136 |
return list; |
return list; |
137 |
} |
} |