/[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 1525 by torben, Sun Jun 26 13:29:58 2011 UTC revision 1589 by torben, Tue Aug 16 07:44:12 2011 UTC
# Line 6  import org.bukkit.event.Event.Priority; Line 6  import org.bukkit.event.Event.Priority;
6  import org.bukkit.plugin.PluginManager;  import org.bukkit.plugin.PluginManager;
7  import org.bukkit.plugin.java.JavaPlugin;  import org.bukkit.plugin.java.JavaPlugin;
8    
9    import dk.thoerup.bukkit.hoeruputils.secretdoor.DoorBlockListener;
10  import dk.thoerup.bukkit.hoeruputils.web.MessageListener;  import dk.thoerup.bukkit.hoeruputils.web.MessageListener;
11  import dk.thoerup.bukkit.hoeruputils.web.StatusListener;  import dk.thoerup.bukkit.hoeruputils.web.StatusListener;
12    
# Line 21  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 31  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                  PluginManager pm = getServer().getPluginManager();                  PluginManager pm = getServer().getPluginManager();
38                  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 55  public class HoerupUtilsPlugin extends J Line 57  public class HoerupUtilsPlugin extends J
57                  pm.registerEvent(Event.Type.PROJECTILE_HIT, new ExplosiveSnowballs(), Priority.Normal, this);                  pm.registerEvent(Event.Type.PROJECTILE_HIT, new ExplosiveSnowballs(), Priority.Normal, this);
58    
59                                    
60                  SecretDoor secretDoor = new SecretDoor(this);                  DoorBlockListener secretDoor = new DoorBlockListener(this);
61                  pm.registerEvent(Event.Type.BLOCK_BREAK, secretDoor, Priority.Normal, this);                  pm.registerEvent(Event.Type.BLOCK_BREAK, secretDoor, Priority.Normal, this);
62                  pm.registerEvent(Event.Type.SIGN_CHANGE, secretDoor, Priority.Normal, this);                  pm.registerEvent(Event.Type.SIGN_CHANGE, secretDoor, Priority.Normal, this);
63                    pm.registerEvent(Event.Type.REDSTONE_CHANGE, secretDoor, Priority.Normal, this);
64                  pm.registerEvent(Event.Type.PLAYER_INTERACT, secretDoor.getPlayerListener(), Priority.Normal, this);                  pm.registerEvent(Event.Type.PLAYER_INTERACT, secretDoor.getPlayerListener(), Priority.Normal, this);
65                                    
66          }          }

Legend:
Removed from v.1525  
changed lines
  Added in v.1589

  ViewVC Help
Powered by ViewVC 1.1.20