Fixed PR
This commit is contained in:
@@ -127,16 +127,12 @@ public class ConfigSlot extends CustomSlot {
|
||||
* @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())
|
||||
|
||||
@@ -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();
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user