Commit graph

6392 commits

Author SHA1 Message Date
Lucas Nicodemus
c4dcf9bec1
Merge branch 'general-devel' into feature/default-perms 2025-05-08 09:43:28 +09:00
Lucas Nicodemus
e12950b50e
Add workflow for notifying discord for wiki changes 2025-05-08 09:00:49 +09:00
Lucas Nicodemus
aa9b8ff22b
Merge pull request #3097 from Fraku-64/ConsoleFix
Fix console title not updating and world not saving when the last player disconnects
2025-05-07 23:14:50 +09:00
BuildTools
bd2aafe01a Fix console title not updating and world not saving when the last player disconnects 2025-05-07 15:25:49 +02:00
Sakura Akeno Isayeki
f479e27da6
feat: Add schema filtering for Postgres table col scanning
Modifies the query to ensure it correctly retrieves column names by including the schema check.
2025-05-06 12:09:05 +02:00
Sakura Akeno Isayeki
76b6f56a8f
feat: Add spawning pets perm to default group
Add permission for users to spawn pets for default usergroup.
2025-05-06 11:51:59 +02:00
Sakura Isayeki
54b14d6753
Merge branch 'general-devel' into feature/database 2025-05-03 23:06:14 +02:00
Sakura Akeno Isayeki
9c473e35a6
refactor(db/pgsql): Revert SQL queries, lower column casing for PGSQL
Reverts SQL query identifier escaping to simplify queries and improves overall readability by using lowercase column names.

Enhances maintainability and alignment with database conventions by adopting a uniform casing scheme across all SQL operations.

Removes unnecessary complexity in query construction, streamlining the database operations performed within the application.
2025-05-03 19:21:10 +02:00
Lucas Nicodemus
a01d59209d
Merge pull request #3089 from ACaiCat/general-devel
fix(SpawnHandler): player "break" after respawning
2025-04-29 20:10:34 +09:00
Sakura Akeno Isayeki
4c13084eb3
fix(db): Fix casing for regions and warps 2025-04-29 02:05:51 +02:00
Sakura Akeno Isayeki
de602a91d4
fix(db): Correct casing and escaping in DB queries
Updates the database queries to handle casing inconsistencies
and improves SQL query parameter escaping for better
security and compatibility.

Refactors group existence checks for simplicity, enhancing
readability and maintainability.

Addresses issues related to unique constraints in user
registration by improving error handling for duplicate
usernames.
2025-04-29 01:38:32 +02:00
Sakura Akeno Isayeki
2d839e3609
fix(db/postgres): Resolve SQL identifier casing issues
Improves SQL query execution by ensuring proper casing for identifiers across various database types, particularly for Postgres.

Enhances security and compatibility by using an identifier escaping method, preventing potential errors due to case sensitivity in SQL queries.

Addresses potential issues with existing queries for better reliability and consistency.
2025-04-29 00:47:19 +02:00
Sakura Akeno Isayeki
69b98980f1
feat(db): add Postgres support to configuration
Extends database configuration to support Postgres in addition to existing SQLite and MySQL options.

Includes new settings for Postgres host, database name, username, and password.

Implements a connection builder for Postgres, ensuring proper error handling when connecting.

Updates dependency to include Npgsql for Postgres connectivity.
2025-04-28 15:51:27 +02:00
Sakura Akeno Isayeki
084411f847
refactor(db): Update SqlQueryBuilder references + Various refactors
Consolidates the creation of SQL query builders across multiple classes to ensure a unified approach for database operations.

Replaces manual type checks and specific query creators with a generic method for better maintainability and to prevent errors.

Improves code readability and reduces duplication, facilitating easier updates in the future.
2025-04-28 15:51:26 +02:00
Sakura Akeno Isayeki
27fde1f9ac
feat(db): Add Postgres to SQL connection types + Refactor matching logic
Implements pattern matching for easier identification of database types.

Adds support for Postgres alongside existing Sqlite and MySQL types, enhancing flexibility for database connections.

Updates enum to include Postgres type.
2025-04-28 14:17:59 +02:00
Sakura Akeno Isayeki
f28f1bf536
feat(db): Add PostgreSQL query creator implementation
Implements a query creator for PostgreSQL, allowing for proper database type mapping and table creation functionalities.

Enhances the library's database support by incorporating PostgreSQL-specific features such as SERIAL/BIGSERIAL for auto-increment columns and improved escape handling for table names.

Improves the extensibility and compatibility of the database framework with different SQL databases.
2025-04-28 14:09:10 +02:00
Sakura Akeno Isayeki
8a75b1fdc5
refactor(db): Move DbQueryBuilders to separate namespace
Removes obsolete query builder interface and implementations.

Introduces a new namespace for query-related classes to enhance organization.

Updates various database managers to use the new query utilities, promoting code reuse and maintainability.

Enhances query functionality, ensuring better consistency across the codebase.
2025-04-28 14:06:02 +02:00
Sakura Akeno Isayeki
0021f9884d
refactor(server/db): Move database connection logic to separate class
Implements a DbBuilder class to streamline the creation of database connections for both SQLite and MySQL storage types.

Enhances error handling for database setup and ensures that necessary directories are created dynamically based on configuration settings.

This refactor improves code maintainability and readability, consolidating connection logic into a dedicated builder class.
2025-04-21 14:04:27 +02:00
Nightklp
43daa67465
Update TShockAPI/Bouncer.cs
Co-authored-by: Arthri <41360489+Arthri@users.noreply.github.com>
2025-04-04 12:49:31 +08:00
Nightklp
3af71c70fe
Update TShockAPI/Bouncer.cs
Co-authored-by: Arthri <41360489+Arthri@users.noreply.github.com>
2025-04-04 12:48:09 +08:00
Cai
57a3173a4d fix(SpawnHandler): player "break" after respawning 2025-04-04 01:58:55 +08:00
Nightklp
f814d568e5
Update Bouncer.cs
return a item when a item frame was interacted in protected region you do not have permission with
2025-04-03 16:21:57 +08:00
LaoSparrow
596d7873b7 fix(SendTileRectHandler): unable to place LogicSensors 2025-03-25 15:27:43 +08:00
Lucas Nicodemus
99e37ccba4
Merge pull request #3076 from sgkoishi/pr3076
Fix Pryaxis/TShock#3073
2025-03-18 17:08:58 +09:00
Lucas Nicodemus
d595a3fe0a
Merge branch 'general-devel' into pr3076 2025-03-18 17:04:35 +09:00
SGKoishi
413a2b91e3
Fix Pryaxis/TShock#3073 2025-03-18 17:17:45 +09:00
Lucas Nicodemus
5236f442b4
Merge pull request #3074 from LaoSparrow/fix-sendtilerecthandler
fix(Bouncer/SendTileRectHandler): two typos which causes incorrect validating range
2025-03-18 17:03:59 +09:00
LaoSparrow
988042e6c1 fix(Bouncer/SendTileRectHandler): two typos which causes incorrect validating range 2025-03-17 22:12:54 +08:00
Lucas Nicodemus
29477ab305
Update version codename 2025-03-15 17:33:04 +09:00
Lucas Nicodemus
695cf67c41
Merge pull request #3067 from sgkoishi/fix523
Fix some confusion introduced by 98eed42 and b184133
2025-03-15 17:31:25 +09:00
SGKoishi
ea5c274279
Add default permissions 2025-03-15 14:21:28 +09:00
SGKoishi
4e26051869
Fix some confusion introduced by 98eed42 and b184133 2025-03-15 14:09:00 +09:00
Lucas Nicodemus
de30678153
Update PR template to remove changelog 2025-03-12 06:03:35 +09:00
Lucas Nicodemus
e99655bb80
Update changelog file for the last time 2025-03-12 06:01:47 +09:00
Lucas Nicodemus
db9c47d7c0
Version tick: 5.2.3 2025-03-10 01:22:38 +09:00
Lucas Nicodemus
56041f2c1a
Merge remote-tracking branch 'ghsa/handshake-final-update-fix' into general-devel 2025-03-10 01:08:28 +09:00
Lucas Nicodemus
cd34ca8a4c
Merge pull request #2874 from drunderscore/feature/properly-seed-group-names-in-database
Seed initial group database with `default` and `guest` names from config
2025-03-10 00:59:49 +09:00
Lucas Nicodemus
18ffe08293
Merge branch 'general-devel' into feature/properly-seed-group-names-in-database 2025-03-10 00:56:13 +09:00
Lucas Nicodemus
272813b0af
Merge pull request #3027 from Arthri/add-moondial-permission
Add permission for Moondial and unrecognized SFX
2025-03-10 00:52:59 +09:00
Lucas Nicodemus
329fce0089
Merge branch 'general-devel' into feature/properly-seed-group-names-in-database 2025-03-10 00:51:37 +09:00
Lucas Nicodemus
c89c34b356
Merge branch 'general-devel' into add-moondial-permission 2025-03-10 00:49:27 +09:00
Lucas Nicodemus
1c724901b0
Merge pull request #2946 from AgaSpace/playerdata-changes
PlayerData changes
2025-03-10 00:42:59 +09:00
Lucas Nicodemus
13a4a0864b
Merge branch 'general-devel' into playerdata-changes 2025-03-10 00:39:33 +09:00
Lucas Nicodemus
ee40ab0a52
Merge pull request #3031 from PotatoCider/general-devel
Rewrite: Partially fix bed spawning for SSC
2025-03-10 00:24:27 +09:00
Lucas Nicodemus
531ec1376c
Merge branch 'general-devel' into general-devel 2025-03-10 00:20:50 +09:00
Lucas Nicodemus
83db803016
Merge pull request #3060 from Arthri/fix-infinities
Bounce infinite or NaN player, projectile, or item velocity / position
2025-03-10 00:20:09 +09:00
Lucas Nicodemus
25644449e8
Merge branch 'general-devel' into fix-infinities 2025-03-10 00:16:22 +09:00
ohayo
1abb53b22e
Update TShockAPI/TSPlayer.cs
Oops

Co-authored-by: Chris <2648373+QuiCM@users.noreply.github.com>
2025-03-04 21:01:01 +10:00
ohayo
701a7d1ca0
Update TShockAPI/TSPlayer.cs
Co-authored-by: Chris <2648373+QuiCM@users.noreply.github.com>
2025-03-04 21:00:33 +10:00
Lucas Nicodemus
c9cbee104b
Merge pull request #3064 from LaoSparrow/handle-msg-24
fix(GetDataHandlers): handle and ignore `NpcItemStrike(msgid 24)`
2025-03-01 09:21:11 +09:00