Redo mac bans - reduce amount of db queries on login
Works just like ip and hwid bans in that they are loaded on startup
This commit is contained in:
@@ -59,7 +59,7 @@ public class CharSelectedWithPicHandler extends AbstractPacketHandler {
|
||||
c.updateHwid(hwid);
|
||||
c.setHwid(hwid);
|
||||
|
||||
if (banService.isBanned(c) || c.hasBannedMac()) {
|
||||
if (banService.isBanned(c)) {
|
||||
SessionCoordinator.getInstance().closeSession(c, true);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user