Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SurvivalFly false positive with Blindness #10

Closed
Momonche opened this issue May 9, 2020 · 10 comments
Closed

SurvivalFly false positive with Blindness #10

Momonche opened this issue May 9, 2020 · 10 comments
Labels

Comments

@Momonche
Copy link

Momonche commented May 9, 2020

Full output of /ncp version

---- Version information ----

Server

git-Paper-264 MC: 1.15.2
detected: 1.15.2

NoCheatPlus

Plugin: 3.17-SNAPSHOT-b1153-CustomFork
MCAccess: 1.13.2-1.15|? / Bukkit-API
Features:
blocks: BlocksMC1_4 | BlocksMC1_5 | BlocksMC1_6_1 | BlocksMC1_7_2 | BlocksMC1_8 | BlocksMC1_9 | BlocksMC1_10 | BlocksMC1_11 | BlocksMC1_12 | BlocksMC1_13 | BlocksMC1_14 | BlocksMC1_15 | MCAccessBukkitModern
checks: FastConsume | Gutenberg | HotFixFallingBlockPortalEnter | AttackFrequency | FlyingFrequency | KeepAliveFrequency
defaults: pvpKnockBackVelocity
packet-listeners: UseEntityAdapter | MovingFlying | OutgoingPosition | KeepAliveAdapter | SoundDistance | WrongTurnAdapter | NoSlow | Fight
Hooks: AllViolationsNCP 1.0 | ViolationFrequencyNCP 1.0

Related Plugins

ProtocolLib v4.5.1-SNAPSHOT-b451 | ProtocolSupport v4.29-dev

Describe the issue

When a player have the Blindness effect, he can't move
[NC+] MissClick failed SurvivalFly: tried to move unexpectedly (VL207)

How to reproduce the issue

Give Blindness effect on a non-OP player

@Ferocimo
Copy link

Ferocimo commented May 9, 2020

It's a huge problem on my server since we have spells that cause blindness !

@Lysandr0
Copy link
Member

Lysandr0 commented May 9, 2020

SurvivalFly will only prevent players from moving if they attempt to sprint with blindness, since it's not legit behaviour.
If you have plugins that allow players to do so, give them the following permission to bypass the check: nocheatplus.checks.moving.survivalfly.sprinting

@CaptainObvious0 CaptainObvious0 added (field) moving Related to moving checks (resolution) wontfix This will not be worked on labels May 9, 2020
@CaptainObvious0
Copy link
Member

Just as Lysandr0 stated, its non-vanilla movement so it will flag. Add the permission node as they suggested to skip checking for sprinting while blind.

@Ferocimo
Copy link

Ferocimo commented May 9, 2020

@Lysandr0 @CaptainObvious0 I'm sorry, but that's not the issue. A blinded player cannot move at all, not just "not sprint" he is litterally petrified on the spot. On our server, nothing allows a player to sprint while blinded, and without NCP a blinded player can walk but not sprint. With NCP, he can't move at all. Did you try to reproduce it ?

@CaptainObvious0
Copy link
Member

So adding the permission node does not fix it? Could you create a debug log and video showing the issue? Are you sure the spells are not giving the player any other abilities?

@Ferocimo
Copy link

Ferocimo commented May 9, 2020

If I understand correctly, giving them this permission will also allow them to cheat to some extent, bypassing some "sprint checking". We would like to avoid that, as we believe this clearly is an issue that should be adressed and not worked around...
I'm going to see what I can do about that video, but you can very easily reproduce it yourself (if it's indeed a NCP issue, which we think it is). Just give the blindness effect to a player using the command /effect.
We tried that with that command so no spells were involved. Spells just happen to be the main way that players can give blindness on our server, but there are also some custom potions. Anyway whatever way you get the blindness effect, this issue will occur.

@CaptainObvious0
Copy link
Member

CaptainObvious0 commented May 9, 2020

Oh, I see the issue now. It is indeed an issue with NoCheatPlus itself. If you have assumesprint enabled in the config (which it is by default) it default all movements that the player is sprinting. I'll fix it now and push a commit with a fix in a moment. Sorry about the confusion.

Fixed with 7651880

@CaptainObvious0 CaptainObvious0 added (type) false positive and removed (resolution) wontfix This will not be worked on labels May 9, 2020
@Ferocimo
Copy link

Ferocimo commented May 9, 2020

Great, thank you very much ! We'll try the fix right away.

@Momonche
Copy link
Author

Momonche commented May 9, 2020

I took 10 minutes to upload a video so I have to post it
https://www.youtube.com/watch?v=mAenhSWGjTQ

Thanks for help

@Ferocimo
Copy link

Ferocimo commented May 9, 2020

It works perfectly now, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants