/[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 1378 by torben, Sat Apr 23 13:14:39 2011 UTC revision 1465 by torben, Wed May 18 18:13:55 2011 UTC
# Line 23  public class HoerupUtilsPlugin extends J Line 23  public class HoerupUtilsPlugin extends J
23                  getCommand("whereis").setExecutor(new WhereisCommand(getServer()));                  getCommand("whereis").setExecutor(new WhereisCommand(getServer()));
24                  getCommand("mapgen").setExecutor(new MapgenCommand(this));                  getCommand("mapgen").setExecutor(new MapgenCommand(this));
25                  getCommand("eternalday").setExecutor(new EternalDayCommand(this));                  getCommand("eternalday").setExecutor(new EternalDayCommand(this));
26                    getCommand("grass").setExecutor(new GrassCommand());
27                                    
28                  PluginManager pm = getServer().getPluginManager();                  PluginManager pm = getServer().getPluginManager();
29                  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 33  public class HoerupUtilsPlugin extends J Line 34  public class HoerupUtilsPlugin extends J
34                  pm.registerEvent(Event.Type.CUSTOM_EVENT, new MessageListener(getServer()), Priority.Normal, this);                  pm.registerEvent(Event.Type.CUSTOM_EVENT, new MessageListener(getServer()), Priority.Normal, this);
35                                    
36                                    
37                  AdminDestroy adminDestroy = new AdminDestroy();                  PowerMiner powerMiner = new PowerMiner();
38                  pm.registerEvent(Event.Type.BLOCK_DAMAGE, adminDestroy, Priority.Normal, this);                  pm.registerEvent(Event.Type.BLOCK_DAMAGE, powerMiner, Priority.Normal, this);
39                  getCommand("admindestroy").setExecutor(adminDestroy);                  pm.registerEvent(Event.Type.PLAYER_QUIT, powerMiner.getPlayerQuitListener(), Priority.Normal, this);
40                    getCommand("powerminer").setExecutor(powerMiner);
41          }          }
42    
43  }  }

Legend:
Removed from v.1378  
changed lines
  Added in v.1465

  ViewVC Help
Powered by ViewVC 1.1.20