Minecraft PC IP: play.cubecraft.net
Status
Not open for further replies.

DrHam

Forum Veteran
Sep 15, 2015
3,615
4,166
518
Kepler-452b
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
 

TheJeroen

Forum Veteran
Dec 6, 2015
2,579
6,237
463
24
the Netherlands
www.planetminecraft.com
HFC7a93.jpg
 

DrHam

Forum Veteran
Sep 15, 2015
3,615
4,166
518
Kepler-452b
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!
 
Status
Not open for further replies.
Members Online

Members online

Latest posts

Latest profile posts

Mappoe wrote on MisterFxnn's profile.
fxnn.
Flatmarker27 wrote on Lyriie's profile.
the cat pfp is a cool throwback to @Capitan, if that's what it is.
Flatmarker27 wrote on Capitan's profile.
Hello, Capitan. I was enjoying some skywars today on the bedrock edition of CubeCraft, but all of a sudden I had loaded into a new match and I got teleported to an empty map where I could freely roam around, outside of those glass player holding things. I have no idea what this is or why it happened, but the next match was normal. Just wanted to point out the bug. Have a good day. :D
Its hot and my hands are slippery
NEWS:
1 - Minecraft 1.21.90 is releasing on June 17, bringing with it Vibrant Visuals (AKA shaders) to the game at last. It will be supported throughout the entire game like a texture pack.
2 - The next Java Map Rotations is happening on June 27, and you are able to vote for what maps you want on CubeCraft Discord.
Top Bottom