LadyCailin / CHAdvanced

An extension to CommandHelper that provides more complex or dangerous events/functions
0 stars 2 forks source link

THIS EXTENSION IS NO LONGER BEING MAINTAINED, AND SHOULD NOT BE USED.

The server_command event is added to the CH core, and is available without extension. The tmp_file_list_dir function is available in the CHFiles extension, which can be found here and here.

Functions

array tmp_file_list_dir(path):

Returns a list of files and folders in the specified directory. If the specified path isn't a directory, an IOException is thrown.

Events

server_command

This event is fired off when any command is run from the console. This actually fires before normal CommandHelper aliases, allowing you to insert control before defined aliases, even. Be careful with this event, because it overrides ALL console commands, which if you aren't careful can cause all sorts of havok, because the command is run as console, which is usually completely unrestricted.

Prefilters

command: The entire command the console ran
prefix: Just the first part of the command, i.e. '/cmd' in '/cmd blah blah'

Event Data

command: The entire command
prefix: Just the prefix of the command

Mutable Fields

command