Skip to content

TShock plugin dev utility to live refresh your server when you compile your plugins

License

Notifications You must be signed in to change notification settings

ZakFahey/live-refresher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live Refresher for TShock

Do you develop TShock plugins? Then you can use this utility to automatically copy your server plugin from your Visual studio build directory and restart your server whenever you compile your plugin.

All you need to do is download the executable here and copy it to your TShock directory. When you first run it, a config file, live-refresher-config.json, will be created. You will want to fill this out with your specific project parameters. Example config file:

{
  // The path to TerrariaServer.exe. Should be in the current directory
  "TerrariaServerPath": "",
  // The time in milliseconds between checks for files
  "CheckInterval": 2000,
  // Build path for your plugin. Be sure to also include any dependencies your plugin may have.
  "PluginPathsToCheck": [
    "C:\\Users\\...\\Documents\\GitHub\\yourplugin\\YourPlugin\\bin\\Debug\\YourPlugin.dll"
  ],
  // TShock's startup parameters. See https://tshock.readme.io/docs/command-line-parameters
  "ServerStartupParameters": "-ip 127.0.0.1 -port 7777 -maxplayers 8 -world \"C:/Users/../Documents/My Games/Terraria/Worlds/MyWorld.wld\""
}

Then just run LiveRefresher.exe in place of TerrariaServer.exe.

About

TShock plugin dev utility to live refresh your server when you compile your plugins

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages