Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Added cloud information to the GUI.
Browse files Browse the repository at this point in the history
  • Loading branch information
PolskiStevek committed Jun 3, 2020
1 parent 5db7c9f commit b0cab53
Showing 1 changed file with 25 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,6 @@ public void onOpen(Player player, Inventory inventory) {
.addLore(" &8» &cClick to open the GUI.")
.build();

final ItemStack about = new ItemBuilder(UMaterial.BOOK_AND_QUILL.getMaterial())
.setTitle("&6About EpicGuard.")
.addLore("")
.addLore(" &8● &7Version&8: &e" + EpicGuardBukkit.getInstance().getDescription().getVersion())
.addLore(" &8● &7Author&8: &eiShift")
.addLore(" &8● &7Support Server&8: &cdiscord.gg/VkfhFCv")
.addLore("")
.addLore(" &8» &cClick to join our discord.")
.build();

final ItemStack server = new ItemBuilder(UMaterial.EXP_BOTTLE.getMaterial())
.setTitle("&6Server Information.")
.addLore("")
Expand All @@ -107,20 +97,43 @@ public void onOpen(Player player, Inventory inventory) {
.addLore(" &8● &7Memory usage&8: &a" + MemoryHelper.getUsage() + "MB / " + MemoryHelper.getTotal() + "MB")
.build();

final ItemStack cloud = new ItemBuilder(Material.BEACON)
.setTitle("&6GuardCloud")
.addLore("")
.addLore(" &8● &bGuardCloud &7synchronizes the unsafe")
.addLore(" &8● &7addresses with your local blacklist,")
.addLore(" &8● &7detecting bots faster. Synchronization")
.addLore(" &8● &7is performed every &f1 hour&7.")
.addLore("")
.addLore(" &8● &7Status: " + (this.manager.getCloud().isWorking() ? "&aWorking!" : "&cConnection error!"))
.addLore(" &8● &7Unsafe addresses: &6" + this.manager.getCloud().getBlacklist().size())
.addLore("")
.addLore(" &8» &cClick to force the sync.")
.build();

final ItemStack info = new ItemBuilder(Material.PAPER)
.setTitle("&6GUI info.")
.addLore("")
.addLore(" &8● &7This GUI is refreshed")
.addLore(" &8● &7every &f2 seconds&7!")
.build();

final ItemStack about = new ItemBuilder(UMaterial.BOOK_AND_QUILL.getMaterial())
.setTitle("&6About EpicGuard.")
.addLore("")
.addLore(" &8● &7Version&8: &e" + EpicGuardBukkit.getInstance().getDescription().getVersion())
.addLore(" &8● &7Author&8: &eiShift")
.addLore(" &8● &7Support Server&8: &cdiscord.gg/VkfhFCv")
.addLore("")
.addLore(" &8● &7Powered by &6InventoryAPI v1.5")
.addLore(" &8» &cClick to join our discord.")
.build();

inventory.setItem(11, status);
inventory.setItem(13, storage);
inventory.setItem(15, players);
inventory.setItem(21, server);
inventory.setItem(23, about);
inventory.setItem(23, cloud);
inventory.setItem(35, about);
inventory.setItem(27, info);
}

Expand Down

0 comments on commit b0cab53

Please sign in to comment.