mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-29 11:24:04 +00:00
Don't track blockchanges from Superadmins
This commit is contained in:
@@ -101,12 +101,6 @@ public class TFM_BlockListener implements Listener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
|
||||||
public void onRollbackBlockBreak(BlockBreakEvent event)
|
|
||||||
{
|
|
||||||
TFM_RollbackManager.blockBreak(event);
|
|
||||||
}
|
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.HIGH)
|
@EventHandler(priority = EventPriority.HIGH)
|
||||||
public void onBlockPlace(BlockPlaceEvent event)
|
public void onBlockPlace(BlockPlaceEvent event)
|
||||||
{
|
{
|
||||||
@@ -252,11 +246,23 @@ public class TFM_BlockListener implements Listener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||||
|
public void onRollbackBlockBreak(BlockBreakEvent event)
|
||||||
|
{
|
||||||
|
if (!TFM_SuperadminList.isUserSuperadmin(event.getPlayer()))
|
||||||
|
{
|
||||||
|
TFM_RollbackManager.blockBreak(event);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||||
public void onRollbackBlockPlace(BlockPlaceEvent event)
|
public void onRollbackBlockPlace(BlockPlaceEvent event)
|
||||||
|
{
|
||||||
|
if (!TFM_SuperadminList.isUserSuperadmin(event.getPlayer()))
|
||||||
{
|
{
|
||||||
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)
|
||||||
|
Reference in New Issue
Block a user