/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java
ViewVC logotype

Diff of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1768 by torben, Tue Apr 3 20:21:02 2012 UTC revision 1786 by torben, Fri Apr 6 15:06:46 2012 UTC
# Line 7  import java.util.List; Line 7  import java.util.List;
7  import org.bukkit.plugin.PluginManager;  import org.bukkit.plugin.PluginManager;
8  import org.bukkit.plugin.java.JavaPlugin;  import org.bukkit.plugin.java.JavaPlugin;
9    
10    import com.avaje.ebeaninternal.api.SpiEbeanServer;
11    import com.avaje.ebeaninternal.server.ddl.DdlGenerator;
12    
13  import dk.thoerup.bukkit.hoeruputils.creative.GeneralContractorCommands;  import dk.thoerup.bukkit.hoeruputils.creative.GeneralContractorCommands;
14  import dk.thoerup.bukkit.hoeruputils.message.MessageBean;  import dk.thoerup.bukkit.hoeruputils.message.MessageBean;
15  import dk.thoerup.bukkit.hoeruputils.message.MessageWrapper;  import dk.thoerup.bukkit.hoeruputils.message.MessageWrapper;
16  import dk.thoerup.bukkit.hoeruputils.secretdoor.DoorBlockListener;  import dk.thoerup.bukkit.hoeruputils.secretdoor.DoorBlockListener;
17  import dk.thoerup.bukkit.hoeruputils.web.WebLoader;  import dk.thoerup.bukkit.hoeruputils.web.WebLoader;
18    import dk.thoerup.bukkit.hoeruputils.web.WebUser;
19    import dk.thoerup.bukkit.hoeruputils.web.WebUserCommand;
20    
21  public class HoerupUtilsPlugin extends JavaPlugin {  public class HoerupUtilsPlugin extends JavaPlugin {
22    
# Line 75  public class HoerupUtilsPlugin extends J Line 80  public class HoerupUtilsPlugin extends J
80                                    
81                                    
82                                    
                 SnitchingChest snitch = new SnitchingChest(this);  
                 getCommand("snitchingchest").setExecutor(snitch);  
                 pm.registerEvents( snitch, this);  
83                                    
84                                    
85                    
# Line 89  public class HoerupUtilsPlugin extends J Line 91  public class HoerupUtilsPlugin extends J
91                          }                          }
92                  };                  };
93                  messageWrapper = new MessageWrapper(this, ddlInstaller);                  messageWrapper = new MessageWrapper(this, ddlInstaller);
94                  pm.registerEvents( messageWrapper, this);                                pm.registerEvents( messageWrapper, this);
95                    
96                    SnitchingChest snitch = new SnitchingChest(this, ddlInstaller);
97                    getCommand("snitchingchest").setExecutor(snitch);
98                    pm.registerEvents( snitch, this);
99                    
100                    getCommand("webuser").setExecutor( new WebUserCommand(this,ddlInstaller) );                            
101    
102                    
103                  //register web plugins                  //register web plugins
104                  //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);
# Line 101  public class HoerupUtilsPlugin extends J Line 110  public class HoerupUtilsPlugin extends J
110                                  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
111                                  WebLoader.getInstance().load(this, logintimeHandler.getConfig(), home.getConfig());                                  WebLoader.getInstance().load(this, logintimeHandler.getConfig(), home.getConfig());
112                                                    
113                                  getLogger().warning("ApiBukkit found, status listener registered");                                  getLogger().info("ApiBukkit found, status listener registered");
114                                                                    
115                          } catch (ClassNotFoundException e) {                          } catch (ClassNotFoundException e) {
116                                  getLogger().warning("Could not find ApiBukkit - web status is disabled" );                                  getLogger().warning("Could not find ApiBukkit - web status is disabled" );
# Line 123  public class HoerupUtilsPlugin extends J Line 132  public class HoerupUtilsPlugin extends J
132                  return messageWrapper;                  return messageWrapper;
133          }          }
134    
135          @SuppressWarnings({ "unchecked", "rawtypes" })          //@SuppressWarnings({ "unchecked", "rawtypes" })
136          @Override          @Override
137          public List<Class<?>> getDatabaseClasses() {          public List<Class<?>> getDatabaseClasses() {
138                  System.out.println("getDatabaseClasses");                  List<Class<?>> list = new ArrayList<Class<?>>();
                 List list = new ArrayList();  
139    
140                  list.add(MessageBean.class);                  list.add(MessageBean.class);
141                    list.add(SnitchingChestBean.class);
142                    list.add(WebUser.class);
143    
144                  return list;                  return list;
145          }          }

Legend:
Removed from v.1768  
changed lines
  Added in v.1786

  ViewVC Help
Powered by ViewVC 1.1.20