diff --git a/src/org/emulinker/kaillera/controller/connectcontroller/ConnectController.java b/src/org/emulinker/kaillera/controller/connectcontroller/ConnectController.java index 671baef..c422434 100644 --- a/src/org/emulinker/kaillera/controller/connectcontroller/ConnectController.java +++ b/src/org/emulinker/kaillera/controller/connectcontroller/ConnectController.java @@ -219,11 +219,12 @@ public class ConnectController extends UDPServer else { int privatePort = -1; + int access = accessManager.getAccess(fromSocketAddress.getAddress()); try { //SF MOD - Hammer Protection - if(connectedCount > 0){ + if(access < AccessManager.ACCESS_ADMIN && connectedCount > 0){ if(lastAddress.equals(fromSocketAddress.getAddress().getHostAddress())){ lastAddressCount++; if(lastAddressCount >= 4){