Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //// if(suspects.containsKey(event.getPlayer())){
- // Hack h = suspects.get(event.getPlayer());
- // Player player = event.getPlayer();
- // double ynormal = 0.61;
- // double xnormal = 0.8;
- // double znormal = 0.7;
- // double movenormal = 3;
- // double ydistance = Math.sqrt((event.getFrom().getY()-event.getTo().getY())*(event.getFrom().getY()-event.getTo().getY()));
- // double xdistance = Math.sqrt((event.getFrom().getX()-event.getTo().getX())*(event.getFrom().getX()-event.getTo().getX()));
- // double zdistance = Math.sqrt((event.getFrom().getZ()-event.getTo().getZ())*(event.getFrom().getZ()-event.getTo().getZ()));
- // double pitchdistance = Math.sqrt((event.getFrom().getPitch()-event.getTo().getPitch())*(event.getFrom().getPitch()-event.getTo().getPitch()));
- // double yawdistance = Math.sqrt((event.getFrom().getYaw()-event.getTo().getYaw())*(event.getFrom().getYaw()-event.getTo().getYaw()));
- // double xvel = event.getPlayer().getVelocity().getX();
- // double zvel = event.getPlayer().getVelocity().getZ();
- // double yvel = event.getPlayer().getVelocity().getY();
- // //Broadcast the coord distances
- //// Bukkit.broadcastMessage(xdistance + "§c " + ydistance + "§6 " + zdistance);
- // Bukkit.broadcastMessage("x: " + xvel + " yvel: " + yvel + " zvel: " + zvel);
- //// if (player.getGameMode().equals(GameMode.SURVIVAL)){// player is not flying
- //// if(!(player.hasPotionEffect(PotionEffectType.SPEED))){
- //// if(!player.isOnGround() && ydistance >= ynormal && player.getVelocity().getY() > 0.0030162615090425808 && !player.isInsideVehicle()){
- //// player.teleport(event.getFrom());
- //// vh.throwViolation(player,"Bhops/SpeedHack/AirMove/HighJump/Flight");
- //// suspects.remove(player);
- //// h.getReporter().sendMessage("§c§lDecCheat§e§l» §c§lYour report on " + player.getDisplayName() + " §c§lwas viewed and the player was convicted of possible §eFlight");
- //// }
- //// if(xdistance > xnormal && xdistance > 0 || zdistance > znormal && zdistance > 0 && !player.isInsideVehicle() && player.getGameMode() == GameMode.SURVIVAL && xvel > 0 && zvel > 0){
- //// player.teleport(event.getFrom());
- //// vh.throwViolation(player, "Bhops/SpeedHack/AirMove/HighJump/Flight");
- //// suspects.remove(player);
- //// h.getReporter().sendMessage("§c§lDecCheat§e§l» §c§lYour report on " + player.getDisplayName() + " §c§lwas viewed and the player was convicted of possible §eSpeed");
- //// }
- //// if (!(player.hasPotionEffect(PotionEffectType.JUMP))){ // player does not have jump boost
- //// if (ydistance >= ynormal && player.getVelocity().getY() > 0.0030162615090425808 && !player.isInsideVehicle()){
- //// player.teleport(event.getFrom());
- //// player.getLocation().subtract(0, 1, 0);
- //// vh.throwViolation(player, "Bhops/SpeedHack/AirMove/HighJump/Flight");
- //// h.getReporter().sendMessage("§c§lDecCheat§e§l» §c§lYour report on " + player.getDisplayName() + " §c§lwas viewed and the player was convicted of possible §eHighJump");
- //// suspects.remove(player);
- //// }
- //// }//HighJump Detection
- //// if(player.getLocation(player.getLocation()).subtract(0,1,0).getBlock().getType() == Material.AIR && yvel <= ynormal && zvel <= znormal && xvel <= xnormal){
- //// while(player.getLocation(player.getLocation()).subtract(0,1,0).getBlock().isEmpty()){
- //// player.teleport(player.getLocation().subtract(0,1,0));
- //// }
- //// vh.throwViolation(player, "Flight/AirMove/CinnamonFlightBypass");
- //// h.getReporter().sendMessage("§c§lDecCheat§e§l» §c§lYour report on " + player.getDisplayName() + " §c§lwas viewed and the player was convicted of possible §eFlight");
- //// suspects.remove(player);
- //// }//Flight bypass
- //// if(!player.getAllowFlight() && player.isFlying()){
- //// player.teleport(event.getFrom());
- //// vh.throwViolation(player,"Bhops/SpeedHack/AirMove/HighJump/Flight");
- //// suspects.remove(player);
- //// h.getReporter().sendMessage("§c§lDecCheat§e§l» §c§lYour report on " + player.getDisplayName() + " §c§lwas viewed and the player was convicted of possible §eFlight");
- //// }//Basic Flight (Flying whilst not allowed to)
- //// }//Speed Check Block
- //// }//Fly,Gamemode, and Gliding Check Block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement