/[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 1385 by torben, Sun Apr 24 10:23:02 2011 UTC revision 1499 by torben, Sat Jun 4 10:41:21 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                    getCommand("getpos").setExecutor( new GetposCommand() );
28                    getCommand("zapme").setExecutor( new ZapmeCommand() );
29                    getCommand("msg").setExecutor( new MsgCommand( getServer() ) );
30                                    
31                  PluginManager pm = getServer().getPluginManager();                  PluginManager pm = getServer().getPluginManager();
32                  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 35  public class HoerupUtilsPlugin extends J Line 39  public class HoerupUtilsPlugin extends J
39                                    
40                  PowerMiner powerMiner = new PowerMiner();                  PowerMiner powerMiner = new PowerMiner();
41                  pm.registerEvent(Event.Type.BLOCK_DAMAGE, powerMiner, Priority.Normal, this);                  pm.registerEvent(Event.Type.BLOCK_DAMAGE, powerMiner, Priority.Normal, this);
42                    pm.registerEvent(Event.Type.PLAYER_QUIT, powerMiner.getPlayerQuitListener(), Priority.Normal, this);
43                  getCommand("powerminer").setExecutor(powerMiner);                  getCommand("powerminer").setExecutor(powerMiner);
44          }          }
45    

Legend:
Removed from v.1385  
changed lines
  Added in v.1499

  ViewVC Help
Powered by ViewVC 1.1.20