From bd134d05aaed31f7460bfc94ff9ad0acc94642cf Mon Sep 17 00:00:00 2001 From: LimeGlass <16087552+TheLimeGlass@users.noreply.github.com> Date: Thu, 14 Sep 2023 22:28:29 -0600 Subject: [PATCH] Fix event-item not being present in book sign (#5877) --- .../java/ch/njol/skript/classes/data/BukkitEventValues.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java b/src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java index d0645163c47..aa90764daa4 100644 --- a/src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java +++ b/src/main/java/ch/njol/skript/classes/data/BukkitEventValues.java @@ -1380,7 +1380,7 @@ public ItemStack get(PlayerEditBookEvent event) { book.setItemMeta(event.getNewBookMeta()); return book; } - }, EventValues.TIME_FUTURE); + }, EventValues.TIME_NOW); EventValues.registerEventValue(PlayerEditBookEvent.class, String[].class, new Getter() { @Override public String[] get(PlayerEditBookEvent event) { @@ -1392,7 +1392,7 @@ public String[] get(PlayerEditBookEvent event) { public String[] get(PlayerEditBookEvent event) { return event.getNewBookMeta().getPages().toArray(new String[0]); } - }, EventValues.TIME_FUTURE); + }, EventValues.TIME_NOW); //ItemDespawnEvent EventValues.registerEventValue(ItemDespawnEvent.class, Item.class, new Getter() { @Override