You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
550 B

package app.entities.server;
import app.utils.CryptedCookie;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor
public class PlayOn {
String server_id;
int player_id;
String ip;
String name;
public String getIp() {
if (ip.contains(":")){
System.out.println(ip);
return ip.split(":",2)[0];
} else {
return ip;
}
}
public String getIp(CryptedCookie cryptedCookie) {
return cryptedCookie.ReadCh(ip).split(":",2)[0];
}
}