TShock/TShockAPI
Lucas Nicodemus 34da464bab Intercept console interrupt and handle nicely
Long ago in the early days of TShock someone asked why CTRL + C wasn't
handled and there was an explanation given along the lines of "something
something not supported on mono something something" or similar.
Attempts were made to try to handle console interrupts unsuccessfully
and the code was ripped out.

However, it's 2021, and we can now handle this signal and do the right
thing (which, ostensibly, is to save the world and shut down). Many
people like me reflexively hit CTRL + C because they want to shut down
the process. It's very infuriating that the current behavior results in
the server just dying and nothing being cleaned up properly.

Therefore, this commit changes the behavior to handle the interrupt,
save the world, and shut down nicely.

(If you still want to shutdown without saving the world, use off-nosave,
or idk, send SIGKILL).
2021-06-12 12:18:55 -07:00
..
CLI Update copyright to 2019 again 2019-03-29 17:16:37 -07:00
Configuration Warn players if bypass SSC permission is enabled 2021-05-21 01:16:04 -07:00
DB Fix torchflags 2021-05-23 04:48:01 -07:00
Extensions Re-enable Int64 override for IDataReader.Get 2020-11-29 18:23:35 +10:30
Handlers Move emoji player index check into IllegalPerSe 2021-05-27 23:59:43 -07:00
Hooks Implement handled pattern on the PlayerChat hook 2021-04-13 13:14:56 +09:30
Localization pass compile; add void vault code 2020-05-17 21:38:47 +08:00
Models Update GetDataHandler.HandleProjectileNew to include HasBannerIdToRespondTo 2021-04-05 10:45:41 +08:00
Net Address feedback from @hakusaro about style & documentation 2021-05-21 13:13:06 +02:00
Properties Version tick: 4.5.4 2021-06-05 20:04:14 -07:00
Rest Merge branch 'general-devel' into rest-permissions 2021-04-22 16:52:55 +09:30
Sockets pass compile; add void vault code 2020-05-17 21:38:47 +08:00
app.config Saving work to apply merge changes 2017-04-19 17:12:38 -06:00
BackupManager.cs Remove "potential lag spike" warning when saving 2021-06-05 20:30:08 -07:00
Bouncer.cs Revert "Revert "Merge branch 'patch-28' into general-devel"" 2021-05-29 17:58:57 -07:00
Commands.cs Fix typo in "Amethyst Gemtree" 2021-06-11 10:22:39 -07:00
ConfigFile.cs Automatically back up the world by default 2021-05-20 03:31:37 -07:00
FileTools.cs Update how it looks 2021-05-14 13:23:42 -04:00
GeoIPCountry.cs Update copyright to 2019 again 2019-03-29 17:16:37 -07:00
GetDataHandlers.cs Remove now defunct comment 2021-05-28 23:55:27 -07:00
Group.cs Refactor for new configuration 2020-12-03 17:43:10 +10:30
HandlerList.cs Update copyright to 2019 again 2019-03-29 17:16:37 -07:00
ILog.cs Overhaul debug logging 2020-05-19 22:04:10 -07:00
IPackable.cs Update copyright to 2019 again 2019-03-29 17:16:37 -07:00
ItemBans.cs Refactor for new configuration 2020-12-03 17:43:10 +10:30
NetItem.cs pass compile; add void vault code 2020-05-17 21:38:47 +08:00
packages.config Update to Newtonsoft JSON v10.0.3 for parity with OTAPI/TSAPI 2019-03-30 15:47:14 +10:30
PaginationTools.cs Update copyright to 2019 again 2019-03-29 17:16:37 -07:00
Permissions.cs Implement additional teleport permissions. 2021-05-11 14:17:36 -04:00
PlayerData.cs Change happyFunTorchTime from true to false 2021-05-23 17:11:06 -07:00
RegionHandler.cs Refactor for new configuration 2020-12-03 17:43:10 +10:30
Resources.Designer.cs Remove headers from autogenerated file 2016-10-17 11:28:34 +05:30
Resources.resx Remove 2 year old config files... 2013-10-01 20:55:19 -04:00
SaveManager.cs Refactor for new configuration 2020-12-03 17:43:10 +10:30
SqlLog.cs Refactor for new configuration 2020-12-03 17:43:10 +10:30
TextLog.cs Refactor for new configuration 2020-12-03 17:43:10 +10:30
TShock.cs Intercept console interrupt and handle nicely 2021-06-12 12:18:55 -07:00
TShockAPI.csproj Move emoji player index check into IllegalPerSe 2021-05-27 23:59:43 -07:00
TShockAPI.licenseheader Update copyright to 2019 again 2019-03-29 17:16:37 -07:00
TSPlayer.cs Add fallback for finding players using tsi & tsn 2021-05-25 19:25:30 -07:00
TSServerPlayer.cs Ban rewrite and various other adjustments 2020-11-26 17:20:19 +10:30
UpdateManager.cs Update copyright to 2019 again 2019-03-29 17:16:37 -07:00
Utils.cs Refactor for new configuration 2020-12-03 17:43:10 +10:30
web.config Saving work to apply merge changes 2017-04-19 17:12:38 -06:00