Commit graph

1007 commits

Author SHA1 Message Date
Lucas Nicodemus
a42046e79c
Merge branch 'general-devel' into consistency-playeractive-patch 2025-01-25 23:03:30 +09:00
Stargazing Koishi
f66ad72e2c
Update TShockAPI/Commands.cs
Co-authored-by: punchready <22683812+punchready@users.noreply.github.com>
2023-06-11 22:20:48 -07:00
SGKoishi
5bcde689d4
Fix a typo in gbuff 2023-06-11 22:11:20 -07:00
AkjaHAsLk1IALk0MasH
6d4682ed7e Updated the GodMode field.
* Changed the GodMode field to a property that is controlled by the journey mode.
- Removed the call to godmode in `Commands.ToggleGodMode`.
2023-05-14 09:11:18 +07:00
SGKoishi
59f9440d17
Use same TSPlayer.Active check 2022-12-12 17:15:34 -08:00
James Puleo
5a72121200
Only restrict CC'd players during login whilst SSC is enabled
The player being CC'd does not cause any issues for us if SSC isn't
enabled, so we can relax it's restriction.

This also allows the `RequireLogin` config option to function usefully
again, as it would disable the player, causing them to be CC'd until
they logged in, creating a vicious cycle.
2022-11-09 23:18:03 -08:00
Lucas Nicodemus
a9aa988547
Merge remote-tracking branch 'sgk/patch-morei18n' into general-devel 2022-11-09 23:08:34 -08:00
Lucas Nicodemus
b322c4c1e0
Replace references to Main.max*whatever*count
All of the Main.maxwhatever fields have been replaced with
Terraria.ID.WhateverID.Count fields.
2022-11-09 22:53:29 -08:00
SGKoishi
770b177426
Rewording update 2022-11-04 20:40:07 -07:00
SGKoishi
fde43a7730
More i18n
Strings for player kick/ban, anti-cheating and server logs
2022-11-02 13:42:52 -07:00
Stargazing Koishi
e72896490d
Hide command args when not DoLog
resolves #2779
2022-10-31 14:18:26 -07:00
SGKoishi
6c3415d86b
Minor i18n fix with interpolation
The extractor handle the concatenate incorrectly
2022-10-28 14:01:20 -07:00
SGKoishi
4f6ba61611
Fix several bracket mismatch 2022-10-27 01:53:41 -07:00
SGKoishi
95d6baaf6c
Use full sentence rather than combining words 2022-10-25 08:50:29 -07:00
SGKoishi
f8c0f0ce15
i18n most texts 2022-10-24 21:16:28 -07:00
SGKoishi
d1a6c293f2
i18n commands 2022-10-24 13:49:26 -07:00
SGKoishi
b766e045b5
Use i18n for most string.Format if shown in log, console or client side 2022-10-24 13:38:33 -07:00
SGKoishi
ea9f6b73e0
Update some i18n source text 2022-10-24 12:51:08 -07:00
Lucas Nicodemus
0c8a9c3e57
Add more i18n-compatible strings in commands 2022-10-24 01:23:23 -06:00
Lucas Nicodemus
1523b0d67c
Internationalizify more commands
This is most of commands through to projectile bans.
2022-10-22 18:23:40 -07:00
James Puleo
bfaa47ad1a
Introduce support for loadouts, and save current loadout index to SSC
We needed to modify `NetItem` to know that these new inventory now
exist.

`PlayerData` can now re/store these items, and properly sync them. It
also now knows of the player's currently selected index, and how to sync
it.
2022-10-22 17:36:57 -04:00
Lucas Nicodemus
4632536efb
i18nify some commands
This replaces several strings with i18n-friendly variants so that they
can be internationalized.

Sometimes, the command in English has been reworded, because it was
dumb.

I stopped at GrabUserUserInfo, mostly because I was tired. My
rationale/thinking is that rather than doing a huge commit with the
entire file (which may take a while to build up) it would be better to
get more strings to translators faster. This is because these strings,
in particular, are some of the most important ones to translate.
2022-10-22 01:03:30 -07:00
Janet Blackquill
5549cfeded Use global using static for ICatalog methods 2022-10-21 13:25:02 -04:00
Lucas Nicodemus
1646c5e5fd
Use localized "too many login attempts" string
This is primarily a test of the rube goldberg machine but also,
productive work.
2022-10-21 01:23:39 -07:00
Lucas Nicodemus
c297b4523e
Add i18n support to one string
This is mainly to test the extract CI routine that should automatically
commit after this and add the updated extracted string to the .po
template.
2022-10-20 02:21:59 -07:00
Janet Blackquill
77be338e46 Add i18n system 2022-10-20 02:09:29 -04:00
Lucas Nicodemus
da6a134609
Merge remote-tracking branch 'packmandude/general-devel' into general-devel 2022-10-14 23:19:40 -07:00
Lucas Nicodemus
83427106a5
Merge remote-tracking branch 'punchready/general-devel' into general-devel 2022-10-07 20:41:46 -07:00
PackmanDude
9092cea7ef Apply fix from @punchready 2022-08-15 00:25:26 +03:00
punchready
7e381d61f6 fix: use more robust parsing of large timespans 2022-05-08 10:01:02 +02:00
Lucas Nicodemus
acde508c53 Merge branch 'general-devel' into otapi3 2022-02-28 00:15:06 -08:00
Chris
a3cde701f1
Merge branch 'general-devel' into general-devel 2022-02-22 19:17:08 +10:30
Chris
4aa75fe023
Add suggestion
Co-authored-by: Lucas Nicodemus <shank@shanked.me>
2022-02-22 19:15:58 +10:30
Chris
ed12236c52
Merge branch 'general-devel' into feature/grow-code-dupe 2022-02-22 18:51:01 +10:30
Lucas Nicodemus
78169c87cb Merge remote-tracking branch 'origin/general-devel' into otapi3 2022-02-16 18:44:33 -08:00
0x3fcf1bbd
874b3b2746 Reverted STS change, added STSC, fixed STS/STSC usage. 2022-02-01 16:00:05 +01:00
0x3fcf1bbd
fc16495528
Fixed silent support for lanterns world event.
And fixed smol typo.
2022-01-22 13:47:19 +01:00
0x3fcf1bbd
29c6260d79
Fixed permission being ignored for lanterns event. 2022-01-16 17:13:57 +01:00
0x3fcf1bbd
5e54445818 Added lanterns night event to the worldevent command. 2022-01-15 23:49:37 +01:00
Lucas Nicodemus
c62fca5353 Merge remote-tracking branch 'deathcradle/otapi3' into otapi3 2021-12-07 21:06:48 -08:00
James Puleo
e9b86b8f62
Improved the /grow command to reduce code duplication, use TileID
constants for less ambiguous types.
2021-12-07 03:12:39 -05:00
shell627
acb6a96245 Fix item dupe via /logout & NPC (#2495 issue) 2021-12-01 00:18:02 +06:00
Lucas Nicodemus
87d5b476ea Add current gamemode to /worldmode
To help debug #2516, this commit adds the currently running game mode to
/worldinfo. I didn't bother converting this in the dictionary back since
my primary goal by adding it right now is to debug the currently running
mode, not to necessarily try to parse the data.
2021-11-27 17:32:46 -08:00
Luke
8edd0393e5 Initial OTAPI3 port
TODO: sqlite
2021-11-23 20:49:41 +10:00
Lucas Nicodemus
e303071dce Fix firework command failing without color
After updates to the firework command, a guard was lost, allowing the
switch statement that selected the color to execute on a parameter that
was empty. A guard was added to prevent falling into the switch
statement without enough arguments to match a color.

The default type of firework was manually set to a red firework.

Fixes #2507
2021-11-22 22:16:56 -08:00
Lucas Nicodemus
614211d7a1 Fix respawning players from the server console 2021-11-21 16:35:47 -08:00
Lucas Nicodemus
b17c4cfc13 Add support for disabling IP bans by default
Some proxy users find it irritating when their proxy IP is banned by the
ban command. This helps those users find justice in the world.
2021-11-21 14:30:59 -08:00
Lucas Nicodemus
1aa9956e45 Report correct god mode status to target player
The previous version of the code always told the player having their god
mode toggled the state of the player that issued the command, rather
than their own god mode state. This fixes that issue, and now returns
the correct player's state to the correct player.
2021-11-20 20:02:23 -08:00
Lucas Nicodemus
abb12629ad Add Deerclops to spawnboss command
Fixes #2500
2021-11-20 12:04:55 -08:00
stacey
2b50cbc7b9
Merge branch 'general-devel' into general-devel 2021-09-13 09:52:46 -04:00