Rework SchemInfo #111
@ -68,11 +68,7 @@ public class GUI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
inv.setItem(9, SWItem.getMaterial("LEASH"), "§eZurück", clickType -> {
|
inv.setItem(9, SWItem.getMaterial("LEASH"), "§eZurück", clickType -> {
|
||||||
if(back != null) {
|
|
||||||
back.reOpen();
|
back.reOpen();
|
||||||
} else {
|
|
||||||
list(player);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if(node.getOwner() == user.getId()){
|
if(node.getOwner() == user.getId()){
|
||||||
@ -119,10 +115,9 @@ public class GUI {
|
|||||||
});
|
});
|
||||||
selector.open();
|
selector.open();
|
||||||
});
|
});
|
||||||
Material finalMat = mat;
|
|
||||||
inv.setItem(16, Material.NAME_TAG, "§eUmbenennen", clickType -> {
|
inv.setItem(16, Material.NAME_TAG, "§eUmbenennen", clickType -> {
|
||||||
SWAnvilInv anvilInv = new SWAnvilInv(player, node.getName() + " umbenennen", node.getName());
|
SWAnvilInv anvilInv = new SWAnvilInv(player, node.getName() + " umbenennen", node.getName());
|
||||||
anvilInv.setItem(finalMat);
|
anvilInv.setItem(mat);
|
||||||
anvilInv.setCallback(s -> {
|
anvilInv.setCallback(s -> {
|
||||||
SafeSchematicNode.Result result = SafeSchematicNode.setName(user, node, s);
|
SafeSchematicNode.Result result = SafeSchematicNode.setName(user, node, s);
|
||||||
if(result.isSuccessful()) {
|
if(result.isSuccessful()) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren