Updated the whole plugin to 1.9, killaura check does not work in 1.8

from now on.
This commit is contained in:
Rammelkast committed 2016-06-05 13:48:26 +02:00
1 parent 6fa3f4c8df
commit 37180450ce
7 files changed
+24 -42

No files matched your search

@@ -63,7 +63,7 @@ public class KillAuraCheck {
public static void doDamageEvent(EntityDamageByEntityEvent e, Player p) {
if (AntiCheat.getManager().getCheckManager().isOpExempt(p) || AntiCheat.getManager().getCheckManager().isExempt(p, CheckType.KILLAURA))
return;
if (VersionUtil.getVersion().equals("v1_8_R3")) { // TODO 1.9 support
if (VersionUtil.getVersion().equals("v1_9_R1")) { // TODO 1.9 R2 support
if (!CHECKER_NPCS.containsKey(p.getUniqueId())) { // Enable killaura check after player damaged other player, this is more efficient
CHECKER_NPCS.put(p.getUniqueId(), new CheckerNPCS(p));
}