/[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 1531 by torben, Mon Jun 27 16:16:37 2011 UTC revision 1592 by torben, Wed Aug 24 18:45:40 2011 UTC
# Line 22  public class HoerupUtilsPlugin extends J Line 22  public class HoerupUtilsPlugin extends J
22          public void onEnable() {          public void onEnable() {
23                  System.out.println("Loading HoerupUtils plugin");                  System.out.println("Loading HoerupUtils plugin");
24                  getCommand("whereis").setExecutor(new WhereisCommand(getServer()));                  getCommand("whereis").setExecutor(new WhereisCommand(getServer()));
25                  getCommand("mapgen").setExecutor(new MapgenCommand(this));                  //getCommand("mapgen").setExecutor(new MapgenCommand(this));
26                  getCommand("eternalday").setExecutor(new EternalDayCommand(this));                  getCommand("eternalday").setExecutor(new EternalDayCommand(this));
27                  getCommand("grass").setExecutor(new GrassCommand());                  getCommand("grass").setExecutor(new GrassCommand());
28                  getCommand("getpos").setExecutor( new GetposCommand() );                  getCommand("getpos").setExecutor( new GetposCommand() );
# Line 32  public class HoerupUtilsPlugin extends J Line 32  public class HoerupUtilsPlugin extends J
32                  getCommand("stoner").setExecutor( new StonerCommand() );                  getCommand("stoner").setExecutor( new StonerCommand() );
33                  getCommand("boom").setExecutor( new BoomCommand(this) );                  getCommand("boom").setExecutor( new BoomCommand(this) );
34                  getCommand("spawn").setExecutor( new SpawnCommand() );                  getCommand("spawn").setExecutor( new SpawnCommand() );
35                    getCommand("tp").setExecutor( new TeleportCommand() );
36    
37                    getCommand("wall").setExecutor( new WallCommand() );
38                    getCommand("weather").setExecutor( new WeatherCommand() );
39    
40    
41                    HomeCommand home = new HomeCommand(this);
42                    getCommand("home").setExecutor( home );
43                    getCommand("sethome").setExecutor( home );
44                    
45                                    
46                  PluginManager pm = getServer().getPluginManager();                  PluginManager pm = getServer().getPluginManager();
47                  pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this);                  pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this);
# Line 59  public class HoerupUtilsPlugin extends J Line 69  public class HoerupUtilsPlugin extends J
69                  DoorBlockListener secretDoor = new DoorBlockListener(this);                  DoorBlockListener secretDoor = new DoorBlockListener(this);
70                  pm.registerEvent(Event.Type.BLOCK_BREAK, secretDoor, Priority.Normal, this);                  pm.registerEvent(Event.Type.BLOCK_BREAK, secretDoor, Priority.Normal, this);
71                  pm.registerEvent(Event.Type.SIGN_CHANGE, secretDoor, Priority.Normal, this);                  pm.registerEvent(Event.Type.SIGN_CHANGE, secretDoor, Priority.Normal, this);
72                    pm.registerEvent(Event.Type.REDSTONE_CHANGE, secretDoor, Priority.Normal, this);
73                  pm.registerEvent(Event.Type.PLAYER_INTERACT, secretDoor.getPlayerListener(), Priority.Normal, this);                  pm.registerEvent(Event.Type.PLAYER_INTERACT, secretDoor.getPlayerListener(), Priority.Normal, this);
74                                    
75          }          }

Legend:
Removed from v.1531  
changed lines
  Added in v.1592

  ViewVC Help
Powered by ViewVC 1.1.20