CompatNoCheatPlus
CompatNoCheatPlus (cncp) provides compatibility between the anti cheat plugin NoCheatPlus and other plugins that add game mechanics different to the vanilla game behavior, such as mcMMO or plugins that add npcs such as Citizens. You need NoCheatPlus for this, NoCheatPlus can not be replaced by this.
This plugin is an add-on for NoCheatPlus: NoCheatPlus on BUKKITDEV
Development builds of this project can be acquired at the provided continuous integration server.
These builds have not been approved by the BukkitDev staff. Use them at your own risk.
Development-builds (Jenkins at ci.md-5.net): CompatNoCheatPlus and NoCheatPlus
Features:
- mcMMO:
- Block breaks by abilities should lead to no or almost no alerts anymore.
- Fighting alerts should be reduced.
- Citizens 2:
- NPCs no longer generate check alerts.
- Generic:
- Cancel all check failures for players that are not real players. This should handle a range of NPC creation techniques in general, as exist with Citizens 1.
(Experts: good bit of it is configurable.) - Block breaking and block placing: Plugins that break or place many blocks "in the name of a player" have a better chance to be made compatible by adapting the configuration. Defaults are set for MachinaCraft.
- Bukkit player speed API: Set the fly/walk speeds globally and let NoCheatPlus deal with the rest. (Needs to be enabled in the configuration.)
- Cancel all check failures for players that are not real players. This should handle a range of NPC creation techniques in general, as exist with Citizens 1.
- For configuration reference: Configuration
(Should not be needed usually, but can be used to disable unused hooks, or enable the set-speed hook. - For details on plugin compatibility, see: Details
Spout users
Spout users might encounter problems (nofall / fly working). Try to disable the player-class hook - but i am afraid there might be further incompatibilities at present.
Contributors:
- Welcome!
- Maybe someone wants to join this project ?
Repository: https://github.com/asofold/CompatNoCheatPlus
API: You can register a hook with cncp, which might or might not spare you some coding, cncp will re-enable NoCheatPlus with a delayed sync task, so you can use the PluginEnableEvent to register hooks that can listen on lowest level and be processed before NoCheatPlus. If you don't need these features then you can directly hook into the NoCheatPlus API (introduced in the lates dev builds of NoCheatPlus 3.7). Adding a hook demands further not to put NoCheatPlus into the depend or softdepend parts, returning the NCP hook and the check types should be the first time to access NCP API actively.
@rylinaux
Yes, it was made for NoCheatPlus, without NoCheatPlus it would not make any sense to install it.
@MyPictures
You describe it as an add-on, does this mean I must have NoCheatPlus installed along side with this for it to work?
@DrBreadgun
What permissions ?
cncp just installs some hooks for compatibility of NoCheatPlus to other plugins.
They can be disabled by configuration.
Wait, where are the permissions?
@LordBoos
I am forced to use lowest priority because NoCheatPlus is using them, but CompatNoCheatPlus ensures that listeners that are registered with cncp will come before NoCheatPlus listeners, so using cncp hooks you might be able to make your plugin working.
This is a slight design problem by bukkit not to have a monitor like level before lowest...
So do you have more details on the "breaking" ?
@rylinaux
No cncp is like a addon for NC+, it uses the NC+ 3.7 API to add some cool stuff that some admins would like to have.
@ktross This is definitely true. Not sure what's wrong, but looks like you are using LOWEST priority events. That's not good idea.
This plugin breaks warmups in boosCooldowns
So CNCP and NCP have the same features to block hacking a such, but CNCP just adds additional support for mcMMO and Citizens?
@mattbrw08
I have no idea currently, for me it reduced the "moved too fast" messages for reasonably fast flying, but it could well be that oyu reach higher speeds with falling - in that case it would be a case for the jira bugtracker for CraftBukkit (leaky.bukkit.org)!
@Kartikitrak
For mcMMO you can just put the jar into the plugins folder.
If you have no NPCs you might disable the player-class hook (set the enable flag in the section for player-class to false), so the unnecessary checks are prevented.
Edit: For mcMMO block breaking, especially at high skill levels this is almost obligtory :)
When you say for MCMMO it fixes block breaks, does it mean all the special moves like Tree feller and 1 click break? Also to install it do I just drag and drop the jar into the plugins folder and restart the server? Also is there any configurations to do to make it more lenient or change settings?
Thanks a bunch. If this works, lots of players will be super happy.
@asofold
they are craftbukkit messages i guess since even if i turn off everything in NCP the probelm still ensues. While the problem stops things in MagicSpells its also stopping simple minecraft mechanics such as falling from a high point, you will land on the ground unharmed as it throws the moving too quickly message and jus places the player on the ground. I guess im not really asking anything of your plugin at this point since its unrelated to NCP or CNCP it seems, so i'm really just asking for your intellect on the matter.
Ok... are you refering to the NCP messages or the CRaftBukkit messages (NCP would also show in ingame chat, like "NC: ..."?
Magical Spells should get blocked by NoCheatPlus anyway for the jumping, to make it possible one might need some API on MS side or they hook into NCP or cncp. as i see they are closed source (bukkitdev)..
@asofold
setting to true with 1.0 walking and flying speed has still not resolved the "move too quickly!" thats causing me a lot of problems :/
@asofold @asofold
is there anyway i can get rid of the "player moved too quickly!" im using magicspells on my server and for many of the spells that allows players to do things like jump real high, it doesnt work and pulls the player back to the ground giving me the message on the server. If not get rid of it, what can i set the speed to, to allow for quicker movements like this?
@Poopfish
Try it !
You need to set the enabled flag to true for the set-speed section in the configuration (see: Configuration link above for examples).
Speed checks can then be done by NCP. The values for fly-speed and walk-speed seem to refere to blocks ber tick distance, but i am not 100% sure about that.
So does this fix the stuttering with falling, ever since bukkit added the "moved too quickly" check, falling for all players has been a glitchy experience to say the least.
@aphilosopher
I am sorry :)
@weja93
Could have been me telling -
1. the "moved to quickly" is actually not NoCheatPlus it is CraftBukkit/MC, but that does not matter that much where it is from.
2. The set-speed hook can be enabled in the configuration with setting the enable flag in the set-speed section to true, this needs a restart (or reload) to take effect.
The set-speed hook allows you to set the speed limits for players, to be used by the server-internal checks. The default limits are given in the configuration, (not 1.0 that is the maximum value), you can leave it at the maximum values and trust NoCheatPlus to limit player speeds. I have not yet come across any exploits yet (if players can bypass the NoCheat speed checks then they would only be limited by the set-speed values).
I was told to use this set-speed to prevent NoCheatPlus making "Moved too quickly" for me even I am OP and with .* permissions.
So what does this do? And how should I set it ?
@asofold
clever thing to check for,
and on the topic if disabling skills there is no config option for it in mcmmo, only the perms, hence why i tried to negate that perm, i guess another option i have is to just remove the umbrella node and give them each single one excluding herbalism *sigh*
now im off to waste a half hr doing that xD