Commit graph

241 commits

Author SHA1 Message Date
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
Lucas Nicodemus
a5aa31376a Add password verification for BCrypt 2015-04-13 10:06:58 -06:00
Lucas Nicodemus
6e0de64f18 Remove more broken/obsolete/dead code 2015-02-28 19:15:19 -07:00
Lucas Nicodemus
c5625aa896 Merge pull request #870 from NyxStudios/whitexz-general-devel
Adds SQL logging from WhiteX's fork; closes #869
2015-02-28 01:21:54 -07:00
Lucas Nicodemus
7d9c960b0f Add config option for saving the world when last player exists 2015-02-27 00:38:47 -07:00
Lucas Nicodemus
0459dfca11 Adds SQL logging from WhiteX's fork; closes #869 2015-02-25 15:33:35 -07:00
Lucas Nicodemus
f2b2da90d7 Added silent commands & other stuff (see below)
1. Removed old code.
2. Added silent command prefix & supporting code
3. Region ban & spawnmob support silence
2015-02-24 20:55:59 -07:00
Zack
f9bf470b1d Tick version and update copyright 2015-01-28 15:29:13 -05:00
PhoenixICE
0dcbbc9f18 Added Kicking for Damage Threshold 2014-12-18 21:54:12 +08:00
Lucas Nicodemus
05b29081bd Revert "Added npcStreamSpeed configuration parameter." 2014-11-08 17:28:28 -07:00
Sam Eaton
4ac6e70cc5 Attempt at correcting indentation. 2014-11-08 22:36:16 +00:00
Sam Eaton
2a8d3dd09a Added npcStreamSpeed configuration parameter. 2014-11-08 22:18:27 +00:00
MarioE
fd5c696656 Add permission to ignore max HP/MP, add config option for max HP/MP, possibly fix SSC
Fixing SSC is done by sending packet 39 (item disown) to the client.
Until a response, which is packet 22, is received from the client, all
SSC-related packets are completely ignored. This ensures that the SSC
data which is sent is not dirtied due to packets which are processed
during RestoreCharacter or slightly afterwards.
2014-07-28 23:40:27 -04:00
Zack
fb451c6d49 Update license header for 2014 2014-07-10 21:48:33 -04:00
Zack
915e791406 Initial work to move all Server Side Character code to its own module. 2014-07-10 21:09:32 -04:00