/[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 1807 by torben, Sun Jun 3 18:05:09 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 dk.thoerup.bukkit.hoeruputils.chests.AdvancedChest;
11    import dk.thoerup.bukkit.hoeruputils.chests.ChestBean;
12  import dk.thoerup.bukkit.hoeruputils.creative.GeneralContractorCommands;  import dk.thoerup.bukkit.hoeruputils.creative.GeneralContractorCommands;
13  import dk.thoerup.bukkit.hoeruputils.message.MessageBean;  import dk.thoerup.bukkit.hoeruputils.message.MessageBean;
14  import dk.thoerup.bukkit.hoeruputils.message.MessageWrapper;  import dk.thoerup.bukkit.hoeruputils.message.MessageWrapper;
15  import dk.thoerup.bukkit.hoeruputils.secretdoor.DoorBlockListener;  import dk.thoerup.bukkit.hoeruputils.secretdoor.DoorBlockListener;
16  import dk.thoerup.bukkit.hoeruputils.web.WebLoader;  import dk.thoerup.bukkit.hoeruputils.web.WebLoader;
17    import dk.thoerup.bukkit.hoeruputils.web.WebUser;
18    import dk.thoerup.bukkit.hoeruputils.web.WebUserCommand;
19    
20  public class HoerupUtilsPlugin extends JavaPlugin {  public class HoerupUtilsPlugin extends JavaPlugin {
21    
# Line 75  public class HoerupUtilsPlugin extends J Line 79  public class HoerupUtilsPlugin extends J
79                                    
80                                    
81                                    
                 SnitchingChest snitch = new SnitchingChest(this);  
                 getCommand("snitchingchest").setExecutor(snitch);  
                 pm.registerEvents( snitch, this);  
82                                    
83                                    
84                    
# Line 89  public class HoerupUtilsPlugin extends J Line 90  public class HoerupUtilsPlugin extends J
90                          }                          }
91                  };                  };
92                  messageWrapper = new MessageWrapper(this, ddlInstaller);                  messageWrapper = new MessageWrapper(this, ddlInstaller);
93                  pm.registerEvents( messageWrapper, this);                                pm.registerEvents( messageWrapper, this);
94                            
95                    AdvancedChest locked = new AdvancedChest(this, ddlInstaller);
96                    getCommand("chest").setExecutor(locked);
97                    pm.registerEvents( locked, this);
98                    
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(ChestBean.class);
142                    list.add(WebUser.class);
143    
144                  return list;                  return list;
145          }          }

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

  ViewVC Help
Powered by ViewVC 1.1.20