1
0
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:
Zrips 2022-02-11 11:07:11 +02:00
parent a6f074607f
commit 2655a1cf94
3 changed files with 12 additions and 11 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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: