Skip to content

Commit

Permalink
Fixed PR
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Feb 8, 2024
1 parent 2402fd6 commit c977cb2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public final class PatternUtils {
* Cache of compiled literal patterns.
*/
private static final Cache<String, Pattern> 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();

/**
Expand Down

0 comments on commit c977cb2

Please sign in to comment.