Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
1c16f6703e
Commit
cf3e083f8d
@ -423,11 +423,11 @@ public class SchematicCommandUtils {
|
|||||||
|
|
||||||
private static void submitSchemGUI(Player player, SchematicNode node, SchematicType type) {
|
private static void submitSchemGUI(Player player, SchematicNode node, SchematicType type) {
|
||||||
SWInventory inv = new SWInventory(player, 9, "Schematic ausfahren");
|
SWInventory inv = new SWInventory(player, 9, "Schematic ausfahren");
|
||||||
inv.setItem(0, SWItem.getMaterial("SIGN"), node.allowReplay() ? "§cReplay sperren" : "§aReplay erlauben", click -> {
|
inv.setItem(0, SWItem.getMaterial("SIGN"), node.allowReplay() ? "§aReplay erlaubt" : "§cReplay gesperrt", click -> {
|
||||||
node.setAllowReplay(!node.allowReplay());
|
node.setAllowReplay(!node.allowReplay());
|
||||||
submitSchemGUI(player, node, type);
|
submitSchemGUI(player, node, type);
|
||||||
});
|
});
|
||||||
inv.setItem(1, SWItem.getMaterial(node.replaceColor() ? "PINK_WOOL" : "LIGHT_GRAY_WOOL"), node.replaceColor() ? "§cPink nicht zu Teamfarbe ersetzen" : "§aPink zu Teamfarbe ersetzen", click -> {
|
inv.setItem(1, SWItem.getMaterial(node.replaceColor() ? "PINK_WOOL" : "LIGHT_GRAY_WOOL"), node.replaceColor() ? "§aPink zu Teamfarbe ersetzen" : "§cPink nicht ersetzen", click -> {
|
||||||
node.setReplaceColor(!node.replaceColor());
|
node.setReplaceColor(!node.replaceColor());
|
||||||
submitSchemGUI(player, node, type);
|
submitSchemGUI(player, node, type);
|
||||||
});
|
});
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren