{"id":15421,"date":"2025-04-22T16:52:14","date_gmt":"2025-04-22T16:52:14","guid":{"rendered":"https:\/\/ggservers.com\/knowledgebase\/?post_type=ht_kb&#038;p=15421"},"modified":"2025-04-22T16:52:15","modified_gmt":"2025-04-22T16:52:15","slug":"how-to-ban-or-unban-players-from-your-terraria-tshock-server","status":"publish","type":"ht_kb","link":"https:\/\/ggservers.com\/knowledgebase\/article\/how-to-ban-or-unban-players-from-your-terraria-tshock-server\/","title":{"rendered":"How to Ban or Unban Players from Your Terraria &amp; Tshock Server"},"content":{"rendered":"\n<p>Managing who can access your Terraria server is essential for maintaining a positive and fair experience for everyone. Whether you&#8217;re removing disruptive players or correcting an accidental ban, this guide covers both banning and unbanning steps for Vanilla and TShock servers.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">How to Ban a Player from Your Server<\/h3>\n\n\n\n<p>Sometimes, banning a player is necessary to protect the integrity of your server, especially if someone is cheating, griefing, or violating community rules.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Banning a Player on a Vanilla Server<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log into your server\u2019s control panel and go to the <strong>Console<\/strong> tab.<\/li>\n\n\n\n<li>In the console input field, type: ban &lt;playername><\/li>\n<\/ol>\n\n\n\n<p>Replace <code>&lt;playername&gt;<\/code> with the name of the user you wish to ban.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Note:<\/strong> The player must be online at the time of the ban for it to take effect.<\/p>\n<\/blockquote>\n\n\n\n<p>Once banned, the player will be unable to connect to your server using any of their characters.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Banning a Player on a TShock Server<\/h4>\n\n\n\n<p>TShock allows you to issue <strong>temporary<\/strong> or <strong>permanent<\/strong> bans using in-game commands.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Important:<\/strong> You need the <code>tshock.admin.ban<\/code> permission to perform these actions.<\/p>\n<\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Permanent ban by username: <strong>\/ban add &lt;playername> &lt;reason><\/strong><\/li>\n\n\n\n<li>Permanent ban by IP address:<strong> \/ban addip &lt;IP Address><\/strong><\/li>\n\n\n\n<li>Temporary ban:<strong> \/ban addtemp &lt;username> &lt;duration> &lt;reason><\/strong><br><\/li>\n<\/ul>\n\n\n\n<p>All commands should be entered in the server&#8217;s in-game chat, with <code>\/<\/code> as the command prefix.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">How to Unban a Player from Your Server<\/h3>\n\n\n\n<p>If a player has been mistakenly banned or their ban duration has expired, you can remove the restriction and allow them to rejoin.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Unbanning a Player on a Vanilla Server<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Access your control panel.<\/li>\n\n\n\n<li>Navigate to the <strong>Files<\/strong> tab.<\/li>\n\n\n\n<li>Open the <code>banlist.txt<\/code> file.<\/li>\n\n\n\n<li>Locate the two lines related to the banned player \u2014 one for their username and another for their IP address. Delete both lines.<\/li>\n\n\n\n<li>Save the file.<\/li>\n<\/ol>\n\n\n\n<p>The player will be unbanned immediately after saving your changes.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Unbanning a Player on a TShock Server<\/h4>\n\n\n\n<p>Use the corresponding command based on how the player was banned:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Unban by username:<\/strong> \/ban del &lt;username><\/li>\n\n\n\n<li><strong>Unban by IP address:<\/strong> \/ban delip &lt;IP Address><\/li>\n<\/ul>\n\n\n\n<p>Run the commands in the in-game chat window.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>With these commands and steps, you can easily manage bans on your Terraria server and keep your gameplay environment fun and fair for all players.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Managing who can access your Terraria server is essential for maintaining a positive and fair experience for everyone. Whether you&#8217;re removing disruptive players or correcting an accidental ban, this guide covers both banning and unbanning steps for Vanilla and TShock servers. How to Ban a Player from Your Server Sometimes,&#8230;<\/p>\n","protected":false},"author":5,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"ht-kb-category":[1149,36],"ht-kb-tag":[1181,1185,1192,1194,1180,1189,1188,1198,1195,1191,1199,1187,1183,1157,1186,1197,1196,1184,1190,1182],"class_list":["post-15421","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-terraria","ht_kb_category-gameservers","ht_kb_tag-how-to-ban-in-terraria","ht_kb_tag-terraria-admin-commands","ht_kb_tag-terraria-ban-command","ht_kb_tag-terraria-ban-ip","ht_kb_tag-terraria-ban-player","ht_kb_tag-terraria-banlist","ht_kb_tag-terraria-block-player","ht_kb_tag-terraria-console-commands","ht_kb_tag-terraria-kick-player","ht_kb_tag-terraria-multiplayer-rules","ht_kb_tag-terraria-player-management","ht_kb_tag-terraria-server-ban","ht_kb_tag-terraria-server-control","ht_kb_tag-terraria-server-guide","ht_kb_tag-terraria-server-management","ht_kb_tag-terraria-tempban","ht_kb_tag-terraria-tshock-permissions","ht_kb_tag-terraria-unban-player","ht_kb_tag-tshock-ban","ht_kb_tag-unban-terraria"],"acf":[],"_links":{"self":[{"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/15421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=15421"}],"version-history":[{"count":2,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/15421\/revisions"}],"predecessor-version":[{"id":15423,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/15421\/revisions\/15423"}],"wp:attachment":[{"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=15421"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb-category?post=15421"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb-tag?post=15421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}