Update player regions on certain bukkit events

This commit is contained in:
2012-04-25 16:23:13 -04:00
parent 21af2c946a
commit fee0f4d294
2 changed files with 55 additions and 0 deletions

View File

@@ -60,6 +60,8 @@ public class Plugin extends JavaPlugin {
getCommand("homeregion").setExecutor(new HomeRegionCommand(this));
getCommand("movein").setExecutor(new MoveinRegionCommand(this));
getServer().getPluginManager().registerEvents(new BukkitEventHandler(this), this);
org.bukkit.plugin.Plugin mapPlugin = getServer().getPluginManager().getPlugin("dynmap");
if (mapPlugin instanceof DynmapCommonAPI) {
DynmapCommonAPI mapAPI = (DynmapCommonAPI)mapPlugin;