/[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 1388 by torben, Mon Apr 25 07:54:28 2011 UTC revision 1524 by torben, Sun Jun 26 10:04:04 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("zap").setExecutor( new ZapCommand() );
30                    getCommand("msg").setExecutor( new MsgCommand( getServer() ) );
31                    getCommand("stoner").setExecutor( new StonerCommand() );
32                    getCommand("boom").setExecutor( new BoomCommand(this) );
33                    getCommand("spawn").setExecutor( new SpawnCommand() );
34                                    
35                  PluginManager pm = getServer().getPluginManager();                  PluginManager pm = getServer().getPluginManager();
36                  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 37  public class HoerupUtilsPlugin extends J Line 45  public class HoerupUtilsPlugin extends J
45                  pm.registerEvent(Event.Type.BLOCK_DAMAGE, powerMiner, Priority.Normal, this);                  pm.registerEvent(Event.Type.BLOCK_DAMAGE, powerMiner, Priority.Normal, this);
46                  pm.registerEvent(Event.Type.PLAYER_QUIT, powerMiner.getPlayerQuitListener(), Priority.Normal, this);                  pm.registerEvent(Event.Type.PLAYER_QUIT, powerMiner.getPlayerQuitListener(), Priority.Normal, this);
47                  getCommand("powerminer").setExecutor(powerMiner);                  getCommand("powerminer").setExecutor(powerMiner);
48    
49    
50                    SuperMiner superMiner = new SuperMiner();
51                    pm.registerEvent(Event.Type.BLOCK_DAMAGE, superMiner, Priority.Normal, this);
52                    pm.registerEvent(Event.Type.PLAYER_QUIT, superMiner.getPlayerQuitListener(), Priority.Normal, this);
53                    getCommand("superminer").setExecutor(superMiner);
54    
55                    pm.registerEvent(Event.Type.PROJECTILE_HIT, new ExplosiveSnowballs(), Priority.Normal, this);
56                    
57          }          }
58    
59  }  }

Legend:
Removed from v.1388  
changed lines
  Added in v.1524

  ViewVC Help
Powered by ViewVC 1.1.20