Commit Graph

30 Commits

Author SHA1 Message Date
asofold
eacd09be13 Fix ProtocolLib hooks package names. 2015-01-30 22:42:19 +01:00
asofold
586013a907 [BREAKING] Simplify Check.executeActions, remove getParameterMap.
* The primary thread is now detected in Check.executeActions.
* ViolationData.chainParameter allows for one-statement action-execution
with chaining.
2015-01-30 21:12:40 +01:00
asofold
86732764e3 [BLEEDING] Integrate net checks into the check system.
* Extend CheckConfigFactory with a remove-all method.
* DataManager.clearConfigs() now uses CheckType for getting factories.
* Split off Check.hasBypass method to check exemption + permission.
* Allow null permissions in CheckType (interpret as no bypass).
* Add Check types for FlyingFrequency and SoundDistance.
* Add exemption and actions to FlyingFrequency, alter defaults.
2015-01-30 16:10:43 +01:00
asofold
f3973cd043 Move the net package inside of checks. 2015-01-27 00:52:28 +01:00
asofold
6a8a0f3593 Use the boolean value here. 2015-01-21 23:41:37 +01:00
asofold
d1b4d51b4a At least a second is necessary to skip. 2015-01-21 17:39:34 +01:00
asofold
f8cbe404f5 Alter FlyingFrequency to match redundancy vs. MovingData (toX, ...).
First attempt to detect if a moving event would fire. This might not be
100% accurate, as a) we can'T really know and b) lastTo is not minitored
in the most reliable way (e.g. teleport on highest priority, resetting
logic favors set-backs).
2015-01-21 01:45:54 +01:00
asofold
f79cda4442 Optimize FlyingFrequency, add more structure and comments.
* Use a HashMap for data, as we intend to use the primary thread.
* Move redundant move checking into a method.
* Ignore on-ground, if it is sent too often.
* Log if redundant move checking has to be disabled.
2015-01-20 18:10:37 +01:00
asofold
205b351dff Catch more edge cases for setup of ProtocolLib hooks. 2015-01-17 05:25:37 +01:00
asofold
0e3295be29 Wrong constructor. 2015-01-08 03:50:50 +01:00
asofold
dd87ab7ccd [BLEEDING] Net checks: Cancel redundant flying packets. Better config.
FlyingFrequency: if frequency is above 20/sec, redundant packets will be
cancelled (experimental, configurable).
2015-01-08 03:35:25 +01:00
asofold
41e9d89efa Add info about version-dependent features to the "ncp version" command.
* Add methods to NoCheatPlusAPI to add/set/get version tags.
* Display all tags in the ncp reload command.
* Alter test framework to set a dummy API.
* Add tags for blocks, net checks, FastConsume.
2015-01-05 16:34:07 +01:00
asofold
39cc75c162 Spaces. 2015-01-05 15:43:49 +01:00
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