fix(anvilgui): update to 1.20/1.20.1
This commit is contained in:
parent
50dd4c3adf
commit
f3ebbd6a8d
2 changed files with 4 additions and 2 deletions
|
@ -39,6 +39,7 @@ public class AnvilManager {
|
||||||
public AnvilGUI.Builder getNameThenSkinAnvil() {
|
public AnvilGUI.Builder getNameThenSkinAnvil() {
|
||||||
return new AnvilGUI.Builder()
|
return new AnvilGUI.Builder()
|
||||||
.plugin(NickoBukkit.getInstance())
|
.plugin(NickoBukkit.getInstance())
|
||||||
|
.preventClose()
|
||||||
.itemLeft(getLeftItem(false))
|
.itemLeft(getLeftItem(false))
|
||||||
.interactableSlots(AnvilGUI.Slot.OUTPUT)
|
.interactableSlots(AnvilGUI.Slot.OUTPUT)
|
||||||
.onClick((slot, snapshot) -> {
|
.onClick((slot, snapshot) -> {
|
||||||
|
@ -59,6 +60,7 @@ public class AnvilManager {
|
||||||
public AnvilGUI.Builder getNameAnvil() {
|
public AnvilGUI.Builder getNameAnvil() {
|
||||||
return new AnvilGUI.Builder()
|
return new AnvilGUI.Builder()
|
||||||
.plugin(NickoBukkit.getInstance())
|
.plugin(NickoBukkit.getInstance())
|
||||||
|
.preventClose()
|
||||||
.itemLeft(getLeftItem(false))
|
.itemLeft(getLeftItem(false))
|
||||||
.interactableSlots(AnvilGUI.Slot.OUTPUT)
|
.interactableSlots(AnvilGUI.Slot.OUTPUT)
|
||||||
.onClick((slot, snapshot) -> {
|
.onClick((slot, snapshot) -> {
|
||||||
|
|
|
@ -18,8 +18,8 @@ public class MainGUI {
|
||||||
public MainGUI(Player player) {
|
public MainGUI(Player player) {
|
||||||
final String[] dynamicStructure = new String[]{
|
final String[] dynamicStructure = new String[]{
|
||||||
"# # # # # # # # #",
|
"# # # # # # # # #",
|
||||||
"# # # N B S # # #",
|
"A # # N B S # # #",
|
||||||
"E P A # # # # # R"};
|
"E P # # # # # # R"};
|
||||||
|
|
||||||
if (!player.hasPermission("nicko.admin") || !player.isOp()) {
|
if (!player.hasPermission("nicko.admin") || !player.isOp()) {
|
||||||
dynamicStructure[2] = dynamicStructure[2].replace("A", "#");
|
dynamicStructure[2] = dynamicStructure[2].replace("A", "#");
|
||||||
|
|
Loading…
Reference in a new issue