Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- void mover(PlayerMoveEvent e) {
- if(e.getPlayer().getLocation().getBlockY() <= 0) {
- e.getPlayer().teleport(e.getPlayer().getWorld().getSpawnLocation());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement