diff --git a/src/main/java/de/leghast/holography/display/DisplayWrapper.java b/src/main/java/de/leghast/holography/display/DisplayWrapper.java index 99dec8f..563db38 100644 --- a/src/main/java/de/leghast/holography/display/DisplayWrapper.java +++ b/src/main/java/de/leghast/holography/display/DisplayWrapper.java @@ -61,7 +61,7 @@ public void registerChatInput(Holography main, Player player) { Message.NEW_TEXT_SUBTITLE, Title.Times.times( Duration.of(200, ChronoUnit.MILLIS), - Duration.of(4, ChronoUnit.SECONDS), + Duration.of(6, ChronoUnit.SECONDS), Duration.of(200, ChronoUnit.MILLIS) ) )); diff --git a/src/main/java/de/leghast/holography/handler/AttributeInteractionHandler.java b/src/main/java/de/leghast/holography/handler/AttributeInteractionHandler.java index fe49a8e..ecffae0 100644 --- a/src/main/java/de/leghast/holography/handler/AttributeInteractionHandler.java +++ b/src/main/java/de/leghast/holography/handler/AttributeInteractionHandler.java @@ -8,6 +8,7 @@ import de.leghast.holography.ui.Attribute; import de.leghast.holography.ui.Page; import de.leghast.holography.ui.UserInterface; +import org.bukkit.Bukkit; import org.bukkit.entity.Display; import org.bukkit.entity.Player; import org.bukkit.entity.TextDisplay; @@ -48,8 +49,12 @@ public AttributeInteractionHandler(Holography main, int slot, Player player) { case TEXT -> { switch(slot){ case 29 -> { - wrapper.registerChatInput(main, player); - player.closeInventory(); + Bukkit.getScheduler().runTaskLater(main, + () -> { + wrapper.registerChatInput(main, player); + player.closeInventory(); + }, 1L + ); } case 30 -> wrapper.setLineWidth(main, player); case 31 -> wrapper.toggleTextShadow(); @@ -88,7 +93,7 @@ public AttributeInteractionHandler(Holography main, int slot, Player player) { } } - if(attribute != Attribute.TEXT && slot != 29 && slot != 26 && slot != 44){ + if(slot != 26 && slot != 44){ new UserInterface(main, player, main.getSettingsManager().getAdjusterSettings(player.getUniqueId()).getPage()); }