Commands/Lua
Reference for console commands, Lua hooks and Lua commands in CS2D.
- Console Commands are entered in console, executed with key-binds, cfg-files or with Lua parse
- Lua Hooks execute Lua when events occur - some have a return value which can change the game behavior
- Lua Commands are used to retrieve game data or to perform actions in Lua scripts
CS2D Console Commands
unbanCategories
Parameters
- banmask (text): USGN ID, IP or nickname
Info
Removes a particular ban with a certain banmask.
This mask can be:
- a USGN ID (just a single number). e.g.: 1 or 123
- an IP address (also with * wildcards). e.g.: 111.222.333.444 or 111.222.333.*
- a nick name. e.g.: Player
Moreover CS2D doesn't perform IP wildcard matching when removing bans.
E.g.: You have the following bans
111.*.*.*
111.222.333.444
111.222.333.*
*.*.*.*
if you now use unban *.*.*.* only the last ban will be removed because it is exactly the same string. All other bans will stay untouched even though they actually would match a wildcard check!
Attention: This command is case sensitive. If you banned "Player" and use unban "player" it will not work!
Lua Hooks
Lua Commands
Categories
Parameters
- banmask (text): USGN ID, IP or nickname
Info
Removes a particular ban with a certain banmask.
This mask can be:
- a USGN ID (just a single number). e.g.: 1 or 123
- an IP address (also with * wildcards). e.g.: 111.222.333.444 or 111.222.333.*
- a nick name. e.g.: Player
Moreover CS2D doesn't perform IP wildcard matching when removing bans.
E.g.: You have the following bans
111.*.*.*
111.222.333.444
111.222.333.*
*.*.*.*
if you now use unban *.*.*.* only the last ban will be removed because it is exactly the same string. All other bans will stay untouched even though they actually would match a wildcard check!
This mask can be:
- a USGN ID (just a single number). e.g.: 1 or 123
- an IP address (also with * wildcards). e.g.: 111.222.333.444 or 111.222.333.*
- a nick name. e.g.: Player
Moreover CS2D doesn't perform IP wildcard matching when removing bans.
E.g.: You have the following bans
111.*.*.*
111.222.333.444
111.222.333.*
*.*.*.*
if you now use unban *.*.*.* only the last ban will be removed because it is exactly the same string. All other bans will stay untouched even though they actually would match a wildcard check!
Attention: This command is case sensitive. If you banned "Player" and use unban "player" it will not work!