Disable VL logging

This commit is contained in:
cnr 2016-12-22 17:54:50 -07:00
parent ca19840b19
commit df5c53766c
2 changed files with 5 additions and 6 deletions

View File

@ -52,7 +52,7 @@ public class AnticheatDatabase extends MinecraftRepository
*/
public void saveViolationLevels(Map<Integer, ViolationLevels> uploadQueue)
{
try (Connection connection = getConnection())
/*try (Connection connection = getConnection())
{
PreparedStatement preparedStatement = connection.prepareStatement(UPDATE_VIOLATIONS);
@ -96,7 +96,7 @@ public class AnticheatDatabase extends MinecraftRepository
catch (SQLException ex)
{
ex.printStackTrace();
}
}*/
}
/**

View File

@ -11,7 +11,6 @@ import java.util.concurrent.ConcurrentHashMap;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.player.PlayerLoginEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.tukaani.xz.LZMA2Options;
import org.tukaani.xz.XZ;
@ -118,7 +117,7 @@ public class AntihackLogger extends MiniPlugin
playerVls.incrementAlerts(check);
}
@EventHandler
/*@EventHandler
public void onLoad(PlayerLoginEvent event)
{
runAsync(() ->
@ -131,7 +130,7 @@ public class AntihackLogger extends MiniPlugin
_violationLevels.put(accountId, vls);
});
});
}
}*/
@EventHandler
public void onQuit(PlayerQuitEvent event)
@ -209,6 +208,6 @@ public class AntihackLogger extends MiniPlugin
public void resetViolations(Player player, Runnable after)
{
_db.clearLastBan(_clientManager.getAccountId(player), after);
//_db.clearLastBan(_clientManager.getAccountId(player), after);
}
}