Mais presta bem atenção
+ //Anti Dual Box
+ if(_game._playerOne.getClient().getConnection().ge tInetAddress().getHostAddress().equalsIgnoreCase(_ game._playerTwo.getClient().getConnection().getIne tAddress().getHostAddress()))
+ {
+ _game._playerOne.sendMessage("Sorry but you cannot battle someone with same IP as yours.");
+ _game._playerTwo.sendMessage("Sorry but you cannot battle someone with same IP as yours.");
+ return false;
+
Ele verifica :
Client , Conexao , Inter Adress Que no Caso seria IP da Maquina ( eu achu ) HostAdress IP da REDE
Ou seja
ele olha o Cliente, o IP da Maquina e nao o da REDE , e o LOcal HOst
Olhando o IP da maquina
Akeles 192.168.254.2
ou 10.0.0.2
Entendeu ?
|