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.
@Hazae41
There is a lot of features in it.
Can you give examples of which combinations (tools/enchanbtments) or which feature of that polugin causes trouble?
I could also use information on what checks alert for those.
Can you add some features for EnchantMore ? (FastBreak, Fly, Speed)
@Soulreaper099
That you dont have NoCheatPlus installed on your server and this plugin requires it.
ERROR Plugin CompatNoCheatPlus v6.5.0-RC-sMD5NET-b68 has failed to register events for class me.asofold.bpl.cncp.hooks.generic.HookInstaBreak because [Lfr/neatmonster/nocheatplus/checks/CheckType; does not exist.
What does this mean exactly?
@LordKainzo
For the fighting something can be done comparably quickly, provided you fire custom events extending EntityDamageByEntityEvent.
If you fire any sort of custom event before applying the damage, something foggy might be done.
As EntityDamageByEntityEvent is used for melee-clicko-combat in Minecraft, i strongly suggest extending the default event with a custom one...
@asofold
https://github.com/asofold/CompatNoCheatPlus/issues/6
Heroes integration please!
Major issues.
There are melee-skills that can hit all mobs within an area. This triggers the client to be similar to Forcefield hacks - we have disabled the check for forcefields to allow most skills to function.
There are "magical" damage skills that hit all mobs within a radius, these seem to function "most" of the time since we disabled the check for Forcefield.
There are skills that can throw multiple projectiles at once, these always lower down to 2 thrown no matter what.
There are some skills that add speed effects and other potion effects that trigger nocheat issues.
There are skills that trigger "SNEAK" on the player without slowing them down, Skill-Sneak is one of these.
Some skills do not require SWING - so will trigger no-swing issues all the time.
Some skills do not require normal-range - so will trigger no swing issues.
Types of Damage Events:
EntityDamageByEntityEvent
@mrdoomods
You do need NoCheatPlus, because CompatNoCheatPlus is just an add on - do you have that installed too?
this plugin doesnt work, i instaled it to my 1.7.9 server and people can still fly and do every hack in the book
@jonghyek
I am not sure if i can do anything for the leap spell at present, but the projectiles something can be done about.
Please use
<<code YAML>> ... <</code>>
to show .yml content.I think the spell name would be Jump then, but cncp can't help that one. If the freezing spell just does a lot of potions instantly, then that one might work with BLOCKPLACE_SPEED.
'leap' and 'freeze' spells. NCP said SurvivalFly, and BlockPlaceSpeed (throw projectiles too quickly)
so I turn down SurvivalFly, and BlockPlaceSpeed option, but some people using Fly cheat and I can't prevent that. (because leap magic is very important thing in my server)
I wonder if I want to free from NCP conflict, Which one is correct config node when I changed spell name to 'Jump'?
leap? or jump? or any others?
Thank you for answer.
@jonghyek
We can't just set it to allow the whole plugin, also because MagicSpells is a lot configurable.
What spells are conflicting?
How can I set allow magicspells?
can you tell me how to set configuration.
magicspells: enabled: true NOTE: MagicSpells support is experimental, only instant spells can be added here. exempt-spells: NameOfExampleSpell: COMBINED_MUNCHHAUSEN, UNKNOWN, BLOCKPLACE_NOSWING
@MineCraftMyph
Can't suggest more than to redownload NoCheatPlus then and ensure there is no duplicate copy in the plugins folder. It does look like NCP is not present or can't be accessed right.
Are there plugin manager plugins involved?
@Manercraft
Heroes keeps being on the list... what are the specific problems for you?
Please add http://dev.bukkit.org/bukkit-plugins/heroes/
@asofold
Of course.
@MineCraftMyph
Do you have NoCheatPlus installed?
@asofold
alrighty
@LordKainzo
Time is the problem :) - testing things taks that time... i would like to get it fixed though. I will come back at this with more time (this week/end i hope).
Asofold I'd be willing to offer payment for you to work on compatnocheat and Heroes.
Really dont have time to make it work myself.