Admin Commands
Posted: Mon Apr 20, 2015 12:10 am
This is the beginnings of a comprehensive admin command system for Source Python.
Currently it only has a few features, but I'm happy to add any that the community requests.
Filter types:
- All filters listed here: http://wiki.sourcepython.com/pages/filt ... PlayerIter
- me - Target yourself
- ! filters - All filters support ! as well. Example: @!me targets all players EXCEPT yourself, @!bots targets all humans, etc
Commands (each can be used on the server/client console as well as in chat with !<command> and /<command>):
- sp_kick <name|#userid|@filter> [reason: ""] (Permission: sp.punishment.kick) - Kicks the client(s) from the server, optionally with the reason specified
- sp_ban <name|#userid|@filter> [minutes: 0] [reason: ""] (Permission: sp.punishment.ban - Kicks and bans the client(s) from the server, for the duration specified by minutes and a kickreason specified by reason
- sp_unban <steamid> (Permission: sp.punishment.unban) - Unbans a steamID
- sp_slay <name|#userid|@filter> (Permission: sp.punishment.slay) - Slays the target client(s).
- sp_ignite <name|#userid|@filter> [time: 0] (Permission: sp.fun.ignite) - Sets the target client(s) on fire for the duration specified by minutes
- sp_freeze <name|#userid|@filter> [time: 0] (Permission: sp.fun.freeze) - Freezes the target client(s) in place for the duration specified by minutes
- sp_unfreeze <name|#userid|@filter> (Permission: sp.fun.unfreeze) - Unfreezes the target client(s)
- sp_map <map> (Permission: sp.map.map) - Change the map to the specified map (if it exists)
Note: The permission nodes and names listed here are subject to change in the future
Upcoming features:
- Menus
- sp_rename
- mute/gag/silence
Feel free to suggest anything, I'm happy to add it, if it is currently possible
Download here
Currently it only has a few features, but I'm happy to add any that the community requests.
Filter types:
- All filters listed here: http://wiki.sourcepython.com/pages/filt ... PlayerIter
- me - Target yourself
- ! filters - All filters support ! as well. Example: @!me targets all players EXCEPT yourself, @!bots targets all humans, etc
Commands (each can be used on the server/client console as well as in chat with !<command> and /<command>):
- sp_kick <name|#userid|@filter> [reason: ""] (Permission: sp.punishment.kick) - Kicks the client(s) from the server, optionally with the reason specified
- sp_ban <name|#userid|@filter> [minutes: 0] [reason: ""] (Permission: sp.punishment.ban - Kicks and bans the client(s) from the server, for the duration specified by minutes and a kickreason specified by reason
- sp_unban <steamid> (Permission: sp.punishment.unban) - Unbans a steamID
- sp_slay <name|#userid|@filter> (Permission: sp.punishment.slay) - Slays the target client(s).
- sp_ignite <name|#userid|@filter> [time: 0] (Permission: sp.fun.ignite) - Sets the target client(s) on fire for the duration specified by minutes
- sp_freeze <name|#userid|@filter> [time: 0] (Permission: sp.fun.freeze) - Freezes the target client(s) in place for the duration specified by minutes
- sp_unfreeze <name|#userid|@filter> (Permission: sp.fun.unfreeze) - Unfreezes the target client(s)
- sp_map <map> (Permission: sp.map.map) - Change the map to the specified map (if it exists)
Note: The permission nodes and names listed here are subject to change in the future
Upcoming features:
- Menus
- sp_rename
- mute/gag/silence
Feel free to suggest anything, I'm happy to add it, if it is currently possible
Download here