Command new

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
appolo
Posts: 33
Joined: Mon Jun 09, 2008 6:29 am

Command new

Post by appolo »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:

Hi guys I have made An admin command but he problem is where to put the .java file of the command and how to register it..
appolo
Posts: 33
Joined: Mon Jun 09, 2008 6:29 am

Re: Command new

Post by appolo »

MY PROBLEM IS HOW CAN i REGISTER A COMMAND...
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Command new

Post by janiii »

look at other admin commands how they are registered (look in the admin command files, and then look at MasterHandler). they are now in datapack/data/scripts/handlers/admincommandhanlers .

and turn off your caps lock or buy a new keyboard :)
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
appolo
Posts: 33
Joined: Mon Jun 09, 2008 6:29 am

Re: Command new

Post by appolo »

if now I want to add a command , I have to change the datapack?? Big change.. Because I have TownWar wvewnt and the comand isnt work :S ... which is the file in datapack which is like l2jserver.java ?
appolo
Posts: 33
Joined: Mon Jun 09, 2008 6:29 am

Re: Command new

Post by appolo »

User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Command new

Post by janiii »

if you are using eclipse, on forum is a guide how to enable syntax highlighting in datapack project. that will help you to solve these issues as eclipse says what to do (import used class, etc.)
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
Zealar
L2j Veteran
L2j Veteran
Posts: 1236
Joined: Sun Jul 15, 2007 10:29 am

Re: Command new

Post by Zealar »

appolo
Posts: 33
Joined: Mon Jun 09, 2008 6:29 am

Re: Command new

Post by appolo »

And what I am going to winwith this because I didnt understand..
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Command new

Post by janiii »

eclipse will tell you an error there and will help you fix it (import the missing class)
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
appolo
Posts: 33
Joined: Mon Jun 09, 2008 6:29 am

Re: Command new

Post by appolo »

yeah , It says me that .... Look here :

Code: Select all

AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminTest());        AdminCommandHandler.getInstance().registerAdminCommandHandler(new [color=#FF0000]AdminTownWar[/color]());        AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminTvTEvent());
Why? is red.... And i ahve put it on admincomanhanders
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Command new

Post by janiii »

eclipse should suggest you to import that class
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
Post Reply