Commit graph

927 commits

Author SHA1 Message Date
stacey
f4c2ab80c9
Merge branch 'general-devel' into patch-35 2021-08-02 10:59:33 -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
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
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
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
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
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
Lucas Nicodemus
f811be6cf8 Add /slay alias for /kill
Like all of the other server mods I've used use /slay and not /kill and
it's really frustrating to type the wrong thing so I'm just going to add
an alias and hope nobody else minds.
2021-06-05 20:32:29 -07:00
quake1337
5b9e1dc871 Add WorldInfo broadcast in /worldmode 2021-05-24 10:41:18 +02:00
stacey
a1ddea4f59
Update /gbuff with the same changes
totally forgot this existed
2021-05-14 13:44:37 -04:00
stacey
d2a0a539f4
fix error msg 2021-05-12 22:08:10 -04:00
stacey
306e4d1ab4
fix typo
sigh
2021-05-12 21:45:06 -04:00
stacey
dacc20e9c3
Update buff command HelpText
More properly explain the command functionality
2021-05-12 21:40:44 -04:00
stacey
68c650f4fa
More minor fixes
Reverted default (when no duration is specified) buff duration to 60s, added formula instead of hard coding max duration as per Quake's recommendation, made error message more self-explanatory
2021-05-12 21:36:26 -04:00
stacey
0eadfaba52
Minor fixes 2021-05-12 15:48:38 -04:00
stacey
0d686ea80f
Change duration to actual max value in seconds 2021-05-12 15:39:11 -04:00
stacey
9418e4304f
Change max buff limit from short to int 2021-05-12 13:47:27 -04:00
Lucas Nicodemus
6bb4230bc3 Remove /ungodme
With 1.4.2.2, we no longer need to offer an escape hatch due to the
underlying bug involving godmode being permanently applied to local
players now having been fixed.
2021-04-21 20:16:57 -07:00
Chris
01fc41968d Refactor wallow command & update changelog 2021-04-19 22:04:41 +09:30
Chris
0b890f9507 Merge branch 'general-devel' of https://github.com/Pryaxis/TShock into general-devel 2021-04-19 21:48:37 +09:30
Chris
e80f0bfda5 Add ban ticket ID to ban messages 2021-04-19 21:48:34 +09:30
quake1337
663041e8b0 Fix /r against offline players.
- Offline players will no longer be valid /r targets.
2021-04-17 10:11:49 +02:00
quake1337
3e40ade0ca Added feedback to /ungodme
- The command now tells the user that the operation succeeded.
  Previously it would be a silent command, potentially leaving the user
  wondering if it worked
2021-04-16 10:18:40 +02:00
quake1337
78b72df79d Address JourneyMode Godmode issues
- Add /ungodme to allow unstucking godmode for involuntarily godmodded
  characters
- Warn player about disabling Godmode before disconnecting
- Minor change to command format to reduce code copypaste.
2021-04-16 10:14:46 +02:00
quake1337
4a28d6779f Update casing & remove using static
- god_power -> godPower
- Remove using static on GameContent.CreativePowers, instead fully
  qualify the nested class.
2021-04-16 07:01:11 +02:00
quake1337
207b43e772 Update /godmode to use JourneyMode Godmode power.
- Previous Bouncer checks for GodMode (namely, Hurt) were removed.
- The command now uses the GodmodePower from core Terraria
- The toggle powers (which this command will now make use of) are now
  reset on disconnect to prevent accidentally "gifting" godmode to an
  unsuspecting player.
2021-04-16 06:11:26 +02:00
Chris
c72e64fa5e Add silent command support to spawnboss 2021-04-13 15:15:49 +09:30
Stealownz
4159f6c186 Update firework command to include extra parameter in NewProjectile 2021-04-05 09:49:41 +08:00
Nova4334
709997b728 Rewriting /grow; Adding /wallow 2021-03-21 01:59:44 +01:00
Terrabade
0f42b42d87 Change serverinfo "WinVer" to "Operating system" 2021-02-07 21:19:16 +00:00
Chris
9423febd0a Refactor for new configuration 2020-12-03 17:43:10 +10:30
Chris
514d7ac041 Refactored for 'ticket number' naming
Added 'ban help identifiers' to list known identifiers
Fixed some typos and restructured some logic
2020-11-29 16:22:37 +10:30
Chris
d68b1ed5ad Remove ban conversion command as it now happens automatically 2020-11-29 15:19:14 +10:30
Chris
29170e62a6 Rename unique ID -> ticket number
Also get ban conversion to execute cleanly and clean up after itself
2020-11-29 15:17:49 +10:30
Chris
3e6cdb3c71 Remove ban immunity at the command level.
Ban immunity will be managed when a ban is validated
2020-11-29 14:26:25 +10:30
Chris
cde4cc5f04 Ban rewrite and various other adjustments 2020-11-26 17:20:19 +10:30
Chris
56de9f6684 Ban rewrite 2020-11-15 11:05:04 +10:30