Commit graph

958 commits

Author SHA1 Message Date
stacey
2b50cbc7b9
Merge branch 'general-devel' into general-devel 2021-09-13 09:52:46 -04:00
Stargazing Koishi
bc5c337b5e
Update /help for /setup change
The auth command was renamed in 8451ef9fb7 but the `/help` command was not updated.
2021-08-31 19:54:40 -07:00
Chris
09a2947cf4
Merge branch 'general-devel' into fix-invalid-groups 2021-08-25 19:16:57 +09:30
stacey
855bdcb57f add color and examples for /gbuff 2021-08-08 21:08:49 -04:00
stacey
de18c5d8da forgot to add colours to /buff 2021-08-07 10:45:35 -04:00
stacey
6754cd48b4 add examples for /buff 2021-08-07 10:04:49 -04:00
stacey
72dab02a61 add example for /heal and custom heal amount
code is mostly based from /slap, now users will be able to heal a target player by a custom HP amount. I deliberately changed the static 600 HP amount to statLifeMax2 so it would use whatever max HP the target player has, this should make it work better w/ plugins that allow you to set your max HP beyond the base game's 600.
2021-08-07 09:50:29 -04:00
quake1337
b32058ac51
Remove the test method from Utils, re-route checks to GroupManager 2021-08-07 13:56:52 +02:00
stacey
4c217bac65 add colours + usage example for /butcher
also added silent support
2021-08-06 22:57:07 -04:00
stacey
a92e100836 Fix error msg error in /kill 2021-08-06 22:34:13 -04:00
stacey
57365a0534 add colours and examples for /kill
also a bit of refactoring and other small improvements
2021-08-06 22:22:18 -04:00
stacey
ded2e8544b add examples for Clear + minor refactor 2021-08-06 21:11:00 -04:00
stacey
e88ae85683 add colour msg for Rocket and example
we do a lil refactoring, also added a cyan pastel coloured hex code and made various other little improvements
2021-08-06 20:32:14 -04:00
stacey
ca13b50116 add colour and example for Rocket
along with other minor improvements
2021-08-06 18:02:13 -04:00
stacey
7e4f05eb9c add colours to annoy
and add silent support
2021-08-06 16:29:20 -04:00
stacey
45e1e4288a add colours to /w, /wallow, and /r
and various minor improvements
2021-08-06 16:09:36 -04:00
stacey
cb9740bda6 add colours to Mute
also added silent support
2021-08-06 15:34:14 -04:00
stacey
d82a75836f add colour for ListConnectedPlayers
also various other minor improvements
2021-08-06 15:07:06 -04:00
stacey
196ce87669 add colours for GetVersion
testing something
2021-08-06 14:24:06 -04:00
stacey
ecec84ef09
Fix typo in ban usage examples 2021-08-05 14:09:45 -04:00
Chris
1ccc5ced8e
Merge branch 'general-devel' into patch-35 2021-08-03 00:46:52 +09:30
stacey
aa4b735163
Refactor for fail fast approach 2021-08-02 11:15:21 -04:00
stacey
f4c2ab80c9
Merge branch 'general-devel' into patch-35 2021-08-02 10:59:33 -04:00
stacey
0ace9fb091
Merge branch 'general-devel' into patch-30 2021-08-02 10:58:03 -04:00
Chris
2709af6168
Merge branch 'general-devel' into patch-33 2021-08-02 19:06:17 +09:30
stacey
818e9ce24b
Add new Respawn command 2021-07-31 13:59:24 -04:00
quake1337
91376ae087
Merge branch 'general-devel' into fix-invalid-groups 2021-07-31 16:38:12 +02:00
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
f56cf80c22
Merge branch 'general-devel' into patch-30 2021-07-24 20:42:48 -04:00
stacey
c6e6a55977
Merge branch 'general-devel' into patch-31 2021-07-24 20:42:17 -04:00
Lucas Nicodemus
3ba1e7419d Rename game commands region
For compliance purposes
2021-07-24 17:40:42 -07: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
stacey
1d2cc0f7d3
fix minor typo 2021-07-24 16:45:30 -04:00
stacey
7cf49b55d8
Update TShockAPI/Commands.cs
Co-authored-by: Chris <2648373+QuiCM@users.noreply.github.com>
2021-07-24 16:44:24 -04: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
stacey
8ebecd9ff2
Add notify msg for online player group change
This makes it more consistent with how /tempgroup works, since that tells the target player of their group change. Also added silent command support.
2021-07-17 14:36:10 -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
quake1337
c759af6d49 Minor update.
- AssertGroupValid now both sends the message and kicks the player
  depending on input parameter.
- /login and DataHandler code is now an identical assert check.
2021-07-13 21:53:54 +02:00
quake1337
048aaf6f0c /login kick -> error, add XML doc to Utils method. 2021-07-13 21:47:27 +02:00
quake1337
48370d74b7 Missing group safeguards.
- Server will no longer start up when the guest or default groups cannot
  be located.
- Players joining with unknown groups assigned to them will be
  disconnected with an error
2021-07-13 21:33:35 +02: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
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
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
933c5f9e49 Fix typo in "Amethyst Gemtree"
🍬
2021-06-11 10:22:39 -07:00