diff --git a/eco-api/src/main/java/com/willfp/eco/core/gui/slot/ConfigSlot.java b/eco-api/src/main/java/com/willfp/eco/core/gui/slot/ConfigSlot.java index b7fa54377..68ef65c99 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/gui/slot/ConfigSlot.java +++ b/eco-api/src/main/java/com/willfp/eco/core/gui/slot/ConfigSlot.java @@ -127,16 +127,12 @@ private record CommandToDispatch( * @param player The player. */ void dispatch(@NotNull final Player player) { - System.out.println("DISPATCHING " + command); - if (console()) { - System.out.println("CONSOLE"); Bukkit.dispatchCommand( Bukkit.getConsoleSender(), command().replace("%player%", player.getName()) ); } else { - System.out.println("NON-CONSOLE"); Bukkit.dispatchCommand( player, command().replace("%player%", player.getName()) diff --git a/eco-api/src/main/java/com/willfp/eco/util/PatternUtils.java b/eco-api/src/main/java/com/willfp/eco/util/PatternUtils.java index 0ebf005d7..fab424076 100644 --- a/eco-api/src/main/java/com/willfp/eco/util/PatternUtils.java +++ b/eco-api/src/main/java/com/willfp/eco/util/PatternUtils.java @@ -16,7 +16,7 @@ public final class PatternUtils { * Cache of compiled literal patterns. */ private static final Cache LITERAL_PATTERN_CACHE = Caffeine.newBuilder() - .expireAfterAccess(Eco.get().getEcoPlugin().getConfigYml().getInt(""), TimeUnit.MINUTES) + .expireAfterAccess(Eco.get().getEcoPlugin().getConfigYml().getInt("literal-cache-ttl"), TimeUnit.MINUTES) .build(); /**