Commit Graph

694 Commits

Author SHA1 Message Date
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
asofold
640409f4d3 Add option to reset nofall data if in vehicle. Relates to ticket 535. 2013-05-29 16:37:31 +02:00
asofold
430915e377 [BLEEDING/INCOMPLETE] Attempt to fix issues with blockinteract.visible.
Done: Check if the end point of ray-tracing is passable.

Problem: Might lead to problems with non-full blocks squeezed between
full blocks.

Missing: Implement corrected outer bounds getting for use with this.
2013-05-26 21:10:47 +02:00
asofold
3b22ca2e6a [Experimental] Update inventory after FastConsume violations.
This might be used for other inventory violations too (subject to
testing).
2013-05-26 21:01:39 +02:00
asofold
c6b1a81a26 [CRITICAL] Fix block-coordinates being used for chunk loading. 2013-05-23 10:38:02 +02:00
asofold
87f83ffe65 Add ymax to nofall debug output. 2013-05-23 09:49:36 +02:00
asofold
c77dbff23e [Bleeding] Add FastConsume, if available will replace instanteat.
Somewhat hacky still, not sure it actually works too well.
2013-05-23 09:44:24 +02:00
asofold
ce834675d7 Move most code to NCPCore, removes NCPCompat.
Factories are now on NCPPlugin level, thus all the core stuff can be in
one module, giving better source code browsing.

Updates has been moved into an updates package, because there is to be
expected more content, and to make utilities less fat.

To indicate the direction, the basic infra-structure has been added to
allow adding components to the DefaultComponentFactory. Further
processQueuedSubComponents is now called after each components adding in
order to allow more flexible registry features.
2013-05-22 12:24:48 +02:00
asofold
463700cb3a [BREAKING API] Add module NCPCore between NCPCompat and NCPPlugin.
* Static utility NCPAPIProvider instead of NoCheatPlus.getAPI().
* Extend NoCheatPlusAPI: Some previously static access methods are now
part of the NoCheatPlusAPI interface instead. MCAccessHolder is
implemented and allows external setting of MCAccess.
* Fix some static members/calls to non-static.
* Moving some packages to NCPCore.
* Prepares for moving most check stuff between NCPCompat and NCPPlugin
to allow more optional higher level components.
2013-05-21 22:49:05 +02:00