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.
@aphilosopher
Does disabling the skill work?
I have read elsewhere that hunger problems occurr without NCP too - but i am not sure.
I will check if maybe the hunbger alerts start chaining once one alert has been triggered , say by lag.
@mattbrw08
How old is your version of mcMMO ? At which build did you fork it ?
And: Does cncp actually prevent NCP alerts for block breaking ?
If so , then just ignore it. But it might be that CraftBukkit denies the whole listener, such that block breaking is not monitored anymore (would make the hook useless).
But you could get rid of the warning if you place an event class with the same name under the same package path (FakeEntityDamageByEntityEvent extends Event) - that would ensure that block breaking is monitored correctly.
But you can test it if you dont have bypass permissions for NCP: you can with a diamond shovel and excavation 1000 go circling round in sand.
@RuneCraft
I am not sure ... could not find any source code..
@epicbastion
on the note of negating perms with pex, you have to list the negating perms first if there is an umbrella perm like mcmmo.* and then -mcmmo.skills they would still have skills however if it is -mcmmo.skills and then mcmmo.* they should have all mcmmo except skills,
pex gives priority to the first perm in the list if it finds two which are related
this in mind i am still unable to negate herbalism in mcmmo with pex, i have used a hyphen in pex to negate many other perms, but this one isnt working
@aphilosopher
You are using pex, I have been having trouble with pex negating perms for 1.3.1 with pex 1.19.3. Depending on how you have pex set up it could be that it is not reading them properly.
If you have a test server, convert your pex file to bpermission or yapp permissions files and see if the issue goes away, I am interested to see if it is really pex causing these issues or the interactions of just vanish that does not seem to work with pex.
basically what you are saying here is mcmmo is not interacting properly with pex so again that is what i would be interested to find out.
btw is there any method to allow the Runecraft plugin to function with NoCheatPlus?
it has things like faster mining flying stuff like that, how can runecraft be hooked into cncp?
cause atm ncp is denying alot of runecrafts functions
@asofold
just an hr ago some random person came on the server for first time and was using this exact hack of rapid health regen,
so that as an example i would realy realy rather not disable nocheats checking of that, i would even go so far as to say id rather just turn off mcmmo completly if it is going to leave me with only these three options which are A) disable the check in ncp allowing hackers to essentialy have god mode, or B) disable mcmmo..... or C) leave both in place and force the server players to starve repeatedly....
seems like these are my only three options now, mcmmo is not worth ruining all the pvp on my server (save for the few who actualy dont hack)
i have tried adding these perms to my perms.yml for pex
-mcmmo.skills.herbalism -mcmmo.skills.herbalism.* and -mcmmo.ability.herbalism -mcmmo.ability.herbalism.*
so the hyphen ( - ) will negate the perm yet they still have the abilities and they still are unable to eat food without it actualy making them more hungry
ik mcmmo perms are not your issue since it is mcmmo's creation and issue, but tbh the mcmmo dev is much harder to contact then you are :D so any advice you could give on disabling that ability for my players to cease this food bug?
@asofold
yeah im using it, it is a fairly older version of mcmmo tho.. i changed a ton of the java for it tho which is why i dont wanna update. you suggest updating the mcmmo tho?
@mattbrw08
That should not happen usually - what version of mcMMO are you running ?
Are you not running mcMMO at all ?
I get
[severe] Plugin CompacterNoCheatPlus is attempting to register event com/gmail/nossr50/events/fake/FakeEntityDamageByEntityEvent, which does not exist. Ignoring events registered in class me.asofold.bpl.cncp.hooks.mcmmo.HookmcMMO
everytime :/ anyone help me?
@aphilosopher
Indeed, it has hardly been a week if i am not mistaken ...
Rather disable the instantheal check or set the actions to only trigger for higher VL values.
If mcMMO just regains players health faster it will be difficult.
Easy to provide would be if mcMMO provided a specific event fired to indicate that mcMMO just adds to the health of a player, so cnc p can tel NCP to exempt that player from checks / actions.
Maybe i can later add to check the herbalism skill and relate it to the speed of regeneration - but either way some API is missing on either side, so that could take a while.
@asofold
regarding "•Health regeneration involving the "herbalism" skill of mcMMO might pose problems, so one might have to set the hunger-related setting for herbalism in mcMMO to false for the time being. "
the newest mcmmo config no longer contains the hunder related setting, so now the only option to disable the false positives of eating to fast or regening health to fast can only be corrected either by A) disabling the check in nocheatplus or B) disabling the herbalism skill from mcmmo completly....
obviously i realy realy dont want to do either of those......
perhaps you could add in this setting to your own config for those of use who DO want herbalism without all these false positives regarding eating?
@XeonG8
The permission to allow disabling the bukkit intern speed checks is : nocheatplus.checks.moving.nobukkitcheck
Works with Build #3 (jenkins)Not sure it works<sub> it seems some people have problems with it ... we will have to resolve that tomorrow probably.</sub>
@XeonG8
NoCheatPlus :)
@asofold
I'm so impatient... any hint when that will be, you are talking about a cncp release right?
@XeonG8
It will be fixable with the next release.
@asofold
That doesn't make anysense.. apart from the not yet released bit ... in which case I just hope it works with cjb flymod .. aaah *dreams of floating in the clouds without being tp'd down to ground lameness* :D
@XeonG8
We had a constellation to have it work but it is not yet released.
So asofold anything new on the enabling of client fly mods /fasterfly?
I'm not sure why you don't try one of them (zombe,cjbmod etc) in testing to see for yourself?
o.......i see So i think this plugin is very useful for me thank you
@Kartikitrak
This plugin does not add anything to mcMMO, id makes using mcMMO possible when you have NoCheatPlus installed.
So if you use NoCheastPlus against cheating and also use mcMMO then you should install this as well !