Command new
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 33
- Joined: Mon Jun 09, 2008 6:29 am
Command new
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..
» 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..
-
- Posts: 33
- Joined: Mon Jun 09, 2008 6:29 am
Re: Command new
MY PROBLEM IS HOW CAN i REGISTER A COMMAND...
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Command new
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
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!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 33
- Joined: Mon Jun 09, 2008 6:29 am
Re: Command new
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 ?
-
- Posts: 33
- Joined: Mon Jun 09, 2008 6:29 am
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Command new
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!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
- Zealar
- L2j Veteran
- Posts: 1236
- Joined: Sun Jul 15, 2007 10:29 am
-
- Posts: 33
- Joined: Mon Jun 09, 2008 6:29 am
Re: Command new
And what I am going to winwith this because I didnt understand..
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Command new
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!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 33
- Joined: Mon Jun 09, 2008 6:29 am
Re: Command new
yeah , It says me that .... Look here :
Why? is red.... And i ahve put it on admincomanhanders
Code: Select all
AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminTest()); AdminCommandHandler.getInstance().registerAdminCommandHandler(new [color=#FF0000]AdminTownWar[/color]()); AdminCommandHandler.getInstance().registerAdminCommandHandler(new AdminTvTEvent());
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Command new
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!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!