This plugin allows you to teleport by throwing eggs.Version 2.0.3 released:Download!(Also on Bukkit-Dev)Sense of the plugin?The sense of the plugin is to allow you and your users to cover large distances in only a few seconds.It can also be used just for fun Features: Teleport by throwing eggs Toggle teleporting on or off Permissions support Configurable messages Easy to install Permission Nodes (PermissionsBukkit/SuperPerms): EggTeleport.use - allows teleporting by throwing eggs. Commands: /etpon - Enable teleporting by throwing eggs /etpoff - Disable teleporting by throwing eggs (use eggs as usual) /etpinfo - Check wether EggTeleport is enabled or not Changelog: Version 2.0.3 Added the /etpinfo command to check wether EggTeleport is enabled or not Version 2.0.2 Internal build - not released Version 2.0.1 Minor bug fix Version 2.0 Added commands to toggle teleportation on or off. Added configurable messages Version 1.0 Release
class EggTeleport extends JavaPlugin { public void onEnable() { System.out.println("[EggTeleport] Plugin has been enabled!"); Bukkit.getServer().getPluginManager().registerEvent(Type.PLAYER_EGG_THROW, new PListener(), Priority.Normal, this); } public void onDisable() { System.out.println("[EggTeleport] Plugin has been disabled!"); } class PListener extends PlayerListener { public void onPlayerEggThrow(PlayerEggThrowEvent e) { if(e.getPlayer().hasPermission("EggTeleport.use")) { e.getPlayer().teleport(e.getEgg().getLocation()); e.getPlayer().sendMessage("Teleported to the egg!"); } return; } } Done. ;D
@CainFoool And now you got more lego? @Rud0lf Actually, what's the sense of your plugin? Where can it be used? Why should I use this?
"e.getPlayer().teleport(e.getEgg().getLocation());" would cause a problem with the yaw and pitch, the user would look in an unpredictable direction.
And what if you don't wanna teleport every time you throw an egg? Maybe have a command that toggles it on/off for people that have the node?