/[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 1238 by torben, Tue Mar 22 18:39:02 2011 UTC revision 1239 by torben, Tue Mar 22 19:09:40 2011 UTC
# Line 22  public class HoerupUtilsPlugin extends J Line 22  public class HoerupUtilsPlugin extends J
22                  PluginManager pm = getServer().getPluginManager();                  PluginManager pm = getServer().getPluginManager();
23                  pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this);                  pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this);
24                  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);
25                    
26                    this.getServer().getScheduler().scheduleSyncRepeatingTask(this, new PeriodicStatusSaver(getServer()), 10*20, 2*60*20);
27          }          }
28    
29  }  }

Legend:
Removed from v.1238  
changed lines
  Added in v.1239

  ViewVC Help
Powered by ViewVC 1.1.20