forked from Person8880/Shine
-
Notifications
You must be signed in to change notification settings - Fork 0
Base Commands
Person8880 edited this page Jun 4, 2013
·
9 revisions
The base commands plugin provides quite a few generic and useful commands and should really be left enabled unless you really don’t want them.
The default config will look something like this:
{ "AllTalk": false, "AllTalkPreGame": false }
The file should be called “BaseCommands.json” and should be placed in the directory defined as your plugin config directory (default is config://shine/plugins).
Option | Description |
---|---|
AllTalk | Enables all talk, use this if you want all talk to always be enabled. |
AllTalkPreGame | Enables all talk during the pre game time, where both teams are waiting for commanders to be chosen. Once the game is about to start, it is disabled. Make sure the other setting is false when using this, otherwise all talk will always be enabled. |
Command | Chat Command | Arguments | Description |
---|---|---|---|
sh_help | N/A | <command> | Tells you what the given command does. |
sh_helplist | N/A | N/A | Lists all commands you can run and their help text. |
sh_loadplugin | N/A | <plugin> | Loads or reloads the given plugin. |
sh_unloadplugin | N/A | <plugin> | Unloads the given plugin. |
sh_listplugins | N/A | N/A | Lists all enabled plugins. |
sh_luarun | !luarun | <lua> | Runs the given Lua code on the server. Be careful with this. |
sh_rcon | !rcon | <command> | Runs the given command in the server console. |
sh_password | !password | <password> | Sets the server password. |
sh_alltalk | !alltalk | <true/false> | Enables or disables alltalk. Leave the argument blank to toggle it. |
sh_kick | !kick | <player> | Kicks the given player from the server. |
sh_status | N/A | N/A | Prints a list of all connected players and their information. |
sh_changelevel | !map | <mapname> | Changes the map to the given map name. |
sh_listmaps | N/A | N/A | Lists all maps found on the server. |
sh_reset | !reset | N/A | Resets the game round. |
sh_rr | !rr | <players> | Moves the given player(s) to the ready room. |
sh_forcerandom | !random | <players> | Forces the given player(s) onto a random team. |
sh_setteam | !team or !setteam | <players> <team> | Moves the given player(s) onto the given team. |
sh_autobalance | !autobalance | <true/false> <player amount> <delay> | Enables or disables auto balance. Player amount defaults to 2, delay defaults to 10 seconds. |
sh_eject | !eject | <player> | Forces the given player out of the command chair. |
sh_say | !say | <message> | Says the given message to all players from the name given in the config value ChatName. |
sh_teamsay | !teamsay | <team> <message> | Says the given message to all players on the given team from the name given in the config value ChatName. |
sh_pm | !pm | <player> <message> | Sends a private message to the given player from the name given in the config value ChatName. |
sh_csay | !csay | <message> | Displays a message in the top centre of every player’s screen. |
sh_gag | !gag | <player> <duration> | Silences text chat from the given player for the given duration in seconds. If you don’t specify a duration, it will last until map change or ungag. |
sh_ungag | !ungag | <player> | Allows the given player to use text chat again if they were gagged. |