New

EmeraldHost 2.0 is here: faster, more intuitive, and made for everyone - the new panel!

Learn more
Guides
How to Kick and Ban Players on Your Terraria tShock Server
Terraria: tShockTerraria: tShockKick & Ban Players

How to Kick and Ban Players on Your Terraria tShock Server

Kick and ban players on a Terraria tShock server

4 min read
Jul 30, 2026

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.

  1. Find the ticket number
    List the bans:

    ban list
    

    With many entries you can page through them using ban list 2, ban list 3 and so on.

  2. Check the entry
    Details about an entry are shown by:

    ban details <ticket number>
    
  3. 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
Written byEmeraldHost Team
Last updated on Jul 30, 2026 Edit on GitHub

Did this article help you?

Your feedback helps us improve our guides.

Help shape the guides

€10.00 in credit for every new guide, €5.00 for every improvement.

Contact Support

Create a support ticket and our team will get back to you as soon as possible – personal and professional.

Go to Support
1257 members online

Discord Community

Connect with other players, get quick help from the community, and stay up to date with the latest news.

Join Discord
Terraria: tShock

Ready to get started?

Rent your Terraria: tShock Server now

Join our Discord community 1257 members online right now