Commit graph

9 commits

Author SHA1 Message Date
Lucas Nicodemus
8cd6bf7d7b Fix failure to apply default config changes
TShock.ConfigFile was deprecated and therefore changes applied in
previous commits were not applied until now.

See:

* f567486c47
* 39147355c1
* 597e403d50
2021-06-12 23:56:23 -07:00
Lucas Nicodemus
da163b80ac Allow operators to disable build permission notices
This commit allows server operators to disable build permission failure
notices. This is because some servers wish to have a "silent" operation
mode where the server doesn't send out these messages to users. This
makes sense, e.g., when the server is a "museum" and isn't intended to
be changed.
2021-06-12 23:53:17 -07:00
Lucas Nicodemus
68ae73ffef Warn players if bypass SSC permission is enabled
If a player has the tshock.ignore.ssc permission, odds are that they may
want to know that their data isn't being saved or not. This change
allows users to be notified if they have SSC data stored in the DB but
they aren't having it loaded due to the aforementioned permission.

This permission causes great confusion, but we can't really change it
because we would break existing setups. This is an easy change that
gives people a reason why they suddenly "have no items."

This new option can be turned off in the config file for SSC if it's not
desired.

This change also modifies some of the log messages so that it's clear
why the SSC save didn't occur for a given player.
2021-05-21 01:16:04 -07:00
Chris
b754f142a1 Change logpath to ./tshock/logs by default 2021-05-14 22:08:32 +09:30
Chris
b5ca015d26 Minor refactor
CheckForMissingFields -> CheckForChanges
anyMissingFields -> anyChanges
2021-01-28 19:43:03 +10:30
Chris
0012bf73da Remove obsolete config options relating to bans 2021-01-28 19:33:52 +10:30
Chris
f87b6156f4 Update config upgrades to be a bit more robust 2021-01-28 19:31:09 +10:30
Chris
50c1b757be Enforce new() constraint on ConfigFile<TSettings> 2020-12-03 17:50:44 +10:30
Chris
a03647ce38 Genericise configurations
This is a breaking change. Enables easy creation of config files without copy/pasting the Read/Write code all the time
2020-12-03 17:42:46 +10:30