How can i make a /stuck plugin that teleports you to the highest block over you? Thanks for all help I can get.
Snap your fingers three times... but seriously you need to do some more research, no one is gonna write a plugin for you. Start at wiki.bukkit.org and jd.bukkit.org. Good luck
I'm not a plugin dev, but start by installing a Java IDE (Eclipse or NetBeans) Then, import into it bukkit.jar (NOT craftbukkit) and from there I guess you need to learn some Java
Make a loop, starting at the location of the player and going up stopping when it hits two blocks of air right on top of each other. Teleport the player there. That's the basic idea behind what you want. --Vyn
This wouldn't get you to the highest block above you necessarily. What if you're underground? You could just go into a cave. I would recommend start at the same 'x' and 'z' of the player but the y of 127 (minecraft ceiling) and then keep going down until you find the first block. This would safely put you on the actual highest block. -- Why is craftbukkit better? I mean it has its uses but really the BukkitAPI is made for what it does. 95% of the time you should not need to import craftbukkit. It's not necessary.
Code:java player.teleport(player.getWorld().getHighestBlockAt(player.getLocation()).getLocation().add(0, 1, 0));
1. You can also access CB classes 2. You do not need 2 separate files on hard drive (bukkit for dev and CB for test server), since CB also contains bukkit. 3. When you update CB on your test server, it would also update API inside your IDE.