Moved rollback events to listener with MONITOR priority

This commit is contained in:
JeromSar 2013-08-09 15:10:04 +02:00
parent 4813b8ae27
commit 95afb51321

View File

@ -98,12 +98,13 @@ public class TFM_BlockListener implements Listener
} }
} }
} }
}
if (!event.isCancelled()) @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onRollbackBlockBreak(BlockBreakEvent event)
{ {
TFM_RollbackManager.blockBreak(event); TFM_RollbackManager.blockBreak(event);
} }
}
@EventHandler(priority = EventPriority.HIGH) @EventHandler(priority = EventPriority.HIGH)
public void onBlockPlace(BlockPlaceEvent event) public void onBlockPlace(BlockPlaceEvent event)
@ -244,12 +245,13 @@ public class TFM_BlockListener implements Listener
break; break;
} }
} }
}
if (!event.isCancelled()) @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onRollbackBlockPlace(BlockPlaceEvent event)
{ {
TFM_RollbackManager.blockPlace(event); TFM_RollbackManager.blockPlace(event);
} }
}
@EventHandler(priority = EventPriority.HIGH) @EventHandler(priority = EventPriority.HIGH)
public void onBlockFromTo(BlockFromToEvent event) public void onBlockFromTo(BlockFromToEvent event)