22 |
import dk.thoerup.bukkit.hoeruputils.web.WebUser; |
import dk.thoerup.bukkit.hoeruputils.web.WebUser; |
23 |
import dk.thoerup.bukkit.hoeruputils.web.WebUserCommand; |
import dk.thoerup.bukkit.hoeruputils.web.WebUserCommand; |
24 |
|
|
25 |
|
@SuppressWarnings("restriction") |
26 |
public class HoerupUtilsPlugin extends JavaPlugin { |
public class HoerupUtilsPlugin extends JavaPlugin { |
27 |
|
|
28 |
@Override |
@Override |
32 |
} |
} |
33 |
} |
} |
34 |
|
|
35 |
MessageWrapper messageWrapper; |
MessageWrapper messageWrapper; |
36 |
HttpServer server = null; |
HttpServer server = null; |
37 |
|
|
38 |
|
|
44 |
getCommand("eternalday").setExecutor(new EternalDayCommand(this)); |
getCommand("eternalday").setExecutor(new EternalDayCommand(this)); |
45 |
getCommand("getpos").setExecutor( new GetposCommand() ); |
getCommand("getpos").setExecutor( new GetposCommand() ); |
46 |
getCommand("msg").setExecutor( new MsgCommand( this ) ); |
getCommand("msg").setExecutor( new MsgCommand( this ) ); |
47 |
getCommand("tp").setExecutor( new TeleportCommand() ); |
// getCommand("tp").setExecutor( new TeleportCommand() ); |
48 |
|
|
49 |
getCommand("wall").setExecutor( new WallCommand() ); |
getCommand("wall").setExecutor( new WallCommand() ); |
50 |
getCommand("weather").setExecutor( new WeatherCommand() ); |
getCommand("weather").setExecutor( new WeatherCommand() ); |
66 |
getCommand("replay").setExecutor( generalContractor ); |
getCommand("replay").setExecutor( generalContractor ); |
67 |
getCommand("levelarea").setExecutor( generalContractor ); |
getCommand("levelarea").setExecutor( generalContractor ); |
68 |
getCommand("fillarea").setExecutor( generalContractor ); |
getCommand("fillarea").setExecutor( generalContractor ); |
69 |
|
getCommand("levelandfillarea").setExecutor( generalContractor ); |
70 |
|
|
71 |
getCommand("slopearea").setExecutor( generalContractor ); |
getCommand("slopearea").setExecutor( generalContractor ); |
72 |
getCommand("setsurface").setExecutor( generalContractor ); |
getCommand("setsurface").setExecutor( generalContractor ); |
73 |
getCommand("platform").setExecutor( generalContractor ); |
getCommand("platform").setExecutor( generalContractor ); |
76 |
getCommand("spawn").setExecutor( new SpawnCommand() ); |
getCommand("spawn").setExecutor( new SpawnCommand() ); |
77 |
|
|
78 |
getCommand("template").setExecutor( new TemplateCommand(this) ); |
getCommand("template").setExecutor( new TemplateCommand(this) ); |
79 |
|
getCommand("regenerate").setExecutor( new RegenerateCommand() ); |
80 |
|
|
81 |
|
|
82 |
LogintimeHandler logintimeHandler = new LogintimeHandler( this.getDataFolder() ); |
LogintimeHandler logintimeHandler = new LogintimeHandler( this.getDataFolder() ); |
83 |
|
|
88 |
MotdHandler motd = new MotdHandler(this); |
MotdHandler motd = new MotdHandler(this); |
89 |
getCommand("motd").setExecutor( motd ); |
getCommand("motd").setExecutor( motd ); |
90 |
pm.registerEvents( motd, this); |
pm.registerEvents( motd, this); |
91 |
|
|
92 |
|
WayPoint wp = new WayPoint(this); |
93 |
|
getCommand("waypoint").setExecutor( wp ); |
94 |
|
getCommand("setwaypoint").setExecutor( wp ); |
95 |
|
pm.registerEvents( wp, this); |
96 |
|
|
97 |
|
|
98 |
pm.registerEvents(logintimeHandler, this); |
pm.registerEvents(logintimeHandler, this); |
107 |
pm.registerEvents(jail, this); |
pm.registerEvents(jail, this); |
108 |
getCommand("jail").setExecutor( jail ); |
getCommand("jail").setExecutor( jail ); |
109 |
|
|
110 |
|
StickyChunk chunks = new StickyChunk(); |
111 |
|
pm.registerEvents(chunks, this); |
112 |
|
getCommand("stickychunk").setExecutor(chunks); |
113 |
|
|
114 |
|
Mute mute = new Mute(this); |
115 |
|
pm.registerEvents(mute, this); |
116 |
|
getCommand("mute").setExecutor(mute); |
117 |
|
getCommand("unmute").setExecutor(mute); |
118 |
|
|
119 |
|
|
120 |
Runnable ddlInstaller = new Runnable() { |
Runnable ddlInstaller = new Runnable() { |