7 |
import org.bukkit.plugin.PluginManager; |
import org.bukkit.plugin.PluginManager; |
8 |
import org.bukkit.plugin.java.JavaPlugin; |
import org.bukkit.plugin.java.JavaPlugin; |
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
import dk.thoerup.bukkit.hoeruputils.chests.SnitchingChest; |
13 |
|
import dk.thoerup.bukkit.hoeruputils.chests.SnitchingChestBean; |
14 |
import dk.thoerup.bukkit.hoeruputils.creative.GeneralContractorCommands; |
import dk.thoerup.bukkit.hoeruputils.creative.GeneralContractorCommands; |
15 |
import dk.thoerup.bukkit.hoeruputils.message.MessageBean; |
import dk.thoerup.bukkit.hoeruputils.message.MessageBean; |
16 |
import dk.thoerup.bukkit.hoeruputils.message.MessageWrapper; |
import dk.thoerup.bukkit.hoeruputils.message.MessageWrapper; |
17 |
import dk.thoerup.bukkit.hoeruputils.secretdoor.DoorBlockListener; |
import dk.thoerup.bukkit.hoeruputils.secretdoor.DoorBlockListener; |
18 |
import dk.thoerup.bukkit.hoeruputils.web.WebLoader; |
import dk.thoerup.bukkit.hoeruputils.web.WebLoader; |
19 |
|
import dk.thoerup.bukkit.hoeruputils.web.WebUser; |
20 |
|
import dk.thoerup.bukkit.hoeruputils.web.WebUserCommand; |
21 |
|
|
22 |
public class HoerupUtilsPlugin extends JavaPlugin { |
public class HoerupUtilsPlugin extends JavaPlugin { |
23 |
|
|
97 |
SnitchingChest snitch = new SnitchingChest(this, ddlInstaller); |
SnitchingChest snitch = new SnitchingChest(this, ddlInstaller); |
98 |
getCommand("snitchingchest").setExecutor(snitch); |
getCommand("snitchingchest").setExecutor(snitch); |
99 |
pm.registerEvents( snitch, this); |
pm.registerEvents( snitch, this); |
100 |
|
|
101 |
|
getCommand("webuser").setExecutor( new WebUserCommand(this,ddlInstaller) ); |
102 |
|
|
103 |
|
|
104 |
//register web plugins |
//register web plugins |
136 |
//@SuppressWarnings({ "unchecked", "rawtypes" }) |
//@SuppressWarnings({ "unchecked", "rawtypes" }) |
137 |
@Override |
@Override |
138 |
public List<Class<?>> getDatabaseClasses() { |
public List<Class<?>> getDatabaseClasses() { |
|
System.out.println("getDatabaseClasses"); |
|
139 |
List<Class<?>> list = new ArrayList<Class<?>>(); |
List<Class<?>> list = new ArrayList<Class<?>>(); |
140 |
|
|
141 |
list.add(MessageBean.class); |
list.add(MessageBean.class); |
142 |
list.add(SnitchingChestBean.class); |
list.add(SnitchingChestBean.class); |
143 |
|
list.add(WebUser.class); |
144 |
|
|
145 |
return list; |
return list; |
146 |
} |
} |