/[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 1936 by torben, Wed Mar 20 14:56:43 2013 UTC revision 3196 by torben, Mon May 29 13:03:52 2017 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 65  public class HoerupUtilsPlugin extends J Line 65  public class HoerupUtilsPlugin extends J
65                  getCommand("replay").setExecutor( generalContractor );                  getCommand("replay").setExecutor( generalContractor );
66                  getCommand("levelarea").setExecutor( generalContractor );                  getCommand("levelarea").setExecutor( generalContractor );
67                  getCommand("fillarea").setExecutor( generalContractor );                  getCommand("fillarea").setExecutor( generalContractor );
68                    getCommand("levelandfillarea").setExecutor( generalContractor );
69    
70                  getCommand("slopearea").setExecutor( generalContractor );                  getCommand("slopearea").setExecutor( generalContractor );
71                  getCommand("setsurface").setExecutor( generalContractor );                  getCommand("setsurface").setExecutor( generalContractor );
72                  getCommand("platform").setExecutor( generalContractor );                  getCommand("platform").setExecutor( generalContractor );
# Line 73  public class HoerupUtilsPlugin extends J Line 75  public class HoerupUtilsPlugin extends J
75                  getCommand("spawn").setExecutor( new SpawnCommand() );                  getCommand("spawn").setExecutor( new SpawnCommand() );
76                                    
77                  getCommand("template").setExecutor( new TemplateCommand(this) );                  getCommand("template").setExecutor( new TemplateCommand(this) );
78                    getCommand("regenerate").setExecutor( new RegenerateCommand() );
79    
80    
81                  LogintimeHandler logintimeHandler = new LogintimeHandler( this.getDataFolder() );                  LogintimeHandler logintimeHandler = new LogintimeHandler( this.getDataFolder() );
82                                    
# Line 83  public class HoerupUtilsPlugin extends J Line 87  public class HoerupUtilsPlugin extends J
87                  MotdHandler motd = new MotdHandler(this);                  MotdHandler motd = new MotdHandler(this);
88                  getCommand("motd").setExecutor( motd );                  getCommand("motd").setExecutor( motd );
89                  pm.registerEvents( motd, this);                  pm.registerEvents( motd, this);
90                    
91                    WayPoint wp = new WayPoint(this);
92                    getCommand("waypoint").setExecutor( wp );
93                    getCommand("setwaypoint").setExecutor( wp );
94                    pm.registerEvents( wp, this);
95    
96    
97                  pm.registerEvents(logintimeHandler, this);                  pm.registerEvents(logintimeHandler, this);
# Line 97  public class HoerupUtilsPlugin extends J Line 106  public class HoerupUtilsPlugin extends J
106                  pm.registerEvents(jail, this);                  pm.registerEvents(jail, this);
107                  getCommand("jail").setExecutor( jail );                  getCommand("jail").setExecutor( jail );
108                                    
109                                    StickyChunk chunks = new StickyChunk();
110                                    pm.registerEvents(chunks, this);
111                                    getCommand("stickychunk").setExecutor(chunks);          
112                    
113                    Mute mute = new Mute(this);
114                    pm.registerEvents(mute, this);
115                    getCommand("mute").setExecutor(mute);
116                    getCommand("unmute").setExecutor(mute);
117                                    
118                    
119                  Runnable ddlInstaller = new Runnable() {                  Runnable ddlInstaller = new Runnable() {
# Line 140  public class HoerupUtilsPlugin extends J Line 154  public class HoerupUtilsPlugin extends J
154                  }*/                  }*/
155                                    
156                  try  {                  try  {
157                          InetSocketAddress adr = new InetSocketAddress("localhost", 9999);                          InetSocketAddress adr = new InetSocketAddress("127.0.0.1", 9999);
158                          HttpServer.create(adr, 10);                          server = HttpServer.create(adr, 20);
159                          server.createContext("/bans", new BanListener(this, getServer()) );                          server.createContext("/bans", new BanListener(this, getServer()) );
160                          server.createContext("/webstatus", new StatusListener(this, getServer(),logintimeHandler.getConfig(), home.getConfig()) );                          server.createContext("/webstatus", new StatusListener(this, getServer(),logintimeHandler.getConfig(), home.getConfig()) );
161                          server.start();                          server.start();

Legend:
Removed from v.1936  
changed lines
  Added in v.3196

  ViewVC Help
Powered by ViewVC 1.1.20