GM Commands
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 46
- Joined: Thu May 07, 2009 8:46 am
GM Commands
Where i can find GM commands ? PLS
- MELERIX
- L2j Veteran
- Posts: 6667
- Joined: Sat Sep 23, 2006 11:31 pm
- Location: Chile
- Contact:
- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
Re: GM Commands
speaking of commands, i saw someone saying //announce <text> could be shortened into //a <text>
Wouldnt that be an improvement ? =)
Wouldnt that be an improvement ? =)
- devo
- Posts: 798
- Joined: Mon Jun 15, 2009 1:19 pm
Re: GM Commands
not testedmomo61 wrote:speaking of commands, i saw someone saying //announce <text> could be shortened into //a <text>
Wouldnt that be an improvement ? =)
Patch:
Code: Select all
### Eclipse Workspace Patch 1.0#P datapack_developmentIndex: data/scripts/handlers/admincommandhandlers/AdminAnnouncements.java===================================================================--- data/scripts/handlers/admincommandhandlers/AdminAnnouncements.java (revision 6652)+++ data/scripts/handlers/admincommandhandlers/AdminAnnouncements.java (working copy)@@ -44,6 +44,7 @@ "admin_add_announcement", "admin_del_announcement", "admin_announce",+ "admin_a", "admin_announce_menu", "admin_reload_autoannounce" };@@ -105,7 +106,7 @@ } // Command is admin announce- else if (command.startsWith("admin_announce"))+ else if (command.startsWith("admin_announce") || command.startsWith("admin_a")) { // Call method from another class Announcements.getInstance().handleAnnounce(command, 15);
You do not have the required permissions to view the files attached to this post.
A hero of war is that what they see...
- Ashitaka
- Posts: 96
- Joined: Thu Jul 12, 2007 4:04 am
- Location: Spain
Re: GM Commands
Don't forget the dp-side.devo wrote:not testedmomo61 wrote:speaking of commands, i saw someone saying //announce <text> could be shortened into //a <text>
Wouldnt that be an improvement ? =)
Patch:Code: Select all
### Eclipse Workspace Patch 1.0#P datapack_developmentIndex: data/scripts/handlers/admincommandhandlers/AdminAnnouncements.java===================================================================--- data/scripts/handlers/admincommandhandlers/AdminAnnouncements.java (revision 6652)+++ data/scripts/handlers/admincommandhandlers/AdminAnnouncements.java (working copy)@@ -44,6 +44,7 @@ "admin_add_announcement", "admin_del_announcement", "admin_announce",+ "admin_a", "admin_announce_menu", "admin_reload_autoannounce" };@@ -105,7 +106,7 @@ } // Command is admin announce- else if (command.startsWith("admin_announce"))+ else if (command.startsWith("admin_announce") || command.startsWith("admin_a")) { // Call method from another class Announcements.getInstance().handleAnnounce(command, 15);

Code: Select all
### Eclipse Workspace Patch 1.0#P datapack_developmentIndex: sql/admin_command_access_rights.sql===================================================================--- sql/admin_command_access_rights.sql (revisión: 6653)+++ sql/admin_command_access_rights.sql (copia de trabajo)@@ -16,6 +16,7 @@ ('admin_admin3','1'), ('admin_admin4','1'), ('admin_admin5','1'), +('admin_a','1'), ('admin_gmliston','1'), ('admin_gmlistoff','1'), ('admin_silence','1'),
You do not have the required permissions to view the files attached to this post.
- devo
- Posts: 798
- Joined: Mon Jun 15, 2009 1:19 pm
-
- Posts: 19
- Joined: Sun Mar 01, 2009 10:45 am
- Contact:
Re: GM Commands
Code: Select all
else if (command.startsWith("admin_announce") || command.startsWith("admin_a")){ // Call method from another class Announcements.getInstance().handleAnnounce(command, 15);
see here:
viewtopic.php?f=76&t=10838#p47414
- devo
- Posts: 798
- Joined: Mon Jun 15, 2009 1:19 pm
Re: GM Commands
I didint know its not working
you are right, should be like that

Code: Select all
### Eclipse Workspace Patch 1.0#P datapack_developmentIndex: data/scripts/handlers/admincommandhandlers/AdminAnnouncements.java===================================================================--- data/scripts/handlers/admincommandhandlers/AdminAnnouncements.java (revision 6652)+++ data/scripts/handlers/admincommandhandlers/AdminAnnouncements.java (working copy)@@ -44,6 +44,7 @@ "admin_add_announcement", "admin_del_announcement", "admin_announce",+ "admin_a", "admin_announce_menu", "admin_reload_autoannounce" };@@ -111,6 +112,12 @@ Announcements.getInstance().handleAnnounce(command, 15); } + else if (command.startsWith("admin_a"))+ {+ // Call method from another class+ Announcements.getInstance().handleAnnounce(command, 8);+ }+ else if (command.startsWith("admin_reload_autoannounce")) { AutoAnnounceTaskManager.getInstance().restore();
You do not have the required permissions to view the files attached to this post.
A hero of war is that what they see...