Fix #101, small change to lag determination and fix 1.8.8 combat checks not working

This commit is contained in:
Rammelkast committed 2020-08-06 13:48:38 +02:00
1 parent 16c778c17f
commit 5f181c556e
6 files changed
+30 -15

No files matched your search

@@ -40,6 +40,7 @@ import com.rammelkast.anticheatreloaded.event.BlockListener;
import com.rammelkast.anticheatreloaded.event.EntityListener;
import com.rammelkast.anticheatreloaded.event.InventoryListener;
import com.rammelkast.anticheatreloaded.event.PlayerListener;
import com.rammelkast.anticheatreloaded.event.PotionEffectListener;
import com.rammelkast.anticheatreloaded.event.VehicleListener;
import com.rammelkast.anticheatreloaded.manage.AntiCheatManager;
import com.rammelkast.anticheatreloaded.metrics.Metrics;
@@ -76,6 +77,9 @@ public class AntiCheatReloaded extends JavaPlugin {
eventList.add(new EntityListener());
eventList.add(new VehicleListener());
eventList.add(new InventoryListener());
// Handles 1.9+ potion effects
if (!VersionUtil.isBountifulUpdate())
eventList.add(new PotionEffectListener());
// Order is important in some cases, don't screw with these unless
// needed, especially config
this.setupConfig();