9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2025-12-30 20:29:18 +00:00

Remove deprecated AnvilGUI API use

This commit is contained in:
SamB440
2021-01-13 19:31:17 +00:00
parent 423be44927
commit 625eee56ed

View File

@@ -210,9 +210,9 @@ public class EditorGUI extends RPGRegionsGUI {
if (editField.getValue() instanceof Boolean) {
Boolean bool = (Boolean) editField.getValue();
if (bool) {
itemStack.setType(XMaterial.GREEN_WOOL.parseMaterial(true));
itemStack.setType(XMaterial.LIME_DYE.parseMaterial(true));
} else {
itemStack.setType(XMaterial.RED_WOOL.parseMaterial(true));
itemStack.setType(XMaterial.GRAY_DYE.parseMaterial(true));
}
}
@@ -239,7 +239,7 @@ public class EditorGUI extends RPGRegionsGUI {
})
.preventClose()
.text(region.getCustomName())
.item(new ItemStack(Material.NAME_TAG))
.itemLeft(new ItemStack(Material.NAME_TAG))
.title("Set display name") // only works in 1.14+
.plugin(plugin)
.open(player);