Fixed probable hardware info holder NPE.
This commit is contained in:
		| @@ -695,11 +695,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -733,11 +733,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -733,11 +733,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -733,11 +733,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -739,11 +739,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -739,11 +739,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -739,11 +739,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -745,11 +745,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -762,11 +762,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -772,11 +772,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -772,11 +772,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -694,11 +694,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -693,11 +693,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -720,11 +720,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -720,11 +720,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -730,11 +730,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -730,11 +730,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -730,11 +730,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -734,11 +734,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -716,11 +716,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -768,11 +768,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -782,11 +782,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
| @@ -782,11 +782,15 @@ public class EnterWorld implements IClientIncomingPacket | |||||||
| 					int count = 0; | 					int count = 0; | ||||||
| 					for (PlayerInstance plr : World.getInstance().getPlayers()) | 					for (PlayerInstance plr : World.getInstance().getPlayers()) | ||||||
| 					{ | 					{ | ||||||
| 						if ((plr.isOnlineInt() == 1) && (plr.getClient().getHardwareInfo().equals(hwInfo))) | 						if (plr.isOnlineInt() == 1) | ||||||
|  | 						{ | ||||||
|  | 							final ClientHardwareInfoHolder hwi = plr.getClient().getHardwareInfo(); | ||||||
|  | 							if ((hwi != null) && hwi.equals(hwInfo)) | ||||||
| 							{ | 							{ | ||||||
| 								count++; | 								count++; | ||||||
| 							} | 							} | ||||||
| 						} | 						} | ||||||
|  | 					} | ||||||
| 					if (count >= Config.MAX_PLAYERS_PER_HWID) | 					if (count >= Config.MAX_PLAYERS_PER_HWID) | ||||||
| 					{ | 					{ | ||||||
| 						Disconnection.of(client).defaultSequence(false); | 						Disconnection.of(client).defaultSequence(false); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment