GM Commands

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
Negat1ve
Posts: 46
Joined: Thu May 07, 2009 8:46 am

GM Commands

Post by Negat1ve »

Where i can find GM commands ? PLS
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: GM Commands

Post by MELERIX »

admin_command_access_rights.sql
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

Re: GM Commands

Post by momo61 »

speaking of commands, i saw someone saying //announce <text> could be shortened into //a <text>

Wouldnt that be an improvement ? =)
User avatar
devo
Posts: 798
Joined: Mon Jun 15, 2009 1:19 pm

Re: GM Commands

Post by devo »

momo61 wrote:speaking of commands, i saw someone saying //announce <text> could be shortened into //a <text>

Wouldnt that be an improvement ? =)
not tested

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...
User avatar
Ashitaka
Posts: 96
Joined: Thu Jul 12, 2007 4:04 am
Location: Spain

Re: GM Commands

Post by Ashitaka »

devo wrote:
momo61 wrote:speaking of commands, i saw someone saying //announce <text> could be shortened into //a <text>

Wouldnt that be an improvement ? =)
not tested

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); 
Don't forget the dp-side. :)

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.
User avatar
devo
Posts: 798
Joined: Mon Jun 15, 2009 1:19 pm

Re: GM Commands

Post by devo »

true :) forgot about that :) thanks
A hero of war is that what they see...
mr.karrde
Posts: 19
Joined: Sun Mar 01, 2009 10:45 am
Contact:

Re: GM Commands

Post by mr.karrde »

Code: Select all

else if (command.startsWith("admin_announce") || command.startsWith("admin_a")){ // Call method from another class Announcements.getInstance().handleAnnounce(command, 15); 
Maybe don't work because admin_a require "Announcements.getInstance().handleAnnounce(command, 8 );"

see here:
viewtopic.php?f=76&t=10838#p47414
User avatar
devo
Posts: 798
Joined: Mon Jun 15, 2009 1:19 pm

Re: GM Commands

Post by devo »

I didint know its not working :P 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...
Post Reply