Config.java
public static boolean ALLOW_DUALBOX;
ALLOW_DUALBOX = Boolean.parseBoolean(L2JModSettings.getProperty("AllowDualBox", "False"));
l2jmod.properties
AllowDualBox = False
Enterworld.java
if(!Config.ALLOW_DUALBOX)
{
String ip1 = activeChar.getClient().getConnection().getInetAddress().getHostAddress();
Collection<L2PcInstance> _players = L2World.getInstance().getAllPlayers();
for(L2PcInstance p : _players)
{
if(p != null)
{
String ip2 = p.getClient().getConnection().getInetAddress().getHostAddress();
if(ip1.equals(ip2) && activeChar != p && p != null)
{
activeChar.sendMessage("Dualbox isnt allowed");
activeChar.logout();
}
}
}
}
test it kai pes