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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1240 - (hide annotations) (download)
Tue Mar 22 19:50:46 2011 UTC (13 years, 2 months ago) by torben
File size: 961 byte(s)
added /mapgen command
1 torben 1236 package dk.thoerup.bukkit.hoeruputils;
2    
3    
4     import org.bukkit.event.Event;
5     import org.bukkit.event.Event.Priority;
6     import org.bukkit.plugin.PluginManager;
7     import org.bukkit.plugin.java.JavaPlugin;
8    
9     public class HoerupUtilsPlugin extends JavaPlugin {
10    
11     @Override
12     public void onDisable() {
13     // TODO Auto-generated method stub
14     }
15    
16    
17     @Override
18     public void onEnable() {
19     System.out.println("Loading HoerupUtils plugin");
20     getCommand("whereis").setExecutor(new WhereisCommand(getServer()));
21 torben 1240 getCommand("mapgen").setExecutor(new MapgenCommand(this));
22 torben 1236
23     PluginManager pm = getServer().getPluginManager();
24     pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this);
25 torben 1238 pm.registerEvent(Event.Type.ENTITY_DEATH, new RespawnHandler.PlayerDeathListener(this.getDataFolder()), Priority.Normal, this);
26 torben 1239
27     this.getServer().getScheduler().scheduleSyncRepeatingTask(this, new PeriodicStatusSaver(getServer()), 10*20, 2*60*20);
28 torben 1236 }
29    
30     }

  ViewVC Help
Powered by ViewVC 1.1.20