asofold
6282fe9cdb
Bump version.
2013-02-03 13:43:11 +01:00
asofold
afb66a3172
Set version to 3.8.10-ALPHA(1), due to jenkins being down.
2013-02-03 13:07:41 +01:00
asofold
71d6a46b93
Further reduce false positives for survivalfly. Adapt some debug
...
messages.
2013-02-03 00:24:07 +01:00
asofold
ddd61a6522
Add falldamage option to survivalfly. Not sure it is a good idea to set
...
it to false, though.
2013-02-02 22:22:55 +01:00
asofold
044c435180
Fix jumping out of water when next to something solid.
...
Problem was introduced by previous commits, which seemed to have fixed
false on-ground judgment (short-cut in PlayerLocation.isOnGround).
2013-02-02 18:14:55 +01:00
asofold
c003ccc09f
Fix some issues with stairs and half-blocks.
...
Add stepping up half-block distances to lost-ground.
2013-02-02 17:32:45 +01:00
asofold
824e67ffe6
Use the keep-alive estimation for the new god-mode check.
...
Might not fully do it, but should make occasional hits possible.
2013-02-02 08:28:52 +01:00
asofold
e0f5e594be
Add workaround method for keep-alive time, as a temporary solution.
...
Also keep track of last-regain-health time for that and other purpose.
2013-02-02 08:19:31 +01:00
asofold
25a3c9663b
Switch from ActionFrequency to ActionAccumulator for vertical-accounting
...
(survivalfly).
This should reduce false positives due to lag of any kind. Might set
event number to 3, depending on tests.
2013-02-01 17:28:58 +01:00
asofold
ed4b551c08
Balance maxphase violation better with default config.
2013-02-01 16:13:19 +01:00
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
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
9ddb91f7fd
Add comment.
2013-01-29 16:36:12 +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
342ef0f5a6
TickTask.getLag: Never return anything smaller than 1.
2013-01-27 05:06:33 +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
asofold
9bd7745690
Change the way morepackets(vehicle) teleports player and vehicle.
...
Player gets ejected, then both teleport then re-enter. Includes some
sanity checks. Also should work for players exiting vehicles. Might
conflict with Worldguard region flags and similar. [Missing: proper
treatment of vehicle-enter/exit.]
2013-01-25 22:12:40 +01:00
asofold
ed56c3458f
Add "/ncp version" command.
2013-01-25 20:41:38 +01:00
asofold
ed09b58074
Set data.teleported for hover violations.
2013-01-25 14:38:41 +01:00
asofold
509347e78b
Update a TODO.
2013-01-25 00:14:43 +01:00
asofold
405f33e90e
Remove debug output for boats.
2013-01-24 23:53:39 +01:00
asofold
85131dcadb
[BLEEDING] Re-sharpen NoFall, configurable.
...
Fall damage events for violations are not cancelled anymore due to the
"moved too quickly" bypass. Instead the player is dealt 3 more damage
than normal and added to the hover checking if that is activated.
Further a config flag allows to specify if to reset the NoFall data, set
to false by default, thus victims of Minecraft false-positives are at
doubled suffering.
punished
2013-01-24 23:49:31 +01:00
asofold
15c04a3115
Also check for too high numbers as arguments to getLag.
2013-01-23 18:54:19 +01:00
asofold
944f3469d0
Random safeguard for breaking-time (fastbreak).
2013-01-23 18:30:30 +01:00
asofold
6a70f0a010
Accoutn for lag in chat.commands.
2013-01-23 03:07:17 +01:00
asofold
cce67ac67c
Account for TickTask resetting.
2013-01-23 03:06:52 +01:00
asofold
60114eb6eb
Do account for ms == 0.
2013-01-23 02:21:09 +01:00
asofold
fdb58eefca
Logics for beginners.
2013-01-23 02:11:22 +01:00
asofold
67b3b9ea00
Make TickTask.getLag more precise.
2013-01-23 02:08:02 +01:00
asofold
9b75979dee
(Hot-) fix negative indices on TickTask.getLag.
2013-01-23 02:06:31 +01:00
asofold
07d8573e9e
[Bleeding] Check vehicle-morepackets for players riding pigs.
2013-01-22 18:43:04 +01:00
asofold
542dafc6f7
Add default config for allowinstantbreak.
2013-01-21 06:06:48 +01:00
asofold
8d1ee85d9d
Add compatibility option to set blocks as instantly breakable.
2013-01-21 05:59:52 +01:00
asofold
b54b558322
Minor tweak :p.
2013-01-21 02:10:08 +01:00
asofold
f0ea06bea6
Also ignore hover for players inside of vehicles.
2013-01-21 02:08:25 +01:00
asofold
4f3e4fad65
(Not putting hover in at respawn due to chunk sending.)
2013-01-20 17:18:36 +01:00
asofold
0eaa8fd1b5
Ignore dead / sleeping directly on hover.
2013-01-20 06:53:31 +01:00
asofold
f940e1e359
More to the order of things.
2013-01-20 05:59:46 +01:00
asofold
762ae9174d
[BLEEDING] Some missing parts [might still be missing some].
...
Set to bleeding, because the last commits are. Bukkit-API-only access
shortly tested. There will be issues, but this might help over the
darkest of days.
2013-01-20 05:25:21 +01:00
asofold
4c6798b979
Typo / log level.
2013-01-20 04:35:35 +01:00
asofold
ee1f410dae
[SAFETY COMMIT, REFACTOR, BREAKING]
...
Moving big parts of code between sub-projects. Some refactoring was
needed to unlink some classes. Deprecated methods removed. Some utility
methods were moved to differently named utilities. Few signatures
changed (e.g. BlockProperties.init). Most changes should only concern
bugs or developers who dug into some NCP deeply (not sure those exist).
It should still all be there.
2013-01-20 04:18:08 +01:00
asofold
8e313f4a47
[SAFETY COMMIT, INCOMPLETE] RAW: Add support for bukkit-api-only.
2013-01-20 00:51:09 +01:00
asofold
c8c4d4c9cc
Add a method to set a config property for all configs at once.
2013-01-19 21:43:31 +01:00
asofold
9810c5c46b
Add more info in case MCAccess can not be set.
2013-01-18 23:06:50 +01:00
asofold
48c2d0ea53
Add fine grained permissions for Rei's Minimap's radar.
...
This merges pull request 4 (@slide23) in a slightly altered way, with
a little delay.
2013-01-18 22:43:16 +01:00
asofold
f9b45921b1
Move mod messages to a utility.
2013-01-18 22:37:23 +01:00
asofold
f3a5e572b3
Set last damage cause for NoFall.dealDamage.
2013-01-18 22:18:42 +01:00
asofold
00cf2886cd
Add unused PlayerData class for "discussion".
2013-01-18 16:43:07 +01:00
asofold
53ba5725da
Typo.
2013-01-18 16:34:48 +01:00
asofold
c0ddeef104
Fix players counting for logins checks if already denied to login.
...
Also lets "tempkick" feature come first.
2013-01-18 00:09:42 +01:00
asofold
fd2469490a
[Bleeding] Replace LagMeasureTask by TickTask.
...
Contains some fixes. Removes the debugging message for lag. Might
in some places use wild guesses for lag estimation
(TickTask.getLag(1000) < 1.5).
2013-01-17 01:47:07 +01:00
asofold
48705669dd
Increase tick after all processing.
2013-01-16 23:06:23 +01:00
asofold
2550e3059e
Update Metrics class.
2013-01-16 23:05:47 +01:00
asofold
e34ad4fcdf
Fix concurrent modification exception for a part.
...
Only set the hover ticks on teleporting events. On setting back players
in MovingListener.onTick, this will be prevented now. However actions
might still cause trouble, so some non-blocking stuff would be good here
(a removeFroHover set, some other way of keeping track).
2013-01-15 18:32:31 +01:00
asofold
d693d3a690
Code duplication for test.
2013-01-14 19:48:36 +01:00
asofold
9850a0e3bb
[BLEEDING] Add simple hover check.
2013-01-14 18:49:49 +01:00
asofold
91420f9edf
Add TickListener component.
...
TickTask allows registration and calls on each tick.
2013-01-14 04:23:39 +01:00
asofold
6d245c62a7
Add "ncp unexmpt * [...]", use with care.
...
Might unexempt npcs if another plugin used this for such.
2013-01-14 02:40:12 +01:00
asofold
6cfe46c117
Make resetting fall distance for teleports configurable.
2013-01-14 02:24:11 +01:00
asofold
e05275fd73
A little more grace for fast falling (vacc).
2013-01-14 02:09:31 +01:00
asofold
5879fba502
[Bleeding] Set the players fall distance on successful teleports.
...
Might cause issues.
2013-01-14 01:55:13 +01:00
asofold
fed73d519b
[Bleeding] Adapt teleport handling to cancelled events better.
...
Also will invalidate currently processed moving events.
2013-01-14 01:49:27 +01:00
asofold
0e9826cb14
[Bleeding] Re-arrange move-handling on highest and monitor level.
...
Remove uncancelling events. Ignore sleeping [might need adaption to
not trigger anything on getting up], account for cancelled events
and reset postions and feed yawrate accordingly.
2013-01-14 01:09:38 +01:00
asofold
a158b169d2
[Bleeding] NoFall: Try to delay damage on violations.
...
Cancel damage events rather than keeping fall distance plus damaging the
player. This should punish players less for bugs in MC or NCP, while
still dealing the accurate damage.
The players can still keep hovering, but that's what the hover checks
will be for.
2013-01-13 23:30:51 +01:00