mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-11-08 11:41:28 +01:00
Merge branch 'development' into 'master'
Fixes See merge request Songoda/ultimatekits!17
This commit is contained in:
commit
74c3ffddcc
@ -4,7 +4,7 @@ stages:
|
||||
variables:
|
||||
name: "UltimateKits"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "2.2.8"
|
||||
version: "2.2.9"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -74,7 +74,7 @@ public class GUIDisplayKit extends AbstractGUI {
|
||||
max = 54 - min;
|
||||
if (amt <= 7) {
|
||||
max = 27 - min;
|
||||
} else if (amt <= 16) {
|
||||
} else if (amt <= 15) {
|
||||
max = 36 - min;
|
||||
} else if (amt <= 23) {
|
||||
max = 45 - min;
|
||||
@ -152,11 +152,10 @@ public class GUIDisplayKit extends AbstractGUI {
|
||||
|
||||
for (ItemStack is : list) {
|
||||
if (!plugin.getConfig().getBoolean("Interfaces.Do Not Use Glass Borders")) {
|
||||
if (num == 17)
|
||||
num++;
|
||||
if (num == (max - 18))
|
||||
num++;
|
||||
if (num == 17 || num == (max - 18)) num++;
|
||||
if (num == 18 && max == 36) num++;
|
||||
}
|
||||
System.out.println("hit " + num);
|
||||
|
||||
ItemMeta meta = is.hasItemMeta() ? is.getItemMeta() : Bukkit.getItemFactory().getItemMeta(is.getType());
|
||||
ArrayDeque<String> lore;
|
||||
|
@ -50,9 +50,9 @@ public class GUIKitSelector extends AbstractGUI {
|
||||
if (glassless) {
|
||||
if (kitList.size() > n + 34)
|
||||
max = max + 34;
|
||||
else if (kitList.size() > n + 25)
|
||||
else if (kitList.size() > n + 23)
|
||||
max = max + 25;
|
||||
else if (kitList.size() > n + 16)
|
||||
else if (kitList.size() > n + 14)
|
||||
max = max + 16;
|
||||
else if (kitList.size() > n + 7)
|
||||
max = max + 7;
|
||||
@ -129,7 +129,10 @@ public class GUIKitSelector extends AbstractGUI {
|
||||
if (!glassless)
|
||||
tmax = tmax - 10;
|
||||
for (int index = num; index != tmax; index++) {
|
||||
if (!glassless && index == 17) index = 19;
|
||||
if (!glassless) {
|
||||
if (num == 17 || num == (max - 18)) num++;
|
||||
if (num == 18 && max == 36) num++;
|
||||
}
|
||||
if (id > kitList.size() - 1) {
|
||||
inventory.setItem(index, new ItemStack(Material.AIR));
|
||||
continue;
|
||||
|
@ -62,6 +62,7 @@ event.claim.wait = "&7Cooldown: &6%time%"
|
||||
event.claim.noaccess = "&7Cooldown: &cNo Access.."
|
||||
event.claim.full = "&cYour inventory is too full to claim this kit!"
|
||||
event.create.won = "&7You got a &6%item%&7."
|
||||
event.crate.wrongkey = "&cThis key doesn't belong to this kit.."
|
||||
event.purchase.cancelled = "&cPurchase Cancelled."
|
||||
event.key.given = "&9You have received a &a%kit% &9kit key."
|
||||
event.key.success = "&9You have successfully redeemed a key for the kit &7%kit%&9."
|
Loading…
Reference in New Issue
Block a user