Commit graph

4405 commits

Author SHA1 Message Date
Arthri
1db76035a5 Fix skeletron summon 2024-04-23 20:05:06 +00:00
Arthri
ad36e7eeb6 Add permission for Moondial and unrecognized SFX 2024-04-09 03:43:27 +00:00
ZakFahey
a19ac72e0d Lazy initialize TextLog._logWriter
There is an instance of this in SqlLog that's used as a backup, but since the StreamWriter is created in the constructor, the file is created too. This means that you'll get an empty text log created, every time a server starts up, even if you have text logs disabled. This is especially problematic when you have a multi-server setup with file write conflicts.
2024-02-18 11:36:26 -08:00
Johannes Grimm
aa526223a6 fix: off no save command
Added seting SaveOnSeverExit befor shutting down the server
Fixes #2938
2024-01-30 17:55:39 +01:00
SGKoishi
dbca317639
Update CursedInferno time limit 2023-12-27 13:01:55 -08:00
SGKoishi
cf726368c5
Use seconds as the time unit 2023-12-22 13:19:58 -08:00
SGKoishi
3c2a3f3e53
Add unstaged changes 2023-12-21 20:43:41 -08:00
SGKoishi
b6041a738e
Whitelist the Striking Moment (ParryDamageBuff) buff 2023-12-21 20:40:01 -08:00
Chris
3e64a9b82b
Merge branch 'general-devel' into patch-1 2023-08-15 19:17:35 +09:30
Zoom L1
c9f223e808
Merge branch 'general-devel' into accountgroupcupdate-hook 2023-06-17 19:03:44 +07:00
Zoom L1
f5df85e90e
Merge branch 'general-devel' into playerdata-changes 2023-06-17 19:02:48 +07:00
Zoom L1
228d5c7101
Merge branch 'general-devel' into netitem-changes 2023-06-17 19:00:12 +07:00
AkjaHAsLk1IALk0MasH
87fabd3d26 Removed the "obsolete" tag 2023-06-15 18:44:30 +07:00
AkjaHAsLk1IALk0MasH
723719350b Made PostPlayerCommandEventArgs inherited from HandledEventArgs. 2023-06-15 17:37:22 +07:00
AkjaHAsLk1IALk0MasH
db40d50348 Updated the message 2023-06-15 16:03:43 +07:00
Zoom L1
b40f0e632e
Update TShockAPI/Hooks/PlayerHooks.cs
Co-authored-by: Arthri <41360489+Arthri@users.noreply.github.com>
2023-06-15 16:01:43 +07:00
Zoom L1
21422f25fd
Update TShockAPI/Hooks/PlayerHooks.cs
Co-authored-by: Arthri <41360489+Arthri@users.noreply.github.com>
2023-06-15 15:51:01 +07:00
Zoom L1
e51b9f7874
Merge branch 'general-devel' into group-changes 2023-06-15 13:23:16 +07:00
Zoom L1
fb53bb96bc
Merge branch 'general-devel' into commandhooks 2023-06-15 13:22:32 +07:00
AkjaHAsLk1IALk0MasH
1ef96f9537 Marked the PlayerCommand hook as obsolete. 2023-06-15 13:01:52 +07:00
AkjaHAsLk1IALk0MasH
380f823e61 Added a Run overload to Command.
The overload executes the CommandArgs you want.
2023-06-15 12:00:49 +07:00
AkjaHAsLk1IALk0MasH
ffed36c6fd Added hooks 2023-06-15 12:00:13 +07: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
a6666ff21a Updated the message 2023-06-10 13:59:38 +07:00
James Puleo
b5b72e9f6c
Ensure TSPlayer.PlayerData is non-null whilst syncing loadouts
During connection, we receive a `SyncLoadout` packet before the
`ContinueConnecting2` packet, meaning we have not yet created a
`PlayerData` for this player.
2023-06-09 03:00:45 -04:00
AkjaHAsLk1IALk0MasH
4eb2aa49de Removed unnecessary documentation 2023-06-08 18:11:26 +07:00
AkjaHAsLk1IALk0MasH
3a90029d51 Allowed to receive an item if it is 0. 2023-06-08 16:33:32 +07:00
AkjaHAsLk1IALk0MasH
dc81791134 Removed RGB properties 2023-06-08 12:41:11 +07:00
punchready
149ca8a70c
Remove duplicate conversion spread matching 2023-06-07 03:05:10 +02:00
AkjaHAsLk1IALk0MasH
914d743264 Changed the method from NetItem.Build to NetItem.ToItem. 2023-06-06 19:15:58 +07:00
punchready
07bf66f072
Fix MatchPlacement allowing auto breakable tiles 2023-06-06 13:25:03 +02:00
Chris
d15b25aa06
Merge branch 'general-devel' into patch-1 2023-06-06 20:45:57 +09:30
Chris
cfccc3a871
Merge branch 'general-devel' into patch-1 2023-06-06 20:42:37 +09:30
AkjaHAsLk1IALk0MasH
73e2440043 Added XML documentation. 2023-06-06 16:21:52 +07:00
AkjaHAsLk1IALk0MasH
121afa963c Added a Group.Color 2023-06-06 16:18:48 +07:00
AkjaHAsLk1IALk0MasH
f18243242f Update Group.cs 2023-06-06 16:12:05 +07:00
AkjaHAsLk1IALk0MasH
cc753cf1da Removed unnecessary abstraction. 2023-06-06 16:00:18 +07:00
AkjaHAsLk1IALk0MasH
230d9b0945 Updated the SetUserGroup in the commands. 2023-05-14 12:17:47 +07:00
AkjaHAsLk1IALk0MasH
1e037748c1 Updated the UserManager.SetUserGroup.
Added an exception `UserGroupUpdateLockedException`, which appears when a hook locks a group change.
Added an overload for `UserManager.SetUserGroup`, with the `TSPlayer` parameter (author)
2023-05-14 12:13:56 +07:00
AkjaHAsLk1IALk0MasH
8a0920b6ea Added a hook AccountHooks.AccountGroupUpdate. 2023-05-14 12:08:11 +07:00
AkjaHAsLk1IALk0MasH
22d8575e01 Corrected the UserAccountNotExistException documentation. 2023-05-14 12:04:17 +07:00
AkjaHAsLk1IALk0MasH
b184133a7f Updated the call to the obsolete constructor PlayerData 2023-05-14 10:43:01 +07:00
AkjaHAsLk1IALk0MasH
763519150a Updated the PlayerData.StoreSlot method
Removed the ability to call a method when a slot less than 0 is specified.

Added an overload that takes `NetItem` in parameters.
2023-05-14 10:33:54 +07:00
AkjaHAsLk1IALk0MasH
2e8823434c Updated the PlayerData constructors.
Added a new constructor with a parameter that is responsible for installing TShock items into inventory.

The `TSPlayer` parameter was not used, so I labeled the constructor obsolete.
2023-05-14 10:30:52 +07:00
AkjaHAsLk1IALk0MasH
86be1738cc Added a constructor with arguments taking Terraria.Item. 2023-05-14 10:13:59 +07:00
AkjaHAsLk1IALk0MasH
62b8e5067c Added the `NetItem.Build' method.
The method will create a Terraria.Item instance based on the data from the structure.
2023-05-14 10:13:25 +07:00
AkjaHAsLk1IALk0MasH
c3f5994451 Added optional arguments stack and prefixId to the NetItem constructor 2023-05-14 10:08:02 +07:00
AkjaHAsLk1IALk0MasH
4d92f11cc8 Added the TSPlayer.Hostile property.
It gets `TPlayer.hostile`.
I also wanted to add the ability to change `TPlayer.hostile`, but noticed a property `TSPlayer.Team`. You can only use the `TSPlayer.SetTeam` method to change it. So it's exactly the same here: You can use the method `TSPlayer.SetPvP` (By the way, it should be renamed to `TSPlayer.SetHostile`)
2023-05-14 09:56:47 +07:00
AkjaHAsLk1IALk0MasH
2f7514c0ef Added an overload for TSPlayer.GiveItem
Added `TShockAPI.NetItem` structure to the parameters.
2023-05-14 09:43:18 +07:00