Commit Graph

1295 Commits

Author SHA1 Message Date
asofold
dba567ee2b [Bleeding] Bring in new god-mode check. 2013-02-01 09:38:58 +01:00
asofold
f4727ad3a2 Double.MIN_VALUE is something else. Should be Double.NEGATIVE_INFINITY. 2013-02-01 08:30:36 +01:00
asofold
a123e02251 Fix cobweb + jumping. 2013-02-01 07:42:39 +01:00
asofold
7fa1238c4e Fix moving.debug output, add output for silent cobweb set-back. 2013-02-01 07:25:06 +01:00
asofold
d8733f873b [Bleeding] Kill Jesus!
Just kidding. Introduces a lift-off medium tracking for jumping to be
able to limit the maximum jump-phase for lifting off water.
2013-02-01 06:51:21 +01:00
asofold
4f125728f2 Add javadocs and comments. 2013-02-01 06:16:01 +01:00
asofold
7e4ad21f4f Prevent ascension over max jump phase for normal jumping/moving.
Adds a "dirty"-flag, set on receiving velocity. If a player still
ascends while exceeding max-jump-phase, a violation will be triggered,
regardless of the taken distance. This has not been tested against hacks
yet, and might well have little effect. It does aim against step and
block-jumping on protected regions, but there might be another limiting
method necessary to make this fully effective.
2013-01-31 10:01:46 +01:00
asofold
f38822e4d5 Add some initial values. 2013-01-31 09:23:20 +01:00
asofold
048831b55b Set dependencies to 1.4.7-R1.x.
This needs more consideration, for backwards compatibility the pure-API
modules might compile against an older API version (defensively!),
while the API-only MCAccess might need an extra module compiling against
what it needs.
2013-01-31 07:05:28 +01:00
asofold
fd9bb76202 Refactor parts of actions to NCPCompat.
This is not finished, log action is missing still.
2013-01-30 14:05:39 +01:00
asofold
4e85e9d211 Add comment on "copy". 2013-01-30 11:00:33 +01:00
asofold
a3656b92d9 Add WorldConfigProvider for future purpose. 2013-01-30 10:42:29 +01:00
asofold
0dc16d6a27 Set version to 3.8.10 for further development. 2013-01-30 06:06:02 +01:00
asofold
dc5a1bd19f Consistency fixes for reloading the configuration.
Mostly MCAccess must be reset after reloading the configuration, a rare
case, but wanted for testing. For this a component has been added, which
allows automatic setting of MCAccess on reload, in consequence the
CheckListener registers all checks as components with the NoCheatPlusAPI
(CheckListener.addCheck).

Components can not be registered twice anymore.

All TickListeners will be removed in onDisable.

Possibly others.
2013-01-30 04:22:06 +01:00
asofold
abe22f8104 Cleanup BlockProperties on disable. 2013-01-30 03:22:58 +01:00
asofold
8c3ed77c7c Also remove clear parkedInfo in case of reload or data removal. 2013-01-30 03:17:18 +01:00
asofold
8c2bda2b70 Use BLockProperties.isOnGroundOrResetCond. 2013-01-30 03:12:24 +01:00
asofold
04b1341e43 Attempt to fix survivalfly false positives on login in water (seldom). 2013-01-30 03:06:30 +01:00
asofold
d2cdf377eb Add isOnGroundOrResetCond to BlockProperties. 2013-01-30 02:00:48 +01:00
asofold
87e350aa81 Add in-game debug to fight.critical. 2013-01-30 01:23:22 +01:00
asofold
f9691c3ea8 Fix NoFall violations with ender-pearls. 2013-01-30 01:22:19 +01:00
asofold
b00bb9a014 Hint at new god mode check [not yet in]. 2013-01-29 23:50:58 +01:00
asofold
54fd0d6bff Explicitly cancel data-man task. 2013-01-29 17:12:04 +01:00
asofold
1cd04e58a8 L-O-L 2013-01-29 16:44:23 +01:00
asofold
5e83ec004b Careful with max height. 2013-01-29 16:40:59 +01:00
asofold
9ddb91f7fd Add comment. 2013-01-29 16:36:12 +01:00
asofold
4e6c2bc8c6 Fix attempt for fences and the like.
This judges such block types as "variable" in shape and regards them as
ground if the shape of the above block differs.
2013-01-29 16:34:30 +01:00
asofold
6eb1cb0fd2 Add getMaxBlockY to BlockCache. Might need setting in setAccess, later
on.
2013-01-29 16:02:08 +01:00
asofold
eda657b6de Fix and optimize hover checking.
Fix: reset players hover ticks if moves are not checked (sleep, dead,
vehicle, disabled).

Optimize: Only check on-ground, if the players hover tick counts
reach the limit. Players are reset when moving anyway.
2013-01-29 14:00:28 +01:00
asofold
24421dc85d Add methods to config manager to retrieve min/max numbers. 2013-01-29 13:47:46 +01:00
asofold
a8f326d855 MAXIMALLY. 2013-01-29 03:48:08 +01:00
asofold
562f1da59b Assume maximally 20 attacks / moves per second. 2013-01-29 03:46:31 +01:00
asofold
acd8afcdc2 Use the xz-distance for the moment. 2013-01-29 03:23:39 +01:00
asofold
0620ced63c Add utility methods for 2d-distance. 2013-01-29 03:20:37 +01:00
asofold
c40b9fac22 Add tags to improbable. Currently only the tags triggering the violation
are shown, probably useful for debugging.
2013-01-29 03:16:10 +01:00
asofold
d8701a7ea6 Add target-location heuristic to reduce false positives with improbable. 2013-01-29 02:51:51 +01:00
asofold
3348865288 New method for distance (coordinates). 2013-01-28 23:53:05 +01:00
asofold
0fb299b39f Don't check backwards sprinting after being hit. 2013-01-28 09:18:03 +01:00
asofold
04e7b2a09b Munchhausen can be enabled now. 2013-01-28 09:17:31 +01:00
asofold
b02a57c09c Workaround for vines + axes. 2013-01-27 06:58:12 +01:00
asofold
342ef0f5a6 TickTask.getLag: Never return anything smaller than 1. 2013-01-27 05:06:33 +01:00
asofold
200a96440e Contemplation. 2013-01-26 09:29:08 +01:00
asofold
025d71dfde Fix standsOnEntity (jumping on boats and minecarts). 2013-01-26 08:43:18 +01:00
asofold
9bb8687a88 Add javadocs for ComponentRegistry and related. 2013-01-26 08:03:33 +01:00
asofold
4324d4fe74 [Bleeding] Lessen trouble with boats. 2013-01-26 07:42:56 +01:00
asofold
034a7d58b0 Fix unregistering of components from allComponents. 2013-01-26 07:41:51 +01:00
asofold
1e29c03251 Re-order methods. 2013-01-26 06:56:23 +01:00
asofold
99e7994b76 Fix morepackets(vehicle) set back never executing. 2013-01-26 00:16:18 +01:00
asofold
333cffd0d5 Fix last damage-tick by entity attack being reset while dead, renamings. 2013-01-26 00:08:17 +01:00
asofold
53756f7145 Cleanup for all added components, reorder cleanup on disable. 2013-01-25 23:51:29 +01:00