Server Development Discussion [Greek]

Sign in to follow this  

Έλληνες Developers για το L2 (OFF)

64 topics in this forum

    • 190 replies
    • 24,530 views
    • 0 replies
    • 1,062 views
  1. Guide HI

    • 1 reply
    • 108 views
    • 2 replies
    • 280 views
    • 0 replies
    • 297 views
  2. Mia Mikri Voithia

    • 1 reply
    • 405 views
    • 8 replies
    • 709 views
  3. Discussion L2 Extender

    • 0 replies
    • 829 views
    • 10 replies
    • 718 views
    • 0 replies
    • 414 views
    • 5 replies
    • 679 views
  4. L2Off Requirements

    • 2 replies
    • 563 views
    • 1 reply
    • 459 views
    • 0 replies
    • 428 views
    • 1 reply
    • 706 views
    • 0 replies
    • 613 views
    • 6 replies
    • 707 views
  5. Win

    • 2 replies
    • 563 views
  6. Psaxnw Dev !

    • 0 replies
    • 634 views
  7. Discussion L2Off Pack.!

    • 9 replies
    • 1,430 views
    • 2 replies
    • 566 views
    • 34 replies
    • 5,703 views
    • 49 replies
    • 35,865 views
    • 46 replies
    • 5,361 views
    • 30 replies
    • 5,642 views
Sign in to follow this  


  • Posts

    • Edit it for ConcurrentHashMap and drop the synchronize block.
    • Hello.   WTS Adena/Items/RuRs/Pwlvl/Acc RPG x7 NEW   prices and other things at skype - coinsbomb
    • 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);     }  
  • Topics