Hello I am adapting AntiFeed Manager for now but I have these errors. how would it be in place of these imports?
import gnu.trove.map.hash.TIntObjectHashMap;
import gnu.trove.procedure.TObjectProcedure;
private Map<Integer,Long> _lastDeathTimes;private TIntObjectHashMap<Map<Integer, Connections>> _eventIPs;
/**
* If number of all simultaneous connections from player's IP address lower than max
* then increment connection count and return true.
* Returns false if number of all simultaneous connections from player's IP address
* higher than max.
* @param eventId
* @param player
* @param max
* @return
*/
public final boolean tryAddPlayer(int eventId, L2PcInstance player, int max)
{
return tryAddClient(eventId, player.getClient(), max);
}
/**
* If number of all simultaneous connections from player's IP address lower than max
* then increment connection count and return true.
* Returns false if number of all simultaneous connections from player's IP address
* higher than max.
* @param eventId
* @param player
* @param max
* @return
*/
public final boolean tryAddClient(int eventId, L2GameClient client, int max)
{
if (client == null)
return false; // unable to determine IP address
final Map<Integer, Connections> event = _eventIPs.get(eventId);
if (event == null)
return false; // no such event registered
final Integer addrHash = Integer.valueOf(client.getConnectionAddress().hashCode());
int limit = Config.DUALBOX_CHECK_WHITELIST.get(addrHash);
limit = limit < 0 ? Integer.MAX_VALUE : limit + max;
Connections conns;
synchronized (event)
{
conns = event.get(addrHash);
if (conns == null)
{
conns = new Connections();
event.put(addrHash, conns);
}
}
return conns.testAndIncrement(limit);
}
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
hello everyone !
I need help with a l2script Rev H5-Salvation/Classic build. I compiled the project, installed everything but I can't log in to the server, it won't log me in. I tried a thousand ways without good results. I leave you the error when logging in either with the H5-Salvation Client.
ERROR ---> WARN: IPBANMANAGER ---> IP !!!!
I'm waiting for help! Thank you!
Hello !
I have a problem when connecting to the pack with the Salvation client, it blocks my IP, I see that the account is created in the database but it remains logged in.
Any idea what it could be? ALso with H5 CLient !
Thank you !
Question
l2jkain
Hello I am adapting AntiFeed Manager for now but I have these errors. how would it be in place of these imports?
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.