Commit Graph

163 Commits

Author SHA1 Message Date
asofold
ae6510aaa0 Rather javadoc correction. 2013-11-04 09:05:42 +01:00
asofold
8d9583d01b Fixes and simplification for vertical accounting. 2013-11-03 23:11:03 +01:00
asofold
01b8c421df Fix one NPE. 2013-10-28 11:24:48 +01:00
asofold
85d925f45d Check MoveConsistency for PlayerMoveEvent as well even if in vehicles. 2013-10-26 23:28:50 +02:00
asofold
76eb1c2539 [BLEEDING/INSTABLE] Not that much desperate: Random code changes. 2013-10-26 01:30:08 +02:00
asofold
ced4e0e039 Call onVehicleMove with the actual vehicles location.
(From within onPlayerMove.)
2013-10-14 00:21:29 +02:00
asofold
e5911fdb8d Add convenience methods to TrigUtil. 2013-10-14 00:05:17 +02:00
asofold
21eaeac5fa Add vehicle location to the "ncp inspect" command. 2013-10-13 22:58:27 +02:00
asofold
0d52467fc2 Reduce a special case for false positives in sf.
There seem to be cases with a repeated horizontal speed increase which
should be covered by the bunnyhop mechanisms. The first increase will
not go as high as possible but have 0 y-diff, while the second one will
trigger a violation with a higher y-diff and another increas in the
horizontal distance. This commit does not cover a general multi-step
speed-increase case, but just attempts to catch this special case.
2013-10-13 19:15:02 +02:00
asofold
3e38b087e6 Corrections for fastheal: Missing cancel action + out of range health. 2013-10-01 23:13:02 +02:00
asofold
db374f31a4 Correct moved config path (original: checks.inventory.ensureclose). 2013-09-23 15:36:26 +02:00
asofold
a2dadf8a9c Remove metrics.
Metrics would need a different concept of what to add anyway.
2013-09-22 15:46:07 +02:00
asofold
2417ba9ffe [BLEEDING/INCOMPLETE] Start sketch for more inventory-open checking. 2013-09-20 09:37:08 +02:00
asofold
41e1e8017b Add DisableListener component and use for DataManager and Improbable. 2013-09-19 21:00:57 +02:00
asofold
d896e9b25d Bind logging of metrics errors to debug flag(s). 2013-09-18 18:26:04 +02:00
asofold
0fb3c562ed CF: Ensure unused horizontal speed is not used for upwards speeding. 2013-09-17 18:37:32 +02:00
asofold
f28877f097 Should hover start counting after set-back? 2013-09-17 18:35:49 +02:00
asofold
182bc81c8c Set 1.6.2-R1.0 as new Bukkit/CB dependencies, add dedicated module. 2013-09-12 01:21:56 +02:00
asofold
2ee891a427 Reduce false positives for SurvivalFly (the hard way). 2013-09-09 02:22:37 +02:00
asofold
5d60343104 Fix nofall dealing fractions of half hearts damage. 2013-09-08 02:03:45 +02:00
asofold
0a748c4290 Important fix for passable.
Astonishing.
2013-09-08 01:30:33 +02:00
asofold
ab3770161c Reduce false positives with Passable + stairs, move some code. 2013-09-08 01:17:43 +02:00
asofold
d365cd5b75 Allow parameters to be set in ViolationData, even if not "needed".
This allows to add parameters in case of debugging, to display them.
Also addid is a hasParameters method, which checks if any are set.
2013-09-07 23:09:55 +02:00
asofold
d9897191de More on closing inventories: a) only close if open b) also on teleport. 2013-09-01 18:46:30 +02:00
asofold
cadb98edbe Allow 0.2 hbuf-regain per packet. 2013-08-29 21:35:46 +02:00
asofold
0ac342fb92 Process vehicle-exit in case of invalid or dead vehicles. 2013-08-29 21:34:13 +02:00
asofold
048cada0c7 Change buffer amount to positive. 2013-08-29 21:33:29 +02:00
asofold
1d2f291650 Add "ncp inspect (player)" command, might be merged/changed with info. 2013-08-29 21:30:53 +02:00
asofold
46ee232451 Fix deprecated config paths in use (npe). 2013-08-17 16:24:30 +02:00
asofold
959c6c7be8 Allow null messages in ColorUtil. 2013-08-17 16:23:23 +02:00
asofold
4b7e424bde One npe less. 2013-08-17 15:28:44 +02:00
asofold
f32be176a9 Grace for walk/fly-speed.
This is needed for environments with changing walk/fly speeds,
such as flying plugins with several speed-modes.
2013-08-15 04:01:23 +02:00
asofold
af4c9b94f6 Move managelisteners to the compatibility section. 2013-08-12 22:20:44 +02:00
asofold
d202d73cab Changes for command lists, opinconsoleonly -> consoleonly.
The command lists for handleaschat and exclusions are now also fed with
 a leading "/" if missing. Allows more convenient setup and less 
 confusion potential for relating comamnd lists in "protect plugins" to 
 other lists.
 
opinconsoleonly has been made a list of commands:
	protection.commands.consoleonly.
Further the message sent to the player is the permission message,
 if the player does not have permission to use the command,
 provided NCP can find the command.

All three command lists are also checked with the original 
command label.
2013-08-11 13:05:24 +02:00
asofold
e24ccc734a Fix vertical accounting not triggering an actual violation (glide). 2013-08-10 23:47:10 +02:00
asofold
2219fa0e6f [CONFIG] Command protection: Change config sections + change to lists.
Commands to change to "no permission" or "unknown command" behavior,
can now be configured with a string list each. Commands that have a 
permission set will have the default set to false, while commands that
don't have a permission will be altered to have a filter permission,
namely nocheatplus.filter.command.<commandname>.
2013-08-10 14:25:28 +02:00
asofold
7f12312ef4 Adapt "unknown command" message to current CraftBukkit implementation. 2013-08-10 13:42:30 +02:00
asofold
b3b13df83c Add nocheatplus.command.(exempt|unexempt|removeplayer).self permissions.
Somewhat incomplete, because the filter permission is not added for 
these. Might be fancy for the tester shortcut (less danger).
2013-08-10 03:16:16 +02:00
asofold
fdf2009551 Use a testPermission method for sub-commands. 2013-08-10 03:06:08 +02:00
asofold
858302b1ba More on permission changes.
* Fix color replacing in command protection (had no effect previously).
* Use "no permission" message for default bukkit command protection.
* Use command protection only, no more parsing pre process for /pl etc.
* Other tweaks (update descriptions, add shortcuts / child permissions).
2013-08-10 01:50:59 +02:00
asofold
0e56338336 Change feature (filter) permissions to nocheatplus.filter... 2013-08-09 23:50:59 +02:00
asofold
84c376864e Rework parts of permissions.
Changes are mostly backwards compatible.

Fixed:
* Filter permissions were wrong (not starting with nocheatplus).

Changed:
* Commands are grouped under nocheatplus.command now.
* Notification permission is independent of the notify command,
	 changed to nocheatplus.notify.

New:
* Shortcut permissions (nocheatplus.shortcut...) for safer use.
* Shortcut permission for testers: nocheatplus.tester
2013-08-09 18:09:24 +02:00
asofold
e17b14e17d SF: Start with hbuf at 0 (reverts setting to 1/2 of max). 2013-08-09 16:36:28 +02:00
asofold
4c76fc8471 Attempt to fix issues with horses and NoFall. 2013-08-04 21:44:38 +02:00
asofold
943083f61f Set core dependency to Bukkit-1.6.2-R0.1 (beta). 2013-08-04 21:15:01 +02:00
asofold
7a938dfd6a SF: Revert removal of resetting for not cancelled violations.
Actions with mixed cancel and not-cancel will be broken without the 
reset.
2013-07-24 10:26:25 +02:00
asofold
3acf5c20ff [INCOMPLETE] Bunny-hop without bunny and without hop.
This change addresses the fact that the bunny hop thing also applies 
when not sprinting, also without actually jumping. In future the buffer 
will be much more confined to  special cases and/or limited in how it 
regains level (nu pogodi).
2013-07-24 10:19:03 +02:00
asofold
d77c63a228 SF: Optimization and fixes with bunny and permchecks.
* Currently bunny applies very often on sprinting, thus it can be pre-
  checked before permchecks, and if necessary re-checked after 
  permchecks.
* Remove heuristic permchecks, since the above should do better.
* Fix bunny not trigger for assumeonground && jumpphase == 0.

Further we will try to get rid of the horizontal buffer as we know it,
 confining it to special cases. However we have to extend bunny hop to
 apply without sprinting as well. Might need a more general concept
 for ground-move-modifiers and friction to achieve it.
2013-07-23 12:10:20 +02:00
asofold
9e920b89cb SF: Set initial hbuf to 0. Need new concept/discussion.
Setting to something on creation of data is ineffective, because it gets
set to 0 on passable violations.

Keeping the buffer means other abuse potential.

Probably better postpone until re-design/removal of the buffer concept.
2013-07-23 10:31:46 +02:00
asofold
a872cc8a86 "lost sprint": Remove checking vs horizontal buffer.
Might consider for future:
The problems of the type lost-sprint, bunny seem to be client mechanics.
The ground-modifiers apply and stay valid during jump, thus turning off 
sprint for attacking makes sense.

So i revert the statement about "could be worth a ticket" for the
moment. However with looking forward to have a Minecraft API, it could 
could be appropriate to provide something to allow server-side checking,
yet again finding the right ground modifier needs knowledge of the 
exact moves the client did, so client side could change to send all the 
transition events as suggested before.
2013-07-23 10:17:58 +02:00