mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
use 1.21.5 spigot
This commit is contained in:
parent
179b8db090
commit
93a87cfdf1
3 changed files with 5 additions and 5 deletions
|
|
@ -30,7 +30,7 @@ repositories {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// Spigot api
|
// Spigot api
|
||||||
compileOnly("org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT")
|
compileOnly("org.spigotmc:spigot-api:1.21.5-R0.1-SNAPSHOT")
|
||||||
|
|
||||||
// Gui library
|
// Gui library
|
||||||
val inventoryFramework = "xyz.alexcrea.cuanvil.inventoryframework:IF-CustomAnvil:0.10.18.2"
|
val inventoryFramework = "xyz.alexcrea.cuanvil.inventoryframework:IF-CustomAnvil:0.10.18.2"
|
||||||
|
|
|
||||||
|
|
@ -141,10 +141,10 @@ public class EnchantSelectSettingGui extends SettingGuiListConfigGui<CAEnchantme
|
||||||
|
|
||||||
meta.setDisplayName("§" + (isIn ? 'a' : 'c') + CasedStringUtil.snakeToUpperSpacedCase(name));
|
meta.setDisplayName("§" + (isIn ? 'a' : 'c') + CasedStringUtil.snakeToUpperSpacedCase(name));
|
||||||
if (isIn) {
|
if (isIn) {
|
||||||
meta.addEnchant(Enchantment.DAMAGE_UNDEAD, 1, true);
|
meta.addEnchant(Enchantment.SMITE, 1, true);
|
||||||
meta.setLore(TRUE_LORE);
|
meta.setLore(TRUE_LORE);
|
||||||
} else {
|
} else {
|
||||||
meta.removeEnchant(Enchantment.DAMAGE_UNDEAD);
|
meta.removeEnchant(Enchantment.SMITE);
|
||||||
meta.setLore(FALSE_LORE);
|
meta.setLore(FALSE_LORE);
|
||||||
}
|
}
|
||||||
meta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES, ItemFlag.HIDE_ENCHANTS);
|
meta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES, ItemFlag.HIDE_ENCHANTS);
|
||||||
|
|
|
||||||
|
|
@ -112,10 +112,10 @@ public class GroupSelectSettingGui extends AbstractSettingGui {
|
||||||
|
|
||||||
meta.setDisplayName("§" + (isIn ? 'a' : 'c') + CasedStringUtil.snakeToUpperSpacedCase(name));
|
meta.setDisplayName("§" + (isIn ? 'a' : 'c') + CasedStringUtil.snakeToUpperSpacedCase(name));
|
||||||
if (isIn) {
|
if (isIn) {
|
||||||
meta.addEnchant(Enchantment.DAMAGE_UNDEAD, 1, true);
|
meta.addEnchant(Enchantment.SMITE, 1, true);
|
||||||
meta.setLore(TRUE_LORE);
|
meta.setLore(TRUE_LORE);
|
||||||
} else {
|
} else {
|
||||||
meta.removeEnchant(Enchantment.DAMAGE_UNDEAD);
|
meta.removeEnchant(Enchantment.SMITE);
|
||||||
meta.setLore(FALSE_LORE);
|
meta.setLore(FALSE_LORE);
|
||||||
}
|
}
|
||||||
meta.addItemFlags(ItemFlag.values());
|
meta.addItemFlags(ItemFlag.values());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue