Commit graph

418 commits

Author SHA1 Message Date
Zack
2b4faf4d9b
Update TShockAPI/DB/ResearchDatastore.cs
@hakusaro raised a solid point in Discord.

Co-authored-by: Lucas Nicodemus <shank@shanked.me>
2020-05-25 03:11:41 -04:00
Olink
df22a33132 Add some try/catch blocks around the sql commands. 2020-05-25 03:07:54 -04:00
Olink
56b695b80b Add initial support for Journey mode in SSC. 2020-05-25 02:24:03 -04:00
Lucas Nicodemus
35198647a1
Presumptively fix MySQL 8 compat
`Groups` is a reserved name in MySQL 8 and this should fix compat issues
with it.
2020-05-18 18:40:51 -07:00
鱼鱼
1ed95c737e pass compile; add void vault code 2020-05-17 21:38:47 +08:00
Lucas Nicodemus
70dd72443d Update copyright to 2019 again
Fixes #1658, most likely.
2019-03-29 17:16:37 -07:00
Enerdy
f5ccf925bd Logout players when their user account is removed 2018-10-15 14:33:32 +01:00
Ruby Rose
4df8a6f38f add another case to the exception message regex 2018-09-23 14:29:59 +03:00
Ivan
ec78a070a7 Move Region related code into a separate subsystem 2018-04-29 18:33:07 +02: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
332e6b2518 Remove Utils.GetGroup().
This method duplicates Groups.GetGroupByName().
2017-12-29 08:45:29 -07:00
Lucas Nicodemus
17d151b8f8 Move HasBanExpired to Bans.RemoveBanIfExpired().
The ban system needs a full rewrite anyway, but this move removes
something from Utils, puts it closer to its operating point, simplifies
the method, and clarifies what it actually does.
2017-12-29 08:32:45 -07:00
Chris
cd27a981cb
Merge branch 'general-devel' into old-code 2017-12-28 01:55:22 +00:00
Lucas Nicodemus
7c1c88bc65 Remove residual evidence of noclip detection 2017-12-26 20:30:40 -07:00
Lucas Nicodemus
903bd5bb75 Migrate AddBan2 calls to AddBan
No more deprecation warnings on this release #yolo
2017-12-26 20:05:52 -07:00
Lucas Nicodemus
70052d7dbb
Merge branch 'general-devel' into sql_improve 2017-12-09 21:05:16 -07:00
Lucas Nicodemus
bdabf020d2 tshock.admin.createdumps is now a default owner level permission 2017-12-09 15:58:42 -07:00
Ryozuki
1441895559
Merge branch 'general-devel' into sql_improve 2017-12-09 19:04:07 +01:00
Edgar Luque
4575792987 Formatted a bit better and moved SqlColumnException to SqlColumn.cs 2017-12-09 16:45:31 +01:00
Edgar Luque
6a6133f3f7 Add xml comments and DateTime datatype support for SQL 2017-12-09 11:35:31 +01:00
Edgar Luque
07da3d5f58 missed some more declarations 2017-12-08 01:48:08 +01:00
Edgar Luque
6589531868 Renamed TShockAPI.DB 'User' to 'UserAccount' 2017-12-08 01:38:15 +01:00
Lucas Nicodemus
746c5450cc
Merge branch 'general-devel' into ssc-force 2017-12-06 13:07:35 -07:00
Lucas Nicodemus
0902d6f3f8
Merge branch 'general-devel' into ssc-force 2017-12-06 13:01:28 -07:00
Lucas Nicodemus
215fc4a9b1
Merge branch 'general-devel' into rps 2017-12-06 13:00:36 -07:00
Lucas Nicodemus
cdbc37b024 Allow /savessc to work on players that bypass ssc
Fixes #1506
2017-12-03 16:22:46 -07:00
Lucas Nicodemus
9aaf425330 Modify default permission sets to be more modern 2017-12-03 15:04:50 -07:00
Lucas Nicodemus
718525904a Add remaining backbone for banning accounts (sort of)
Frontend still doesn't work properly. In particular:

1. Need a way to list bans by account name.
2. Need a way to unban by account name.
3. Really need a way to change the IP on a ban lol.

Ban system still needs to be be rebuilt fully, but at least this
doesn't necessarily character ban someone if you were going for an IP
ban.

Fixes #1412
2017-12-02 20:41:14 -07:00
Lucas Nicodemus
0edfc6834f Add technical infrastructure for adding account bans 2017-12-02 19:19:17 -07:00
Lucas Nicodemus
0bbd128f13 Implement /su command & default group owner
/su elevates you to superadmin for 10 minutes.
Account creation instructions tell you to use the "owner" group.
If you fail to run a command but have the su permission, you're told
that you can override it.

Fixes #1505
2017-12-02 15:07:19 -07:00
koneko-nyan
6606c7a7b7 Merge branch 'general-devel' into patch-1 2017-10-13 09:30:08 +02:00
koneko-nyan
9d12461f8d Fix some spaces 2017-10-13 09:12:56 +02:00
koneko-nyan
30475be268 Add RegionRename 2017-10-02 17:42:22 +02:00
ProfessorXZ
639ffb3c7c Fix GroupManager.RenameGroup() overwriting unsaved config changes 2017-09-28 16:43:20 +02:00
Lucas Nicodemus
ec435e266e Make our string based error handling more explicit
(Please, someone, please, get rid of this).
2017-09-25 12:18:41 -06:00
ProfessorXZ
08e182f59e All GroupManager.RenameGroup() database calls are now done in a transaction
As pointed out by @hakusaro, in order to prevent any damage during the process all database calls need to be done in a transaction. Transactions allow us to rollback from a pending state in case something goes wrong.
2017-09-23 22:41:41 +02:00
ProfessorXZ
02806a2429 Added support for renaming groups. Fixes #1420 2017-09-21 10:51:37 +02:00
Ivan
a9e1d835b8 Merge branch 'general-devel' into user-equatable 2017-08-05 21:46:39 +02:00
Ruby Rose
685d9964f0 Change enum names for clarity 2017-07-17 09:06:29 +03:00
Ruby Rose
79f66f554f Turn the player hooks into a tristate 2017-07-17 09:06:29 +03:00
Ruby Rose
02be378a2e change doc of Equals 2017-07-17 06:34:30 +03:00
Ruby Rose
5e1be5b19b Fix formatting below IEquatable block 2017-07-17 06:34:30 +03:00
Ruby Rose
c8e31231ba override ToString of user 2017-07-17 06:34:30 +03:00
Ruby Rose
4216501c45 Make User implement IEquatable for more consistent comparisons 2017-07-17 06:34:30 +03:00
Ryozuki
587d1b7390 fix comment typo 2017-07-15 13:32:09 -06:00
Ruby Rose
81cb1381b4 Add hooks for item/projectile/tile bans 2017-06-07 15:32:40 +03:00
ZIT WANG
85b0b7bc6a Fix an itemban issue due to localization 2017-04-26 19:26:54 +08:00
Lucas Nicodemus
2a5efa65ae
Saving work to apply merge changes
Currently moving .name to .Name and things like that from Item
2017-04-19 17:12:38 -06:00
Aaron Goulet
ffe4849747 Default Logout Permissions
Moved Permissions.canlogout to the default permissions group.
2017-04-13 20:22:59 -07:00
Aaron Goulet
d0ff9efc08 Issue #1371: Grant logout permissions by default 2017-04-02 09:07:44 -07:00