How to Add Plugins to Your Terraria tShock Server ​
tShock has no mod system for the client. A tShock server is extended through plugins: .dll files that live on the server only and add new commands, rules or automations there.
Note
Your players do not have to install anything for this. They keep connecting with the completely normal Terraria client: Join server.
Important
.tmod files do not work on a tShock server. They belong to tModLoader and require their own server type: Add mods (tModLoader).
Download a plugin ​
Find a suitable plugin
A curated overview of available plugins can be found in the official tShock wiki and on GitHub under the topic tshock-plugin.Check the version
A plugin has to match the tShock version running on your server. Which version gets installed is controlled by the tShock Version field in the dashboard.Caution
If a plugin does not match the installed tShock version, it is not loaded on startup or the server aborts with an error. Always check the developer's notes on the supported version.
Extract the file
Download the plugin and extract it if it comes as an archive. What you need is the.dllfile inside. If a plugin ships additional libraries, those.dllfiles belong on the server as well.
Trusted sources only
A plugin is executable program code that runs with the full permissions of your server. Only download plugins from official or well-known sources – the tShock wiki explicitly warns against installing plugins of unknown origin.
Upload the plugin ​
Stop the server
Stop your server via the dashboard. Plugins are only loaded on server start.Connect via SFTP
Connect to your server via SFTP.Open the plugin folder
Navigate to the following directory:/ServerPlugins/Note
This folder is created when tShock is installed and already contains the file
TShockAPI.dll. Do not delete the files that are already there – they belong to tShock itself.Upload the file
Upload the.dllfile of the plugin into this folder.Start the server
Start your server and watch the server console. Loaded plugins are listed there on startup with their name and version.
Configure a plugin ​
Most plugins create their configuration file automatically in the /tshock/ folder on first start. So proceed like this:
Start the server once
After uploading, start the server once so the plugin can create its files.Stop the server
Stop the server again before editing the configuration.Adjust the configuration
Open the plugin's configuration file in the/tshock/folder and adjust the values.Start the server
Save the file and start your server.
Tip
Many plugins come with their own commands. /help in the game shows you which commands are available. To let other groups use the new commands as well, you have to grant the matching permissions: Add Admin.
Remove a plugin ​
Stop the server
Stop your server via the dashboard.Delete the file
Delete the plugin's.dllfile from the/ServerPlugins/folder.Start the server
Start your server. The plugin is now disabled.
Caution
If your server no longer starts after uploading a plugin, remove the .dll file you added last. It is best to add plugins one at a time and start the server in between – that way you immediately see which plugin causes trouble.
Tip
Create a backup of your server before making major changes.