Add Keep Inventory framework, GitHub updater, version sync, and menu improvements
This commit is contained in:
1 parent
fc64a3f02c
commit
c12c93be85
3 files changed
+49
-14
No files matched your search
@@ -102,7 +102,9 @@ public class KeepInventoryMenu {
|
||||
|
||||
ItemStack item =
|
||||
new ItemStack(
|
||||
Material.CHEST
|
||||
enabled
|
||||
? Material.ENDER_CHEST
|
||||
: Material.CHEST
|
||||
);
|
||||
|
||||
ItemMeta meta =
|
||||
@@ -158,7 +160,7 @@ public class KeepInventoryMenu {
|
||||
dao.getAllWorlds();
|
||||
|
||||
int start =
|
||||
page * WORLDS_PER_PAGE;
|
||||
(page - 1) * WORLDS_PER_PAGE;
|
||||
|
||||
int slot =
|
||||
9;
|
||||
@@ -177,7 +179,9 @@ public class KeepInventoryMenu {
|
||||
|
||||
ItemStack item =
|
||||
new ItemStack(
|
||||
Material.CHEST
|
||||
enabled
|
||||
? Material.LIME_SHULKER_BOX
|
||||
: Material.RED_SHULKER_BOX
|
||||
);
|
||||
|
||||
ItemMeta meta =
|
||||
@@ -205,14 +209,6 @@ public class KeepInventoryMenu {
|
||||
|
||||
}
|
||||
|
||||
if (enabled) {
|
||||
|
||||
GUIUtils.addGlow(
|
||||
item
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
inventory.setItem(
|
||||
slot,
|
||||
item
|
||||
|
||||
Reference in new issue
Block a user