22 |
public void onEnable() { |
public void onEnable() { |
23 |
System.out.println("Loading HoerupUtils plugin"); |
System.out.println("Loading HoerupUtils plugin"); |
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)); |
27 |
getCommand("grass").setExecutor(new GrassCommand()); |
getCommand("grass").setExecutor(new GrassCommand()); |
28 |
getCommand("getpos").setExecutor( new GetposCommand() ); |
getCommand("getpos").setExecutor( new GetposCommand() ); |
33 |
getCommand("boom").setExecutor( new BoomCommand(this) ); |
getCommand("boom").setExecutor( new BoomCommand(this) ); |
34 |
getCommand("spawn").setExecutor( new SpawnCommand() ); |
getCommand("spawn").setExecutor( new SpawnCommand() ); |
35 |
getCommand("tp").setExecutor( new TeleportCommand() ); |
getCommand("tp").setExecutor( new TeleportCommand() ); |
36 |
|
|
37 |
|
getCommand("wall").setExecutor( new WallCommand() ); |
38 |
|
getCommand("weather").setExecutor( new WeatherCommand() ); |
39 |
|
|
40 |
|
|
41 |
|
HomeCommand home = new HomeCommand(this); |
42 |
|
getCommand("home").setExecutor( home ); |
43 |
|
getCommand("sethome").setExecutor( home ); |
44 |
|
|
45 |
|
|
46 |
PluginManager pm = getServer().getPluginManager(); |
PluginManager pm = getServer().getPluginManager(); |
47 |
pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this); |
pm.registerEvent(Event.Type.PLAYER_RESPAWN, new RespawnHandler(this), Priority.Normal, this); |
63 |
pm.registerEvent(Event.Type.PLAYER_QUIT, superMiner.getPlayerQuitListener(), Priority.Normal, this); |
pm.registerEvent(Event.Type.PLAYER_QUIT, superMiner.getPlayerQuitListener(), Priority.Normal, this); |
64 |
getCommand("superminer").setExecutor(superMiner); |
getCommand("superminer").setExecutor(superMiner); |
65 |
|
|
66 |
pm.registerEvent(Event.Type.PROJECTILE_HIT, new ExplosiveSnowballs(), Priority.Normal, this); |
|
67 |
|
//pm.registerEvent(Event.Type.PROJECTILE_HIT, new ExplosiveSnowballs(), Priority.Normal, this); |
68 |
|
|
69 |
|
|
70 |
DoorBlockListener secretDoor = new DoorBlockListener(this); |
DoorBlockListener secretDoor = new DoorBlockListener(this); |