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.
@Ahrimanian
You need NoCheatPlus ! Best use Build 88 or the latest one after that.
Does anybody know how to get citizen plugin working with compact nocheatplus and nocheat plugins please?
When the npc moves the nocheat detects it as a speed hack and thus crashes the server. Any help would be appreciated and here is the log.
[SEVERE] Could not pass event BlockBreakEvent to CompatNoCheatPlus org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.ItemInWorldManager.breakBlock(ItemInWorldManager.java:260) at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:205) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:549) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:133) at net.minecraft.server.Packet14BlockDig.handle(SourceFile:46) at net.minecraft.server.NetworkManager.b(NetworkManager.java:281) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at org.getspout.spout.SpoutNetServerHandler.d(SpoutNetServerHandler.java:173) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.NoClassDefFoundError: fr/neatmonster/nocheatplus/hooks/NCPExemptionManager at me.asofold.bpl.cncp.hooks.generic.ExemptionManager.addExemption(ExemptionManager.java:138) at me.asofold.bpl.cncp.hooks.generic.HookInstaBreak.onBlockBreakLowest(HookInstaBreak.java:71) at sun.reflect.GeneratedMethodAccessor302.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330)
Should update : cncp 6.2.2
Otherwise disable insta break hook and set mcmmo to not use it.
@MrMime22
NoCheatPlus installed ?
ent BlockPlaceEvent to CompatNoCheatPlus 06:41:00 PM CONSOLE: java.lang.NoClassDefFoundError: fr/neatmonster/nocheatplus/checks/CheckType 06:41:00 PM CONSOLE: [SEVERE] Could not pass event BlockBreakEvent to CompatNoCheatPlus 06:41:00 PM CONSOLE: java.lang.NoClassDefFoundError: fr/neatmonster/nocheatplus/checks/CheckType 06:41:00 PM CONSOLE: [SEVERE] Could not pass event BlockBreakEvent to CompatNoCheatPlus 06:41:00 PM CONSOLE: java.lang.NoClassDefFoundError: fr/neatmonster/nocheatplus/checks/CheckType
@asofold
Could be what im experiencing, are you guys getting any warnings at all?
@kahlilnc
Plugin list ?
@asofold
Yeah players are flying on my server now as well :(
@spathizilla
Do you have details? What kind of nuking, which extra plugins? How many blocks nuking ?
You have a setting in hooks.mcMMO now (clickspersecond) you could try to reduce that and see if nukes still work. I could not use nuking with mcmmo/without, but there may be different techniques allowing similar effects. But it relly depends on the tool and other circumstances like how many blocks per second.
I don't see how cncp should interfere with survivalfly in any way. I might check some things in the API for bugs.
Edit: i tested a little. Could not see survivalfly problems. Nukers seem not to work without mcMMO, with mcMMO skill activated it allows like the configurable amount of blocks per second as it seems. It is difficult to distinguish a nuker from a not nuker that just destroys blocks very fast.
Edit2: The next NCP version will make nukers slightly more difficult.
@watdidyusaey
Not yet.
Any update on MagicSpells?
Using cncp6.2.1 with ncp build 87 seems to disable the flight (specifically survivalfly) checking totally using default cncp and ncp configs. With cncp removed it re-enables the checks and people without permissions can no longer fly.
Seems the nuker checking was also disabled somehow. Nuking worked with cncp enabled but is blocked with cncp removed.
I don't know what other cheats were no longer blocked with the build config above.
@asofold
Version cncp 6.1.3 Should work well with NCP build 84 now.
cncp 6.2.1 optimizes the insta breaking by adding an insta-break hook. This makes the mcMMO hook more efficient and even less abuse prone. Problem is the combined check for some reason it triggers now.
I am currently working on making cncp + mcMMO compatible with build 84 of NCP.
@aphilosopher
I forgot to put it up. Latest cncp 6.1.2 prevents high violation level accumulation for fast breaking with mcMMO.
@RukuTheWolf
Seems strange, but i have no clue, currently. Can players cheat freely ? Or is maybe the logging turned off (ingamechat option) ?
Or you got used to mcMMO related alerts which now have to disappear, i cant tell.
Craftbukkit.
3.7.0 NCP 6.0.1 CNCP.
I will try updating CNCP and disable the player-class, ill see if it changes anything.
@asofold
i see that your github shows changes to this plugin 7 days ago yet here on dev bukkit most recent build is over 10 days old,
any chance you can add that newest build onto the downloads section of github (as it currently says no downloads available) so that we can always keep up with your latest builds without having to wait for official releases or for bukkit to approve them :D
also, NCP has released alot of updates to the dev build in the last few days, even one just an hr ago, probly wont say so but i shld ask, is it safe to assume they will be functional with cncp?
@mattbrw08
Usually the server states that if you try to fly into blocks or conrners of blocks with high speed .... so i have no idea right now.
You might try setting speeds to 1 and let NCP doing the limiting.
Be sure to use the latest version of cncp and NCP, though, especially cncp before 6 shouldnt be used.
@RukuTheWolf
Sounds strange, what kind of server software is it ? Is it CraftBukkit?
If not and yurew not using NPCs you might disable the player-class hook... wwhat versions of cncp / NCP (+build number of NCP)?
When installing the plugin, I don't get NCP alerts anymore? Is this intended, has anyone else had this problem? Though I haven't tested it yet, i'm not sure whether NCP is doing anything at all now. O.o
I keep getting [warning] player moved wrongly! from craftbukkit.. its a huge issue as players get it everytime they sprint jump, and/or fall down a couple blocks. When it happens it pull them back a few blocks and will often give damage to player as well. It basically makes playing impossible right now. While this is something i know is from craftbukkit 1.3.2 (didnt happen in 1.3.1) I was wondering if your plugin setting the player speed might help or fix it? What are good values to set the speeds at in the config as well?
@asofold
oh great i just updated to the newest dev build of NCP and everythings work! :D great thx.