Commit graph

18 commits

Author SHA1 Message Date
AkjaHAsLk1IALk0MasH
8f69c6e767 Created a new field in config. 2021-11-30 20:50:51 +07:00
AkjaHAsLk1IALk0MasH
77032ccbea Renamed value in config 2021-11-30 14:23:49 +07:00
AkjaHAsLk1IALk0MasH
6cec7e71cd Fixed the ability to spawn Zenith projectile with non-original items. 2021-11-28 15:35:50 +07:00
Lucas Nicodemus
9416e8f1e2 Remove DIY password hashing crypto
The old system for hashing passwords and permitting users to select
their algorithm has been deprecated and phased out since 2015. This
removes the remaining functions for hashing passwords to clear the way
for .NET5/6 and for OTAPI 3.

In 211b70ca37, I allowed blank passwords
to upgrade to bcrypt hashes. However, the minimum password length has
been 4 historically for a long time. So I don't actually assume a lot of
users have blank passwords, so I think there are very few, if any of the
old hashes laying around.

So therefore, I think this is pretty much safe to merge.
2021-11-22 10:26:57 -08:00
Lucas Nicodemus
b17c4cfc13 Add support for disabling IP bans by default
Some proxy users find it irritating when their proxy IP is banned by the
ban command. This helps those users find justice in the world.
2021-11-21 14:30:59 -08:00
stacey
d8aa7b0f69
Change RespawnSeconds & RespawnBossSeconds to use default
a value of 0 will use the default time based on selected difficulty
2021-09-13 10:02:03 -04:00
Chris
c3a074336d
Merge branch 'general-devel' into feature/force-character-gamemodes 2021-08-02 20:05:59 +09:30
James Puleo
a40effd55e
Introduce SoftcoreOnly config option to allow only softcore characters
to connect.
2021-07-24 20:22:22 -04:00
stacey
347a23a8bc
Add DisablePrimeBombs to World Settings 2021-07-24 19:55:38 -04:00
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