Commit graph

3235 commits

Author SHA1 Message Date
Lucas Nicodemus
8301d6a6f3 Remove Utils.ForceKickAll; add TSPlayer.KickAll. 2017-12-27 18:07:28 -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
9e91db9ea4 Removed force kick for attempting to use setup
On many servers, players are tricked into running the /auth or /setup
command to get them kicked. This is stupid. Since the system is disabled
anyway, we don't need to kick them.
2017-12-27 17:43:21 -07:00
Lucas Nicodemus
f79c6a2962 Move Utils.Kick to TSPlayer.Kick 2017-12-27 13:00:13 -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
9648e9ac0c Remove excess space 2017-12-26 20:55:33 -07:00
Lucas Nicodemus
11920cde48 Move Utils.FindPlayer -> TSPlayer.FindByNameOrID.
This makes TShock more OOP like (get the matching players from the
player as opposed to getting the players from a random class that
shouldn't exist).
2017-12-26 20:53:00 -07:00
Lucas Nicodemus
cfe8562e74
Merge branch 'general-devel' into fix-projectiles 2017-12-26 18:31:47 -07:00
Ziteng Wang
354d20bc1c Fix mass wire operation in Bouncer 2017-12-25 18:19:48 +08:00
Lucas Nicodemus
f2da3f6c83 Remove index check on Bouncer NewProjectiles
Note: even in the previous iteration of the code the search function
returned -1 if it couldn't find it in the system, which would have made
removal of projectiles by ident and owner impossible because they
weren't found anyway.

Either way, this is related to fixing #1584.
2017-12-24 20:13:53 -07:00
Lucas Nicodemus
f942a6c98a Revert "Change Utils.SearchProjectile to return -1 in error"
This reverts commit e19fd22fe0.
2017-12-24 20:09:12 -07:00
Chris
39d411d695
Merge branch 'general-devel' into warnings 2017-12-24 01:36:36 +00:00
Chris
530f62c704
Merge branch 'general-devel' into crp 2017-12-24 01:25:37 +00:00
Chris
1148c3dd76
Merge branch 'general-devel' into warnings 2017-12-24 01:23:24 +00:00
Chris
ad21f39ee1
Merge branch 'general-devel' into crp 2017-12-24 01:23:21 +00:00
Chris
12427aeb32
Merge branch 'general-devel' into better-args 2017-12-24 01:21:26 +00:00
Lucas Nicodemus
abb9aa1881
Merge branch 'general-devel' into crp 2017-12-23 17:32:07 -07:00
Lucas Nicodemus
78189f0c76
Merge branch 'general-devel' into warnings 2017-12-23 17:31:59 -07:00
Lucas Nicodemus
1e635828f4
Merge branch 'general-devel' into better-args 2017-12-23 17:31:48 -07:00
Lucas Nicodemus
dca542c386 Remove IP reset code in TShock init
This is now handled by the dedicated server in ServerLoop():
	Netplay.ServerIP = IPAddress.Any;
2017-12-23 17:28:54 -07:00
Lucas Nicodemus
aec81c5d3a Remove unused 'NoRestart' variable & startup flag 2017-12-23 16:58:43 -07: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
Lucas Nicodemus
551762f10e OnProjectileKill now uses GetDataHandledEventArgs. 2017-12-23 14:25:30 -07:00
Lucas Nicodemus
fd7b9858df OnPlaceChest now uses GetDataHandledEventArgs. 2017-12-23 14:24:12 -07:00
Lucas Nicodemus
e9931e8740 OnPlayerInfo now uses GetDataHandledEventArgs. 2017-12-23 14:22:45 -07:00
Lucas Nicodemus
0efa2fd648 OnPlayerMana now uses GetDataHandledEventArgs. 2017-12-23 14:21:42 -07:00