/[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 1679 by torben, Fri Dec 23 10:27:05 2011 UTC revision 1680 by torben, Wed Jan 25 21:55:33 2012 UTC
# Line 47  public class HoerupUtilsPlugin extends J Line 47  public class HoerupUtilsPlugin extends J
47                                    
48                                    
49                  PluginManager pm = getServer().getPluginManager();                  PluginManager pm = getServer().getPluginManager();
                 //pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this);  
                 //pm.registerEvent(Event.Type.ENTITY_DEATH, new RespawnHandler.PlayerDeathListener(this.getDataFolder()), Priority.Normal, this);                
50    
51    
52                  pm.registerEvent(Event.Type.PLAYER_LOGIN, logintimeHandler, Priority.Normal, this);                  pm.registerEvents(logintimeHandler, this);
53                  pm.registerEvent(Event.Type.PLAYER_QUIT, logintimeHandler, Priority.Normal, this);                  pm.registerEvents(logintimeHandler, this);
54    
55                                    
56                  pm.registerEvent(Event.Type.PLAYER_QUIT, diver.getQuitHandler(), Priority.Normal, this);                  pm.registerEvents(diver, this);
57    
58    
59                  pm.registerEvent(Event.Type.ENDERMAN_PICKUP, new EndermanStopper(), Priority.Normal, this);                              pm.registerEvents(new EndermanStopper(), this);        
60                    
61                    
62                  //register web plugins                  //register web plugins
# Line 67  public class HoerupUtilsPlugin extends J Line 65  public class HoerupUtilsPlugin extends J
65                                    
66                                    
67    
   
   
   
   
68                                    
69                  DoorBlockListener secretDoor = new DoorBlockListener(this);                  DoorBlockListener secretDoor = new DoorBlockListener(this);
70                  pm.registerEvent(Event.Type.BLOCK_BREAK, secretDoor, Priority.Normal, this);                  pm.registerEvents(secretDoor, this);
71                  pm.registerEvent(Event.Type.SIGN_CHANGE, secretDoor, Priority.Normal, this);                  pm.registerEvents(secretDoor.getPlayerListener(), this);
                 pm.registerEvent(Event.Type.REDSTONE_CHANGE, secretDoor, Priority.Normal, this);  
                 pm.registerEvent(Event.Type.PLAYER_INTERACT, secretDoor.getPlayerListener(), Priority.Normal, this);  
72                                    
73          }          }
74    
# Line 104  public class HoerupUtilsPlugin extends J Line 96  public class HoerupUtilsPlugin extends J
96    
97                  //pm.registerEvent(Event.Type.PROJECTILE_HIT, new ExplosiveSnowballs(), Priority.Normal, this);                  //pm.registerEvent(Event.Type.PROJECTILE_HIT, new ExplosiveSnowballs(), Priority.Normal, this);
98    
99                    //pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this);
100                    //pm.registerEvent(Event.Type.ENTITY_DEATH, new RespawnHandler.PlayerDeathListener(this.getDataFolder()), Priority.Normal, this);              
101    
102  */  */
103          }          }
104    

Legend:
Removed from v.1679  
changed lines
  Added in v.1680

  ViewVC Help
Powered by ViewVC 1.1.20