123456789101112131415161718192021222324252627282930
package l2p.loginserver; import l2p.util.NetList; public class Lock { private NetList ips; public Lock() { } public void addIP(String ip) { if(ips == null) { ips = new NetList(); } ips.AddNet(ip); } public boolean checkIP(String ip) { if(ips == null) { return false; } return ips.isIpInNets(ip); } }