/[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 1241 by torben, Wed Mar 23 17:38:26 2011 UTC revision 1385 by torben, Sun Apr 24 10:23:02 2011 UTC
# Line 22  public class HoerupUtilsPlugin extends J Line 22  public class HoerupUtilsPlugin extends J
22                  System.out.println("Loading HoerupUtils plugin");                  System.out.println("Loading HoerupUtils plugin");
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));
26                                    
27                  PluginManager pm = getServer().getPluginManager();                  PluginManager pm = getServer().getPluginManager();
28                  pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this);                  pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this);
29                  pm.registerEvent(Event.Type.ENTITY_DEATH, new RespawnHandler.PlayerDeathListener(this.getDataFolder()), Priority.Normal, this);                  pm.registerEvent(Event.Type.ENTITY_DEATH, new RespawnHandler.PlayerDeathListener(this.getDataFolder()), Priority.Normal, this);        
30                                    
31                  //register web plugins                  //register web plugins
32                  pm.registerEvent(Event.Type.CUSTOM_EVENT, new StatusListener(getServer()), Priority.Normal, this);                  pm.registerEvent(Event.Type.CUSTOM_EVENT, new StatusListener(getServer()), Priority.Normal, this);
33                  pm.registerEvent(Event.Type.CUSTOM_EVENT, new MessageListener(getServer()), Priority.Normal, this);                  pm.registerEvent(Event.Type.CUSTOM_EVENT, new MessageListener(getServer()), Priority.Normal, this);
34                    
35                    
36                    PowerMiner powerMiner = new PowerMiner();
37                    pm.registerEvent(Event.Type.BLOCK_DAMAGE, powerMiner, Priority.Normal, this);
38                    getCommand("powerminer").setExecutor(powerMiner);
39          }          }
40    
41  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.20