Search in sources :

Example 6 with DataPacketFlying

use of fr.neatmonster.nocheatplus.checks.net.model.DataPacketFlying in project NoCheatPlus by NoCheatPlus.

the class BlockPlaceListener method debugBlockPlace.

private void debugBlockPlace(final Player player, final Material placedMat, final Block block, final Block blockAgainst, final int skippedRedundantChecks, final FlyingQueueHandle flyingHandle, final IPlayerData pData) {
    debug(player, "Block place(" + placedMat + "): " + block.getX() + ", " + block.getY() + ", " + block.getZ());
    BlockInteractListener.debugBlockVSBlockInteract(player, checkType, blockAgainst, "onBlockPlace(blockAgainst)", Action.RIGHT_CLICK_BLOCK, pData);
    if (skippedRedundantChecks > 0) {
        debug(player, "Skipped redundant checks: " + skippedRedundantChecks);
    }
    if (flyingHandle != null && flyingHandle.isFlyingQueueFetched()) {
        final int flyingIndex = flyingHandle.getFirstIndexWithContentIfFetched();
        final DataPacketFlying packet = flyingHandle.getIfFetched(flyingIndex);
        if (packet != null) {
            debug(player, "Flying packet queue used at index " + flyingIndex + ": pitch=" + packet.getPitch() + ",yaw=" + packet.getYaw());
            return;
        }
    }
}
Also used : DataPacketFlying(fr.neatmonster.nocheatplus.checks.net.model.DataPacketFlying)

Aggregations

DataPacketFlying (fr.neatmonster.nocheatplus.checks.net.model.DataPacketFlying)6 PacketContainer (com.comphenix.protocol.events.PacketContainer)1 NetConfig (fr.neatmonster.nocheatplus.checks.net.NetConfig)1 NetData (fr.neatmonster.nocheatplus.checks.net.NetData)1 AckReference (fr.neatmonster.nocheatplus.checks.net.model.TeleportQueue.AckReference)1 AlmostBoolean (fr.neatmonster.nocheatplus.compat.AlmostBoolean)1 IPlayerData (fr.neatmonster.nocheatplus.players.IPlayerData)1 IWorldData (fr.neatmonster.nocheatplus.worlds.IWorldData)1 Player (org.bukkit.entity.Player)1