Commit Graph

17 Commits

Author SHA1 Message Date
asofold
878848c4d1 Cancel flying packets with null players. 2014-12-17 15:57:22 +01:00
asofold
37c1da73ff Rename LogUtil to StaticLog. 2014-11-17 11:25:51 +01:00
asofold
95763d35c8 Add after-failure config flag checks for net/packet checks.
Obviously these have been forgotten, but are not marked with
@GlobalConfig. Using after-failure checking, because the raw config
getting and accessing might be slightly heavy-ish.
2014-10-31 11:03:23 +01:00
asofold
289da86c35 Add basic (mostly global) configuration for net checks.
Currently the parameters except for the "active" flag are not available
per-world, but this can be added later.
2014-07-27 23:21:04 +02:00
asofold
02eea231b7 Set max. sound distance to 320, in order to have a protective effect.
This is about the max. view distance, will be configurable later on.
2014-07-27 21:02:44 +02:00
asofold
c6c904254f Feed some counters for debugging purposes.
Some might get removed soon.

* Various sorts of silent cancelling (probably not caught all).
* Count PlayerMoveEvent with look/pos/look+pos changes.
2014-07-27 21:01:36 +02:00
asofold
a5ec614444 Add summary log message about added packet level hooks. 2014-07-16 16:30:26 +02:00
asofold
616e5436a2 Clear registered hooks on disable. + comments + messages. 2014-07-16 16:08:50 +02:00
asofold
7169788554 Simplify FlyingFrequency by using the cow map. 2014-07-16 15:49:23 +02:00
asofold
59fca0f43e Prefer to synchronize adding players.
Does not seem to be strictly necessary, because the data is comparably
light-weight and the data loss on some time slices would usually be
small.

Should be cleaner, as this is a seldom event (login, logout).
2014-07-16 14:42:18 +02:00
asofold
7b6305de78 Packet checks adjustments and renaming.
* More appropriate names.
SoundDistance
* Plus wither plus dragon.
* Horizontal distance.
2014-07-16 13:50:04 +02:00
asofold
288950edd4 Use predefined packet types, add comments. 2014-07-16 13:29:08 +02:00
asofold
bb8b8fc1f2 Quick adaptions/cleanups for packet level checking. 2014-07-15 23:58:48 +02:00
Scetch
1e6d69b50f Oops. This doesn't need to be there. 2014-07-15 17:17:49 -04:00
Scetch
a367c8f20c Prevent weather sound effect > 512 blocks away. 2014-07-15 17:14:45 -04:00
asofold
b956aab479 Remove the "warning on success" message. 2014-07-13 01:14:38 +02:00
asofold
04b82ad0a6 [BLEEDING] Peek into ProtocolLib to fight certain packet spam (3).
This lessens or removes most effects of spamming the PacketPlayInFlying
(3, legacy 10), such as "magnet" or "repell" effects.
2014-07-12 22:30:51 +02:00