Add feature villagers

This commit is contained in:
kaenganxt
2014-12-28 17:54:27 +01:00
parent 998df1b5ca
commit dd4970ac3a
8 changed files with 281 additions and 1 deletions

View File

@@ -74,6 +74,7 @@ public class Setup {
new DropItem(Core.getMainClass());
new EntityChangeBlock(Core.getMainClass());
new BlockFade(Core.getMainClass());
new VillagerEvents(Core.getMainClass());
}
public static void setupClasses() {
@@ -164,6 +165,7 @@ public class Setup {
AnuraCore.getInstance().signs.updateServerSigns();
}
}, 20 * 5, 20 * 5);
Bukkit.getScheduler().scheduleSyncRepeatingTask(Core.getMainClass(), new VillagerTask(), 20, 20);
} catch (Throwable e) {
Errors.reportException(e);
}
@@ -207,6 +209,7 @@ public class Setup {
Core.getMainClass().getCommand("bug").setExecutor(pc);
Core.getMainClass().getCommand("warplist").setExecutor(tc);
Core.getMainClass().getCommand("addInvItems").setExecutor(oc);
Core.getMainClass().getCommand("villager").setExecutor(ac);
}
private static void setupInventories() {