tShock comes with a full-featured ban system: time-limited bans, reasons and ticket numbers for lifting bans selectively. All commands work both in the in-game chat and in the server console of your dashboard.
Show players
who
This command lists all connected players. With who -i you additionally get the index of every player, which lets you address them unambiguously.
Kick a player
kick <player> [reason]
The player is removed from the server but can rejoin immediately. If you do not provide a reason, tShock inserts a default text.
Ban a player
ban add <target> [reason] [duration] [flags]
The player is removed from the server immediately and can no longer connect. In response tShock gives you a ticket number – you need it later to lift the ban.
Specifying a duration
The duration uses the format 0d0h0m0s – days, hours, minutes, seconds. If you leave it out, the ban is permanent.
| Value | Meaning |
|---|---|
1d0h0m0s |
1 day |
0d12h0m0s |
12 hours |
10d30m0s |
10 days and 30 minutes |
| (omitted) | Permanent |
Flags
Flags define what the ban is tied to. Without any flag tShock bans the account, the device identifier and the IP address at the same time.
| Flag | Meaning |
|---|---|
-a |
Bans the tShock account |
-u |
Bans the device identifier (UUID) of the client |
-n |
Bans the character name |
-ip |
Bans the IP address |
-e |
Treats the value as a direct identifier – required for banning offline players |
Ban offline players
If the player is no longer on the server, use the -e flag together with a prefix that states what the ban refers to:
| Prefix | Meaning |
|---|---|
acc: |
tShock account |
name: |
Character name |
uuid: |
Device identifier of the client |
ip: |
IP address |
Lift a ban
ban del <ticket number>
There is no unban command – you always lift a ban through its ticket number.
-
Find the ticket number
List the bans:ban listWith many entries you can page through them using
ban list 2,ban list 3and so on. -
Check the entry
Details about an entry are shown by:ban details <ticket number> -
Delete the ban
Lift the ban:ban del <ticket number>
Mute a player
mute <player> [reason]
unmute <player>
The player stays on the server but can no longer write in the chat.
Command overview
| Command | Description |
|---|---|
who |
Show connected players (who -i including index) |
kick <player> [reason] |
Remove a player from the server |
ban add <target> [reason] [duration] [flags] |
Ban a player |
ban del <ticket number> |
Lift a ban |
ban list [page] |
List all bans |
ban details <ticket number> |
Show details about a ban |
ban help |
Show help for the ban system |
mute <player> |
Mute a player |
unmute <player> |
Unmute a player |
broadcast <message> |
Send a message to all players |
save |
Save the world immediately |
reload |
Reload the configuration |
help |
Show all available commands |
