35 |
getCommand("tp").setExecutor( new TeleportCommand() ); |
getCommand("tp").setExecutor( new TeleportCommand() ); |
36 |
|
|
37 |
getCommand("wall").setExecutor( new WallCommand() ); |
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); |