/jump
L4BORG opened this issue ยท 11 comments
/jump can be used to glitch through walls/blocks.
>ver
[10:59:21 INFO]: This server is running CraftBukkit version git-PaperSpigot-4c925a4-3f3c65f (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)
[10:59:21 INFO]: You are running the latest version
>ncp version
[10:59:40 INFO]: ---- Version information ----
[10:59:40 INFO]: #### Server ####
[10:59:40 INFO]: git-PaperSpigot-4c925a4-3f3c65f ~MC: 1.8.8~
[10:59:40 INFO]: detected: 1.8.8
[10:59:40 INFO]: #### NoCheatPlus ####
[10:59:40 INFO]: Plugin: 3.13.7-RC-sMD5NET-b925
[10:59:40 INFO]: MCAccess: 1.8.4-1.8.8 / Spigot-CB-1.8_R3
[10:59:40 INFO]: Features:
[10:59:40 INFO]: blocks: BlocksMC1_4 | BlocksMC1_5 | BlocksMC1_6_1 | BlocksMC1_7_2 | BlocksMC1_8
[10:59:40 INFO]: checks: FastConsume | Gutenberg | AttackFrequency | FlyingFrequency | KeepAliveFrequency
[10:59:40 INFO]: defaults: pvpKnockBackVelocity
[10:59:40 INFO]: packet-listeners: UseEntityAdapter | MovingFlying | OutgoingPosition | KeepAliveAdapter | SoundDistance
[10:59:40 INFO]: Hooks: AllViolations~NCP~ 1.0
[10:59:40 INFO]: #### Related Plugins ####
[10:59:40 INFO]: ProtocolLib v3.6.4
and latest Essentials.
The point is that it's /jump not /through or something -.- and if it takes player through walls/blocks then it can be abused, for raiding on faction servers for example.
for floors and
targetLocation = targetLocation.subtract(playerLocation.getDirection().normalize().multiply(2.0).setY(0));
to prevent glitching through walls.
Tho iirc setY() could prob. be ignored cause it would be overridden by ess getTeleport().teleport() anyway...
U no give donors jump?!
try
{
loc = LocationUtil.getTarget(user.getBase());
loc.setYaw(cloc.getYaw());
loc.setPitch(cloc.getPitch());
loc.setY(loc.getY() + 1);
}
should be...
try
{
loc = LocationUtil.getTarget(user.getBase());
loc.setYaw(cloc.getYaw());
loc.setPitch(cloc.getPitch());
if(cloc.getPitch() >= 0)
loc.setY(loc.getY() + 1);
else
loc.setY(loc.getY() - 2);
}