James Puleo
23fd7acd79
Improve OnPlayerBuff logic to properly handle buffs from other players
...
Previously, we checked if the target player was null, before checking if
their ID was out of bounds, so the check was moved to be first.
We now check if the buff being applied is within bounds.
We introduce `AddPlayerBuffWhitelist` to replace `WhitelistBuffMaxTime`,
which allows us to specify a maximum amount of ticks a buff can be
applied to another player for, and if it can be applied without the
target being in PvP. If a buff is not within this array, it is *not*
allowed to be applied by other players.
When rejecting from `OnPlayerBuff`, we send a `PlayerBuff` instead of
`PlayerAddBuff`, to sync the current buffs of the target, without
syncing the rejected one.
2022-10-08 13:09:54 -04:00
James Puleo
16d48a4a56
Fixed HandlePlayerAddBuff data handler always being marked as Handled
...
This would cause all `PlayerAddBuff` packets to always be rejected,
causing desync, and general annoyance, as it meant any PvP items that
applied buffs never worked.
2022-10-08 11:54:43 -04:00
Lucas Nicodemus
83427106a5
Merge remote-tracking branch 'punchready/general-devel' into general-devel
2022-10-07 20:41:46 -07:00
Lucas Nicodemus
ae578ce184
Merge remote-tracking branch 'tbc/fix/paint-rejects' into general-devel
2022-10-07 20:40:17 -07:00
Lucas Nicodemus
62eb0afb18
Merge remote-tracking branch 'drunderscore/feature/bounce-some-new-packets' into general-devel
2022-10-07 20:38:42 -07:00
Luke
d6caeb15cc
Fix hard/mediumcore ban on death
...
Removed the force parameter since it is of no use.
2022-10-07 18:42:31 +10:00
James Puleo
40b07fdc7b
Don't allow players to sync loadout index whilst disabled
2022-10-06 12:24:09 -04:00
renovate[bot]
dd54f11c73
Update dependency Microsoft.Data.Sqlite to v6.0.9
2022-10-06 16:22:58 +00:00
Armano den Boef
b49810ae06
Merge branch 'general-devel' into fix/paint-rejects
2022-10-06 12:09:20 +02:00
Arthri
c313b0733e
Remove obsolete resources
2022-10-06 13:23:46 +08:00
Rozen
d1505127dd
Revert accidental removal of OnPaintTile check
2022-10-05 21:59:49 +02:00
Rozen
62d35533a0
Init
2022-10-05 21:58:09 +02:00
James Puleo
aa17f013c1
Use a string interpolation and escape single quotes when escaping tables
2022-10-05 13:57:30 -04:00
Luke
02b8061531
Change nuget package name to tshock instead of tshockapi
2022-10-05 19:36:13 +10:00
Luke
9fb8320d60
Update TShockAPI/TShockAPI.csproj
...
Co-authored-by: Arthri <41360489+Arthri@users.noreply.github.com>
2022-10-04 16:07:22 +10:00
Luke
f87fa90e65
Nuget package information and workflow
2022-09-10 09:07:13 +10:00
Luke
5a98add6de
Fix sqlite null parameters + unit test
2022-09-08 16:08:16 +10:00
Luke
67b06f5e4f
Improve ReduceConsoleSpam module to filter world generation
2022-09-06 23:06:39 +10:00
Luke
aa0bd7deb2
Merge branch 'general-devel' into otapi3
2022-09-06 22:23:34 +10:00
Luke
99ddcb247b
Dependency updates, OTAPI 3.1 & ModFw 1.1
2022-09-05 22:01:33 +10:00
Lucas Nicodemus
1d4d19f961
Version tick: 4.5.18
...
And also, add changelog entry for dependabot change
2022-08-16 20:57:26 -07:00
Lucas Nicodemus
bbc8ef2dab
Merge branch 'h/punchready-fixes' into general-devel
2022-08-16 20:52:21 -07:00
Lucas Nicodemus
9a746a079b
Merge pull request #2632 from Pryaxis/dependabot/nuget/TShockAPI/Newtonsoft.Json-13.0.1
...
Bump Newtonsoft.Json from 10.0.3 to 13.0.1 in /TShockAPI
2022-08-16 20:49:50 -07:00
Lucas Nicodemus
39383c9fff
Merge remote-tracking branch 'punchfix/h/a-new-branch' into h/punchready-fixes
2022-08-16 20:47:21 -07:00
punchready
9358f11e51
Improve comments
2022-08-14 01:22:22 +02:00
Lucas Nicodemus
1c1ab95f4c
Merge branch 'general-devel' into dependabot/nuget/TShockAPI/Newtonsoft.Json-13.0.1
2022-07-27 21:32:11 -07:00
Luke
578df18901
Redo launcher csproj and action to use framework dependent builds
...
This also includes package updates across the entire solution, which shouldn't matter at this stage on this branch.
2022-07-27 21:53:09 +10:00
punchready
cf9240d56d
Support grass mowing
2022-07-27 11:35:21 +02:00
punchready
8b4dc3a1a4
Fix flower boots check, clean up code
2022-07-27 06:23:34 +02:00
punchready
82a095f3cf
fix a region bypass exploit using the ice rod
2022-07-26 08:58:56 +02:00
punchready
681c6de1f7
add strict STR size checking
2022-07-26 08:24:46 +02:00
punchready
abaf414523
Remove tiles which are no longer sent in this packet
2022-07-26 00:01:25 +02:00
punchready
3383c630e3
Strictly filter tile types in send tile rect handling
2022-07-25 11:29:25 +02:00
Anzhelika
b19a928fd8
PlayerHasBuildPermission hook ( #8 )
2022-07-24 19:23:10 -04:00
NotGeri
953622c8e1
Add -worldevil startup parameter
2022-06-29 17:10:18 +02:00
dependabot[bot]
516b8efca4
Bump Newtonsoft.Json from 10.0.3 to 13.0.1 in /TShockAPI
...
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json ) from 10.0.3 to 13.0.1.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases )
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/10.0.3...13.0.1 )
---
updated-dependencies:
- dependency-name: Newtonsoft.Json
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-22 16:34:04 +00:00
punchready
a03114650b
chore: clean up formatting
2022-05-10 12:40:48 +02:00
punchready
7e381d61f6
fix: use more robust parsing of large timespans
2022-05-08 10:01:02 +02:00
Lucas Nicodemus
07becc3c8f
Change language from fatal startup exceptions
...
The previous language was true but slightly unhelpful to non-native
English speakers and users who aren't familiar with server software.
When a fatal startup exception occurs now, TShock tells you what this
means and that it won't be able to start until this is resolved.
2022-04-02 11:53:53 -07:00
Lucas Nicodemus
49a2dce59e
Merge remote-tracking branch 'origin/general-devel' into otapi3
2022-04-01 01:14:01 -07:00
Lucas Nicodemus
9c24540f30
Merge branch 'general-devel' into feature/teleportation-potion-protection
2022-04-01 01:13:08 -07:00
Lucas Nicodemus
32f2f6a33d
Merge branch 'general-devel' into otapi3
2022-04-01 01:10:00 -07:00
Luke
b01c75b274
Remove older SQLite SetDllImportResolver call
2022-03-27 21:54:28 +10:00
Luke
c063aabbc0
Switch to Microsoft.Data.Sqlite for arm64
...
There is a slight change the the way QueryResult works in order to satisfy the variances in the new library.
Disposing of the command with the reader appears to solve this, and hopefully, with minimal impact to plugins.
2022-03-27 21:38:58 +10:00
Luke
699047d119
Bump TSAPI/OTAPI & other deps for arm64
...
This should allow monomod hooks to run on a raspberrypi (no apple silicon yet)
2022-03-27 19:31:43 +10:00
gohjoseph
516add7803
Fix GiveItem not working if the player is in lava
2022-03-21 01:17:30 +08:00
James Puleo
b07497ca2b
Only allow using Teleportation Potion and friends whilst holding them
2022-03-19 17:05:02 -04:00
Lucas Nicodemus
1e5e3cd864
Version tick: 4.5.17
2022-03-18 20:35:50 -07:00
gohjoseph
3805bb8ca2
Fix mobs not dropping picked up coins
2022-03-18 22:35:43 +08:00
gohjoseph
203b9bf281
Remove unneeded kick display adminUsername
2022-03-18 01:56:59 +08:00