Lucas Nicodemus
a5a3aae599
Remove Utils.GetPlayerIP()
2017-12-27 19:29:45 -07:00
Lucas Nicodemus
f74a0f6a70
Merge remote-tracking branch 'origin/general-devel' into oop
2017-12-27 19:03:03 -07:00
Lucas Nicodemus
2f7c146c89
Merge remote-tracking branch 'origin/general-devel' into oop
2017-12-27 19:01:38 -07:00
Chris
cd27a981cb
Merge branch 'general-devel' into old-code
2017-12-28 01:55:22 +00:00
Lucas Nicodemus
fc689dbbc5
Remove TSPlayer.KickAll
...
"☕ ⚡ Ivan - Today at 6:20 PM
@☕ ⚡ ハクサロ wouldnt TSPlayer.All.Kick() do the trick?"
2017-12-27 18:21:16 -07:00
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
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
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
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
Lucas Nicodemus
cb47240c7e
Fix indentation on one line in utils
2017-12-26 20:17:11 -07:00
Lucas Nicodemus
6095eccccc
Update changelog to signify removal of deprecations
2017-12-26 20:06:29 -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
Chris
8a58530fdc
Merge branch 'general-devel' into checkspawn
2017-12-23 12:20:03 +10:30
Lucas Nicodemus
848d3c4778
Merge branch 'hackedinventory' into crp
2017-12-22 10:18:51 -07:00
Lucas Nicodemus
e370873fff
Warn players if they can't modify the world
...
This reimplements warnings that CheckTilePermissions previously had. It
defaults to on because every single call currently in TShock expects it
to be on.
2017-12-22 01:30:29 -07:00
Lucas Nicodemus
fbfb509cc9
Merge branch 'checkspawn' into crp
2017-12-22 00:29:39 -07:00
Lucas Nicodemus
09121368e4
Move TShock.CheckRangePermission to TSPlayer
...
TShock.CheckRangePermission is now TSPlayer.IsInRange, but the most
important thing is that this method returns the opposite of what the
original did, so all of the calls that would go to it are now inverted.
2017-12-21 20:32:07 -07:00
Lucas Nicodemus
64241a44c7
Move TShock.CheckSpawn to Utils.IsInSpawn
...
Continuing in the quest to clean things out of the TShock main class,
this moves CheckSpawn out and renames it for clarity.
2017-12-21 19:54:14 -07:00
Lucas Nicodemus
ef1486b78c
Move OnGetSection to Bouncer
...
Bonus: Introduces a new GetDataHandledEventArgs for use in events that
have players, data, and need to be handled.
I was originally going to modify GetDataHandlerArgs, but that comes from
the EventArgs class of args that isn't handled, and changing that to
extend HandledEventArgs would imply we care or check to see if those are
handled and we don't so we're stuck with this implementation for a
teenie tiny bit.
2017-12-21 18:49:29 -07:00
Chris
215970bab2
Merge branch 'general-devel' into checkignores
2017-12-21 13:28:06 +10:30
Chris
97f9de2e4e
Merge branch 'general-devel' into hook-init
2017-12-21 13:18:18 +10:30
Lucas Nicodemus
db633cfa9c
Update changelog for command specifier in messages
2017-12-20 19:01:50 -07:00
Lucas Nicodemus
97f48d6d41
Renamed TSPlayer.CheckIgnores() -> TSPlayer.IsBeingDisabled()
...
Since all of the flags it was checking have been demystified, this
is pretty self explanatory now.
2017-12-20 17:42:59 -07:00
Lucas Nicodemus
d02aaea8e0
Update changelog with hook changes.
2017-12-20 12:38:06 -07:00
Lucas Nicodemus
cff91f39e8
Update the changelog
2017-12-16 01:18:22 -07:00
Lucas Nicodemus
9f7c3ead09
Add & move OnPlaceItemFrame to Bouncer
2017-12-15 23:15:43 -07:00
Lucas Nicodemus
748d7f7fab
Move OnGemLockToggle -> Bouncer
2017-12-15 22:58:41 -07:00
Lucas Nicodemus
de017f2d41
Create & move OnPlaceTileEntity to Bouncer; fix unreachable code
2017-12-15 22:51:07 -07:00
Lucas Nicodemus
681f2a2432
Add & move OnMassWireOperation hook to Bouncer
2017-12-15 22:15:17 -07:00
Lucas Nicodemus
cdba07c62e
Move OnPlayerAnimation to Bouncer
2017-12-15 21:50:20 -07:00
Lucas Nicodemus
007c685c19
Move OnNPCStrike to Bouncer
2017-12-15 21:42:20 -07:00
Lucas Nicodemus
e8a3f87e23
Merge remote-tracking branch 'origin/general-devel' into fragments
2017-12-15 19:28:12 -07:00
Lucas Nicodemus
81db59d864
Merge branch 'general-devel' into sql_improve
2017-12-15 18:38:25 -07:00
Lucas Nicodemus
01d865fddc
Move OnPlayerDamage to Bouncer
...
Remove reference to PlayerDamage v1 hook
2017-12-15 18:27:55 -07:00
Lucas Nicodemus
5cdb38675c
Move OnPlayerBuff logic to Bouncer
2017-12-15 17:51:16 -07:00
Lucas Nicodemus
845fc3b7c8
Move OnChestItemChange to Bouncer
...
Fix issue where TShock didn't properly do anti-cheat on chest
item changes.
2017-12-15 12:12:21 -07:00
Lucas Nicodemus
bcc1816071
Update changelog
2017-12-14 20:54:04 -07:00
Lucas Nicodemus
6d7c8aa019
TileKill -> PlaceChest (hook changed, so did packet); +Bouncer
2017-12-14 20:13:25 -07:00
Lucas Nicodemus
5f647f087c
(Probably) fix invasions started by TShock being weird
...
TShock used to call the StartInvasion method in Main with a type
and a size, but then in some update it stopped taking a size. So
you have to change a field to change the size, but the problem is
that the field is reset when StartInavsion is called. This means
that any effort to manually change the size would have failed due
to the fact that the field is reset at the end. The order has been
changed to account for this.
In addition, the start size is now set, so the game can report
progress correctly on the current invasion.
2017-12-14 08:08:57 -07:00
Lucas Nicodemus
3f22c52698
Move StartInvasion() out of the TShock main class
2017-12-14 07:56:41 -07:00
Lucas Nicodemus
5cd5bdaaa0
Move OnLiquidSet to Bouncer
2017-12-14 07:46:29 -07:00
Lucas Nicodemus
2f4b1a5bfc
Merge branch 'general-devel' into fragments
2017-12-14 07:06:31 -07:00
Lucas Nicodemus
868a3fac21
Merge branch 'general-devel' into fragments
2017-12-14 00:18:18 -07:00
Lucas Nicodemus
0826a37fe8
Update changelog
2017-12-13 22:41:00 -07:00
Ryozuki
0842ee5563
Merge branch 'general-devel' into sql_improve
2017-12-13 07:24:35 +01:00
Lucas Nicodemus
74eb680bff
Really update the changelog properly this time
2017-12-12 03:31:05 -07:00
Lucas Nicodemus
30c9f74ad3
Merge branch 'general-devel' into fragments
2017-12-12 03:19:34 -07:00