Merge pull request #374 from mikeprimm/master

Fix detection of new blockspread, blockform, blockfaded triggers
This commit is contained in:
mikeprimm 2011-08-03 21:43:45 -07:00
commit 42c95012ef

View File

@ -414,7 +414,7 @@ public class DynmapPlugin extends JavaPlugin {
onblockform = isTrigger("blockformed"); onblockform = isTrigger("blockformed");
try { try {
Class cls = Class.forName("org.dynmap.event.block.BlockFormEvent"); Class.forName("org.bukkit.event.block.BlockFormEvent");
pm.registerEvent(org.bukkit.event.Event.Type.BLOCK_FORM, renderTrigger, org.bukkit.event.Event.Priority.Monitor, this); pm.registerEvent(org.bukkit.event.Event.Type.BLOCK_FORM, renderTrigger, org.bukkit.event.Event.Priority.Monitor, this);
} catch (ClassNotFoundException cnfx) { } catch (ClassNotFoundException cnfx) {
if(onblockform) if(onblockform)
@ -422,7 +422,7 @@ public class DynmapPlugin extends JavaPlugin {
} }
onblockfade = isTrigger("blockfaded"); onblockfade = isTrigger("blockfaded");
try { try {
Class cls = Class.forName("org.dynmap.event.block.BlockFadeEvent"); Class.forName("org.bukkit.event.block.BlockFadeEvent");
pm.registerEvent(org.bukkit.event.Event.Type.BLOCK_FADE, renderTrigger, org.bukkit.event.Event.Priority.Monitor, this); pm.registerEvent(org.bukkit.event.Event.Type.BLOCK_FADE, renderTrigger, org.bukkit.event.Event.Priority.Monitor, this);
} catch (ClassNotFoundException cnfx) { } catch (ClassNotFoundException cnfx) {
if(onblockfade) if(onblockfade)
@ -430,7 +430,7 @@ public class DynmapPlugin extends JavaPlugin {
} }
onblockspread = isTrigger("blockspread"); onblockspread = isTrigger("blockspread");
try { try {
Class cls = Class.forName("org.dynmap.event.block.BlockSpreadEvent"); Class.forName("org.bukkit.event.block.BlockSpreadEvent");
pm.registerEvent(org.bukkit.event.Event.Type.BLOCK_SPREAD, renderTrigger, org.bukkit.event.Event.Priority.Monitor, this); pm.registerEvent(org.bukkit.event.Event.Type.BLOCK_SPREAD, renderTrigger, org.bukkit.event.Event.Priority.Monitor, this);
} catch (ClassNotFoundException cnfx) { } catch (ClassNotFoundException cnfx) {
if(onblockspread) if(onblockspread)