/[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 1786 by torben, Fri Apr 6 15:06:46 2012 UTC revision 1856 by torben, Sun Oct 14 11:36:45 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;  import dk.thoerup.bukkit.hoeruputils.chests.AdvancedChest;
11  import com.avaje.ebeaninternal.server.ddl.DdlGenerator;  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;
# Line 47  public class HoerupUtilsPlugin extends J Line 46  public class HoerupUtilsPlugin extends J
46                  HomeCommand home = new HomeCommand(this);                  HomeCommand home = new HomeCommand(this);
47                  getCommand("home").setExecutor( home );                  getCommand("home").setExecutor( home );
48                  getCommand("sethome").setExecutor( home );                  getCommand("sethome").setExecutor( home );
49                    getCommand("ophome").setExecutor( home );
50    
51                  DiverCommand diver = new DiverCommand(this );                  DiverCommand diver = new DiverCommand(this );
52                  getCommand("diver").setExecutor( diver );                  getCommand("diver").setExecutor( diver );
53    
54                    getCommand("opkill").setExecutor( new OpkillCommand() );
55                                    
56                  GeneralContractorCommands generalContractor = new GeneralContractorCommands();                  GeneralContractorCommands generalContractor = new GeneralContractorCommands();
57                  getCommand("replay").setExecutor( generalContractor );                  getCommand("replay").setExecutor( generalContractor );
# Line 60  public class HoerupUtilsPlugin extends J Line 62  public class HoerupUtilsPlugin extends J
62                  getCommand("platform").setExecutor( generalContractor );                  getCommand("platform").setExecutor( generalContractor );
63                  getCommand("cylinder").setExecutor( generalContractor );                  getCommand("cylinder").setExecutor( generalContractor );
64                  getCommand("createcave").setExecutor( generalContractor );                  getCommand("createcave").setExecutor( generalContractor );
65                    getCommand("spawn").setExecutor( new SpawnCommand() );
66                                    
67                  getCommand("template").setExecutor( new TemplateCommand(this) );                  getCommand("template").setExecutor( new TemplateCommand(this) );
68    
# Line 70  public class HoerupUtilsPlugin extends J Line 72  public class HoerupUtilsPlugin extends J
72                  PluginManager pm = getServer().getPluginManager();                  PluginManager pm = getServer().getPluginManager();
73    
74    
75                    MotdHandler motd = new MotdHandler(this);
76                    getCommand("motd").setExecutor( motd );
77                    pm.registerEvents( motd, this);
78    
79    
80                  pm.registerEvents(logintimeHandler, this);                  pm.registerEvents(logintimeHandler, this);
81                  pm.registerEvents(logintimeHandler, this);                  pm.registerEvents(logintimeHandler, this);
82    
# Line 77  public class HoerupUtilsPlugin extends J Line 84  public class HoerupUtilsPlugin extends J
84                  pm.registerEvents(diver, this);                  pm.registerEvents(diver, this);
85    
86                  pm.registerEvents(new EndermanStopper(), this);                  pm.registerEvents(new EndermanStopper(), this);
87    
88                    Jail jail = new Jail(this);
89                    pm.registerEvents(jail, this);
90                    getCommand("jail").setExecutor( jail );
91                                    
92                                    
93                                    
# Line 92  public class HoerupUtilsPlugin extends J Line 103  public class HoerupUtilsPlugin extends J
103                  };                  };
104                  messageWrapper = new MessageWrapper(this, ddlInstaller);                  messageWrapper = new MessageWrapper(this, ddlInstaller);
105                  pm.registerEvents( messageWrapper, this);                  pm.registerEvents( messageWrapper, this);
106                            
107                    AdvancedChest locked = new AdvancedChest(this, ddlInstaller);
108                    getCommand("chest").setExecutor(locked);
109                    pm.registerEvents( locked, this);
110                                    
                 SnitchingChest snitch = new SnitchingChest(this, ddlInstaller);  
                 getCommand("snitchingchest").setExecutor(snitch);  
                 pm.registerEvents( snitch, this);  
111                                    
112                  getCommand("webuser").setExecutor( new WebUserCommand(this,ddlInstaller) );                                              getCommand("webuser").setExecutor( new WebUserCommand(this,ddlInstaller) );                            
113    
# Line 138  public class HoerupUtilsPlugin extends J Line 150  public class HoerupUtilsPlugin extends J
150                  List<Class<?>> list = new ArrayList<Class<?>>();                  List<Class<?>> list = new ArrayList<Class<?>>();
151    
152                  list.add(MessageBean.class);                  list.add(MessageBean.class);
153                  list.add(SnitchingChestBean.class);                  list.add(ChestBean.class);
154                  list.add(WebUser.class);                  list.add(WebUser.class);
155    
156                  return list;                  return list;

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

  ViewVC Help
Powered by ViewVC 1.1.20