Changed the way AAC API is obtained

Affects issues:
- Close #1104
This commit is contained in:
Rsl1122 2019-07-21 15:56:01 +03:00
parent a3e426088d
commit 5e1bf0934d

View File

@ -51,7 +51,8 @@ public class PlayerHackKickListener implements Listener {
HackType hackType = event.getHackType();
String hackTypeName = hackType.getName();
long time = System.currentTimeMillis();
int violations = AACAPIProvider.getAPI().getViolationLevel(player, hackType);
int violations = new AACAPIProvider().getAPI().getViolationLevel(player, hackType);
HackObject hackObject = new HackObject(uuid, time, hackTypeName, violations);