Commit graph

513 commits

Author SHA1 Message Date
Chris
54380fcd9a
Merge branch 'general-devel' into patch-29 2021-08-02 19:09:25 +09:30
Chris
2709af6168
Merge branch 'general-devel' into patch-33 2021-08-02 19:06:17 +09:30
Chris
b766b478fa
Merge branch 'general-devel' into patch-31 2021-08-02 18:58:04 +09:30
stacey
da90760585
Add ban usage examples to changelog 2021-07-25 22:32:32 -04:00
stacey
46865d2ad4
Update CHANGELOG.md 2021-07-25 16:10:31 -04:00
stacey
ec4b21e78d
Fix grammar typo 2021-07-24 22:51:38 -04:00
stacey
b53f62a9c6
Merge branch 'general-devel' into patch-29 2021-07-24 20:43:20 -04:00
stacey
59fddbcfd8
Merge branch 'general-devel' into patch-32 2021-07-24 20:39:27 -04:00
stacey
928b619949
Merge branch 'general-devel' into patch-31 2021-07-24 20:38:01 -04:00
Killia0
ba8db77823 Fix changelog 2021-07-24 20:21:07 -04:00
stacey
bf5ba6e0f8
Add Lunatic Cultist summon permission check to Upcoming changes 2021-07-24 20:19:12 -04:00
stacey
b6517652d7
Merge branch 'general-devel' into patch-29 2021-07-24 20:15:12 -04:00
stacey
33f4f20eb3
Merge branch 'general-devel' into patch-31 2021-07-24 20:13:35 -04:00
stacey
5bce3b3492
Update CHANGELOG.md with suggested change
Co-authored-by: Lucas Nicodemus <shank@shanked.me>
2021-07-24 20:13:11 -04:00
stacey
adeb7225e6
Add DisablePrimeBombs to Upcoming changes 2021-07-24 20:01:21 -04:00
Killia0
9b249d72a8
Merge branch 'general-devel' into upstream-general-devel 2021-07-24 19:48:54 -04:00
Killia0
2a80e22e12 Update CHANGELOG.md 2021-07-24 19:47:29 -04:00
Lucas Nicodemus
aae0c9fbae
Merge branch 'general-devel' into general-devel 2021-07-24 16:21:52 -07:00
stacey
c25ec8aac8
Merge branch 'general-devel' into patch-31 2021-07-21 22:27:36 -04:00
Lucas Nicodemus
59f7ea0245
I'm seeing things 2021-07-21 19:22:45 -07:00
Lucas Nicodemus
87d5b769c7 Version tick: 4.5.5 2021-07-21 18:46:01 -07:00
Lucas Nicodemus
5a96688796 Merge branch 'advistory-fix-1' into general-devel 2021-07-21 18:44:11 -07:00
James Puleo
853715cfa7
Update changelog to be _much_ more verbose about GHSA-jq4j-v8pr-jv7j 2021-07-21 21:40:44 -04:00
Lucas Nicodemus
6ad57ba517
Fix changelog typos 2021-07-21 18:14:46 -07:00
stacey
cdafad1d5a
Update CHANGELOG.md 2021-07-19 20:10:11 -04:00
stacey
40f8c93118
Update CHANGELOG.md 2021-07-16 15:01:41 -04:00
stacey
26460a13c4
Merge branch 'general-devel' into patch-29 2021-07-16 14:07:32 -04:00
stacey
fabea62d96
Update CHANGELOG.md 2021-07-15 16:16:19 -04:00
stacey
7e479ea396
Update CHANGELOG.md 2021-07-15 15:57:00 -04:00
stacey
0316f9d502
update change log again 2021-07-11 23:22:31 -04:00
James Puleo
ef603f61a8
Consistently use TilePlacementValid and SendTileSquare in Bouncer.
There are 3 different ways Bouncer uses these:
- Not checking `TilePlacementValid` at all.
- Checking `TilePlacementValid`, rejecting, but then doing a
  `SendTileSquare` to that player.
- Checking `TilePlacementValid`, rejecting. _(this is what we should
  always be doing)_

Not checking `TilePlacementValid` can allow for placement outside of the
world (unknown results), and checking `TilePlacementValid` and sending a
`SendTileSquare` on rejection causes the server to try to frame that
square. In the case of invalid coordinates (negative), framing takes
much longer than expected.
2021-07-10 00:10:45 -04:00
stacey
dd9067a50a
Update CHANGELOG.md 2021-07-04 21:38:34 -04:00
Stealownz
a26ad7dce0 Fix SendTileRectHandler not sending tile rect updates to everyone else
Fixes #2386
2021-07-04 17:20:57 +08:00
Lucas Nicodemus
c5421460ae Re-enable console input via TSAPI submodule bump
This re-enables command input when backgrounded. To disable this
behavior, pass -disable-commands. This patch is from @DeathCradle, who
we love immensely. Please give him all of your money. It's the ethical
thing to do.

Fixes #1450.
2021-06-20 22:24:42 -07:00
Lucas Nicodemus
eb97bdd259 Add helpful note to rest rate-limit error
The rate limiting error message used the term "tokens," which could be
easily misconstrued to refer to REST auth tokens, and not rate limit
leaky-bucket tokens. Since we don't expose the internals of the leaky
bucket to end-users, this error message is essentially just not good.
Without knowledge of a leaky bucket/GCRA, it really makes no sense.

Therefore, this changes the message to indicate that the "tokens" are
rate-limit tokens. It also adds a hint that there's a config setting
that can be changed to raise the limit, which further makes it more
understandable, and also provides a reasonable hint as to what setting
to change to alleviate this problem immediately. This makes it easier
for users to debug and less likely they have to read old docs/wait for help.
2021-06-19 01:04:00 -07:00
Lucas Nicodemus
f4c894ea22 Merge remote-tracking branch 'drunderscore/patch-1' into general-devel 2021-06-14 00:03:31 -07:00
James Puleo
98c1587e44
Print proper expected player ID when handling
spoofed LandGolfBallInCup.

(edited manually on GitHub, should be okay though)
2021-06-14 03:00:35 -04:00
Lucas Nicodemus
146ee41d9e Show world path in /worldinfo
This allows server operators to more easily locate their world paths,
particularly on Linux and macOS, where it isn't very obvious. To
determine where the actively loaded world is, simply run `/worldinfo`.
2021-06-13 23:49:53 -07:00
Lucas Nicodemus
f1481dd0ec Add more helpful notes to changelog re. config
This adds more notes to the changelog for the config file change.
2021-06-13 13:44:39 -07:00
Lucas Nicodemus
a88c44e0db Remove old ConfigFile class
This was deprecated and replaced.
2021-06-13 13:20:43 -07:00
Lucas Nicodemus
95346e36d4 Update credits on the for group deletion
Fixes #2165 (as of 4d46e58865)
2021-06-13 01:15:42 -07:00
Lucas Nicodemus
4d46e58865 Prevent users from removing default guest group
The default guest group is critical and shouldn't be removed without
either TShock doing something like automatically recreating it if it
doesn't exist, or not having a huge problem if it doesn't exist.

I chose to take the easiest path, preventing users from removing it. In
theory the message gives enough context to imply "okay, go change the
group now."

This should be a relatively small edge case but I wanted to resolve it
while I was here.
2021-06-13 01:09:03 -07:00
Lucas Nicodemus
25a7e9e83a Fix warp send nullcheck
@punchready reported that there was an issue with the /warp send command
checking for position != (0,0). I tried to figure out what was going on
here, and I came up dry. I think this is vestigial from some other
database or file format storage. When @MarioE converted everything to
the new warp system, he preserved the check. The problem is that the
check seems to be based on the idea that a non-existent warp would
return the default constructor (which would contain Point.Zero).
Instead, a warp not found returns a null now.

Therefore, the proper thing to do, as implied by @punchready, is to
simply nullcheck this value instead.
2021-06-13 00:14:32 -07:00
Lucas Nicodemus
da163b80ac Allow operators to disable build permission notices
This commit allows server operators to disable build permission failure
notices. This is because some servers wish to have a "silent" operation
mode where the server doesn't send out these messages to users. This
makes sense, e.g., when the server is a "museum" and isn't intended to
be changed.
2021-06-12 23:53:17 -07:00
Lucas Nicodemus
f567486c47 Change default config for respawn timer to 10s
The default value for the respawn timer was 5 seconds, but this always
looked wrong because the default game respawn time is at least 10
seconds for classic characters. This can always be changed in the config
file, but looks significantly better when it matches the default imho.
2021-06-12 22:27:39 -07:00
Lucas Nicodemus
4100ecb64e Fix dead players being able to run /home
This commit fixes an issue where players could bypass the respawn timer
by using /home. Specifically, TShock rejects the command if the player
is dead.
2021-06-12 22:26:01 -07:00
Lucas Nicodemus
fd97c2268a Send success messages as Color.LightGreen
Basically Color.Green looks ugly and Color.LightGreen looks less ugly. I
could see changing the default to something like pure green, but I think
this might cause people to be like "yo why is this so bright."

Now arguably this should be configurable but I'm not going to
revolutionize the world by abandoning far more important work to allow
more artful messages. I just think that Color.Green is ugly enough that
I can't tolerate it.
2021-06-12 13:22:56 -07:00
Lucas Nicodemus
34da464bab Intercept console interrupt and handle nicely
Long ago in the early days of TShock someone asked why CTRL + C wasn't
handled and there was an explanation given along the lines of "something
something not supported on mono something something" or similar.
Attempts were made to try to handle console interrupts unsuccessfully
and the code was ripped out.

However, it's 2021, and we can now handle this signal and do the right
thing (which, ostensibly, is to save the world and shut down). Many
people like me reflexively hit CTRL + C because they want to shut down
the process. It's very infuriating that the current behavior results in
the server just dying and nothing being cleaned up properly.

Therefore, this commit changes the behavior to handle the interrupt,
save the world, and shut down nicely.

(If you still want to shutdown without saving the world, use off-nosave,
or idk, send SIGKILL).
2021-06-12 12:18:55 -07:00
Lucas Nicodemus
933c5f9e49 Fix typo in "Amethyst Gemtree"
🍬
2021-06-11 10:22:39 -07:00
Lucas Nicodemus
bf403a17ec Add /god alias for /godmode
Some of these commands really need more intuitive aliases. Therefore,
I've added another intuitive alias that matches other server mods.
2021-06-06 01:19:12 -07:00