Implementing schematic preparation #92
@ -50,7 +50,6 @@ class GUI {
|
||||
|
||||
SWListInv<SchematicType> inv = new SWListInv<>(p, "Typ ändern", types, (clickType, schematicType) -> {
|
||||
SchematicCommand.changetype(p, schem, schematicType);
|
||||
p.closeInventory();
|
||||
});
|
||||
inv.setCallback(-999, (ClickType click) -> p.closeInventory());
|
||||
inv.open();
|
||||
|
@ -293,7 +293,7 @@ public class SchematicCommand implements CommandExecutor {
|
||||
|
||||
SWInventory inv = new SWInventory(player, 9, "Schematic ausfahren");
|
||||
inv.setItem(0, SWItem.getDye(10), (byte)10, "§eSchematic ausfahren", click -> {
|
||||
new PrepareSchemPacket(SteamwarUser.get(player.getUniqueId()), schematic, type);
|
||||
new PrepareSchemPacket(SteamwarUser.get(player.getUniqueId()), schematic, type).send(player);
|
||||
player.sendMessage(SchematicSystem.PREFIX + "§aDer Vorbereitungsserver wird gestartet");
|
||||
player.closeInventory();
|
||||
});
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren