mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-25 20:16:13 +01:00
inclusion of glow_item_frame for block place action
This commit is contained in:
parent
a6f074607f
commit
2655a1cf94
@ -657,6 +657,11 @@ public class ConfigManager {
|
||||
id = 18;
|
||||
meta = "1";
|
||||
break c;
|
||||
case "glowitemframe":
|
||||
type = "GLOW_ITEM_FRAME";
|
||||
id = 0;
|
||||
meta = "0";
|
||||
break c;
|
||||
case "painting":
|
||||
type = "PAINTING";
|
||||
id = 9;
|
||||
|
@ -38,7 +38,6 @@ import net.Zrips.CMILib.GUI.CMIGuiButton;
|
||||
import net.Zrips.CMILib.GUI.GUIManager.GUIClickType;
|
||||
import net.Zrips.CMILib.GUI.GUIManager.GUIRows;
|
||||
import net.Zrips.CMILib.Items.CMIMaterial;
|
||||
import net.Zrips.CMILib.Logs.CMIDebug;
|
||||
import net.Zrips.CMILib.Version.Version;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@ -60,22 +59,18 @@ public class ShopManager {
|
||||
}
|
||||
|
||||
private static GUIRows getGuiSize(List<ShopItem> ls, @Deprecated int page) {
|
||||
GUIRows guiSize = GUIRows.r1;
|
||||
GUIRows guiSize = GUIRows.r6;
|
||||
int size = ls.size();
|
||||
|
||||
if (size <= 9)
|
||||
guiSize = GUIRows.r1;
|
||||
|
||||
if (size <= 18)
|
||||
else if (size <= 18)
|
||||
guiSize = GUIRows.r2;
|
||||
|
||||
if (size <= 27)
|
||||
else if (size <= 27)
|
||||
guiSize = GUIRows.r3;
|
||||
|
||||
if (size <= 36)
|
||||
else if (size <= 36)
|
||||
guiSize = GUIRows.r4;
|
||||
|
||||
if (size <= 45)
|
||||
else if (size <= 45)
|
||||
guiSize = GUIRows.r5;
|
||||
|
||||
if (Jobs.getShopManager().getShopItemList().size() > 45)
|
||||
|
@ -4,7 +4,8 @@ main: com.gamingmesh.jobs.Jobs
|
||||
version: ${project.version}
|
||||
api-version: "1.13"
|
||||
website: https://www.spigotmc.org/resources/4216/
|
||||
authors: [Zrips, montlikadani]
|
||||
authors: [Zrips]
|
||||
contributors: [montlikadani]
|
||||
depend: [CMILib]
|
||||
softdepend: [Vault, Essentials, MythicMobs, McMMO, mcMMO, WorldGuard, MyPet, PlaceholderAPI, EcoEnchants, WildStacker, StackMob]
|
||||
commands:
|
||||
|
Loading…
Reference in New Issue
Block a user