1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lobby Gadget: Elytras - iFly

Discussion in 'Plugins/Codes' started by A Christmas Hangar, Jul 31, 2016.

Thread Status:
Not open for further replies.
  1. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,533
    Likes Received:
    1,476
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    Who said this wasn't the highest priority? Well, not for them...
    Well, everyone who posted here liking the suggestion is pleased.

    This is the result of my work (literally 1 hour, I got messed with the "elevation" thing)



    https://goo.gl/ZXcBTw



    I am too lazy to upload it to Spigot
     
  2. TheJeroen

    TheJeroen Member

    Joined:
    Dec 6, 2015
    Messages:
    1,797
    Likes Received:
    2,213
    Trophy Points:
    113
    Gender:
    Male
    Location:
    The Netherlands
  3. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,533
    Likes Received:
    1,476
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    Totally agree
     
  4. xTurtleOfficialㅤ

    xTurtleOfficialㅤ Member

    Joined:
    Dec 1, 2015
    Messages:
    5,291
    Likes Received:
    371
    Trophy Points:
    113
    Gender:
    Male
    Occupation:
    idk
    Location:
    Earth
    Just add this! +1 :D

    apply for Dev.
     
  5. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,533
    Likes Received:
    1,476
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    SOURCE:
    Code:
    package iFly;
    import java.util.Arrays;
    import java.util.List;
    import java.util.logging.Logger;
    
    import org.bukkit.ChatColor;
    import org.bukkit.Location;
    import org.bukkit.Material;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.enchantments.Enchantment;
    import org.bukkit.entity.Player;
    import org.bukkit.event.Listener;
    import org.bukkit.inventory.ItemStack;
    import org.bukkit.inventory.meta.ItemMeta;
    import org.bukkit.plugin.java.JavaPlugin;
    public class Main extends JavaPlugin implements Listener {
    public final Logger logger = Logger.getLogger("Minecraft");
      
    
      
            public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
              
        Player p = (Player) sender;
      
    
    
       if (cmd.getName().equalsIgnoreCase("iFly")) {
        if (p.hasPermission("IFLY.fly")) {
    
            Location playerLocation = p.getLocation();
            while(p.getLocation().getY() < 256) {
                p.teleport(p.getLocation().add(0.0, 0.1, 0.0));
                ItemStack ELYTRA = new ItemStack(Material.ELYTRA);
                ItemStack HeavyBoots = new ItemStack(Material.DIAMOND_BOOTS);
                HeavyBoots.addUnsafeEnchantment(Enchantment.FROST_WALKER, 3);
                HeavyBoots.addUnsafeEnchantment(Enchantment.PROTECTION_FALL, 220);
                ItemMeta meta = ELYTRA.getItemMeta();
                List<String> lore = Arrays.asList(ChatColor.AQUA + "Two Steps From Heaven");
                meta.setLore(lore);
                meta.setDisplayName(ChatColor.GOLD + "Heaven Wings");
                ELYTRA.setItemMeta(meta);
                p.getInventory().setChestplate(ELYTRA);;
    
    
            }
        }else{
            p.sendMessage(ChatColor.RED + "You need to be at least " + ChatColor.GOLD + getConfig().getString("Rank to Fly")  + ChatColor.RED +  " to fly!");
    
                  
               }
      
    }
    return true;
    
            }
    }
    

    CONFIG

    Code:
    Rank to Fly: 404
    


    PLUGIN.YML
    Code:
    name: iFly
    version: 1.0
    main: iFly.Main
    description: Fly your way!
    commands:
        iFly:
            usage: /<command>
            aliases: [iFly]
            description: FLY LIKE A BIRD!
     
  6. TheBlackMoon

    TheBlackMoon Member

    Joined:
    Apr 18, 2016
    Messages:
    794
    Likes Received:
    603
    Trophy Points:
    93
    Gender:
    Male
    Occupation:
    Location:
    ςяαzу ℓαи∂
  7. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,533
    Likes Received:
    1,476
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
  8. EffeDylan

    EffeDylan Member

    Joined:
    Jun 24, 2016
    Messages:
    64
    Likes Received:
    9
    Trophy Points:
    8
    Gender:
    Male
    Location:
    The Netherlands
    Looks awesome you would be a perfect Dev for cubecraft.:D
     
  9. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,533
    Likes Received:
    1,476
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    *JrDev, I am not near their (Normal Developer) level. But really thanks, check out the new post, that comes with other 2 gadgets (I am also working on a cake one @CARDAN16)
     
  10. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,533
    Likes Received:
    1,476
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
  11. Lezappen

    Lezappen Mod Staff Member Moderator

    Joined:
    Jan 30, 2016
    Messages:
    1,315
    Likes Received:
    634
    Trophy Points:
    113
    Gender:
    Male
    Occupation:
    British Pasta Addict
    Location:
    UK
Thread Status:
Not open for further replies.