Commit graph

3813 commits

Author SHA1 Message Date
Chris
c3a074336d
Merge branch 'general-devel' into feature/force-character-gamemodes 2021-08-02 20:05:59 +09:30
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
da8d7d4e70
Add "" for acc:account name
https://github.com/Pryaxis/TShock/issues/2382#issuecomment-870062082
2021-07-26 08:35:30 -04:00
stacey
e1b78fe71f
Add ban usage examples + minor grammar & visual fixes for ban help
Added usage examples for:
- banning offline player by account
- banning offline player by ip
- banning online player by index

Added ban help examples after ban help commands and fixed a few minor visual/grammar issues relating to ban help
2021-07-25 22:20:59 -04:00
stacey
838c03ce3f
Make UUID login help more descriptive
Co-authored-by: Lucas Nicodemus <shank@shanked.me>
2021-07-25 15:45:43 -04:00
stacey
fc2330458e
Change to independent checks and use colour differentiation 2021-07-24 22:47:28 -04:00
stacey
b53f62a9c6
Merge branch 'general-devel' into patch-29 2021-07-24 20:43:20 -04:00
stacey
c6e6a55977
Merge branch 'general-devel' into patch-31 2021-07-24 20:42:17 -04:00
stacey
5f39563781
Merge branch 'general-devel' into patch-32 2021-07-24 20:42:01 -04:00
Lucas Nicodemus
3ba1e7419d Rename game commands region
For compliance purposes
2021-07-24 17:40:42 -07: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
stacey
86b5454854
Refactor for readability 2021-07-24 20:37:09 -04:00
James Puleo
a40effd55e
Introduce SoftcoreOnly config option to allow only softcore characters
to connect.
2021-07-24 20:22:22 -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
b5c1640058
Refactor: use more human-readable ProjectileID 2021-07-24 20:08:51 -04:00
stacey
347a23a8bc
Add DisablePrimeBombs to World Settings 2021-07-24 19:55:38 -04:00
stacey
11463930f3
Add DisablePrimeBombs to OnProjectileSetDefaults 2021-07-24 19:53:13 -04:00
Killia0
9b249d72a8
Merge branch 'general-devel' into upstream-general-devel 2021-07-24 19:48:54 -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
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
stacey
640c4ebdb5
Slightly even better idea I just realized 2021-07-19 20:25:20 -04:00
stacey
1521c8b28e
Improved login error messages and onboarding process
Added config based checks so error messages only tell what is relevant to the user. Doesn't make any sense to tell them you can do /login when UUID is set to false because they will just get the same error message again. Also added an additional info message to the onboarding/password registration process so the next steps will be more obvious for first time users.
2021-07-19 20:03:39 -04:00
Killia0
154bee58f1 Typo fixes on comments/strings
My first PR contribution to TShock is spellcheck huh, frankly I don't know why but hey I could spare the time for this and caught some stuff.
2021-07-16 14:53:37 -04:00
stacey
10e0b33e82
Add Lunatic Cultist summon permission check
Didn't bother adding the broadcast stuff bc there's 4 cultists and it'll prob spam the chat if multiple players kill them at around the same time
2021-07-16 14:19:37 -04:00
stacey
26460a13c4
Merge branch 'general-devel' into patch-29 2021-07-16 14:07:32 -04:00
stacey
d61ebb4111
Update TSPlayer.cs 2021-07-16 12:20:13 -04:00
stacey
89695c3965
separate online players / max slots in stock MOTD 2021-07-15 16:13:51 -04:00
stacey
1e9804a13d
Separate current player count and max server slots 2021-07-15 16:12:36 -04:00
stacey
b8b86a42fd
Add space after comma so names look less clustered 2021-07-15 15:51:14 -04:00
stacey
2dc887266d
Add player count 2021-07-15 15:50:02 -04:00
stacey
b88d1f562f
Add player count support for MOTD 2021-07-15 15:48:27 -04:00
stacey
2a6bc51dd6
Change EoL summon to be more consistent w/ config
now this should be more in line with how other boss summons are currently handled, also made the sundial user messages better thx to quake's suggestions
2021-07-11 23:11:28 -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
65bbd80ca6
Add perm check for EoL + Sundial ForceTime check
If the player does not have permission to summon bosses, they should not be able to kill Prismatic Lacewing, which summons the Empress of Light. 
Using the Enchanted Sundial while ForceTime is set to day or night (via config) will conflict with TShock's continued attempts to set it back to day or night, this makes the world appear very glitchy.
2021-07-04 21:33:48 -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
9c748abda8 Minor: add h, this commit is worthless, do not read
Told you.
2021-06-19 01:08:55 -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
a88c44e0db Remove old ConfigFile class
This was deprecated and replaced.
2021-06-13 13:20:43 -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
eba106a6da Add obvious deprecation warnings to comments
(In the old ConfigFile to prevent repeat incidents of
8cd6bf7d7b)
2021-06-13 00:04:45 -07:00