9 |
|
|
10 |
import com.sun.net.httpserver.HttpServer; |
import com.sun.net.httpserver.HttpServer; |
11 |
|
|
|
import dk.thoerup.bukkit.hoeruputils.chests.AdvancedChest; |
|
12 |
import dk.thoerup.bukkit.hoeruputils.creative.GeneralContractorCommands; |
import dk.thoerup.bukkit.hoeruputils.creative.GeneralContractorCommands; |
|
import dk.thoerup.bukkit.hoeruputils.message.MessageWrapper; |
|
13 |
import dk.thoerup.bukkit.hoeruputils.secretdoor.DoorBlockListener; |
import dk.thoerup.bukkit.hoeruputils.secretdoor.DoorBlockListener; |
14 |
import dk.thoerup.bukkit.hoeruputils.web.BanListener; |
import dk.thoerup.bukkit.hoeruputils.web.BanListener; |
15 |
import dk.thoerup.bukkit.hoeruputils.web.StatusListener; |
import dk.thoerup.bukkit.hoeruputils.web.StatusListener; |
|
import dk.thoerup.bukkit.hoeruputils.web.WebUserCommand; |
|
|
import io.ebean.Ebean; |
|
16 |
|
|
17 |
@SuppressWarnings("restriction") |
@SuppressWarnings("restriction") |
18 |
public class HoerupUtilsPlugin extends JavaPlugin { |
public class HoerupUtilsPlugin extends JavaPlugin { |
24 |
} |
} |
25 |
} |
} |
26 |
|
|
27 |
MessageWrapper messageWrapper; |
//MessageWrapper messageWrapper; //TODO: RE-ENABLE |
28 |
HttpServer server = null; |
HttpServer server = null; |
29 |
|
|
30 |
|
|
32 |
public void onEnable() { |
public void onEnable() { |
33 |
System.out.println("Loading HoerupUtils plugin"); |
System.out.println("Loading HoerupUtils plugin"); |
34 |
|
|
35 |
Ebean.getDefaultServer(); |
//Ebean.getDefaultServer(); //TODO: RE-ENABLE |
36 |
|
|
37 |
getCommand("whereis").setExecutor(new WhereisCommand(getServer())); |
getCommand("whereis").setExecutor(new WhereisCommand(getServer())); |
38 |
//getCommand("mapgen").setExecutor(new MapgenCommand(this)); |
//getCommand("mapgen").setExecutor(new MapgenCommand(this)); |
112 |
getCommand("unmute").setExecutor(mute); |
getCommand("unmute").setExecutor(mute); |
113 |
|
|
114 |
|
|
115 |
|
/* |
116 |
|
* //TODO: RE-ENABLE |
117 |
messageWrapper = new MessageWrapper(this); |
messageWrapper = new MessageWrapper(this); |
118 |
pm.registerEvents( messageWrapper, this); |
pm.registerEvents( messageWrapper, this); |
119 |
|
|
123 |
|
|
124 |
|
|
125 |
getCommand("webuser").setExecutor( new WebUserCommand(this) ); |
getCommand("webuser").setExecutor( new WebUserCommand(this) ); |
126 |
|
*/ |
127 |
|
|
128 |
//register web plugins |
//register web plugins |
129 |
//pm.registerEvent(Event.Type.CUSTOM_EVENT, new StatusListener(getServer(), logintimeHandler.getConfig(), home.getConfig() ), Priority.Normal, this); |
//pm.registerEvent(Event.Type.CUSTOM_EVENT, new StatusListener(getServer(), logintimeHandler.getConfig(), home.getConfig() ), Priority.Normal, this); |
167 |
|
|
168 |
|
|
169 |
|
|
170 |
|
/* |
171 |
|
* //TODO: RE-ENABLE |
172 |
public MessageWrapper getMessageWrapper() { |
public MessageWrapper getMessageWrapper() { |
173 |
return messageWrapper; |
return messageWrapper; |
174 |
} |
} |
175 |
|
*/ |
176 |
|
|
177 |
|
|
178 |
|
|