/[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 3063 by torben, Tue Jul 12 14:23:02 2016 UTC
# Line 43  public class HoerupUtilsPlugin extends J Line 43  public class HoerupUtilsPlugin extends J
43                  getCommand("eternalday").setExecutor(new EternalDayCommand(this));                  getCommand("eternalday").setExecutor(new EternalDayCommand(this));
44                  getCommand("getpos").setExecutor( new GetposCommand() );                  getCommand("getpos").setExecutor( new GetposCommand() );
45                  getCommand("msg").setExecutor( new MsgCommand( this ) );                  getCommand("msg").setExecutor( new MsgCommand( this ) );
46                  getCommand("tp").setExecutor( new TeleportCommand() );  //              getCommand("tp").setExecutor( new TeleportCommand() );
47    
48                  getCommand("wall").setExecutor( new WallCommand() );                  getCommand("wall").setExecutor( new WallCommand() );
49                  getCommand("weather").setExecutor( new WeatherCommand() );                  getCommand("weather").setExecutor( new WeatherCommand() );
# 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                          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();
160                                                    
161                  } catch(Exception e) {                  } catch(Exception e) {
162                          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.3063

  ViewVC Help
Powered by ViewVC 1.1.20