Jump to content

Forbidden Names


Recommended Posts

+ for (String listid : FORBIDDEN_NAMES.split(","))
+ {
+ LIST_FORBIDDEN_NAMES.add(String.valueOf(listid));
+ }

listid is already a String, no need String.valueOf it.

 

As always you are right :D fixed

Link to comment
Share on other sites

You're also allocating LIST_FORBIDDEN_NAMES twice, so put the List final to avoid such behavior. Use .clear() at worst if you want to clean it. Also you don't need FORBIDDEN_NAMES

+ for (String listid : server.getProperty("RestrictedNames", "fuck,dildo,admin").split(","))
Link to comment
Share on other sites

 

You're also allocating LIST_FORBIDDEN_NAMES twice, so put the List final to avoid such behavior. Use .clear() at worst if you want to clean it. Also you don't need FORBIDDEN_NAMES

+ for (String listid : server.getProperty("RestrictedNames", "fuck,dildo,admin").split(","))

I love how you always help people but you eat their cookies in their kitchen :3

Link to comment
Share on other sites

And this is why people don't share anymore.

Ultimately you want implement a formula which will understand human eye letter similarities like I and l and then merge that with your current code. Also don't get values to lower. Use ignorecase.

Edited by .Elfocrash
Link to comment
Share on other sites

And this is why people don't share anymore.

 

Ppl don't share because I fix and clean their dirtyness ? Or you reacted on the cookies part ?  :P

Edited by Tryskell
Link to comment
Share on other sites

Ppl don't share because I fix and clean their dirtyness ? Or you reacted on the cookies part ? :P

I wasn't referring to you mate. Just on the general situation.

People learnt coding for low quality shares so the shares they now get to do are equally low.

 

Suggestions are always welcome.

Edited by .Elfocrash
Link to comment
Share on other sites

I wasn't referring to you mate. Just on the general situation.

People learnt coding for low quality shares so the shares they now get to do are equally low.

 

Suggestions are always welcome.

ppl share on other forums my friend...so i think something is not going well with you ppl and mean modarators.

 

Link to comment
Share on other sites

enough! locked.

 

Reason: 

  • Do not post simple java strings or stupid configuration codes. Such topics will be immediately locked
  • Badly coded shares will be locked for the sake of java
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • rename the l2.bin into l2.exe
    • L2LIVE.PRO- Dynamic Mid-rates Essence Seven Signs GRAND OPENING - July 5, 20:00 GMT+3 (EEST) TEST SERVER IS OPEN - COME AND CHECK IT OUT TODAY! Join our community and be part of it at: https://www.l2live.pro https://discord.gg/k3NMgR4Dmu   Server description * EXP/SP: Dynamic (x1- x100 based on your level, *before* Sayha and EXP buffs * Adena: x50 / Item Drop: x10 / Fishing EXP increased / Attribute EXP increased * Simplified gameplay to stay in the loop while not spending hours and hours farming * Starter Pack containing very useful items for beginners * MP replenishing potions with auto-consumption * No overpowered donations L2LIVE shop * All spellbook coupons, pet spellbook coupons and master books are sold via Game Assistant * Additionally you can buy SP pouches, enchanted talismans, pet training guides and various other consumables for Adena and L-Coin * More items such as cloaks, more talismans, agathions, belts, pendants, enchantment scrolls of various grades, evolution stones, etc will be added! Shop server as a shortcut, and all retail-like ways of earning items are still here! L-Coins * Drops with small change and in random amounts from Lv60+ monsters  * All raidbosses drop random amount of L-Coin Pouches generating up to 420 Lcoin per unit. **Grand Olympiad and Events** * Grand Olympiad is held week day * Format is 1v1, unlimited weekly fights  * Heroes are declared weekly at Sunday * There are three automated events - TvT, CTF and Deathmatch, running at evenings * Orc Fortress, Battle with Balok, Keber Hunter, Archievements Box, Daily Gift Calendar provisional events are active too Custom user commands * .offlineplay command, your character will keep playing till death or server restart * .offlineshop command, keeps your shop sitting until all items are purchased * .apon / .apoff - enable/disable HP/MP autoconsume And lots of other small improvements are waiting for you!   Join our community and be part of it at: https://www.l2live.pro https://discord.gg/k3NMgR4Dmu
  • Topics

×
×
  • Create New...