This page explains you how to extend WolfAdmin, by developing your own hooks, commands and other features.

Table of contents
  1. Commands

Support & bugs

In case you run into trouble and need support for WolfAdmin, check out the #wolfadmin IRC channel on Quakenet. You may also contact me via mail or via one of the communities where I usually hang around.

For bug reports or feature requests, please use the bug tracker.


For those who find the existing set of commands not sufficient, there is to possibility to create own commands in Lua. The only thing you have to do is registering your command with WolfAdmin and placing the file in the right directory. This is easily achieved by using the following template.

local commands = require "luascripts.wolfadmin.commands"

function commandMyOwnCommand(clientId, cmdArguments)
    et.trap_SendConsoleCommand(et.EXEC_APPEND, "chat \"^dmyowncommand: ^9Hey, look! This is my own command.\";")

    return true

-- add as client command (1.1.0 and later)
-- commands.addclient(command, func, flag, syntax, chat)
commands.addclient("myownclientcommand", commandMyOwnCommand, "C", "syntax info", true)

-- add as server command (1.1.0 and later)
-- commands.addserver(command, func)
commands.addserver("myownservercommand", commandMyOwnCommand)

-- add as admin command (1.1.0 and later)
-- function commands.addadmin(command, func, flag, help, syntax, hidden)
commands.addadmin("myownadmincommand", commandMyOwnCommand, "C", "shows my own command's text in the chat.")

-- add as admin command (pre-1.1.0)
-- commands.register(command, func, flag, syntax)
commands.register("myownclientcommand", commandMyOwnCommand, "C", "syntax info")
After creating your function, place the .lua file in ./commands/[type]/ (where type can be client, server or admin) and restart the module. For versions older than 1.1.0, add the .lua file to ./commands/.