/[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 1653 by torben, Fri Dec 9 17:06:52 2011 UTC revision 1673 by torben, Fri Dec 23 10:27:05 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    
10  import dk.thoerup.bukkit.hoeruputils.secretdoor.DoorBlockListener;  import dk.thoerup.bukkit.hoeruputils.secretdoor.DoorBlockListener;
11  import dk.thoerup.bukkit.hoeruputils.web.MessageListener;  import dk.thoerup.bukkit.hoeruputils.web.MessageListener;
12  import dk.thoerup.bukkit.hoeruputils.web.StatusListener;  import dk.thoerup.bukkit.hoeruputils.web.StatusListener;
# Line 26  public class HoerupUtilsPlugin extends J Line 27  public class HoerupUtilsPlugin extends J
27                  getCommand("eternalday").setExecutor(new EternalDayCommand(this));                  getCommand("eternalday").setExecutor(new EternalDayCommand(this));
28                  getCommand("getpos").setExecutor( new GetposCommand() );                  getCommand("getpos").setExecutor( new GetposCommand() );
29                  getCommand("msg").setExecutor( new MsgCommand( getServer() ) );                  getCommand("msg").setExecutor( new MsgCommand( getServer() ) );
                 getCommand("spawn").setExecutor( new SpawnCommand() );  
30                  getCommand("tp").setExecutor( new TeleportCommand() );                  getCommand("tp").setExecutor( new TeleportCommand() );
31    
32                  getCommand("wall").setExecutor( new WallCommand() );                  getCommand("wall").setExecutor( new WallCommand() );
33                  getCommand("weather").setExecutor( new WeatherCommand() );                  getCommand("weather").setExecutor( new WeatherCommand() );
34    
35                    getCommand("gc").setExecutor( new GcCommand() );
36    
37    
38                  HomeCommand home = new HomeCommand(this);                  HomeCommand home = new HomeCommand(this);
39                  getCommand("home").setExecutor( home );                  getCommand("home").setExecutor( home );
40                  getCommand("sethome").setExecutor( home );                  getCommand("sethome").setExecutor( home );
41    
42                    DiverCommand diver = new DiverCommand(this );
43                    getCommand("diver").setExecutor( diver );
44    
45    
46                    LogintimeHandler logintimeHandler = new LogintimeHandler( this.getDataFolder() );
47                                    
48                                    
49                  PluginManager pm = getServer().getPluginManager();                  PluginManager pm = getServer().getPluginManager();
# Line 43  public class HoerupUtilsPlugin extends J Line 51  public class HoerupUtilsPlugin extends J
51                  //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);              
52    
53    
54                  pm.registerEvent(Event.Type.ENDERMAN_PICKUP, new EndermanStopper(), Priority.Normal, this);                              pm.registerEvent(Event.Type.PLAYER_LOGIN, logintimeHandler, Priority.Normal, this);
55                    pm.registerEvent(Event.Type.PLAYER_QUIT, logintimeHandler, Priority.Normal, this);
56    
57                                    
58                    pm.registerEvent(Event.Type.PLAYER_QUIT, diver.getQuitHandler(), Priority.Normal, this);
59    
60    
61                    pm.registerEvent(Event.Type.ENDERMAN_PICKUP, new EndermanStopper(), Priority.Normal, this);            
62            
63            
64                  //register web plugins                  //register web plugins
65                  pm.registerEvent(Event.Type.CUSTOM_EVENT, new StatusListener(getServer()), Priority.Normal, this);                  pm.registerEvent(Event.Type.CUSTOM_EVENT, new StatusListener(getServer(), logintimeHandler.getConfig(), home.getConfig() ), Priority.Normal, this);
66                  pm.registerEvent(Event.Type.CUSTOM_EVENT, new MessageListener(getServer()), Priority.Normal, this);                  pm.registerEvent(Event.Type.CUSTOM_EVENT, new MessageListener(getServer()), Priority.Normal, this);
67                                    
68                                    
# Line 67  public class HoerupUtilsPlugin extends J Line 83  public class HoerupUtilsPlugin extends J
83          private void deprecated() {          private void deprecated() {
84  /*  /*
85                  getCommand("stoner").setExecutor( new StonerCommand() );                  getCommand("stoner").setExecutor( new StonerCommand() );
86                    getCommand("spawn").setExecutor( new SpawnCommand() );
87                  getCommand("boom").setExecutor( new BoomCommand(this) );                  getCommand("boom").setExecutor( new BoomCommand(this) );
88                  getCommand("grass").setExecutor(new GrassCommand());                  getCommand("grass").setExecutor(new GrassCommand());
89    

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

  ViewVC Help
Powered by ViewVC 1.1.20