HWID system adjustments.
This commit is contained in:
parent
9c068db77f
commit
5bbdffa29d
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -691,7 +691,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -729,7 +729,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -729,7 +729,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -729,7 +729,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -735,7 +735,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -735,7 +735,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -735,7 +735,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -745,7 +745,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -766,7 +766,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -776,7 +776,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -780,7 +780,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -698,7 +698,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -697,7 +697,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -708,7 +708,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -708,7 +708,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -718,7 +718,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -718,7 +718,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -718,7 +718,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -726,7 +726,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -704,7 +704,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -763,7 +763,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -777,7 +777,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
@ -293,32 +293,6 @@ public class ClientHardwareInfoHolder
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ClientHardwareInfoHolder)
|
||||
{
|
||||
final ClientHardwareInfoHolder info = (ClientHardwareInfoHolder) obj;
|
||||
if ((_macAddress.equals(info.getMacAddress())) && //
|
||||
(_windowsPlatformId == info.getWindowsPlatformId()) && //
|
||||
(_windowsMajorVersion == info.getWindowsMajorVersion()) && //
|
||||
(_windowsMinorVersion == info.getWindowsMinorVersion()) && //
|
||||
(_windowsBuildNumber == info.getWindowsBuildNumber()) && //
|
||||
(_directxVersion == info.getDirectxVersion()) && //
|
||||
(_directxRevision == info.getDirectxRevision()) && //
|
||||
(_cpuName.equals(info.getCpuName())) && //
|
||||
(_cpuSpeed == info.getCpuSpeed()) && //
|
||||
(_cpuCoreCount == info.getCpuCoreCount()) && //
|
||||
(_vgaCount == info.getVgaCount()) && //
|
||||
(_vgaPcxSpeed == info.getVgaPcxSpeed()) && //
|
||||
(_physMemorySlot1 == info.getPhysMemorySlot1()) && //
|
||||
(_physMemorySlot2 == info.getPhysMemorySlot2()) && //
|
||||
(_physMemorySlot3 == info.getPhysMemorySlot3()) && //
|
||||
(_videoMemory == info.getVideoMemory()) && //
|
||||
(_vgaVersion == info.getVgaVersion()) && //
|
||||
(_vgaName.equals(info.getVgaName())) && //
|
||||
(_vgaDriverVersion.equals(info.getVgaDriverVersion())))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return (obj instanceof ClientHardwareInfoHolder) && _macAddress.equals(((ClientHardwareInfoHolder) obj).getMacAddress());
|
||||
}
|
||||
}
|
@ -777,7 +777,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count >= Config.MAX_PLAYERS_PER_HWID)
|
||||
if (count > Config.MAX_PLAYERS_PER_HWID)
|
||||
{
|
||||
Disconnection.of(client).defaultSequence(LeaveWorld.STATIC_PACKET);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user