/[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 1937 by torben, Wed Mar 20 15:03:23 2013 UTC revision 1974 by torben, Mon Apr 29 19:29:51 2013 UTC
# Line 73  public class HoerupUtilsPlugin extends J Line 73  public class HoerupUtilsPlugin extends J
73                  getCommand("spawn").setExecutor( new SpawnCommand() );                  getCommand("spawn").setExecutor( new SpawnCommand() );
74                                    
75                  getCommand("template").setExecutor( new TemplateCommand(this) );                  getCommand("template").setExecutor( new TemplateCommand(this) );
76                    getCommand("regenerate").setExecutor( new RegenerateCommand() );
77    
78    
79                  LogintimeHandler logintimeHandler = new LogintimeHandler( this.getDataFolder() );                  LogintimeHandler logintimeHandler = new LogintimeHandler( this.getDataFolder() );
80                                    
# Line 83  public class HoerupUtilsPlugin extends J Line 85  public class HoerupUtilsPlugin extends J
85                  MotdHandler motd = new MotdHandler(this);                  MotdHandler motd = new MotdHandler(this);
86                  getCommand("motd").setExecutor( motd );                  getCommand("motd").setExecutor( motd );
87                  pm.registerEvents( motd, this);                  pm.registerEvents( motd, this);
88                    
89                    WayPoint wp = new WayPoint(this);
90                    getCommand("waypoint").setExecutor( wp );
91                    getCommand("setwaypoint").setExecutor( wp );
92                    pm.registerEvents( wp, this);
93    
94    
95                  pm.registerEvents(logintimeHandler, this);                  pm.registerEvents(logintimeHandler, this);
# Line 97  public class HoerupUtilsPlugin extends J Line 104  public class HoerupUtilsPlugin extends J
104                  pm.registerEvents(jail, this);                  pm.registerEvents(jail, this);
105                  getCommand("jail").setExecutor( jail );                  getCommand("jail").setExecutor( jail );
106                                    
107                                    StickyChunk chunks = new StickyChunk();
108                                    pm.registerEvents(chunks, this);
109                                    getCommand("stickychunk").setExecutor(chunks);          
110                    
111                    Mute mute = new Mute(this);
112                    pm.registerEvents(mute, this);
113                    getCommand("mute").setExecutor(mute);
114                    getCommand("unmute").setExecutor(mute);
115                                    
116                    
117                  Runnable ddlInstaller = new Runnable() {                  Runnable ddlInstaller = new Runnable() {
# Line 140  public class HoerupUtilsPlugin extends J Line 152  public class HoerupUtilsPlugin extends J
152                  }*/                  }*/
153                                    
154                  try  {                  try  {
155                          InetSocketAddress adr = new InetSocketAddress("localhost", 9999);                          InetSocketAddress adr = new InetSocketAddress("127.0.0.1", 9999);
156                          server = HttpServer.create(adr, 10);                          server = HttpServer.create(adr, 20);
157                          server.createContext("/bans", new BanListener(this, getServer()) );                          server.createContext("/bans", new BanListener(this, getServer()) );
158                          server.createContext("/webstatus", new StatusListener(this, getServer(),logintimeHandler.getConfig(), home.getConfig()) );                          server.createContext("/webstatus", new StatusListener(this, getServer(),logintimeHandler.getConfig(), home.getConfig()) );
159                          server.start();                          server.start();

Legend:
Removed from v.1937  
changed lines
  Added in v.1974

  ViewVC Help
Powered by ViewVC 1.1.20