/[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 1935 by torben, Wed Mar 20 14:50:00 2013 UTC revision 1968 by torben, Thu Apr 11 14:18:59 2013 UTC
# Line 83  public class HoerupUtilsPlugin extends J Line 83  public class HoerupUtilsPlugin extends J
83                  MotdHandler motd = new MotdHandler(this);                  MotdHandler motd = new MotdHandler(this);
84                  getCommand("motd").setExecutor( motd );                  getCommand("motd").setExecutor( motd );
85                  pm.registerEvents( motd, this);                  pm.registerEvents( motd, this);
86                    
87                    WayPoint wp = new WayPoint(this);
88                    getCommand("waypoint").setExecutor( wp );
89                    getCommand("setwaypoint").setExecutor( wp );
90                    pm.registerEvents( wp, this);
91    
92    
93                  pm.registerEvents(logintimeHandler, this);                  pm.registerEvents(logintimeHandler, this);
# Line 97  public class HoerupUtilsPlugin extends J Line 102  public class HoerupUtilsPlugin extends J
102                  pm.registerEvents(jail, this);                  pm.registerEvents(jail, this);
103                  getCommand("jail").setExecutor( jail );                  getCommand("jail").setExecutor( jail );
104                                    
105                                    StickyChunk chunks = new StickyChunk();
106                                    pm.registerEvents(chunks, this);
107                                    getCommand("stickychunk").setExecutor(chunks);          
108                    
109                    Mute mute = new Mute(this);
110                    pm.registerEvents(mute, this);
111                    getCommand("mute").setExecutor(mute);
112                    getCommand("unmute").setExecutor(mute);
113                                    
114                    
115                  Runnable ddlInstaller = new Runnable() {                  Runnable ddlInstaller = new Runnable() {
# Line 140  public class HoerupUtilsPlugin extends J Line 150  public class HoerupUtilsPlugin extends J
150                  }*/                  }*/
151                                    
152                  try  {                  try  {
153                          InetSocketAddress adr = new InetSocketAddress("localhost", 9999);                          InetSocketAddress adr = new InetSocketAddress("127.0.0.1", 9999);
154                          HttpServer.create(adr, 10);                          server = HttpServer.create(adr, 20);
155                          server.createContext("/bans", new BanListener(this, getServer()) );                          server.createContext("/bans", new BanListener(this, getServer()) );
156                          server.createContext("/webstatus", new StatusListener(this, getServer(),logintimeHandler.getConfig(), home.getConfig()) );                          server.createContext("/webstatus", new StatusListener(this, getServer(),logintimeHandler.getConfig(), home.getConfig()) );
157                                                    server.start();
158                                                    
159                  } catch(Exception e) {                  } catch(Exception e) {
160                          getLogger().log(Level.SEVERE, "Error loading webserver", e);                          getLogger().log(Level.SEVERE, "Error loading webserver", e);

Legend:
Removed from v.1935  
changed lines
  Added in v.1968

  ViewVC Help
Powered by ViewVC 1.1.20