Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onGround (PlayerMoveEvent e) {
- Set<String> keys = pt.getPlugin().getConfig().getConfigurationSection("PARKOURS").getKeys(false);
- for (Parkour p : pt.parkours) {
- if (keys.contains(p.getNormalName())) {
- int floor = pt.getPlugin().getConfig().getInt("PARKOURS." + p.getNormalName() + ".floorPoint");
- if (e.getPlayer().getLocation().getY() == floor) {
- e.getPlayer().sendMessage("jestes na floor");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement