Jump to content

Question

Posted

Hello...im using l2j source and Im Looking a "protection" that does not allow account create when account name for example is admin or gm or bot etc. 

 Im searching for java code,or The java file in source of inside i can add a protection like this.Every help is receiver And sorry for my bad English :D

 

p.s haters pls just ignore that topic :)

 

13 answers to this question

Recommended Posts

  • 0
Posted (edited)

not allow account create when account name for example is admin or gm or bot etc. 

 

Here you are:

 

 

package net.sf.l2j.loginserver.LoginController.java;


+if (user.equals("administrator"))
+    return false;
+else if ((user != null) && (user.length()) >= 2 && (user.length() <= 14) && !user.equals(password))
-if ((user.length()) >= 2 && (user.length() <= 14))

On me works fine :)

Edited by T9Text
  • 0
Posted (edited)

Maybe on LoginController.java

 

do something like this....

 

+					if (user.startsWith("Admin") || user.startsWith("Bot"))
+                                             //your warn message here
+            		                      return false;
+					else if ((user.length() >= 2) && (user.length() <= 14))
-					if ((user.length() >= 2) && (user.length() <= 14))

Im not sure :/


(About haters.... [GR]Toulaxiston egw prospa8w na ton help[/GR])

Edited by T9Text
  • 0
Posted

Maybe on LoginController.java

 

do something like this....

 

 

+					if (user.startsWith("Admin"))
+            		      return false;
+					else if ((user.length() >= 2) && (user.length() <= 14))
-					if ((user.length() >= 2) && (user.length() <= 14))

Im not sure :/

 

 

(About haters.... [GR]Toulaxiston egw prospa8w na ton help[/GR])

I will try it and i reply with resaults. Thanks for your answer and your try :)

  • 0
Posted

I will try it and i reply with resaults. Thanks for your answer and your try :)

Almost all packs has restrictions for nickname creation in configs.

If i remember well it should be in server.properties

  • 0
Posted

It has nothing to do with the LoginController, but with CharacterCreate... Well, I have the right thing for you, enjoy.

 

Make sure you add the lines manually cuz it's adapted for my pack that obviously has custom .properties file.

 

http://pastebin.com/XXZgncvu

  • 0
Posted

It has nothing to do with the LoginController, but with CharacterCreate... Well, I have the right thing for you, enjoy.

 

Make sure you add the lines manually cuz it's adapted for my pack that obviously has custom .properties file.

 

http://pastebin.com/XXZgncvu

 

I think he want Account Names... not Char name :P

  • 0
Posted

It has nothing to do with the LoginController, but with CharacterCreate... Well, I have the right thing for you, enjoy.

 

Make sure you add the lines manually cuz it's adapted for my pack that obviously has custom .properties file.

 

http://pastebin.com/XXZgncvu

thanks for your answer but as T9Text says i need for Account create and not character create. 

 

Almost all packs has restrictions for nickname creation in configs.

If i remember well it should be in server.properties

I found only for character names and not For account names in configs. I need restrictions when create account and not when create character

Thanks for your answer :)

  • 0
Posted (edited)

The most simple solution can be use those account names, you create them, so they will be "already in use". :D

Edited by MeetYourMaker
  • 0
Posted

The most simple solution can be use those account names, you create them, so they will be "already in use". :D

 

my basicaly problem is not the admin names etc. i found 1bug with language differences and with that bug you can double login

  • 0
Posted

Here you are:

 

 

package net.sf.l2j.loginserver.LoginController.java;


+if (user.equals("administrator"))
+    return false;
+else if ((user != null) && (user.length()) >= 2 && (user.length() <= 14) && !user.equals(password))
-if ((user.length()) >= 2 && (user.length() <= 14))
On me works fine :)

thanks :-D can i ask you something more? i want add this code but if in the word contains 1 letter.you understund me?

  • 0
Posted

thanks :-D can i ask you something more? i want add this code but if in the word contains 1 letter.you understund me?

 

Send me pm on greek man :) i dont understand that ... :$

Guest
This topic is now closed to further replies.


  • Posts

    • looking for someone who has cache cleaner for h5 
    • I’m looking to buy GeoEngine compatible with L2Scripts (Essence). A test server must be provided so I can verify functionality before purchase. DM here or through Telegram: @nick77737
    • fixed !.. thank you veru much @NevesOma  someone lock it
    • OFFICIAL DEVELOPERS Undetected since : Release Updated for last patch : 29/11/2025 After payment you will receive: Product download link1 Activation key for the selected period. Free support for the duration of the product subscription.   ✅AC - Undetected ▸WINDOWS 10/11 (All versions, even 24H2) ▸INTEL / AMD ▸Our software mainly targets player wanting to cheat legitimately. . Precision. Stealth. Performance.   The external ARC Raiders cheats from stern designed to elevate your gameplay without slowing your system. Fully compatible with Windows 10/11 — Intel & AMD ready.   Our Functions: AIMBOT **Enable Aim requires a mandatory confirmation popup, so there’s zero risk of activating it by accident for users who don’t want to use it. Aimbot Aimbot Drone Fov Aim (Draw fov circle) Target Line (Draw targetline) Arrow Fov (Draw arrow fov) Visible Check (Aim visible) Humanize (Aim randomize) Custom Aim Key Fov Value / Smooth Value / Aim Delay Arrow Size & Spacing VISUALS – PLAYERS Box ESP (2D / Corner) Health / Shield Bar Skeleton ESP Distance ESP Name ESP Tracers / Player Lines Visible & Invisible Check Squad Name ESP Draw Eyes Directions Radar ESP Radar Distance ESP Players Flags (corpse/knocked/exit/alive) VISUALS – ENTITY Pickup Base ESP Drone ESP Probe Crashed ESP Apricot ESP Mullein ESP Agave ESP MossRock ESP Crate ESP Salvage Container ESP Rsr Lockers ESP Raiders Cache Esp Bin Trash Esp Shredder Esp Fruit Basket ESP Ammo Box ESP Computer ESP Backpack ESP Leaper ESP Probe ESP Mushroom ESP Cargo Ship ESP Firewall ESP Assault Rifle ESP Battle Rifle ESP SMG ESP Grenade ESP Medical Bag ESP Turret ESP Sentinel Esp Weapon Case Esp Extraction ESP All Weapons ESP Max Distance & Fade distance MISC FOV Arrow Player Count Display Custom Arrow Size & Distance Streamproof (Invisible in recordings & screenshots) External (No injection) Maximum Privacy & Security 24/7 Support Available: replies within minutes Our prices: Prices must be checked directly on our website, as they may change at any time to control sales — however, we remain among the most competitive in the market.   Discover our website   GET GOOD, GET STERN
    • I paid this guy yesterday (i got screen for the payment for proof), he told me that someone will log to send me my adena. Then he said he had some problems and couldn't send me the adena. Waited and waited and waited until he replied that he can't find the guy and he will return the money i gave him. Today still no money returned and he doesn't reply to the discord messages. If he doesn't return the money i paid or send the adena he promised in game, i will report him in every single website and many more. Stay away. I have all the discussion screenshot on discord with him. He knows who i am so he better keep his promise legit.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock