/[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 1773 by torben, Thu Apr 5 12:37:13 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 87  public class HoerupUtilsPlugin extends J Line 91  public class HoerupUtilsPlugin extends J
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                  SnitchingChest snitch = new SnitchingChest(this, ddlInstaller);                  getCommand("webuser").setExecutor( new WebUserCommand(this,ddlInstaller) );                            
                 getCommand("snitchingchest").setExecutor(snitch);  
                 pm.registerEvents( snitch, this);  
101    
102                    
103                  //register web plugins                  //register web plugins
# Line 103  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 128  public class HoerupUtilsPlugin extends J Line 135  public class HoerupUtilsPlugin extends J
135          //@SuppressWarnings({ "unchecked", "rawtypes" })          //@SuppressWarnings({ "unchecked", "rawtypes" })
136          @Override          @Override
137          public List<Class<?>> getDatabaseClasses() {          public List<Class<?>> getDatabaseClasses() {
                 System.out.println("getDatabaseClasses");  
138                  List<Class<?>> list = new ArrayList<Class<?>>();                  List<Class<?>> list = new ArrayList<Class<?>>();
139    
140                  list.add(MessageBean.class);                  list.add(MessageBean.class);
141                  list.add(SnitchingChestBean.class);                  list.add(ChestBean.class);
142                    list.add(WebUser.class);
143    
144                  return list;                  return list;
145          }          }

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

  ViewVC Help
Powered by ViewVC 1.1.20