Commit Graph

558 Commits

Author SHA1 Message Date
asofold
552beed739 Add limiting of "bursts" in moving.morepackets. 2014-07-23 23:31:31 +02:00
asofold
039c4b407f Add configuration to morepackets for "eps", i.e. events per second. 2014-07-21 14:39:17 +02:00
asofold
d5c1e289a9 Count "just look" moves same way.
As CB reduces the number of events, this should be fine. The cause of
trouble that lead to skipping these had been elsewhere.
2014-07-21 14:24:06 +02:00
asofold
7de214abae Only check for lag if there is windows to burn. 2014-07-21 14:22:45 +02:00
asofold
1441859ced Move the new packet frequency check to a static utility, minor cleanups.
* Always use lag.
* Let the morepackets check decide how to treat "just look" events.
* Optimizations.
* Renames.
2014-07-18 15:54:46 +02:00
asofold
3d5bbbbedd Server-side lag adaption: more strict if there is no lag. 2014-07-18 03:04:32 +02:00
asofold
58a7c15966 Check violation vs. the less strict limit. 2014-07-18 02:33:13 +02:00
asofold
4ee4e6f08d Don't count empty ones. 2014-07-18 02:25:38 +02:00
asofold
27d35c1208 Not just block changes. 2014-07-18 02:15:49 +02:00
asofold
db7ac2bd80 Only count moving.morepackets on non-zero distances. 2014-07-18 02:05:26 +02:00
asofold
f79c89b45a MIX UP. 2014-07-18 01:47:55 +02:00
asofold
e3cdd761ec [BLEEDING] Attempt to make moving.morepackets less strict. 2014-07-18 01:45:58 +02:00
asofold
85a104ed75 [BLEEDING] Switch moving.morepackets to use Actionfrequency. 2014-07-18 00:21:19 +02:00
asofold
7cc936878e Simplify/optimize morepackets checks. 2014-07-17 20:30:01 +02:00
asofold
b6c146ce64 Remove getKeepAliveTime from MCAccess.
It does not seem to become accessible any time soon, while packet level
access allows to fetch it.
2014-07-17 14:33:38 +02:00
asofold
96462dab90 Allow ConfigManager.getConfig... from any thread (copy on write).
This allows fast config getting from any thread, without need to know if
it is the main thread.
2014-07-16 14:55:31 +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
d473f19247 It's THEM. 2014-07-14 23:08:15 +02:00
asofold
39e2a86472 [BLEEDING] Extra method for set-back + reset positions differently.
Setting back players on PlayerMoveEvents:
* Reset internal from/to tracking the set-back location.
* Use an extra method for that.
2014-07-14 22:49:37 +02:00
asofold
4ebe911509 Abort ray-tracing if there is no advance. Formatting + numbers.
If there is no advance on any axis, loop should be stopped.
2014-07-13 03:19:28 +02:00
asofold
aba5674f6a Correct log messages. 2014-07-13 01:45:39 +02:00
asofold
aa91a39eea Some Formatting. 2014-07-13 01:14:17 +02:00
asofold
e09d024101 Un-fix tempkickillegal issue: Do kick if location could not be restored. 2014-07-13 01:13:50 +02:00
asofold
607407d4fa Fix tempkickillegal setting being ignored. 2014-07-13 00:29:52 +02:00
asofold
74e6844e00 Check child individual child permissions for checks.blockplace.against. 2014-07-06 21:36:18 +02:00
asofold
5d8f77f309 Change "ncp ban ..." command to use the vanilla command.
This should be better in case the vanilla command allows UUIDs some day.
At least during testing in uuids did not work, so we added a warning
message if uuids are used for banning.

Using player names for actions should be safe anyway.
2014-06-15 02:57:24 +02:00
asofold
754fea92d8 Add some utility methods for names/uuids (taken from TrustCore).
Someone remind me of rendering TrustCore "uploadable" or to just upload
it.
2014-06-15 02:54:50 +02:00
asofold
24aecb58d3 Set dependency for NCPCore to Bukkit 1.7.9-R0.2.
This might allow to add compatibility stuff similar to BridgeHealth,
just for UUIDs.

Shortly tested on 1.7.9, 1.7.2 and 1.5.2 (no joke).
2014-06-15 02:52:41 +02:00
asofold
fc83b884b3 Whoops. 2014-06-15 01:34:22 +02:00
asofold
b25b2be62c Hide some more warnings behind BlockProperties. 2014-06-14 22:29:10 +02:00
asofold
ae9415a012 More use of Material instead of ids... 2014-06-14 20:45:51 +02:00
asofold
c23e5e15a7 Remove unused calls. 2014-06-14 20:42:46 +02:00
asofold
785de7c0f4 Suppress deprecation warnings for BlockProperties.
Access by id may or may not be changed internally, depending on what
happens on the API side.

For performance reasons we might like to do without passing on extra
stuff like Material, or even do String-comparison.

If ids will become more expensive to use than other ways, or if it will
be possible/accepted that ids get reused during runtime, then we will
have to change all internals.
2014-06-14 20:39:32 +02:00
asofold
98f101e9ff Import cleanup. 2014-06-14 20:33:30 +02:00
asofold
f53cf96e78 Fix test failure due to invalid input.
A merge can happen if the maximum distance between any two points
exceeds the merge distance, because LocationTrace attempts to balance
distances entries. Thus this test must not bne able to walk further than
the merge distance.
2014-06-14 20:22:02 +02:00
asofold
6afaf4ebbd Formatting, shuffling, commenting. 2014-06-14 16:40:43 +02:00
asofold
75224adf63 Reduce use of using block-ids in more places.
* Use Material directly in more places.
* Hide id-getting within BlockProperties.

TODO:
* BlockInit, BlockFlags + use of those.
* Possibly other.
2014-06-13 12:01:44 +02:00
asofold
5bfad6016c Small cleanup for fastbreak: creative mode is not handled by this check. 2014-06-13 11:12:50 +02:00
asofold
587236dfdc Alter resetting of FastConsume timings.
* Reset to time, if time ran backwards.
* Reset to time instead of 0, on eating.

TODO: Switch to Monotonic.
2014-06-13 00:39:42 +02:00
asofold
56bab0a3ae Cancel various actions for dead players. Config pending. 2014-06-04 23:52:07 +02:00
asofold
a75e32b2d3 Ra-add the instant-break compatibility code.
For whatever reason it was commented out, it is now put back, assuming
that the reason was "it did not help with mcMMO", because mcMMO used to
fire extra BlockBreakEventS.

Now we use a tri-state and set it to MAYBE if instantBreak is set
already on lowest priority, to have a rough indicator if a plugin set
it, or if the server might have done it. Later we might let FastBreak
assume some maximal duration for either case, instead of ignoring these.
2014-06-04 22:31:31 +02:00
asofold
d6e66dc22d Simplify and extend AlmostBoolean. 2014-06-04 22:04:26 +02:00
asofold
f4b109ec3b Comment added. 2014-06-04 21:54:13 +02:00
asofold
5c243aa4bc Add exception list for blockplace.noswing (water lily, flint and steel). 2014-05-18 20:57:04 +02:00
asofold
258dbbdf84 Deprecate some unused config methods for getting type ids. 2014-05-18 20:49:41 +02:00
asofold
c6dbd7330b Rename + extend config support for reading Material. 2014-05-18 20:46:29 +02:00
asofold
c93edcbbe9 Remove direction correction, as it does not seem to be effective. 2014-05-15 10:44:34 +02:00
asofold
24bc2816e6 Throw more npes for null worlds, to ensure things blow up in time. 2014-05-15 10:37:24 +02:00
asofold
521b4feb25 Re-check use of "useLoc" once more.
Fixes:
* On passable-violations useLoc might have been passed as newTo.

Reduce potential for accidental future misuse:
* Call useLoc.setWorld(null) as late as possible.
* Do not reset world of MoveInfo.useLoc in MoveInfo.set.
2014-05-15 10:09:53 +02:00
asofold
e7f292ebe0 Too loud thinking. 2014-05-13 10:27:19 +02:00
asofold
35684208f0 Set default delay to 100 in fastbreak. 2014-05-13 10:22:36 +02:00
asofold
4213002653 Fix instantbow resetting, e.g. with item changing, if in strict mode. 2014-05-13 10:22:07 +02:00
asofold
b822b5c08a Wrong way round - default behavior was to allow it (be it a bug or not). 2014-05-11 23:03:19 +02:00
asofold
0024e16112 Add config flag to allow preventing vl reset in chat.text.
This might be temporary, the resetting could get removed completely,
or it might be fixed/altered.
2014-05-11 22:59:37 +02:00
asofold
fc69b10fa4 Set max steps for ray tracing in BlockProperties as well. 2014-05-05 23:53:59 +02:00
asofold
307e2c6cac Fix handling move events while in vehicles.
Bug by "refactoring".
2014-04-27 22:34:25 +02:00
asofold
b4f9c5d8a6 Apply yaw/pitch correction in fight-handling directly.
Might later do without having this done after moving all the time.
2014-04-23 20:54:02 +02:00
asofold
146936b326 [BLEEDING] Treat respawn mostly like join. 2014-04-23 20:49:07 +02:00
asofold
62b3088082 Wrong API used. 2014-04-21 14:25:23 +02:00
asofold
db7b34e50c Make use of yaw/pitch correction (silent correction). 2014-04-21 14:17:00 +02:00
asofold
59054b402b Add Methods to correct yaw and pitch to MCAccess.
An implementation for NCPCompatBukkit is missing.

Note that the native access can not set lastYaw nor lastPitch in
PlayerConnection (private), but it could set lastYaw and lastPitch in
EntityPlayer.

Can't guarantee this actually helps with stuff like derp/magnet, because
we can not really set the outcome of a PlayerMoveEvent without
rubberbanding the whole planet. Hacks could send enough packets per tick
to keep freezing people - we might be able to keep track of yaw/pitch
correction and cancel (most) attacking for the same tick after yaw
correction (invalidate "same" with in-bounds yaw).
2014-04-21 14:16:11 +02:00
asofold
829e52d473 Add methods to check and correct yaw and pitch to LocUtil. 2014-04-21 14:10:43 +02:00
asofold
2d07fa1b5a Add method to DataManager to retrieve data for a Player instance. 2014-04-21 14:09:38 +02:00
asofold
53f027c3a3 [BLEEDING] Something quick against "magnet".
"Magnet" refers to a player seemingly freezing other nearby players onto
the spot, causing them to yaw-glitch, seemingly getting attracted by the
cheater.

Thanks again @Iceee for reporting and @Amaranth for finding cause +
suggested fix.

Not sure this both helps and prevents false positives, so it could get
redone a couple of times, might also result in being impossible to fix
with a plugin in an acceptable way.
2014-04-20 16:04:07 +02:00
asofold
b8fd9da08f Partly stitch up command protection.
- Never skip undoing changes. This is necessary to also process commands
that are not registered or that are fall-back aliases.
- Check adding all plugin commands always.
- Check for aliases as well for decision if to match a command.
2014-04-15 22:31:53 +02:00
asofold
547dfc890b Harden the command-pre-process handling against fall-back aliases.
These seem not to have been affected beforehand, due to the nature of
the SimpleCommandMap, however we don't want to exclusively rely on
fetching that one successfully.
2014-04-15 20:31:37 +02:00
asofold
e017ebf54a Increase VL change for blockplace.fastplace by a factor of 1000.
There had been a divisor of 1000, not sure why exactly.
2014-04-15 20:13:03 +02:00
asofold
1f0aafb63e Add a fail for null-worlds on updating set-back locations internally.
Setting a set-back location with a null World will now lead to a
NullPointerException. Setting null worlds on set-back locations is not
intended by contract, however due to using temporary Location instances
with Entity.getLocation(Location) and setting the world to null
afterwards to prevent memory leaks, also considering the number of
places where setSetBack is used, this seems to be an appropriate measure
to track better or help excluding violations of that contract.
2014-04-12 20:31:03 +02:00
asofold
af5e38b0a8 No extra NCP prefixes on commands. 2014-04-05 00:33:28 +02:00
asofold
e103acea4a ParameterName.UUID: Allow [uuid] in the strings configuration. 2014-04-01 23:13:29 +02:00
asofold
b6034162ee Add guard for not having checked at all. 2014-03-25 10:48:08 +01:00
asofold
c9b2ae1a3d Ignore players in vehicles with the fall damage events. 2014-03-24 22:03:01 +01:00
asofold
ea682417bc [RAW] First version for direction + reach using a moving trace.
This does not change the used methods much, thus it will rather allow
much more cheating, however it allows some basic testing for false
positives. The reach implementation has been slightly optimized to run
faster. The current implementation is not final and only uses trace
elements that were added in the current tick, the latest is always
included.

Next steps will probably be:
* Stricter methods for an individual TraceEntry (demand near-exact hit).
* Don't allow random latency shifting. Maintain a window-thing.
* Probably get rid of the classic method for attacking other entities.
2014-03-24 21:05:20 +01:00
asofold
f0f4a7ec2c Add test for first element for a maxAge iterator. 2014-03-23 19:05:15 +01:00
asofold
a4aad90c82 Fight checks: Use data and config from arguments. Prepare new methods. 2014-03-23 18:49:30 +01:00
asofold
4dc6b58920 Prepare fight checks for using a moving trace.
* Get+update players moving traces, create fake ones for other entities.
* Reorder checks + add some comments (not in use yet).
2014-03-22 19:19:23 +01:00
asofold
79b0feb28e Add more tests for LocationTrace. 2014-03-22 09:54:41 +01:00
asofold
75da549f25 Use the preset TAG for some commands. 2014-03-21 22:17:37 +01:00
asofold
6767bd7eec Ensure no fall distance remains for leaving players who could fly. 2014-03-21 20:42:32 +01:00
asofold
c27c03cf8e [BLEEDING] Maintain location traces (not making use of those, yet).
No change for the function of the plugin, except if there are new bugs.
Actual changes:
* Keep track of squared distance to the previous element in a trace.
* Balance mergeDist: prevent merging the latest entry, if the squared
	distance from the latest to the second latest element is greater
	than mergeDist. Never merge if there are only two entries in total.
* Add convenience methods for resetting and updating the trace.
* Maintain the moving traces actively. With intended use being
	player-player interaction, we will not reset with every teleport.
2014-03-21 20:29:09 +01:00
asofold
520e7bab74 Set fall distance to 0, if the player could fly or is in creative mode. 2014-03-21 10:11:47 +01:00
asofold
f1342fd021 First rough version of a LocationTrace implementation.
Just the raw implementation + initial test cases. To keep memory use
constant, a ring-buffer with some maximal size will be used. The
iterators are meant for faster implementation, rather than fastest
iteration. Later some trigonometric functions could be added to
LocationTrace, depending on if that may gain a lot of performance.

Next we will add the logics for adding entries and resetting the trace
to NCP (moving, teleporting, joining), on Logout the trace must not stay
in MovingData but should be garbage collected. That should be a
milestone dev build, though it does nothing for the user, it might help
finding crash bugs :p.

Soon to follow will be changing some fight checks to be able to use the
moving trace, then alter them to actually use it. Fight and interact
checks could also do moving consistency checking (tp exploit).

Who reads this?
2014-03-20 23:29:57 +01:00
asofold
2478ae787b Just a typo. 2014-03-18 23:34:45 +01:00
asofold
f8d72eb591 Make message for consoleonly feature configurable. [TICKET DBO 711] 2014-03-15 16:05:49 +01:00
asofold
d130a3d583 Random formatting change. 2014-03-15 15:48:20 +01:00
asofold
b9bcce1292 Fix for stained glass panes.
Adding a flag for ~ thin fence.
2014-03-03 23:13:05 +01:00
asofold
ce2d0dbc3c Add configurability to enforcing the players location. 2014-03-03 22:52:46 +01:00
asofold
2b2ace4a4b Set assumesprint to true by default (accidentally committed earlier!).
This will allow saving hunger, but there will be much less false
positives with current server versions.
2014-03-01 15:57:13 +01:00
asofold
9c29d32a98 Reviewing several places for use of Double.MAX_VALUE and similar.
(No game-changing stuff.)
2014-03-01 15:53:51 +01:00
asofold
ce5a90201c Ensure wrongBlock does not add Integer.MAX_VALUE as violation level.
Also cap violation at 4.
2014-03-01 15:15:10 +01:00
asofold
894aa466d6 Force return air for y outside of map bounds. 2014-02-25 11:43:44 +01:00
asofold
cb557122b8 Set maxBlockY from given world. 2014-02-25 11:22:39 +01:00
asofold
1cb9a18174 Rather use prepareSetBack than setTeleported before set-back. 2014-02-24 13:08:18 +01:00
asofold
8eebda863f Ensure TeleportCause.PLUGIN is used for teleporting. 2014-02-24 12:57:31 +01:00
asofold
65b3c4440d [BLEEDING/INSTABLE] Add actual move location consistency checking. 2014-02-23 03:30:27 +01:00
asofold
abdeb12377 Less object creation with short-use Locations + other preparation.
* Make use of Entity.getLocation(Location) in most places, for starters.
* Prepare a check for moving location consistency.
2014-02-23 02:01:28 +01:00
asofold
187a7ef094 Need to use isOnGroundOrResetCond here. 2014-02-22 22:43:20 +01:00
asofold
c08366b59b Merge pull request #23 from MyPictures/master
Remove "ASCII art" from the source code (finally?).
2014-02-22 22:20:46 +01:00
asofold
f1d7aa8a35 Clean up moving-data resetting on players joining the server. 2014-02-22 22:04:31 +01:00
MyPictures
add2179dc9 Cleanup "ASCII art" from the sourcecode
Wiped every ASCII related thing that I could find in the NoCheatPlus
source.
2014-02-22 19:26:06 +01:00
asofold
06aff0b0a6 [CONFIG] Reduce logging of blockinteract.visible by a lot. 2014-02-22 18:35:21 +01:00
asofold
1284fffdf1 Move some code off SurvivalFly.check. 2014-02-22 13:24:22 +01:00
asofold
888c18a908 Further confine pre-conditions for the sprintback check. 2014-02-22 13:03:00 +01:00
asofold
05372fbef4 Add comment. 2014-02-22 13:02:24 +01:00
asofold
d24a13ed12 Process captcha for cancelled chat events as well. 2014-02-22 00:00:10 +01:00
asofold
34c26c8791 ERR 2014-02-17 02:07:51 +01:00
asofold
9528b15f55 Avoid sign duplication due to a bug in CraftBukkit.
The cancelled BlockPlaceEvent will lead to an extra sign being dropped,
while the item in hand stays. Odd enough, the cactus is removed before
the BlockPlaceEvent - need to check if a ticket exists for CraftBukkit
already...
2014-02-17 01:58:44 +01:00
asofold
3361280cc7 Correct type of placed block, autosign uses Material.SIGN now. 2014-02-16 22:54:16 +01:00
asofold
598896a7cc Forgot to alter VL. 2014-02-16 22:31:09 +01:00
asofold
4ddfcc9063 Set dependencies to current snapshots. 2014-02-16 21:49:33 +01:00
asofold
8b298337ae Add a "Against" check, complementing the already exisiting CheckType.
* Promote BLOCKPLACE_AGAINST to "full check", with silent cancelling.
* Refactor listener for check arguments and order.
2014-02-16 21:29:52 +01:00
asofold
a198133cfa Use manhattan method for WrongBlock (not a change for the logic). 2014-02-16 19:26:45 +01:00
asofold
3f78497fde Add manhattan method for having one block. 2014-02-16 19:25:12 +01:00
asofold
5c29859e8b Increase fall distance for which critical can trigger.
Now players are forced to create moving events with CraftBukit,
in order to get above the trigger-distance, thus moving checks can
complement this (in theory).

This could lead to more false positives.
2014-02-16 19:10:52 +01:00
asofold
caff337b1b Increase kick vl to 1500 for survivalfly. 2014-02-16 18:58:15 +01:00
asofold
a3ad8454e8 Reorder default config: yawrate. 2014-02-13 23:50:51 +01:00
asofold
35e00b1498 Set moving.passable.raytracing.vcliponly to false.
Start off with accurate checking rather, allow turning off for
performance gain.
2014-02-13 23:29:13 +01:00
asofold
d710ee0c35 [CONFIG CHANGE] Set default for checks.fight.direction.strict to false. 2014-02-13 22:29:50 +01:00
asofold
12b046f5a7 Add option to assume the player is sprinting when possible (read on).
This is a workaround for the case that sprinting events are missing,
wrongly set up or for events firing in an unusual order.

This does allow speeding hacks that allow players to go at sprinting
speed without telling the server, so it should only be turned on if
there is any issues.

The option has to be turned on: checks.moving.assumesprint
2014-02-09 13:55:22 +01:00
asofold
ad2105bdfb [BLIND] Review sprinting handling.
* Remove un-cancelling sprint events.
 * Use MovingData for sprinting time.
 * Change checking order in some places.
2014-02-09 13:43:06 +01:00
asofold
95420740ee [BLIND] Relay to reflection to avoid issues with return types. 2014-02-09 13:00:06 +01:00
asofold
719c3ac31b Simplified method name. 2014-02-09 12:45:45 +01:00
asofold
2862f3c855 Attempt to fix compilation issues due to Projectile.getShooter. 2014-02-03 00:54:53 +01:00
asofold
d092ca5ff2 Update Bukkit/CB dependencies for NCPCore and NCPCompatCBDev. 2014-02-03 00:25:46 +01:00
asofold
51172bdc79 [BLIND] Reset block break timing with changing the tool. 2014-02-03 00:25:10 +01:00
asofold
165af2ccaf [BLIND] Try to fix ender portal frames. 2014-02-02 23:51:53 +01:00
asofold
4031cb55e8 [MEANWHILE] Refactor penalty time handling + add one for "item change".
Refactored penalty time handling to use a PenaltyTime object, taking
into account time running backwards, also unify attack (close combat)
penalties to a generic attack penalty. Combined.yawrate still keeps the
timeFreeze penalty, due to also cancelling other actions than melee,
still changed to a PenaltyTime object.

Changing the item in hand now leads to an attack penalty (that also goes 
for not changing the item, but changing the slot).

"Quick" addition, not much testing, except few unit tests.

Note that this could change false detection behavior of other sub-checks
of fight, because the penalty time is checked last. Previously checks
like direction or reach would have cancelled already if the player was 
within their penalty time. Hard to say if this creates new false
positives, but it will be more strict on continuous violations.
2014-02-02 23:37:29 +01:00
asofold
9810abff81 [Blind] Prepare removal of sub-check data (so far: fight.selfhit).
This will probably not be pulled through for all checks, because
the overall design does not support to do this in an efficient way.

Some checks will be added to allow pinpointing data removal,
mainly to allow  compatibility tweaks, e.g. with actions.
2014-01-26 13:14:46 +01:00
Alastair Lynn
4d310d352a Switch to gender-neutral pronouns 2014-01-22 19:16:27 +00:00
asofold
68a6297f80 Add log message about 1.7.2 blocks. 2014-01-02 18:22:18 +01:00
asofold
d51da2cbe0 Random Chicken Inventory. 2013-12-31 01:36:38 +01:00
asofold
2b0b0a8155 [BLIND] Quick fix attempt for Acacia leaves (adding a new block-flag). 2013-12-29 22:58:37 +01:00
asofold
cb73221cfd Log "system time ran backwards" on warning level. 2013-12-06 14:07:55 +01:00
asofold
a24092f6c6 Little detail: Add new block class to block factory. 2013-12-01 22:03:04 +01:00
asofold
8d5a0b1dca Rough update for 1.7.2 blocks.
Adds an ice flag to BlockProperties.
2013-12-01 21:46:44 +01:00
asofold
fd745458d6 Remove deprecated BlockPropertiesSetup interface. 2013-12-01 21:09:58 +01:00
asofold
5c94cd8278 Trash something. 2013-12-01 21:07:03 +01:00
asofold
3d3cbc341b Link pr if not pulled directly. 2013-12-01 13:01:03 +01:00
asofold
fad90d175a Note. 2013-12-01 12:54:15 +01:00
asofold
9e1c3e392d Do not reference LOCKED_CHEST anymore (minimal future compatibility). 2013-11-16 16:13:33 +01:00
asofold
6004f8eb30 Some cleanup. 2013-11-12 20:49:11 +01:00
asofold
10e5e96388 Correct TNT workaround (pigs don't have fight-data). 2013-11-07 02:55:12 +01:00
asofold
b43fa259dc Attempt to fix issues with player-ignited TNT (1). 2013-11-07 01:13:26 +01:00
asofold
ee5c86bb4f Add fall-back configurability for latest addition. 2013-11-05 22:18:55 +01:00
asofold
f597f8bded [BLEEDING/INCOMPLETE] More strict go on vehicles.
Roughly this line of develpment has to do with:
* Prevent destroying ones own vehicle [INCOMPLETE: conflict with older
MC versions.].
* More careful set-back handling.
* Reset the players position to that of the vehicle if the player moves
too far off (likely does not have effect, needs more testing). In
principle this is intended to trigger a teleport, the normal player is
intended to not notice, but no guarantees yet.

Not configurable yet, might not work 100%, yet.
2013-11-04 09:22:33 +01:00
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
asofold
b2694d93fa [BLEEDING] SF(bunny/after failure checks): Alter order and conditions.
Horizontal speed after-failure checks:
* More conditions to confine use more (on-ground, web/fluid/etc.).
* Increase bunny counter during bunny-fly until touching the ground.
* Check bunny fly first and ignore sprinting for that one.
* Attempt to fix "double bunny", i.e. small blocks on blocks.
* Redo part of checking order, do permission checks first, otherwise 
	there might happen unwanted invalidation of velocity.
* Force permission check with the first getting of hDistance on 
	certain conditions, to prevent certain redundant call.
2013-07-23 00:19:19 +02:00
asofold
fdca61ca90 Only allow "lost sprint", if MediumLiftOff is not LIMIT_JUMP.
No reward for attacking entities jumping in/out of water/web/etc.
2013-07-22 23:16:59 +02:00
asofold
d31fe6b53e SF: Minor cleanup on horizontal buffer.
* Remove code duplication by checking buffer regain after all other.
	The usual case is that regain is checked anyway.
* Don't use buffer for bunnyfly. Makes tags more unique.
2013-07-22 19:05:43 +02:00
asofold
ec956a9be0 SF: Fix horizontal buffer allowing negative values + adjust tags.
* Horizontal buffer is not modeled such that it can't become negative.
* hvel tag added for using horizontal velocity.
* hspeed tag is only added on hspeed violations.
2013-07-22 16:47:11 +02:00
asofold
0bb978dbf1 Longer delay times for the default low vl log messages for SurvivalFly. 2013-07-21 14:04:34 +02:00
asofold
3255bf97d7 More conditions for waterwalk.
Prevent triggering if walking into water on a half step, by excluding
any on-ground moves.
2013-07-21 00:02:12 +02:00
asofold
baccd41931 [BLEEDING] bunny hop bunny fly.
Altered model for bunny-hop problem. We reduce the sprinting-modificator
 by a lot, and add extra buffer during the now introduced "bunny fly" 
 phase. Conditions have been refined.
 
 Certainly needs more testing, also regarding effects.
2013-07-20 22:11:21 +02:00
asofold
7569d126aa More moving/SF cleanup.
* [ONGOING/MERGED] Add sfLastHDist.
* Add MovingData.prepareSetBack, call for hover and moving violations.
* Move vertical velocity handling into Movingdata.velocityTick.
2013-07-20 20:09:12 +02:00
asofold
1d9e4d114e SF: Further confine conditions for "bunny" to apply. 2013-07-20 15:43:44 +02:00
asofold
2f647980c1 SF: Keep naming as lostGround. 2013-07-20 14:24:06 +02:00
asofold
2856919409 Re-model extra horizontal buffer to a counter for "lost sprint".
The problems with attacking + sprint/bunny seems to be that the player 
moves on as if sprinting, thus we reformulate it as the "lost sprint"
problem. The sprintback check is skipped during lostsprint phases.

This should be worth a ticket for Mojang/CB, sprint + jump + attack 
somewhere around touch down time (+-) - server side sprinting turns off,
but the player moves on as if sprinting.
2013-07-19 22:57:10 +02:00
asofold
471579d595 Move sprintback check back to where it was (not allowing vel/buf use).
Since the sprinting time has been fixed, it should not be necessary to 
consume buffers/velocity, because it will not trigger at all.
(Context: throwing ender pearls at entities.)
2013-07-19 18:23:22 +02:00
asofold
c2fb27b842 More cleanup (mostly survivalfly).
Checking order, grouping, comments...
2013-07-19 18:07:58 +02:00
asofold
a7344eb462 [BLEEDING] SF: Sharpen vertical accounting (vacc). Read details!
Potential false positives are survivalfly violations with vacc[...].
 * Touch down near ground (lost-ground miss).
 * Slow falling after login/teleports.
2013-07-18 14:46:45 +02:00
asofold
65ee38bf9a More cleanup for SurvivalFly.
* Further split off rather seldom triggering code parts into methods.
* Accounting does not manipulate the accumulator anymore.
* Remove some unused parameters form signature(s).
* Method renaming.
* Comment cleanups.

(Expect more with time...)
2013-07-18 13:54:44 +02:00
asofold
fb30a84f5e No reason for private here. 2013-07-18 01:44:06 +02:00
asofold
3826807c56 Commented that out during testing. 2013-07-18 01:42:29 +02:00
asofold
13cb783c72 Add an annotation for registration order with INotifyReload.
SetupOrder allows to define a priority, so you can register
 ActionFactoryFactory instances before any checks get them.
 
 Default priorities are NCP core at -100, DataManager -80, rest at 0.
2013-07-18 01:42:07 +02:00
asofold
2913baa6c7 [Bleeding] Change to lazy ActionFactory setting.
Allows to set a new ActionFactoryFactory without the ConfigManager.init 
already trying to parse actions, thus implementing special actions 
should be easier. Still three calls might be necessary to be on the 
safe side:
1. ConfigManager.setActionFactoryFactory(new factory)
2. ConfigManaher.setAllActionFactories()
3. DataManager.clearConfigs()

Not entirely convinced if concurrency issues might arise with reload or 
even on startup (chat).
2013-07-18 01:19:47 +02:00
asofold
b49df04120 Comments.
Hint at per-velocity friction factor. Could be used to add short term 
velocity that does not decrease. However it can't replace extra-buffer
due to special invalidation conditions.
2013-07-17 23:22:38 +02:00
asofold
13add02392 Handle the resetting of the jump-amplifier in MovingListener. 2013-07-17 22:18:15 +02:00
asofold
12bd184517 More cleanup for survivalfly.
Move the after-failure permission-, velocity- and 
extra-buffer-checks into an extra method.

Move special checks like web/liquid to extra methods.

Alter checking order slightly.

Other cleanups (comments, declaration order, grouping).

Shuffle methods.

Finished? No.
2013-07-17 20:10:42 +02:00
asofold
f82a0c084a Reset sprinting if the player is not set sprinting.
Only give the sprintinggrace time concerning the food level.
Should fix more sprintback issues, potentially.
2013-07-17 17:33:27 +02:00
asofold
71ffa298f5 Ineffective workaround. 2013-07-17 01:06:13 +02:00
asofold
9accfc3831 Allow using up horizontal velocity for sprintback. 2013-07-17 00:58:47 +02:00
asofold
6e2844745c Confine "sprintback" alerts to speeds greater than walking.
This reduces false positives with throwing enderpearls at nearby
entities or for horizontal velocity.

Missing: Use up horizontal velocity if sprintback is triggered and
queued velocity is present.
2013-07-17 00:29:56 +02:00
asofold
e97a9297aa Attempt to work around another ender-pearl + survivalfly issue.
Jump (+run) and throw an ender pearl at a nearby entity. 
Survivalfly might trigger with limitjump, since the MediumLiftOff gets 
reset on teleporting (would appreciate MC adding sequence numbers to 
moving packets :p).
2013-07-17 00:23:05 +02:00
asofold
27a063abe8 Minor cleanups. 2013-07-16 19:37:40 +02:00
asofold
2b4a1f20d3 More to vehicle internals.
Set-back handling:
* Make the VehicleSetBack a class in the moving package.
* For set-backs use the debug flag from the time of checking.

Debugging:
* Alter debug output for moves slightly (differing locations).
* Add debug output for vehicle moves with players involved.

Note on 1.6:
* Not even PlayerMove is fired for pigs and horses, so no tracking.
2013-07-16 19:28:47 +02:00
asofold
f556422cd7 Add info about returned object for BridgeHealth recovery failure. 2013-07-16 15:26:07 +02:00
asofold
c7b85f9faa Flying permissions: survivalfly is now child of creativefly. 2013-07-16 00:24:20 +02:00
asofold
172b103521 [BLIND] CreativeFly: Account for walk- and fly-speed. 2013-07-16 00:05:50 +02:00
asofold
80f58d94ce Also check for player.isFlying. 2013-07-15 23:59:51 +02:00
asofold
240bff5b62 [BLEEDING] SurvivalFly: Account for per-player walk-speed. 2013-07-15 23:50:42 +02:00
asofold
e35f1f7c9c Switch do mods instead of speeds for sf. 2013-07-15 23:24:51 +02:00
asofold
c382082c40 Add "sprinting" to moving output. 2013-07-15 22:33:22 +02:00
asofold
f17378b3e0 More cleanup for health API changes. 2013-07-15 12:31:37 +02:00
asofold
489c60f07f Bad last minute ordering. 2013-07-15 02:21:20 +02:00
asofold
268c51b729 Refine conditions for passable.
* Do not check if moving inside of a block that is ignored by passable.
* ray-tracing: Always check vclip up AND down.
2013-07-15 02:15:20 +02:00
asofold
75e21797e1 Minor cleanup. 2013-07-15 01:49:19 +02:00
asofold
4e9e0bd7c1 Fix CreativeFly ignoring possible passable set-backs. 2013-07-15 01:21:45 +02:00
asofold
83187fa549 Bind BridgeHealth API incompatibility warnings to logging.debug. 2013-07-15 00:24:46 +02:00
asofold
cf1c89d646 [BLEEDING] Change message sending queue from per-player to global.
Adds an API to queue messages (thread safe).
2013-07-14 22:04:42 +02:00
asofold
821dc34d7a Schedule sending the chat.text warning message.
Thread safety not guaranteed by API.
2013-07-14 20:29:21 +02:00
asofold
00836ac9d7 Change event priorities (join/world-change) + delay some admin messages. 2013-07-14 20:12:19 +02:00
asofold
f55e0d5742 Alter config version handling + make notification configurable.
Versions are saved in a subsection instead of the comment-header.
2013-07-14 19:19:07 +02:00
asofold
54273687b0 Some comments and javdocs. 2013-07-14 17:30:46 +02:00
asofold
98c64003a2 Add flyspeed and walkspeed to debug output for moving (debug level>0). 2013-07-14 12:50:04 +02:00
asofold
742e6e309c Quick fix for carpets: Allow standing inside/on.
This is somewhat incomplete, because players can pass through.
2013-07-13 21:40:34 +02:00
asofold
c30105d6b7 Fix passable alerts with fence gates.
This workaround allows the block transition from above a 1.5 high block
into the block, for the case both from and to have been inside of the
bounds of the block. This should fix the annoying bug with jumping
inside of an open fence gate, closing it while just above 1.0 height,
so that passable would alert for moving back from air into the block.
2013-07-12 19:53:40 +02:00
asofold
d7ca742c57 [BLEEDING] Fixes for passable/rt preventing moving out of blocks.
Passable/ray-tracing might disallow players moving out of blocks which
they are stuck in on some occasions.
In order to allow moving out of a block, ray tracing is repeated
with the first block ignored for some cases.
2013-07-12 19:27:27 +02:00
asofold
ee0ca14cef Provide a tag for passable violations [not in strings]. 2013-07-12 18:02:57 +02:00
asofold
81b528f90b Allow "step-up" even if in web. 2013-07-12 17:28:07 +02:00
asofold
6f232e5dde Shuffle checks in fight listener 2013-07-11 01:51:36 +02:00
asofold
a8d1aded59 [BLEEDING] Adapt to health changes + set NCPCore dependency to 1.6.1. 2013-07-10 01:55:56 +02:00
asofold
ccc9c74a76 Remove double plus. 2013-07-09 17:59:27 +02:00
asofold
543dcf57f5 Metrics/ticks: Use rounding + de-tweak counting up to 20. 2013-07-09 17:16:47 +02:00
asofold
e1babee538 MCAccess: Get rid of Block_i method. 2013-07-09 12:05:06 +02:00
asofold
e69741f5dc Simplify MCAccess version tags for support of multiple sub-versions. 2013-07-09 11:47:16 +02:00
asofold
4035719597 Use a utility for getting the damage of damage-events as well. 2013-07-06 22:28:43 +02:00
asofold
9edfb14103 Move workarounds for health-API changes to a utility. 2013-07-06 20:37:11 +02:00
asofold
a7581d509d [TEST] Fix reflection for health changes. 2013-07-06 18:53:21 +02:00
asofold
fb4614d101 Use minimum of health and max health. 2013-07-06 16:07:57 +02:00
asofold
f315336005 [TEST] Attempt to fall back to reflection for health issues (one spot). 2013-07-06 15:48:26 +02:00
asofold
e60006d6a3 Update pom.xml descriptions. 2013-07-06 14:49:24 +02:00
asofold
8929108152 Add option to not send any motd, move config for it to its own section. 2013-07-03 18:32:47 +02:00
asofold
4a581f8f91 I said i would try the endless loop one time. 2013-07-03 13:16:12 +02:00
asofold
01c3252f79 [BLEEDING] Auto detect "missing" VehicleMove events.
Like with pigs, players can ride other entities than would fire
VehicleMove events. To counter this NCP will detect for which entities
those events are fired and do the packet checks for those that don't.
2013-07-02 22:36:48 +02:00
asofold
d11e91f2e4 [BLEEDING/INSTABLE] Roughly adjust to 1.6.1 Bukkit API changes. 2013-07-02 12:13:33 +02:00
asofold
f894a8da39 [BLIND] Add factory for vanilla blocks + early addition of 1.6 blocks. 2013-07-01 15:34:33 +02:00
asofold
cd9930d3c0 Forgot that step. 2013-06-30 22:45:27 +02:00
asofold
3ba5f311b1 Add missing @GlobalConfig. 2013-06-30 22:27:22 +02:00
asofold
480264d0f1 Optimize ColorUtil.
* Use ChatColor.translateAlternateColorCode
* Use more (still too) complicated but faster method for color removal.
2013-06-30 22:24:57 +02:00
asofold
4085223594 Make messages configurable for hiding plugins. 2013-06-30 20:00:12 +02:00
asofold
3b337d968d Change config path for protectplugins. 2013-06-30 19:28:52 +02:00
asofold
90783e290f Lost update... 2013-06-30 03:03:43 +02:00
asofold
78f453c5c2 Update metrics. 2013-06-30 02:49:26 +02:00
asofold
3880808d06 [BLIND] Attempt to catch open inventories for portals and world changes. 2013-06-30 00:07:54 +02:00
asofold
c25b774721 Add hook versions to the "ncp version" command. 2013-06-22 17:13:54 +02:00
asofold
eca9c26be5 Attempt to fix high jump effect (5) + survivalfly (step). 2013-06-12 15:37:59 +02:00
asofold
21442c4e22 Use a filter permission to see if a player can use the root command.
The permission is set as child of all command permissions 
(sub commands of the root command). This is done in post enable to not
have to add it 100 times to the plugin.yml. Hopefully permission plugins
handle this right, superperms (permissions.yml) does.
2013-06-12 02:08:22 +02:00
asofold
00696c1624 Correct order of permission checking for the root command. 2013-06-12 01:08:10 +02:00
asofold
ae2d6142d9 Add command to turn notifications off and on again (per player). 2013-06-12 00:53:40 +02:00
asofold
4811fefb05 [COMMAND CHANGE] Remove delay feature from ncp ban/kick/tell/tempkick.
"ncp delay..." still is available.
2013-06-11 21:33:33 +02:00
asofold
8ea5eccaa0 Put commands on feet.
* Add a new base class for better sub-command handling also for
tab-completion (AbstractCommand).
* Alter package structure slightly, to group command-classes by purpose.
* Some renaming.
2013-06-11 21:17:06 +02:00
asofold
888c7d937a Add tags to PlayerData + implement a notify-off tag.
Not sure this is that much final, but PlayerData can now carry tags.
NoCheatPlus.sendAdminNotify... will now check PlayerData for the
"notify_off" tag, as a preparation for a command to turn off
notifications.
2013-06-11 20:06:57 +02:00
asofold
1d53115abe [BLEEDING] Add option to set prefixes for the logging messages. 2013-06-11 01:23:35 +02:00
asofold
2bf28c4982 [BLEEDING] Move configuration for logging back-ends to sub-sections. 2013-06-11 00:36:43 +02:00
asofold
be91af4e51 Rework PathUtils.
* Add processing for a new @Moved annotation for moving content to other
paths.
* Remove deprecated paths.
* Changed visibility of some static methods.
* Moderate renaming.
* Remove unused set.
* Ensure only string fields are processed (potential future issue).
2013-06-11 00:13:31 +02:00
asofold
b84235d31f Prefer this formatting, rather. 2013-06-10 19:27:13 +02:00
asofold
7805d8d486 Add ability to warn for use of deprecated paths. 2013-06-10 19:10:38 +02:00
asofold
228a6478a8 Remove RootConfPaths. 2013-06-10 18:32:43 +02:00
asofold
f7d2d44070 Fix two bounds issues for blockinteract.visible.
* Correct offset for null-bounds.
* NPE with null bounds in checkCollision.
2013-06-08 06:13:45 +02:00
asofold
36711fc98f Cleanup. 2013-06-07 19:30:10 +02:00
asofold
bd043f407d [Bleeding] Reduce false positives for blockinteract.visible.
Alternate positions are checked for both passable and ray-tracing. This
lacks a little bit abuse prevention, because up to nine times
ray-tracing can be checked, which can be used to cause load for the
server, limited by blockinteract.speed.
2013-06-07 19:24:33 +02:00
asofold
9231de2d60 Adapt comments for getCorrectedBounds. 2013-06-07 15:35:22 +02:00
asofold
8f862fb3f6 Outer space again! 2013-06-07 15:23:40 +02:00
asofold
44a9bcbbfc More appropriate message. 2013-06-04 19:41:15 +02:00
asofold
fc6a20ae0d Write to console if NOT suppressed. 2013-06-04 19:21:15 +02:00
asofold
f6819dc6d6 Add option to suppress warnings for consistency checks.
Currently only applies to the player-inconsistencies (DataMan). A
summary message will be written to console on disabling the plugin if
inconsistencies were found.
2013-06-04 19:18:35 +02:00
asofold
05ab822615 Remove Location reference for FightData on world changing. 2013-06-04 11:57:44 +02:00
asofold
a9f26e2d7d [BLIND] Quick fix for memory leak with unloaded worlds (MovingData). 2013-06-04 11:44:21 +02:00
asofold
b8141f5f32 Adjust interact.visible to use bounds (read details below!).
* Uses unmodified block bounds as returned by the server, this is not
the final version but does fix the door problem.
* Users that use the CompatBukkit (bukkitapionly) module should beware
of the current dev-line, because the block shapes can not be retrieved
with using the Bukkit-API only, thus some blocks squeezed between other
blocks can not be interacted with in a reliable way. This concerns
interacting with the sides that are directed towards solid blocks
mostly, so in most cases there still is a side possible to interact
with, but it might be the short side of a door, not convenient.
2013-06-01 14:48:23 +02:00
asofold
90f110146f Attempt to fix fall-damage issue with dealdamage=false (Ticket 548). 2013-05-30 20:41:48 +02:00
asofold
18e18fae5f Refactor NoFall to reduce code duplication, re-order some arguments. 2013-05-30 20:28:37 +02:00