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.
@zSwayz
No exception printed out ?
Usually that is a big problem, it will also slow down the server, potentially.
You should seriously consider to check if the versions of NCP and cncp harmonize - which build number of cncp are you using and which of NCP?
Get dev-builds for both at: http://www.nocheatplus.org:8080/
Not sure what this is about but i see this all over console 24/7
23:49:49 CONSOLE: [SEVERE] [NoCheatPlus] Hook PlayerClass(cncp) [2.0] encountered an unexpected exception:
23:49:53 CONSOLE: [SEVERE] [NoCheatPlus] Hook Citizens2(cncp) [1.0] encountered an unexpected exception:
@Kilnom
You have likely installed an old version of NoCheatPlus. You should update to the latest release which is available on bukkitdev or you can update both NCP and cncp from our jenkins site http://www.nocheatplus.org:8080/ (update both for the latest version!)
13:08:44CONSOLE: java.lang.NoClassDefFoundError: fr/neatmonster/nocheatplus/utilities/TickTask 13:08:44 CONSOLE: [SEVERE] Could not pass event BlockDamageEvent to CompatNoCheatPlus v6.2.8-b7
The console gets spammed by this message
@yamsucker742
Not really. We will try to do something about it, bit by bit.
Is this compatible with heroes? I'm sure this has been asked before but I cant seem to find a response in the comments.
@Artegoland
I think it did conflict with NCP, not sure about versions right now.
If i remember right, plugins like Stargate use the player move event for "teleporting" by setting the position the player is supposed to move to to the stargates destination. Same time it uses "lowse event priority" to do so before all other plugins do anything with the moving events. Thus NCP gets a moving event showing an incredibly big range (or just too far range) and will prevent it.
I don't know why those plugins use lowest priority, it does not seem to make sense to me, while NCP has to use lowest priority in order to not have the events manipulated by other plugins before NCP gets them.
I will try to find a workable solution for those, but best would be the developers of StarGate and similar plugins would not use lowest priority.
Edit: it seems Stargate works with NCP - so never mind....
Is stargate supported? :)
@Magicnoone
Update NoCheatPlus and cncp to the latest versions, for NoCheatPlus you should use the latest development build, at present.
It's bugging around in my case.. http://pastebin.com/qQrWUv5D
@asofold
Thank you very much for the fast reply. Also thanks for adding the hooks you have to the config. Makes it much easier to understand.
@xXSshadowXx
The new versions do without that, there should only be an empty list.
For sime reason WorldGuard is still on it, but that has no real reason.
I saw you mentioned since 6.0.0 NCP is removed from this
force-enable-later:[]
ensure-enable:
- WorldGuard
- mcMMO
- Citizens
Does that mean we need to add it or does that mean it's handled internally already?
@netherfoam
Any more details (logs, something) ?
Are you using Spout?
I've got players falling through the void on login when I enable CNCP. It's rare, but enough to make me stop using it. I don't know how to replicate it either, unfortunately. Is anyone else having this issue?
@asofold
thank you.
@Doenerb0y
I don't. But can you add the info to a ticket? One can lose track of this chat quickly.
I just did not answer yet. Had a look at it and could not quickly find the source code (no links from that page, right?).
@deleted_8873967
I see, it is very similar to mcMMO, i am sure it won't be covered yet. But maybe i can make the exemtption mechanisms more generic so that adding it will be easy.
(Could not access source yet.)
@asofold
i thinks its open source,not sure:
http://dev.bukkit.org/server-mods/skillz/
thanks for ignoring me..
@deleted_8873967
Depends on what that skillz plugin does. It might not work out of the box. Is it on bukkitdev, or more important open source ?