[TP] EggTeleport v2.0.3 - Teleport by throwing eggs! [1317]

Discussion in 'Inactive/Unsupported Plugins' started by Rud0lf, Oct 18, 2011.

  1. Offline

    Rud0lf

    This plugin allows you to teleport by throwing eggs.​
    Version 2.0.3 released:
    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
     
  2. Offline

    CainFoool

    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
     
  3. Offline

    Smex


    @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?
     
  4. Offline

    Rud0lf


    "e.getPlayer().teleport(e.getEgg().getLocation());"

    would cause a problem with the yaw and pitch, the user would look in an unpredictable direction.
     
  5. Offline

    CainFoool

    I was just simplifying your plugin. :p
     
  6. Offline

    Laserhog

    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?
     
  7. Offline

    Rud0lf

    Good idea, I´ll add a command to toggle teleportation.
     
  8. Offline

    MonsieurApple

    Please upgrade to latest RB
     

Share This Page