/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java
ViewVC logotype

Diff of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/HoerupUtilsPlugin.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1652 by torben, Mon Sep 26 13:04:40 2011 UTC revision 1653 by torben, Fri Dec 9 17:06:52 2011 UTC
# Line 24  public class HoerupUtilsPlugin extends J Line 24  public class HoerupUtilsPlugin extends J
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));
                 getCommand("grass").setExecutor(new GrassCommand());  
27                  getCommand("getpos").setExecutor( new GetposCommand() );                  getCommand("getpos").setExecutor( new GetposCommand() );
                 getCommand("zapme").setExecutor( new ZapmeCommand() );  
                 getCommand("zap").setExecutor( new ZapCommand() );  
28                  getCommand("msg").setExecutor( new MsgCommand( getServer() ) );                  getCommand("msg").setExecutor( new MsgCommand( getServer() ) );
                 getCommand("stoner").setExecutor( new StonerCommand() );  
                 getCommand("boom").setExecutor( new BoomCommand(this) );  
29                  getCommand("spawn").setExecutor( new SpawnCommand() );                  getCommand("spawn").setExecutor( new SpawnCommand() );
30                  getCommand("tp").setExecutor( new TeleportCommand() );                  getCommand("tp").setExecutor( new TeleportCommand() );
31    
# Line 55  public class HoerupUtilsPlugin extends J Line 50  public class HoerupUtilsPlugin extends J
50                  pm.registerEvent(Event.Type.CUSTOM_EVENT, new MessageListener(getServer()), Priority.Normal, this);                  pm.registerEvent(Event.Type.CUSTOM_EVENT, new MessageListener(getServer()), Priority.Normal, this);
51                                    
52                                    
53    
54    
55    
56    
57    
58                    
59                    DoorBlockListener secretDoor = new DoorBlockListener(this);
60                    pm.registerEvent(Event.Type.BLOCK_BREAK, secretDoor, Priority.Normal, this);
61                    pm.registerEvent(Event.Type.SIGN_CHANGE, secretDoor, Priority.Normal, this);
62                    pm.registerEvent(Event.Type.REDSTONE_CHANGE, secretDoor, Priority.Normal, this);
63                    pm.registerEvent(Event.Type.PLAYER_INTERACT, secretDoor.getPlayerListener(), Priority.Normal, this);
64                    
65            }
66    
67            private void deprecated() {
68    /*
69                    getCommand("stoner").setExecutor( new StonerCommand() );
70                    getCommand("boom").setExecutor( new BoomCommand(this) );
71                    getCommand("grass").setExecutor(new GrassCommand());
72    
73                    getCommand("zapme").setExecutor( new ZapmeCommand() );
74                    getCommand("zap").setExecutor( new ZapCommand() );
75    
76    
77                  PowerMiner powerMiner = new PowerMiner();                  PowerMiner powerMiner = new PowerMiner();
78                  pm.registerEvent(Event.Type.BLOCK_DAMAGE, powerMiner, Priority.Normal, this);                  pm.registerEvent(Event.Type.BLOCK_DAMAGE, powerMiner, Priority.Normal, this);
79                  pm.registerEvent(Event.Type.PLAYER_QUIT, powerMiner.getPlayerQuitListener(), Priority.Normal, this);                  pm.registerEvent(Event.Type.PLAYER_QUIT, powerMiner.getPlayerQuitListener(), Priority.Normal, this);
80                  getCommand("powerminer").setExecutor(powerMiner);                  getCommand("powerminer").setExecutor(powerMiner);
81    
   
82                  SuperMiner superMiner = new SuperMiner();                  SuperMiner superMiner = new SuperMiner();
83                  pm.registerEvent(Event.Type.BLOCK_DAMAGE, superMiner, Priority.Normal, this);                  pm.registerEvent(Event.Type.BLOCK_DAMAGE, superMiner, Priority.Normal, this);
84                  pm.registerEvent(Event.Type.PLAYER_QUIT, superMiner.getPlayerQuitListener(), Priority.Normal, this);                  pm.registerEvent(Event.Type.PLAYER_QUIT, superMiner.getPlayerQuitListener(), Priority.Normal, this);
# Line 69  public class HoerupUtilsPlugin extends J Line 87  public class HoerupUtilsPlugin extends J
87    
88                  //pm.registerEvent(Event.Type.PROJECTILE_HIT, new ExplosiveSnowballs(), Priority.Normal, this);                  //pm.registerEvent(Event.Type.PROJECTILE_HIT, new ExplosiveSnowballs(), Priority.Normal, this);
89    
90                    */
                 DoorBlockListener secretDoor = new DoorBlockListener(this);  
                 pm.registerEvent(Event.Type.BLOCK_BREAK, secretDoor, Priority.Normal, this);  
                 pm.registerEvent(Event.Type.SIGN_CHANGE, secretDoor, Priority.Normal, this);  
                 pm.registerEvent(Event.Type.REDSTONE_CHANGE, secretDoor, Priority.Normal, this);  
                 pm.registerEvent(Event.Type.PLAYER_INTERACT, secretDoor.getPlayerListener(), Priority.Normal, this);  
                   
91          }          }
92    
93  }  }

Legend:
Removed from v.1652  
changed lines
  Added in v.1653

  ViewVC Help
Powered by ViewVC 1.1.20