Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1.         Location to = e.getTo();
  2.         Location from = e.getFrom();
  3.        
  4.         Vector vec = to.toVector();
  5.         double i = vec.distance(from.toVector());
  6.         if(p.getLocation().getBlock().getRelative(BlockFace.DOWN).getType().equals(Material.SPONGE)) {
  7.             return;
  8.         }
  9.         if(p.getGameMode().equals(GameMode.CREATIVE)) {
  10.         }
  11.         if(p.getEntityId() == 100) {
  12.         }
  13.         if(p.getVehicle() != null) {
  14.         }
  15.         if(p.getAllowFlight() == true) {
  16.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement