Advertisement
chumanista

Untitled

Jul 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1.     @EventHandler
  2.     public void onGround (PlayerMoveEvent e) {
  3.         Set<String> keys = pt.getPlugin().getConfig().getConfigurationSection("PARKOURS").getKeys(false);
  4.         for (Parkour p : pt.parkours) {
  5.             if (keys.contains(p.getNormalName())) {
  6.                 int floor = pt.getPlugin().getConfig().getInt("PARKOURS." + p.getNormalName() + ".floorPoint");
  7.                
  8.                 if (e.getPlayer().getLocation().getY() == floor) {
  9.                     e.getPlayer().sendMessage("jestes na floor");
  10.                 }
  11.             }
  12.         }
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement