mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2025-02-15 18:48:16 +00:00
Moved rollback events to listener with MONITOR priority
This commit is contained in:
parent
4813b8ae27
commit
95afb51321
1 changed files with 10 additions and 8 deletions
|
@ -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 a new issue