Commit graph

899 commits

Author SHA1 Message Date
AxeelAnder
2ea9a0161b added PlayerZone handler and bouncer, detect lunar towers cheat 2018-10-23 17:22:59 +08:00
AxeelAnder
b9dedd77dc add some anti-cheat code 2018-10-20 18:39:24 +08:00
AxeelAnder
fc38521dbd add NPCAddBuff bouncer 2018-10-20 18:39:07 +08:00
AxeelAnder
6b8f346868 add NPCAddBuff GetDataHandler 2018-10-20 18:29:11 +08:00
Lucas Nicodemus
16ec98f684
Merge branch 'general-devel' into player-data 2018-06-08 09:50:15 -06:00
Chris
9222d8112a Copy pasting is hard 2018-05-22 18:55:59 +09:30
Chris
ae5d508989 Add filtering for packet 96.
Fixes #1605
2018-05-22 18:54:28 +09:30
Chris
658492a164
Initialize PlayerData on connect
This way every player has non-null player data. Should close #1460
Requires testing
2018-05-21 15:12:55 +09:30
Lucas Nicodemus
c06e000997
Merge branch 'general-devel' into regions 2018-05-06 09:07:15 -06:00
Ivan
c71ed3953f Move OnGemLockToggle to RegionHandler 2018-04-29 21:03:04 +02:00
Egor
d5da93563e s/PlayerID/PlayerId 2018-04-27 19:52:20 +03:00
Egor
fd83748b9f Change banning admin name for hardcore bans to "TShock"
Also added some comments and formatting
2018-04-27 10:19:26 +03:00
Egor
1eae5ae671 Remove TSPlayer.InitSpawn 2018-04-27 08:41:57 +03:00
Egor
9ac3dfa228 Make Kick/BanOnMediumcoreDeath behave like their Hardcore equvivalents
fixes #1618
2018-04-27 05:44:22 +03:00
Lucas Nicodemus
569b350cea Update to Pryaxis, 2018 part 2
If there's one thing I learned in this exercise, it's that letting
people add random python scripts to the repo like gpltext.py that
promise to be easier than find and replace is a bad idea.
2018-01-01 02:20:56 -07:00
Lucas Nicodemus
8d934ef08f Update to 2018 2018-01-01 02:17:21 -07:00
Lucas Nicodemus
df4da817b6 Rename Utils.ActivePlayers to something better.
Issues related to ICollections being null led to reverting migrating
this to TSPlayer until a better solution is uncovered.
2017-12-31 01:30:13 -07:00
Lucas Nicodemus
a5cad284a8 Revert "Remove Utils.ActivePlayers"
This reverts commit b613fdcda6.
2017-12-31 01:28:21 -07:00
Lucas Nicodemus
332e6b2518 Remove Utils.GetGroup().
This method duplicates Groups.GetGroupByName().
2017-12-29 08:45:29 -07:00
Lucas Nicodemus
152c67f27c Move Utils.Ban -> TSPlayer.Ban.
Arguably, this is one of the more controversial methods that's being
kept. Because it kicks and bans a target player, it's more useful than
removing it and requiring people to interface with the TShock Ban
Manager directly (not a good move for the future). Whether or not this
method sucks is up for debate, but right now I think it's totally fine
to keep it around in a different location.
2017-12-29 08:00:30 -07:00
Lucas Nicodemus
2f7c146c89 Merge remote-tracking branch 'origin/general-devel' into oop 2017-12-27 19:01:38 -07:00
Lucas Nicodemus
1ea04ffd4f Remove Utils.ForceKick; use TSPlayer.Kick.
Some anti-cheat calls were changed to "You have been Bounced." I don't
think we need to tell clients why they were disconnected so they can
tune their hacks better.
2017-12-27 18:01:53 -07:00
Lucas Nicodemus
b613fdcda6 Remove Utils.ActivePlayers
Duplicated what an array already stored and told us, but added code and
was obscure. It predated TSPlayers existing.
2017-12-26 21:14:16 -07:00
Lucas Nicodemus
793cfcb842 Remove broken noclip detection
See the changelog entry for this. Basically, it's worse to keep
confirmed broken noclip detection in, even if it detects noclip 90% of
the time, because a random hacker can make a better noclip system and
just evade it 100% of the time by exploiting holes.
2017-12-26 20:28:38 -07:00
Chris
530f62c704
Merge branch 'general-devel' into crp 2017-12-24 01:25:37 +00:00
Lucas Nicodemus
6b6cce3640 Patch docs, fix warnings, update changelog 2017-12-23 15:51:09 -07:00
Lucas Nicodemus
ad83c39300 OnPaintWall now uses GetDataHandledEventArgs. 2017-12-23 15:40:14 -07:00
Lucas Nicodemus
6814aabf6e OnTeleport now uses GetDataHandledEventArgs. 2017-12-23 15:35:38 -07:00
Lucas Nicodemus
1ff2d6566b OnPlayerBuffUpdate now uses GetDataHandledEventArgs. 2017-12-23 15:34:28 -07:00
Lucas Nicodemus
cd07aaf62c OnPlayerAnimation now uses GetDataHandledEventArgs. 2017-12-23 15:32:57 -07:00
Lucas Nicodemus
c607ecfe27 OnNPCSpecial now uses GetDataHandledEventArgs. 2017-12-23 15:31:20 -07:00
Lucas Nicodemus
8413343cbd OnPlaceTileEntity now uses GetDataHandledEventArgs. 2017-12-23 15:28:27 -07:00
Lucas Nicodemus
16654cafc4 OnMassWireOperation now uses GetDataHandledEventArgs. 2017-12-23 15:27:00 -07:00
Lucas Nicodemus
61d1bcf93f OnNPCStrike now uses GetDataHandledEventArgs. 2017-12-23 15:24:56 -07:00
Lucas Nicodemus
45c81e960a OnPlayerDamage now uses GetDataHandledEventArgs. 2017-12-23 15:23:26 -07:00
Lucas Nicodemus
d0efdc3939 OnItemDrop now uses GetDataHandledEventArgs. 2017-12-23 15:22:29 -07:00
Lucas Nicodemus
5d4a4f7067 OnPlayerBuff now uses GetDataHandledEventArgs. 2017-12-23 15:21:36 -07:00
Lucas Nicodemus
ed1a04b38b OnUpdateNPCHome now uses GetDataHandledEventArgs. 2017-12-23 15:20:35 -07:00
Lucas Nicodemus
82a749c24d OnSignEvent now uses GetDataHandledEventArgs. 2017-12-23 15:17:29 -07:00
Lucas Nicodemus
3b25043d11 OnChestItem now uses GetDataHandledEventArgs. 2017-12-23 15:10:32 -07:00
Lucas Nicodemus
1d0d4750e2 OnChestOpen now uses GetDataHandledEventArgs. 2017-12-23 15:09:43 -07:00
Lucas Nicodemus
df9920564a OnPlayerSpawn now uses GetDataHandledEventArgs.
OnPlayerSpawn's player ID field is now PlayerID.
2017-12-23 15:06:01 -07:00
Lucas Nicodemus
4c3600f58d OnLiquidSet now uses GetDataHandledEventArgs. 2017-12-23 14:36:28 -07:00
Lucas Nicodemus
50104612cf OnNewProjectile now uses GetDataHandledEventArgs. 2017-12-23 14:35:32 -07:00
Lucas Nicodemus
40755192b3 OnPlaceObject now uses GetDataHandledEventArgs. 2017-12-23 14:33:12 -07:00
Lucas Nicodemus
a3ca7f3d0e OnSendTileSquare now uses GetDataHandledEventArgs. 2017-12-23 14:32:32 -07:00
Lucas Nicodemus
f0a6ad54a2 OnHealOtherPlayer now uses GetDataHandledEventArgs. 2017-12-23 14:31:39 -07:00
Lucas Nicodemus
c6c4446021 OnPlayerUpdate now uses GetDataHandledEventArgs. 2017-12-23 14:29:16 -07:00
Lucas Nicodemus
649cd453d7 OnKillMe now uses GetDataHandledEventArgs. 2017-12-23 14:28:09 -07:00
Lucas Nicodemus
0543e0b18f OnGemLockToggle now uses GetDataHandledEventArgs. 2017-12-23 14:27:01 -07:00