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.
@raum
Some "MoCreatures" code is on Google docs, but i could not find anything useful in the first go, disregarding if it is "official" - maybe you can ask on their project page too, if they have any compatibility features for Bukkit (fake player permissions, special Bukkit class name for fake players, metadata, special event class names...)?
@asofold
I'll see what I can dig up .... I don't think that mod is open source, so I'll have to dig through any docs I could find.
@raum
Does the MoCreatures fake player have fake join/leave events ? Is there any setting like that?
If they don't provide a means of knowing their fake player is fake, we can't do anything... if you can find anything on that, it could speed up things.
@asofold
Doesn't look like there's any perm support. Does it look like I'm SOL at this point, for the time being?
I notice I can exempt names from block-break and block-place events - Do any other exemptions exist that aren't listed by default?
@raum
Looks like they fire BlockBreak events claiming MoCreatures is a player.
Does MoCreatures have support for permissions ?
I still have in mind collecting the different event classes that exist during runtime, in order to allow exempting them by a command, but currently we don't anything better than checking the code of the other plugin/thing or asking the developer.
Permission support would allow adding bypass permissions for those checks.
@asofold
Some of the newer creatures do indeed 'cheat' - Mostly block break errors, but they're very ... abundant. :) I am not sure what the exact class name is, unless that's just what is showing on the logs. It's mostly 'WrongBlock' and 'FastBreak'.
Take that x500 and you've got a few minutes of being near an Ent or an Ogre, as well as violation levels into the hundred billions. ;)
@raum
Can you paste some warnings?
The player class hook is just an emergency fall-back for npcs that are implemented as players, so NCP would not be able to assume they are not players without extra information. Not sure that applies to MoCreatures, however for it to work one would need to know an implementation detail of that mod (exact name of the classes in use) - should only be done if creatures are caught for "cheating".
Having some issues with a new venture into modded servers - Fairly certain it's operator error, but can't figure out what the issue is.
We've installed Mo' Creatures - We've enabled player-class, and have exempt-all true, but "MoCreatures' is still throwing NCP warnings like crazy. Did we miss something?
(I google searched and found *A* comment SOMEWHERE regarding this, but couldn't find it on the actual page - so sorry you may have to repeat the original answer :))
Thanks!
@xNanochip
I think my answer did not get registered, sorry about that - i will come back to this question soon.
In short: Of course the author can do something, maybe we can as well or we just both could cooperate on it. Simple things like block-breaking can be cured if they use custom events that are different from the default events, so cncp can make NCP skip those.
If you want exemption but still protection, it gets slightly more complicated, because those exemptions tend to allow too much, e.g. nuking for fast-breaking skills.
@alfonsojon
No problem.
@asofold
Never mind, it's not related to NoCheat. Sorry about that.
Is there a way to add compatibility for the ToolBelt plugin. NoCheatPlus really restricts it heavily. The author of ToolBelt says he really can't do anything about it. Maybe you can?
@TheExelot
It seems you don't have NoCheatPlus installed at all, do you have that?
I am getting error messages of CNCP on reload/shutdown, this is the code, my guess it that CNCP needs an update
Code on shutdown:
Code on startup:
I wish to fix these things if posible, any help?
Thanks anyway
@alfonsojon
Ghost blocks are a somewhat known thing - did you really track it to NCP ? It would concern ANY plugin that cancels block breaking, e.g. due to too high breaking frequency. Seems the client does not receive the cancelling of block breaks which would be a CraftBukit issue.
What do you mean by "as if a mod" ? Do people receive violations? Can you post the full output of the "cncp" command?
@asofold
mcMMO + NoCheatPlus + cnpc results in many events, such as super breaker, being treated as though the user is using mods. Additionally, NoCheatPlus seems to be causing many ghost blocks after using an mcMMO ability to destroy blocks rapidly. This can only be fixed by disconnecting and reconnecting, then the ghost blocks reappear.
@xion87
You have NCP + cncp installed and mcMMO poses problems ?
i having some issue with mcmmo, it block almost of breaked blocks by using skills...
@szebi1999
Yes, it should still be compatible.
Compatibil 1.7.2 /4 nocheatplus?
@frobuzmumber
What's bending players?
What's the text of the irritating messages?