|
| 1 | +# Bot commands |
| 2 | + |
| 3 | +## Time |
| 4 | + |
| 5 | +Time is expressed in the format NumberUnit where unit is a unit of time and number is the amount of that time unit, for example 6M represents six months. |
| 6 | + |
| 7 | +Valid time units: |
| 8 | + |
| 9 | +| Letter | Unit | |
| 10 | +|:---------:|:---------:| |
| 11 | +| `s` | Seconds | |
| 12 | +| `m` | Minutes | |
| 13 | +| `h` | Hours | |
| 14 | +| `d` | Days | |
| 15 | +| `w` | Weeks | |
| 16 | +| `M` | Months | |
| 17 | +| `y` | Years | |
| 18 | + |
| 19 | +--- |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | +### Ban |
| 24 | + |
| 25 | +**Command usage:** |
| 26 | + |
| 27 | +`ban <steamid> <duration> (reason)` - Bans a player from the server. |
| 28 | + |
| 29 | +**Variables:** |
| 30 | + |
| 31 | +* `<steamid>` - The SteamID of the player to be banned. |
| 32 | + |
| 33 | +* `<duration>` - The duration of the ban, time formatting info above. |
| 34 | + |
| 35 | +* `(reason)` - Optional reason for the ban. |
| 36 | + |
| 37 | +Example: `+ban 76561138022363616 4d Bad man.` Bans the player for four days with the reason "Bad man." |
| 38 | + |
| 39 | +--- |
| 40 | + |
| 41 | +### Unban |
| 42 | + |
| 43 | +**Command usage:** |
| 44 | + |
| 45 | +`unban <steamid/ip>` - Unbans a player from the server. |
| 46 | + |
| 47 | +**Variables:** |
| 48 | + |
| 49 | +* `<steamid/ip>` - The SteamID or IP of the player to be unbanned. |
| 50 | + |
| 51 | +--- |
| 52 | + |
| 53 | +### Kick |
| 54 | + |
| 55 | +**Command usage:** |
| 56 | + |
| 57 | +`kick <steamid> (reason)` - Kicks a player from the server. |
| 58 | + |
| 59 | +**Variables:** |
| 60 | + |
| 61 | +* `<steamid>` - The SteamID of the player to be kicked. |
| 62 | +* `(reason)` - Optional reason for the kick. |
| 63 | + |
| 64 | +--- |
| 65 | + |
| 66 | +### Kickall |
| 67 | + |
| 68 | +**Command usage:** |
| 69 | + |
| 70 | +`kickall (reason)` - Kicks all players from the server with a message, useful for server shutdowns. |
| 71 | + |
| 72 | +**Variables:** |
| 73 | + |
| 74 | +* `(reason)` - Reason to be displayed to all players kicked. |
| 75 | + |
| 76 | +--- |
| 77 | + |
| 78 | +### List |
| 79 | + |
| 80 | +**Command usage:** |
| 81 | + |
| 82 | +`list` - Lists all online players. |
| 83 | + |
| 84 | +--- |
| 85 | + |
| 86 | +### Syncsteamid |
| 87 | + |
| 88 | +**Command usage:** |
| 89 | + |
| 90 | +`syncsteamid <steamid>` - Syncs your discord role to the game. |
| 91 | + |
| 92 | +**Variables:** |
| 93 | + |
| 94 | +* `<steamid>` - The SteamID of your account. |
| 95 | + |
| 96 | +--- |
| 97 | + |
| 98 | +### Syncip |
| 99 | + |
| 100 | +**Command usage:** |
| 101 | + |
| 102 | +`syncip <ip>` - Syncs your discord role to the game. (For servers not using steam) |
| 103 | + |
| 104 | +**Variables:** |
| 105 | + |
| 106 | +* `<ip>` - Your ip address. |
| 107 | + |
| 108 | +--- |
| 109 | +### Unsyncrole |
| 110 | + |
| 111 | +**Command usage:** |
| 112 | + |
| 113 | +`unsyncrole` - Removes the steam account from being synced with your discord account. |
| 114 | + |
| 115 | +--- |
| 116 | + |
| 117 | + |
| 118 | +### Any other console commands |
| 119 | + |
| 120 | +**Command usage:** |
| 121 | + |
| 122 | +Enter the console command starting with your command prefix and `server`. |
| 123 | + |
| 124 | +Example with command prefix `+`: `+server roundrestart`. |
| 125 | + |
| 126 | +--- |
| 127 | + |
| 128 | +# Plugin console commands |
| 129 | + |
| 130 | +### Reload |
| 131 | + |
| 132 | +**Command usage:** |
| 133 | + |
| 134 | +`scpd_reload` - Reloads the plugin, all configs and files and reconnects. |
| 135 | + |
| 136 | +--- |
| 137 | + |
| 138 | +### Reconnect |
| 139 | + |
| 140 | +**Command usage:** |
| 141 | + |
| 142 | +`scpd_reconnect, scpd_rc` - Reconnects to the bot. |
| 143 | + |
| 144 | +--- |
| 145 | + |
| 146 | +### Unsync |
| 147 | + |
| 148 | +**Command usage:** |
| 149 | + |
| 150 | +`scpd_unsync <discordid>` - Manually remove a player from being synced to discord. |
| 151 | + |
| 152 | +**Variables:** |
| 153 | + |
| 154 | +* `<discordid>` - The Discord user ID of the player to be removed. |
| 155 | + |
| 156 | +--- |
| 157 | + |
| 158 | +### GrantVanillaRank |
| 159 | + |
| 160 | +**Command usage:** |
| 161 | + |
| 162 | +`scpd_grantvanillarank/scpd_gvr <steamid/playerid> <rank>` - Gives a player a vanilla rank for their current session. |
| 163 | + |
| 164 | +**Variables:** |
| 165 | + |
| 166 | +* `<steamid/playerid>` - Either the steamid or playerid of the player to grant a rank. |
| 167 | +* `<rank>` - The name of the rank as defined in the vanilla config. |
| 168 | + |
| 169 | +--- |
| 170 | + |
| 171 | +### GrantReservedSlot |
| 172 | + |
| 173 | +**Command usage:** |
| 174 | + |
| 175 | +`scpd_grantreservedslot/scpd_grs <steamid>` - Gives a player a reserved slot on the server. |
| 176 | + |
| 177 | +**Variables:** |
| 178 | + |
| 179 | +* `<steamid>` - The steamid of the player to add. |
| 180 | + |
| 181 | +--- |
| 182 | + |
| 183 | +### RemoveReservedSlot |
| 184 | + |
| 185 | +**Command usage:** |
| 186 | + |
| 187 | +`scpd_removereservedslot/scpd_rrs <steamid>` - Removes a reserved slot from a player. |
| 188 | + |
| 189 | +**Variables:** |
| 190 | + |
| 191 | +* `<steamid>` - The steamid of the player to be removed. |
| 192 | + |
| 193 | +--- |
| 194 | + |
| 195 | +### Validate |
| 196 | + |
| 197 | +**Command usage:** |
| 198 | + |
| 199 | +`scpd_validate` - Creates a config and language validation report in the console. |
| 200 | + |
| 201 | +--- |
| 202 | + |
| 203 | +### SetNickname |
| 204 | + |
| 205 | +**Command usage:** |
| 206 | + |
| 207 | +`scpd_setnickname <player id/steamid> <nickname>` - Sets a player's nickname, useful for the rolesync system if you want to sync discord names. |
| 208 | + |
| 209 | +--- |
| 210 | + |
| 211 | +# Permissions |
| 212 | + |
| 213 | +(These only apply when using server commands via remote admin, not through discord) |
| 214 | + |
| 215 | +| Permission | Description | |
| 216 | +|---------------------------------|----------------------------------------------------------------------------------| |
| 217 | +| `scpdiscord.reload` | Allows a player to reload the plugin. | |
| 218 | +| `scpdiscord.reconnect` | Allows a player to reconnect the plugin to the bot. | |
| 219 | +| `scpdiscord.unsync` | Allows a player to unsync other players from discord. | |
| 220 | +| `scpdiscord.verbose` | Allows a player to toggle the verbose setting. | |
| 221 | +| `scpdiscord.debug` | Allows a player to toggle the debug setting. | |
| 222 | +| `scpdiscord.grantreservedslot` | Allows a player to grant reserved slots. | |
| 223 | +| `scpdiscord.removereservedslot` | Allows a player to remove reserved slots. | |
| 224 | +| `scpdiscord.grantvanillarank` | Allows a player to grant vanilla ranks. | |
| 225 | +| `scpdiscord.validate` | Allows a player to print a config and language validation report in the console. | |
| 226 | +| `scpdiscord.setnickname` | Allows a player to set someones nickname. | |
0 commit comments