Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.starboy.util.Systems;
- import org.bukkit.Bukkit;
- import org.bukkit.ChatColor;
- import org.bukkit.Material;
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandExecutor;
- import org.bukkit.command.CommandSender;
- import org.bukkit.entity.Item;
- import org.bukkit.entity.Player;
- import org.bukkit.inventory.Inventory;
- import org.bukkit.inventory.ItemStack;
- import org.bukkit.inventory.meta.ItemMeta;
- import java.util.ArrayList;
- import java.util.List;
- public class Points implements CommandExecutor {
- public boolean onCommand(CommandSender sender, Command command,String label,String[] args) {
- if (sender instanceof Player) {
- Player player =(Player) sender;
- //Our GUI (Inventory)
- Inventory inventory = Bukkit.createInventory(null,54,ChatColor.DARK_GREEN + "" + ChatColor.BOLD + "Points Manager");
- player.openInventory(inventory);
- //This is our Economy Bank (Item)
- ItemStack emerald = new ItemStack(Material.EMERALD);
- ItemMeta meta = emerald.getItemMeta();
- meta.setDisplayName(ChatColor.GREEN+ "" + ChatColor.BOLD + "Purchase Points");
- List<String> list = new ArrayList<>();
- list.add(ChatColor.GRAY + "Purchase points to level up");
- list.add(ChatColor.GRAY + "and buy new items all across the prison server");
- meta.setLore(list);
- emerald.setItemMeta(meta);
- emerald.setItemMeta(meta);
- inventory.setItem(20,emerald);
- //New Upgrades items
- ItemStack ender = new ItemStack(Material.ENDER_CHEST);
- ItemMeta meta2 = ender.getItemMeta();
- meta2.setDisplayName(ChatColor.GREEN + "" + ChatColor.BOLD + "Manage your Upgrades");
- ender.setItemMeta(meta2);
- List<String> list2 = new ArrayList<>();
- list2.add(ChatColor.GRAY + "Upgrade your tools and purchase access to new mines for");
- list2.add(ChatColor.GRAY + "nice and cool loots all over the prison server");
- meta2.setLore(list2);
- ender.setItemMeta(meta2);
- inventory.setItem(23,ender);
- public void getGUIInv (Player player) {
- ItemStack
- }
- }
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement