mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Moved rollback events to listener with MONITOR priority
This commit is contained in:
parent
4813b8ae27
commit
95afb51321
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user