|
|
@ -90,7 +90,7 @@ public class BanService { |
|
|
|
Ban ban = getBan(user.getSteamids()); |
|
|
|
if (ban != null) return -1 * ban.getId(); |
|
|
|
jdbcTemplate.update("INSERT INTO light_bans (steam_id, account_id, ban_length, ban_reason, banned_by_id, active, ip, player_name, banned_by) VALUES (?,?,?,?,?,?,?,?,?)", |
|
|
|
user.getSteamids().steam2, user.getSteamids().account_id, ban_length, ban_reason, admin.getSteamids().steam2, 1, |
|
|
|
user.getSteamids().steam2, user.getSteamids().account_id, ban_length, ban_reason, admin.getSteamids().steam2, true, |
|
|
|
user.getPlay_on() != null ? user.getPlay_on().getIp(cryptedCookie) : "", |
|
|
|
user.getPlay_on() != null ? user.getPlay_on().getName() : user.getSteam_data().getNickname(), |
|
|
|
admin.getSteam_data().getNickname()); |
|
|
|