Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.79 KB | None | 0 0
  1. package net.evisionmc.hub.gui.profile;
  2.  
  3. import java.util.Arrays;
  4.  
  5. import org.bukkit.Bukkit;
  6. import org.bukkit.Material;
  7. import org.bukkit.SkullType;
  8. import org.bukkit.entity.Player;
  9. import org.bukkit.inventory.Inventory;
  10. import org.bukkit.inventory.ItemStack;
  11. import org.bukkit.inventory.meta.ItemMeta;
  12. import org.bukkit.inventory.meta.SkullMeta;
  13.  
  14. import eu.evision.core.EvisionCore;
  15. import eu.evision.core.network.player.PlayerData;
  16.  
  17. public class GuiProfil {
  18.  
  19. int J = 54;
  20. Player player;
  21.  
  22. PlayerData GoldenAPI = EvisionCore.get().getPlayerManager().getPlayerData(player.getUniqueId());
  23.  
  24. public void Profil() {
  25.  
  26. Inventory i = Bukkit.createInventory(null, J, "§bEvisionMC §8≫ §bProfil §8≪");
  27.  
  28. ItemStack Vitre = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short)3);
  29. ItemMeta VitreM = Vitre.getItemMeta();
  30. VitreM.setDisplayName("§e");
  31.  
  32. Vitre.setItemMeta(VitreM);
  33. i.setItem(1, Vitre);
  34. i.setItem(7, Vitre);
  35. i.setItem(9, Vitre);
  36. i.setItem(17, Vitre);
  37. i.setItem(46, Vitre);
  38. i.setItem(52, Vitre);
  39. i.setItem(44, Vitre);
  40. i.setItem(36, Vitre);
  41.  
  42. ItemStack Vitrej = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short)7);
  43. ItemMeta VitrJeM = Vitrej.getItemMeta();
  44. VitrJeM.setDisplayName("§e");
  45.  
  46. Vitrej.setItemMeta(VitrJeM);
  47. i.setItem(0, Vitrej);
  48. i.setItem(8, Vitrej);
  49. i.setItem(45, Vitrej);
  50.  
  51. i.setItem(53, Vitrej);
  52.  
  53. ItemStack head = new ItemStack(Material.SKULL_ITEM, 1, (short)SkullType.PLAYER.ordinal());
  54.  
  55. SkullMeta headM = (SkullMeta)head.getItemMeta();
  56. headM.setDisplayName("§b§lTon Twitter");
  57. headM.setLore(Arrays.asList(new String[] { "§8≫ §cDéveloppement en cours..." }));
  58. headM.setOwner(player.getName());
  59. head.setItemMeta(headM);
  60.  
  61. i.setItem(23, head);
  62.  
  63. ItemStack head1 = new ItemStack(Material.SKULL_ITEM, 1, (short)SkullType.PLAYER.ordinal());
  64.  
  65. SkullMeta headM1 = (SkullMeta)head1.getItemMeta();
  66. headM1.setDisplayName("§c§lTon Youtube");
  67. headM1.setLore(Arrays.asList(new String[] { "§8≫ §cDéveloppement en cours..." }));
  68. headM1.setOwner(player.getName());
  69. head1.setItemMeta(headM1);
  70.  
  71. i.setItem(32, head1);
  72.  
  73. ItemStack head11 = new ItemStack(Material.SKULL_ITEM, 1, (short)SkullType.PLAYER.ordinal());
  74.  
  75. SkullMeta headM11 = (SkullMeta)head11.getItemMeta();
  76. headM11.setDisplayName("§5§lTon Discord");
  77. headM11.setLore(Arrays.asList(new String[] { "§8≫ §cDéveloppement en cours..." }));
  78. headM11.setOwner(player.getName());
  79. head11.setItemMeta(headM11);
  80.  
  81. i.setItem(30, head11);
  82.  
  83. ItemStack head111 = new ItemStack(Material.SKULL_ITEM, 1, (short)SkullType.PLAYER.ordinal());
  84. SkullMeta headM111 = (SkullMeta)head111.getItemMeta();
  85. headM111.setDisplayName("§e" + player.getName());
  86. headM111.setLore(Arrays.asList(new String[] { "§7Rank: §b" + GoldenAPI.getRank(), "§7Evioz: §b" + GoldenAPI.getEvioz() + ".0", "§7Coins: §3" + GoldenAPI.getEviCoins() + ".0" }));
  87. headM111.setOwner(player.getName());
  88. head111.setItemMeta(headM111);
  89. i.setItem(4, head111);
  90. player.openInventory(i);
  91. ItemStack close = new ItemStack(Material.WOOD_DOOR);
  92. ItemMeta closem = close.getItemMeta();
  93. closem.setDisplayName("§cFermer");
  94. close.setItemMeta(closem);
  95. i.setItem(5, close);
  96.  
  97. ItemStack Vitrej1 = new ItemStack(Material.PAPER);
  98. ItemMeta VitrJeM1 = Vitrej1.getItemMeta();
  99. VitrJeM1.setDisplayName("§cSOON...");
  100. VitrJeM1.setLore(Arrays.asList(new String[] { "§8≫ §cDéveloppement en cours..." }));
  101. Vitrej1.setItemMeta(VitrJeM1);
  102. i.setItem(31, Vitrej1);
  103.  
  104. ItemStack Vitrej11 = new ItemStack(Material.EXP_BOTTLE);
  105. ItemMeta VitrJeM11 = Vitrej11.getItemMeta();
  106. VitrJeM11.setDisplayName("§b§lEvision Niveau");
  107. VitrJeM11.setLore(Arrays.asList(new String[] { "", " §A|§7||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ", "", "§7Niveau actuel: §B1" }));
  108. Vitrej11.setItemMeta(VitrJeM11);
  109. i.setItem(22, Vitrej11);
  110.  
  111. ItemStack Vitrej111 = new ItemStack(Material.EMERALD);
  112. ItemMeta VitrJeM111 = Vitrej111.getItemMeta();
  113. VitrJeM111.setDisplayName("§cSOON...");
  114. VitrJeM111.setLore(Arrays.asList(new String[] { "§8≫ §cDéveloppement en cours..." }));
  115. Vitrej111.setItemMeta(VitrJeM111);
  116. i.setItem(40, Vitrej111);
  117.  
  118. ItemStack Vitrej1111 = new ItemStack(Material.ITEM_FRAME);
  119. ItemMeta VitrJeM1111 = Vitrej1111.getItemMeta();
  120. VitrJeM1111.setDisplayName("§cSOON...");
  121. VitrJeM1111.setLore(Arrays.asList(new String[] { "§8≫ §cDéveloppement en cours..." }));
  122. Vitrej1111.setItemMeta(VitrJeM1111);
  123. i.setItem(21, Vitrej1111);
  124.  
  125. player.openInventory(i);
  126.  
  127. }
  128. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement