Commit graph

262 commits

Author SHA1 Message Date
Lucas Nicodemus
c5ec45bc02
Support using the scarab bomb (fixes #1808)
Also fixes #1781. Partially fixes #1865.
2020-05-22 23:53:34 -07:00
Lucas Nicodemus
7452d3c91d
Support using bottomless lava bucket
This is in response to discussion #1859. Due to the nature of this
already terrible handler, I refuse to add any other types of checks for
whether or not this item is banned and lava. If you want to ban lava,
ban a lava bucket. Don't ban an infinite lava bucket, because finite
lava is still infinite lava in this topsy turvy game where the client
rules the world.
2020-05-22 23:33:09 -07:00
Lucas Nicodemus
a457e8c9ee
Support lava absorbant sponge (fixes #1852) 2020-05-22 23:22:48 -07:00
Olink
7d83e06e83 Fix the snake flute item. 2020-05-22 18:02:03 -04:00
Olink
836fd1d156
Fix for spawn issues when using SSC and beds
It looks like the only time the client informs the server of the spawn location is via the PlayerSpawn packet. In SSC, understandably, we don't trust any updates from the client if we can avoid it. In this scenario, we have code in PlayerSpawn to check for beds when they attempt to spawn, but no code to handle negative spawn locations. The client sends -1,-1 coordinates when the player has no spawn. We should trust this.
2020-05-22 14:21:15 -07:00
Lucas Nicodemus
d58a26d884
Update CHANGELOG.md 2020-05-21 01:09:37 -07:00
Lucas Nicodemus
341424248c
Add changelog for TShock 4.4.0 Pre-release 5 Pre-release 1 2020-05-20 21:44:23 -07:00
Axeel
773092b7bf
Merge branch 'general-devel' into sqliteconf 2020-05-20 22:46:15 +08:00
鱼鱼
7dcd27c4dd more informative changelog 2020-05-20 22:27:54 +08:00
鱼鱼
6372bafa47 update changelog 2020-05-20 21:34:44 +08:00
鱼鱼
27b4a10619 Update changelog 2020-05-20 19:52:17 +08:00
Lucas Nicodemus
8d96e2114a
Update changelog again 2020-05-19 23:52:18 -07:00
Lucas Nicodemus
e6df3edeec
Merge branch 'general-devel' into h/betterlogs 2020-05-19 23:02:46 -07:00
Lucas Nicodemus
145885beb3
Remove /confuse command 2020-05-19 22:26:45 -07: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
ad8a95643b
Reconcile changelog with latest release
UwU
2020-05-19 20:49:12 -07:00
Asada shinon
57a8aacf39 Elaborated Changes. 2020-05-19 19:05:16 +08:00
Asada shinon
0cd8a87178 Update CHANGELOG.md 2020-05-19 19:04:08 +08:00
Lucas Nicodemus
d8747c34e9
Rename /bloodmoon to /tbloodmoon 2020-05-18 18:25:07 -07:00
Lucas Nicodemus
36e920c335
Merge branch 'general-devel' into boncer-buff-fix 2020-05-18 17:50:11 -07:00
Lucas Nicodemus
8525663c35
Update readme, changelog 2020-05-18 01:07:24 -07:00
Lucas Nicodemus
013c58e923
Update TShock version codename 2020-05-18 01:00:23 -07:00
Lucas Nicodemus
926f97b49f
Update OnTeleport hook with new changes 2020-05-17 23:17:03 -07:00
Lucas Nicodemus
16df9bb16c
Update "spawn boss invasion" get data handler
This is really "spawn arbitrary stuff" and it can create invasions,
pets, and bosses now.
2020-05-17 22:44:10 -07:00
Lucas Nicodemus
96468871a0
Merge branch 'general-devel' into 1.4 2020-05-17 11:14:42 -07:00
Lucas Nicodemus
1993900159
Move OnTileEdit ban checks: Bouncer -> Itembans
This change moves the ban checks used to determine, during TileEdit
events, if an item is banned, out of Bouncer and into the newly isolated
ItemBan subsystem. Rather than creating a large pull request for all of
these, I'm just going to create a series of commits and send them in one
at a time. This should result in about one PR per hook that uses item
bans that needs to move.
2020-05-16 21:50:28 -07:00
Lucas Nicodemus
b5f95d5918
Fragments: Separate out item bans (#1595)
* Remove commented out warning disable

* Add initial ItemBans segregation infrastructure

* Add shell for initial OnSecondUpdate stuff

* Add comments yo

* Remove duplicated logic

* Split out more item ban code

This part of the fragments work is primarily aimed at reducing the
complexity of OnSecondUpdate in TShock and moving that check out into
the ItemBans subsytem.

Of major note in this is the removal of "check", which was a string
variable that tracked state and replacement of many of the item ban
activities with sane private methods that are at least somewhat
sensible. Obviously there's a lot to be desired in this system and I'm
really going for a run here by trying to continue a branch from so long
ago that I barely even remember the whole point of existence.

Still to do: GetDataHandlers related item ban code needs to be moved
into its own hook in the ItemBan system. Finally, there is a downside to
some of this: we're basically iterating over players again and again if
we keep this pattern up, which is kinda lame for complexity purposes.

* alt j: comment changes

* Move item ban check out of main playerupdate check

Separates out item ban logic from the rest of GetDataHandlers so that
item bans is more isolated in terms of what fragments is asking for.

* alt-j: convert indentation to tabs

* alt-j: fix botching source code

* Move item ban related chest checks out of gdh

* Remove chest item change detection from item bans

It doesn't do anything. If a user removes an item from a chest, it
bypasses this check. If a user adds an item to a chest, the server seems
to persist the change anyway, even if the event is handled. That's a bug
for sure, but fundamentally, it's not the item ban system's fault.

* Revert "Remove chest item change detection from item bans"

This reverts commit 758541ac5c4d4096df2db05ba2a398968113e1e4.

* Fix logic issues related to item ban handling

Re-implements chest item handling and correctly handles events and
returns after setting handled event state.

* Remove TSPlayer.HasProjectilePermission

In infinite wisdom, it turns out this is not a good method for TSPlayer
to have. It just checks the states of things as per what the item ban
system says is banned and then creates implicit relationships to the
projectile ban system.

Doing this effectively knocks down another external reference to the
item ban system outside of the context of the implementation for the
system itself and its related hooks.

This commit also adds context around what the heck is going on with some
of our more interesting checks as per discussions in Telegram with @Ijwu
and @QuiCM.

* Update changelog

* Remove useless ref to Projectile.SetDefaults

* Change item ban to ban based on ID not strings

I think I was so confused as to why we were passing strings everywhere
that I just felt inclined to continue the trend in previous commits.
2020-05-16 16:27:34 -07:00
Lucas Nicodemus
76150e2500
Provide warning message on invalid group command
This fixes #1742 where users could run group commands that didn't exist
and the server would silently fail rather than giving an error.
2020-05-13 21:10:01 -07:00
Chris
db0fcbd30b Update changelog 2019-04-01 13:35:53 +10:30
Lucas Nicodemus
ae2056ae83
Merge branch 'general-devel' into update-sqlite-binaries 2019-03-31 13:14:16 -07:00
Lucas Nicodemus
abe67c9fa0 Update changelog 2019-03-31 13:12:37 -07:00
Chris
9b75342bff
Merge branch 'general-devel' into player-data 2019-03-30 13:58:19 +10:30
Chris
f3627bb45a
Merge branch 'general-devel' into fix-1653 2019-03-30 13:52:25 +10:30
Lucas Nicodemus
f3e33b7ad7 Remove the stat tracker
The stat tracker has been offline for the last several weeks/months and
nobody has done anything to fix that. Because of that, GDPR, and the
fact that we haven't used it, we're discarding it.
2019-03-29 17:46:44 -07:00
Tyson Strange
dbf9264d12 update change log 2019-02-03 17:19:52 +10:00
Chris
550967b430
Merge branch 'general-devel' into player-data 2018-12-24 13:57:10 +10:30
Chris
10d7a4f35b
Update CHANGELOG.md 2018-12-24 13:56:47 +10:30
AxeelAnder
b2033d9eac update changelog 2018-10-25 22:10:33 +08:00
Rodrigo Rente
944cac1fd3
Update CHANGELOG.md 2018-10-21 20:12:59 +01:00
AxeelAnder
bcbea04002 update changelog 2018-10-20 18:29:11 +08:00
Rodrigo Rente
659e1ebd61
Update CHANGELOG.md 2018-10-15 15:20:21 +01:00
Lucas Nicodemus
ce6dc577cb Reorder changelog for consistency 2018-10-04 07:49:37 -07:00
Lucas Nicodemus
2a5e19da39
Merge branch 'general-devel' into player-data 2018-10-02 20:37:56 -07:00
Chris Nord
207925ddf1 Update Manager now uses TLS.
Solves issue #1633
2018-10-02 16:35:46 -07:00
Ruby Rose
e8cf8879f4 added changelog entry 2018-09-23 14:33:41 +03:00
Lucas Nicodemus
16ec98f684
Merge branch 'general-devel' into player-data 2018-06-08 09:50:15 -06:00
Chris
b70ecb5bc3
Merge branch 'general-devel' into fix-time 2018-05-29 02:31:11 +00:00
Chris
1de7b08486
Merge branch 'general-devel' into banbanban 2018-05-29 02:26:06 +00:00
Hussein Farran
851cc7b34c
Merge branch 'general-devel' into fix-time 2018-05-28 21:25:46 -04:00
Chris
beb0a5ce0d
Update CHANGELOG.md 2018-05-23 11:55:26 +09:30