Advertisement
Guest User

Untitled

a guest
Feb 17th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. package me.starboy.util.Systems;
  2.  
  3. import org.bukkit.Bukkit;
  4. import org.bukkit.ChatColor;
  5. import org.bukkit.Material;
  6. import org.bukkit.command.Command;
  7. import org.bukkit.command.CommandExecutor;
  8. import org.bukkit.command.CommandSender;
  9. import org.bukkit.entity.Item;
  10. import org.bukkit.entity.Player;
  11. import org.bukkit.inventory.Inventory;
  12. import org.bukkit.inventory.ItemStack;
  13. import org.bukkit.inventory.meta.ItemMeta;
  14.  
  15. import java.util.ArrayList;
  16. import java.util.List;
  17.  
  18. public class Points implements CommandExecutor {
  19.  
  20. public boolean onCommand(CommandSender sender, Command command,String label,String[] args) {
  21. if (sender instanceof Player) {
  22. Player player =(Player) sender;
  23.  
  24.  
  25. //Our GUI (Inventory)
  26.  
  27. Inventory inventory = Bukkit.createInventory(null,54,ChatColor.DARK_GREEN + "" + ChatColor.BOLD + "Points Manager");
  28. player.openInventory(inventory);
  29.  
  30. //This is our Economy Bank (Item)
  31.  
  32. ItemStack emerald = new ItemStack(Material.EMERALD);
  33. ItemMeta meta = emerald.getItemMeta();
  34. meta.setDisplayName(ChatColor.GREEN+ "" + ChatColor.BOLD + "Purchase Points");
  35.  
  36. List<String> list = new ArrayList<>();
  37. list.add(ChatColor.GRAY + "Purchase points to level up");
  38. list.add(ChatColor.GRAY + "and buy new items all across the prison server");
  39. meta.setLore(list);
  40. emerald.setItemMeta(meta);
  41.  
  42. emerald.setItemMeta(meta);
  43.  
  44. inventory.setItem(20,emerald);
  45.  
  46. //New Upgrades items
  47.  
  48. ItemStack ender = new ItemStack(Material.ENDER_CHEST);
  49. ItemMeta meta2 = ender.getItemMeta();
  50. meta2.setDisplayName(ChatColor.GREEN + "" + ChatColor.BOLD + "Manage your Upgrades");
  51. ender.setItemMeta(meta2);
  52.  
  53. List<String> list2 = new ArrayList<>();
  54. list2.add(ChatColor.GRAY + "Upgrade your tools and purchase access to new mines for");
  55. list2.add(ChatColor.GRAY + "nice and cool loots all over the prison server");
  56. meta2.setLore(list2);
  57. ender.setItemMeta(meta2);
  58.  
  59. inventory.setItem(23,ender);
  60.  
  61. public void getGUIInv (Player player) {
  62.  
  63. ItemStack
  64.  
  65. }
  66.  
  67.  
  68.  
  69.  
  70.  
  71. }
  72. return true;
  73. }
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement