Compare commits
2 Commits
main
...
bugfix/sch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
869aca5e99 | ||
|
|
60c72c3bdc |
@@ -210,7 +210,6 @@ GUI_INFO_TYPE=§e{0}
|
||||
GUI_INFO_DOWNLOAD=§eDownload
|
||||
GUI_INFO_COLOR=Color translation
|
||||
GUI_INFO_REPLAY=Replay playback
|
||||
GUI_INFO_REPLAY_OFF=§7§lTurn off
|
||||
GUI_INFO_REPLAY_TITLE=Lock playback permanently
|
||||
GUI_INFO_MEMBER=§eMembers
|
||||
GUI_INFO_MOVE=§eMove
|
||||
|
||||
@@ -191,7 +191,6 @@ GUI_INFO_BACK=§eZurück
|
||||
GUI_INFO_STATUS=§eStatus {0}
|
||||
GUI_INFO_COLOR=Farbersetzung
|
||||
GUI_INFO_REPLAY=Replay Wiedergabe
|
||||
GUI_INFO_REPLAY_OFF=§7Zum §lAusschalten
|
||||
GUI_INFO_REPLAY_TITLE=Wiedergabe dauerhaft sperren
|
||||
GUI_INFO_MEMBER=§eMitglieder
|
||||
GUI_INFO_MOVE=§eVerschieben
|
||||
|
||||
@@ -151,7 +151,7 @@ public class GUI {
|
||||
node.setReplaceColor(!node.replaceColor());
|
||||
info(player, node, back);
|
||||
});
|
||||
inv.setItem(13, SWItem.getMaterial(node.allowReplay() ? "EYE_OF_ENDER" : "ENDER_PEARL"), SchematicSystem.MESSAGE.parse("GUI_INFO_REPLAY", player), Arrays.asList(SchematicSystem.MESSAGE.parse("CURRENT", player, SchematicSystem.MESSAGE.parse(node.allowReplay()?"ON":"OFF", player)), SchematicSystem.MESSAGE.parse("GUI_INFO_REPLAY_OFF", player), SchematicSystem.MESSAGE.parse("CLICK", player)), false, clickType -> {
|
||||
inv.setItem(13, SWItem.getMaterial(node.allowReplay() ? "EYE_OF_ENDER" : "ENDER_PEARL"), SchematicSystem.MESSAGE.parse("GUI_INFO_REPLAY", player), Arrays.asList(SchematicSystem.MESSAGE.parse("CURRENT", player, SchematicSystem.MESSAGE.parse(node.allowReplay()?"ON":"OFF", player)), SchematicSystem.MESSAGE.parse("CHANGE", player), SchematicSystem.MESSAGE.parse("CLICK", player)), false, clickType -> {
|
||||
if(node.allowReplay()) {
|
||||
SWInventory confInv = new SWInventory(player, 9, SchematicSystem.MESSAGE.parse("GUI_INFO_REPLAY_TITLE", player));
|
||||
confInv.setItem(0, SWItem.getDye(10), (byte) 10, SchematicSystem.MESSAGE.parse("CONFIRM", player), type -> {
|
||||
@@ -162,6 +162,9 @@ public class GUI {
|
||||
info(player, node, back);
|
||||
});
|
||||
confInv.open();
|
||||
} else {
|
||||
node.setAllowReplay(true);
|
||||
info(player, node, back);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user