Commit graph

255 commits

Author SHA1 Message Date
Chris
ca38d64632 The great refactoring! Squares to Rectangles 2020-11-13 17:46:00 +10:30
ZakFahey
90f519a1c6 Overwrite the config if any new fields are missing 2020-08-01 10:13:04 -07:00
KZ
a844a54763 Use Region blocks for better outlining readability
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/preprocessor-directives/preprocessor-region
2020-06-07 16:35:52 -07:00
KZ
aa85a9860c Reorder sections, format section titles 2020-06-07 14:10:16 -07:00
KZ
fda0ae720b reorganizing within categories 2020-06-07 13:58:57 -07:00
KZ
a27e43f758 Initial sorting, need to merge in changes from master though 2020-06-07 13:22:21 -07:00
moisterrific
fa6a39aafe
Add KickOnThresholdBroken for more thresholds
There's KickOnDamageThresholdBroken but no option for kick for other thresholds, thought I should add it.
2020-06-04 20:51:00 -04:00
moisterrific
91c3557610
Change DebugLogs to true by default
Given that this is a pre-release and it no longer makes the CLI unreadable I think it should be on by default to make troubleshooting easier.
2020-06-03 22:54:51 -04:00
Lucas Nicodemus
ad82afd800
Merge branch 'general-devel' of github.com:Pryaxis/TShock into general-devel 2020-05-24 14:06:17 -07:00
Lucas Nicodemus
472b81e9f4
Increase default thresholds in config file
Based on user testing of the new explosives from Olink, these really
need to be higher to support the new lava/wet/dry/honey
bombs/explosives.
2020-05-24 14:05:54 -07:00
Lucas Nicodemus
f1b35e47cc
Update config description for bomb range 2020-05-24 13:23:18 -07:00
Olink
8edca72919 Add config option for the bomb radius. 2020-05-24 04:33:03 -04:00
Axeel
56a9e27365
Fix player respawn again (#1830)
* fix respawn time unit, add spawn bouncer, add respawn time config warning

Co-authored-by: Lucas Nicodemus <shank@shanked.me>
2020-05-21 13:37:31 +08:00
鱼鱼
1eaa1eb901 Make sqlite db path configurable 2020-05-20 19:44:48 +08:00
Lucas Nicodemus
b76d906c59
Overhaul debug logging
Debug logging now provides ConsoleDebug and ILog has been updated to
support the concept of debug logs. Debug logs are now controlled by
config.json instead of by preprocessor debug flag.
2020-05-19 22:04:10 -07:00
Lucas Nicodemus
70dd72443d Update copyright to 2019 again
Fixes #1658, most likely.
2019-03-29 17:16:37 -07:00
Enerdy
447d801dbc Clean up xml comments and descriptions in ConfigFile.cs
Remove property name from start of xml comments
xml comments now almost always match the property's description
Improve grammar in both comments and descriptions overall
2018-10-21 19:52:46 +01:00
Lucas Nicodemus
569b350cea Update to Pryaxis, 2018 part 2
If there's one thing I learned in this exercise, it's that letting
people add random python scripts to the repo like gpltext.py that
promise to be easier than find and replace is a bad idea.
2018-01-01 02:20:56 -07:00
Lucas Nicodemus
8d934ef08f Update to 2018 2018-01-01 02:17:21 -07:00
Chris
cd27a981cb
Merge branch 'general-devel' into old-code 2017-12-28 01:55:22 +00:00
Lucas Nicodemus
793cfcb842 Remove broken noclip detection
See the changelog entry for this. Basically, it's worse to keep
confirmed broken noclip detection in, even if it detects noclip 90% of
the time, because a random hacker can make a better noclip system and
just evade it 100% of the time by exploiting holes.
2017-12-26 20:28:38 -07:00
Lucas Nicodemus
cd80edb2f7 Remove unused, deprecated REST config option 2017-12-26 19:57:26 -07:00
Lucas Nicodemus
8708d55d86 But still use discouragement colors 2017-12-06 17:39:09 -07:00
Lucas Nicodemus
e91968ca91 Revert "Remove superadmin customization config options"
This reverts commit 1e68ac22c7.
2017-12-06 17:35:51 -07:00
Lucas Nicodemus
1e68ac22c7 Remove superadmin customization config options 2017-12-02 14:25:33 -07:00
White
c4a3a9fb67 Updated Copyright for 2017 2017-03-13 12:17:16 +10:30
White
94fb0e18b7 Deprecated the RESTLimitOnlyFailedLoginRequests config option 2017-01-31 11:23:52 +10:30
Lucas Nicodemus
678f6c7cf8
Update to Mintaka (thanks @enerdy) 2016-12-06 17:36:44 -07:00
Lucas Nicodemus
a0c4864567
Removed all obsolete methods from TShock 2016-10-23 06:09:17 -06:00
White
6151c86630 Removed the old REST model.
This includes the following endpoints:
* `/status`
* `/v2/players/read`
* `/v2/server/rawcmd`
2016-10-23 21:52:25 +10:30
Lucas Nicodemus
dce26d6928 Merge pull request #1310 from Simon311/general-devel
Fix for HealOtherPlayer exploit, also fix #1309
2016-10-17 08:51:19 -06:00
Simon
68799d9d20 Fix description 2016-10-17 16:17:44 +03:00
Simon
1460a7ad91 Fix for HealOtherPlayer exploit, also fix #1309 2016-10-17 15:51:49 +03:00
Adilson Carvalho
49b4effe74 Changed year to 2016 on all GPL headers 2016-10-16 17:06:02 -02:00
Zt Wang
c6811c98ed Add protection of gem locks in region 2016-06-21 22:34:15 +08:00
Enerdy
b16ff6efc7 Improve documentation of ConfigFile.cs 2016-06-16 22:16:14 +01:00
White
86e741a3cd Removed obsolete DCU config options 2016-05-27 14:13:15 +09:30
White
9c7d0f08e2 Deprecated PacketBufferer as its function is now fulfilled by SendQ 2015-11-23 11:50:24 +10:30
George
09a8f95a70 Added rate limiting to RESTful API
Added token bucket and timer to degrade token bucket

Modified REST API rate limiting

Changed limiting to only be on token create and v2 token create
Added config options to choose time limits
Passed HttpContext to the execute method of endpoints

Made blocking failed API logins optional

Changed error codes on failed login to be ambiguous
Added config to decide whether all or failed logins are limited

Changed config variable names

Cleaned up duplicate code in REST rate limiting

Fixed my typo

Changed error 431 to 403
2015-09-24 15:47:46 +01:00
White
33739c4f07 Added a new Disable method with flags to determine where the message is logged to.
Obsoleted the old disable method
Added a config option to disable OnSecondUpdate logs (disable message is written only to console if set to true)
Updated all instances of the obsolete Disable method to the new Disable method
2015-09-12 11:33:17 +09:30
Lucas Nicodemus
b922d8722e Deprecate DCU disable; default to on 2015-07-14 04:21:12 -06:00
Lucas Nicodemus
7cc463d886 Update max projectile damage to 1,175. 2015-07-10 01:11:30 -06:00
Lucas Nicodemus
3db238c2fc Add config option to disable autosave messages 2015-07-05 18:36:05 -06:00
Lucas Nicodemus
828ee0fde5 Add config option to enable DCU 2015-07-05 14:30:49 -06:00
Lucas Nicodemus
6cc097fda0 Use int arrays, not float arrays in config
Fixes #914
2015-04-30 15:04:22 -06:00
Lucas Nicodemus
ab3262d971 Document some config file methods
I suppose this is really redundant, ...
2015-04-22 23:32:01 -06:00
Lucas Nicodemus
b91f0ff7b7 Add missing "of."
Through Knowledge, Victory. Through Unity, Peace.
Honor, Valor, Allegiance.
Today. Tomorrow. Forever.
Together We Rise. Together We Prevail.
Forward Unto Dawn.
From Earth, For Earth.
Honor, Valor, Allegiance, Excellence.
Today. Tomorrow. Forever.
Together We Rise. Together We Prevail.
Forward Unto Dawn.
From Earth, For Earth.
Honor, Valor, Allegiance, Excellence.
From Earth, For Earth.
Today. Tomorrow. Forever.
Together We Rise. Together We Prevail.
Forward Unto Dawn.
2015-04-13 19:00:25 -06:00
Lucas Nicodemus
ea18ca4455 Add slight warning about bcrypt to the config file 2015-04-13 18:50:40 -06:00
Lucas Nicodemus
12f893e0cb Require minimum password length of 4, and trim new passwords for whitespace.
Fixes problems reported by @MarioE and @Simon311:
- Users can no longer register with whitespace for a password.
- Users can no longer register with 4 whitespaces for a password.
2015-04-13 14:26:12 -06:00
Lucas Nicodemus
e55c37728f Change config to refer to BCryptWorkFactor instead of WorkFactor.
Change default work factor to 7.
2015-04-13 11:33:04 -06:00