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.
this plugin is great, but my bending players seem to get kicked, and my staff is getting irritated by some of the messages that pop up... other then that, I love it..
@asofold
Ok, I have informed the author of Swornguns. In the meantime, we will just keep the check off, as it is not really a threatening hack.
Thanks a lot!
@Wizardgreatar
The plugin needs code changes, otherwise you have to exempt players from that check.
Specifically they have to add some kind of custom event indicating that it is a gun being fired, two basic ways:
The first one doubles the event count but is more simple to add and also to add/remove by configuration. Either would be ok for cncp to somewhat pinpoint exemption for guns with this plugin then.
@asofold
Hey, sorry for the long delay.
Yes, on the shotgun, of all guns. (It may do the same on others, but shotgun is the only confirmed). It fails "Speed: tried to throw projectiles too quickly". Seems to have to do with the bpspeed test.
Thanks a lot for your fast responses!
@maxlehot1234
Yes, 1.7.4 works, 1.7.2 should be ok too. Edit: Probably the servers are not reaslly 1.7.4 - so 1.7.2 or 1.7.3, whatever...
Is it wor with 1.7.2
@EvilWosby
Did you try the latest development build from our Jenkins fro CrackShot ?
Bunch of others - the more details the better.
@mike_x1
YES, please add support! My players KEEP getting kicked!!! BECAUSE IM using CrackShot and getting sniped into a vine and it climbs up the vine then the player gets kicked!
ALSO ADD SUPPORT FOR Zombie Ablockalypse Because using the revive function and a bunch others KICKS PEOPLE!
@amonfv
I don't know at present, i was waiting for some input quite a while. Seems that @MyPictures is in touch with people from the Heroes team, at least occasionally.
There seem to be problems tdue to the vast configurability, something like that - if you have a specific problem, i might have a look, but i can't give a general estimation of what featrues might or might not work.
any chance for heroes support for this or will it work with that also?
@Wizardgreatar
I doubt that it does by default, does NCP actually conflict (what checks / error logs)?
Does this plugin allow NoCheatPlus compatibility with dmulloy2's SwornGuns plugin?
nvm.
@OldPrelude
Still being updated. It just does not break as often.
@StiDJa
Maybe. Could also mean that there is more network or other delay (spikes) or that players are cheating more, having worse hardware. Hard to tell, is it specific in any way (potion effects, certain or no tools, certain blocks) ?
Im using this on 1.7.2, but it seems alot of FastBreak alerts are coming through still? does this mean it isnt working?
Wil this be updated? It works amazing with mcMMO!
@mike_x1
The plugin does not seem to be open-source, so it is hard to give too much of an estimation of anything.
I did a quick try on the weapons, however we can't be sure it#ll work, you will have to test for yourself. For that purpose use the lates (65+) build of cncp.
And please provide more information on what type of weapon does not work and what check alerts are there (test with "ncp info PLAYERNAME" before and after using a weapon).
Could you please add support for the CrackShot weapon-plugin?
@Incompy
It depends on how the double jump is done.
If your plugin just switches flying and adds velocity, i would think it a bug rather. A couple of moving traces (moving.debug set + maybe TestNCP on) would be very useful to track down what happens.
At least you/we should have a look at the violation messages and the "tags" entries, in order to know what parts of the checks trigger.
IF you can alter the plugin, then you can hook into NCP directly to attempt to make the skill compatible, basically you would tell NCP that the player has received some velocity and NCP will continue as if the player had a little extra velocity added, but without actually adding velocity to the player. Which velocity (horizontal or vertical or both) to use and what amounts/timing constraints depends on the skill implementation, it could be that quite small amounts are enough to get it working.
In fact, if your plugin could add events (needs further inspection where exactly to fire), then cncp could of course contain a hook in order to do the velocity thing, if you are more comfortable with that.
How would I go about making my double jump plugin a bit more compatible, so NoCheatPlus doesn't cancel the event?