Commit graph

323 commits

Author SHA1 Message Date
ProfessorXZ
d5c7dab03d Use packet 107 for sending chat messages 2016-07-29 10:21:24 +02:00
White
ad2f56e251 Added detail to the TSPlayer.HasPermission method comments 2016-07-06 22:06:15 +09:30
Enerdy
dbd6228cc7 Revert "Make TSPlayer.SendMessage use the smart chat packet"
This reverts commit 653f6b834f.
2016-05-29 23:15:48 +01:00
Enerdy
653f6b834f Make TSPlayer.SendMessage use the smart chat packet 2016-05-27 01:00:35 +01:00
White
1a11beded7 Removed readonly from TSPlayer's data field so that it can actually be used 2016-05-18 13:03:17 +09:30
White
457b3d40b3 Changed the GetData<T> and SetData<T> components of TSPlayer, and added RemoveData and ContainsData 2016-05-16 16:45:00 +09:30
White
275ca6f9d1 Added a ConcurrentDictionary for plugin data to TSPlayer 2016-05-16 15:30:56 +09:30
Enerdy
7f9865bf5b TempGroups now override the group's permissions again instead of simply extending them 2016-01-13 17:17:04 +00:00
Enerdy
81fff9bd66 Pass down the permission being checked to the EventArgs (thanks @white) 2016-01-11 22:34:22 +00:00
Enerdy
aa419283a9 Add PlayerPermission hook, replace p.Group.HasPermission by p.HasPermission everywhere possible. 2016-01-11 14:37:02 +00:00
White
7dbebb2b9a Moved TSServerPlayer and PlayerData classes into their own files 2016-01-10 13:01:11 +10:30
Tyler Watson
4167a9b627 Removed unimportant messages from OnSecondUpdate()
Removed check ignores failed and player disabled for
not being logged in whilst SSC is enabled console messages, as
they are incessant in larger servers.

The messages are not informative as they are not reasonably
actionable by the console, and there is no point in spamming
server operators about such issues.
2015-11-26 19:13:38 +10:00
White
9c7d0f08e2 Deprecated PacketBufferer as its function is now fulfilled by SendQ 2015-11-23 11:50:24 +10:30
White
7d4a96cfee Fixes #1134 and #1131 2015-11-01 12:13:17 +10:30
White
be4d741f2b Extra slot will now function correctly in SSC. Fixes #1036 2015-10-09 17:56:56 +10:30
Beau Hastings
943606c870 Fix #1082
Signed-off-by: Beau Hastings <beausy@gmail.com>
2015-10-09 00:01:57 -05:00
White
90655adf8c ActiveChest is now correctly tracked. Fixes #1122 2015-09-29 18:12:09 +09:30
tysonstrange
65924b9f15 Update TSPlayer.cs 2015-09-17 21:08:53 +10:00
White
33739c4f07 Added a new Disable method with flags to determine where the message is logged to.
Obsoleted the old disable method
Added a config option to disable OnSecondUpdate logs (disable message is written only to console if set to true)
Updated all instances of the obsolete Disable method to the new Disable method
2015-09-12 11:33:17 +09:30
White
218bd98556 Added newline parsing to SendMessage to prevent plugins doing funky stuff to chat 2015-08-26 20:55:32 +09:30
White
a99414e712 Merge branch 'general-devel' of https://github.com/nyxstudios/TShock into general-devel 2015-07-10 16:59:44 +09:30
Lucas Nicodemus
b592a04190 Re-add stack trace 2015-07-10 00:42:57 -06:00
Enerdy
bfe407024e TSPlayer.Disable() now uses new debuffs, removed weird code? 2015-07-10 00:40:20 -06:00
White
e5cbee82e9 Backwards compatibility for databases with pre-existing SSC entries 2015-07-10 14:34:42 +09:30
Lucas Nicodemus
89bbbccdab Revert "TSPlayer.Disable() now uses new debuffs, removed weird code?"
This reverts commit 9df043764c.
2015-07-09 09:41:31 -06:00
Enerdy
9df043764c TSPlayer.Disable() now uses new debuffs, removed weird code? 2015-07-09 15:43:20 +01:00
White
f5e1b79fbb Fixed more of SSC. Trash, held item, piggy items, and safe items are all cleared upon first login. 2015-07-09 16:48:32 +09:30
White
3a3e053d43 Fixed SSC. Note that SSC will NOT work with UUID login before join. UUID login before join has been disabled during SSC unless the player has the "tshock.ignore.ssc" permission.
Removed IncrementKills()
2015-07-05 23:13:54 +09:30
White
af7ee24de4 Fixed /time 2015-07-05 11:32:01 +09:30
Enerdy
b7aaf4092c Fix calls in TShock.cs and TSPlayer.cs 2015-07-04 14:18:17 +01:00
MarioE
d5fb8726cc Extend NetItem 2015-05-04 22:11:10 -04:00
White
dd7ad78d3f Adds a User object to TSPlayer 2015-04-29 17:24:20 +09:30
Zack Piispanen
904c44a1b6 Fix UseServerName config options, to now work properly. Remove duplicate unused code. Ensure that everywhere we use Main.WorldName, we are sending the config server name. 2015-04-09 22:58:32 -04:00
White
b4f2ddef47 DEBUG preprocessor conditional inside method 2015-04-09 15:56:51 +09:30
White
fc1d188951 DEBUG preprocessor checks for ILog 2015-04-08 20:46:12 +09:30
White
d0a962bd0f Notification when temp group expires 2015-04-06 12:31:10 +09:30
White
bddcf81331 Stop timer once it's done 2015-04-06 12:31:08 +09:30
White
cd353c27a3 Time parameter for tempgroup 2015-04-06 12:31:07 +09:30
Zack Piispanen
8a7aae9143 Purge "initial vanilla inventory" from playerdata, and pushed it to the SSC config creation if not existing. 2015-03-16 12:47:44 -04:00
Zack Piispanen
fd2a049ef3 SendMessage(string, color) should invoke SendMessage(string, byte, byte, byte), not SendInfoMessage(string, obj[]) resulting in a infinite loop. Fixes #873 2015-03-02 21:55:00 -05:00
Zack Piispanen
406abce30c Add hooks for Region creation/deletion. Add hooks for Region Enter/Leave. Add member to TSPlayer displaying current region. Set private setters in AccountHooks. 2015-03-01 22:27:49 -05:00
Lucas Nicodemus
803aa643c2 Fix tab/space conflict pointed out by @WhiteXZ in TSPlayer 2015-03-01 12:49:03 -07:00
Lucas Nicodemus
d971db165c Remove several obsolete shims
No need to keep obsolete shims in for several versions of TShock
2015-02-28 20:15:56 -07:00
Lucas Nicodemus
cbce64f1eb Remove more obsolete code; fix tab/space screwup in TSPlayer 2015-02-28 19:37:06 -07:00
Enerdy
a632e7f510 Added specifier to tshock commands 2015-02-28 14:46:44 +00:00
Enerdy
825de3fe73 Update methods using deprecated SendData code and Logs 2015-02-28 13:08:32 +00:00
Zack
f9bf470b1d Tick version and update copyright 2015-01-28 15:29:13 -05:00
MarioE
fd5c696656 Add permission to ignore max HP/MP, add config option for max HP/MP, possibly fix SSC
Fixing SSC is done by sending packet 39 (item disown) to the client.
Until a response, which is packet 22, is received from the client, all
SSC-related packets are completely ignored. This ensures that the SSC
data which is sent is not dirtied due to packets which are processed
during RestoreCharacter or slightly afterwards.
2014-07-28 23:40:27 -04:00
Zack
fb451c6d49 Update license header for 2014 2014-07-10 21:48:33 -04:00
Zack
915e791406 Initial work to move all Server Side Character code to its own module. 2014-07-10 21:09:32 -04:00