Signed-off-by: Chaos <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
2893325be3
Commit
938ace0e31
@ -85,7 +85,7 @@ public class GUI {
|
|||||||
}
|
}
|
||||||
Material mat = SWItem.getMaterial(node.getItem());
|
Material mat = SWItem.getMaterial(node.getItem());
|
||||||
|
|
||||||
inv.setItem(5, mat, "§e" + mat.name(), Arrays.asList("§7Zum Ändern", "§7anklicken"), false, click -> {
|
inv.setItem(node.isDir()?7:5, mat, "§e" + mat.name(), Arrays.asList("§7Zum Ändern", "§7anklicken"), false, click -> {
|
||||||
changeItem(player, node, back);
|
changeItem(player, node, back);
|
||||||
});
|
});
|
||||||
if(!node.isDir()) {
|
if(!node.isDir()) {
|
||||||
@ -96,6 +96,25 @@ public class GUI {
|
|||||||
player.closeInventory();
|
player.closeInventory();
|
||||||
SchematicCommandUtils.download(player, node);
|
SchematicCommandUtils.download(player, node);
|
||||||
});
|
});
|
||||||
|
if(node.getSchemtype().fightType()) {
|
||||||
|
inv.setItem(14, SWItem.getMaterial(node.replaceColor() ? "PINK_WOOL" : "LIGHT_GRAY_WOOL"), "Farbersetzung", Arrays.asList("§7Aktuell: " + (node.replaceColor()?"§aAn":"§cAus"), "§7Zum Ändern", "§7anklicken"), false, clickType -> {
|
||||||
|
node.setReplaceColor(!node.replaceColor());
|
||||||
|
info(player, node, back);
|
||||||
|
});
|
||||||
|
inv.setItem(13, SWItem.getMaterial(node.allowReplay() ? "EYE_OF_ENDER" : "ENDER_PEAR"), "Replay Wiedergabe", Arrays.asList("§7Aktuell: " + (node.replaceColor()?"§aAn":"§4Aus"), "§7Zum §lAusschaulten", "§7anklicken"), false, clickType -> {
|
||||||
|
if(node.allowReplay()) {
|
||||||
|
SWInventory confInv = new SWInventory(player, 9, "Wiedergabe der Schematic Dauerhaft sperren");
|
||||||
|
confInv.setItem(0, SWItem.getDye(1), (byte) 1, "§aAbbrechen", type -> {
|
||||||
|
info(player, node, back);
|
||||||
|
});
|
||||||
|
confInv.setItem(8, SWItem.getDye(10), (byte) 10, "§cBestätigen", type -> {
|
||||||
|
node.setAllowReplay(false);
|
||||||
|
info(player, node, back);
|
||||||
|
});
|
||||||
|
confInv.open();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
SWItem skull = SWItem.getPlayerSkull("MHF_STEVE");
|
SWItem skull = SWItem.getPlayerSkull("MHF_STEVE");
|
||||||
skull.setCallback(click -> {
|
skull.setCallback(click -> {
|
||||||
|
1
pom.xml
1
pom.xml
@ -50,6 +50,7 @@
|
|||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
<version>1.18.22</version>
|
<version>1.18.22</version>
|
||||||
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
In neuem Issue referenzieren
Einen Benutzer sperren