Added feature testing functionality (bug 4021, r=pred).
This commit is contained in:
@@ -858,6 +858,8 @@ native RemoveServerTag(const String:tag[]);
|
||||
*/
|
||||
functag public Action:CommandListener(client, const String:command[], argc);
|
||||
|
||||
#define FEATURECAP_COMMANDLISTENER "command listener"
|
||||
|
||||
/**
|
||||
* Adds a callback that will fire when a command is sent to the server.
|
||||
*
|
||||
@@ -866,6 +868,9 @@ functag public Action:CommandListener(client, const String:command[], argc);
|
||||
* Using Reg*Cmd to intercept is in poor practice, as it physically creates a
|
||||
* new command and can slow down dispatch in general.
|
||||
*
|
||||
* To see if this feature is available, use FeatureType_Capability and
|
||||
* FEATURECAP_COMMANDLISTENER.
|
||||
*
|
||||
* @param callback Callback.
|
||||
* @param command Command, or if not specified, a global listener.
|
||||
* The command is case insensitive.
|
||||
|
||||
Reference in New Issue
Block a user