diff --git a/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/EstimatedTime.java b/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/EstimatedTime.java index a07b022..77d301b 100644 --- a/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/EstimatedTime.java +++ b/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/EstimatedTime.java @@ -40,9 +40,7 @@ public class EstimatedTime extends Placeholder { cache.put(p.getUniqueId(), response.getEither()); } catch (InterruptedException | ExecutionException e) { throw new RuntimeException(e); - } catch (TimeoutException e) { - plugin.getLogger().log(Level.WARNING, "Timed out while trying to get placeholder data from proxy: ", e); - } + } catch (TimeoutException ignored) {} }); return cache.getOrDefault(p.getUniqueId(), "..."); diff --git a/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/InQueue.java b/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/InQueue.java index 9b83582..5913750 100644 --- a/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/InQueue.java +++ b/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/InQueue.java @@ -39,9 +39,7 @@ public class InQueue extends Placeholder { cache.put(p.getUniqueId(), response + ""); } catch (InterruptedException | ExecutionException e) { throw new RuntimeException(e); - } catch (TimeoutException e) { - plugin.getLogger().log(Level.WARNING, "Timed out while trying to get placeholder data from proxy: ", e); - } + } catch (TimeoutException ignored) {} }); return cache.getOrDefault(p.getUniqueId(), "..."); diff --git a/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/Position.java b/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/Position.java index 037420f..447a6a7 100644 --- a/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/Position.java +++ b/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/Position.java @@ -40,9 +40,7 @@ public class Position extends Placeholder { cache.put(p.getUniqueId(), response.getEither()); } catch (InterruptedException | ExecutionException e) { throw new RuntimeException(e); - } catch (TimeoutException e) { - plugin.getLogger().log(Level.WARNING, "Timed out while trying to get placeholder data from proxy: ", e); - } + } catch (TimeoutException ignored) {} }); return cache.getOrDefault(p.getUniqueId(), "..."); diff --git a/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/PositionOf.java b/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/PositionOf.java index a3c4cba..b3a2c0e 100644 --- a/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/PositionOf.java +++ b/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/PositionOf.java @@ -40,9 +40,7 @@ public class PositionOf extends Placeholder { cache.put(p.getUniqueId(), response.getEither()); } catch (InterruptedException | ExecutionException e) { throw new RuntimeException(e); - } catch (TimeoutException e) { - plugin.getLogger().log(Level.WARNING, "Timed out while trying to get placeholder data from proxy: ", e); - } + } catch (TimeoutException ignored) {} }); return cache.getOrDefault(p.getUniqueId(), "..."); diff --git a/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/Queued.java b/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/Queued.java index cf4d26a..bc7bd40 100644 --- a/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/Queued.java +++ b/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/Queued.java @@ -40,9 +40,7 @@ public class Queued extends Placeholder { cache.put(p.getUniqueId(), response.getEither()); } catch (InterruptedException | ExecutionException e) { throw new RuntimeException(e); - } catch (TimeoutException e) { - plugin.getLogger().log(Level.WARNING, "Timed out while trying to get placeholder data from proxy: ", e); - } + } catch (TimeoutException ignored) {} }); return cache.getOrDefault(p.getUniqueId(), "..."); diff --git a/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/QueuedFor.java b/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/QueuedFor.java index 13259e5..5dd7201 100644 --- a/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/QueuedFor.java +++ b/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/QueuedFor.java @@ -43,15 +43,13 @@ public class QueuedFor extends Placeholder { cache.put(queue, response + ""); } catch (InterruptedException e) { throw new RuntimeException(e); - } catch (TimeoutException e) { - plugin.getLogger().log(Level.WARNING, "Timed out while trying to get placeholder data from proxy: ", e); } catch (ExecutionException e) { if(e.getCause() instanceof IllegalArgumentException) { cache.put(queue, invalidMessage); } else { throw new RuntimeException(e); } - } + } catch (TimeoutException ignored) {} }); return cached; diff --git a/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/Status.java b/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/Status.java index af1848d..db7780c 100644 --- a/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/Status.java +++ b/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/Status.java @@ -43,15 +43,13 @@ public class Status extends Placeholder { cache.put(queue, response); } catch (InterruptedException e) { throw new RuntimeException(e); - } catch (TimeoutException e) { - plugin.getLogger().log(Level.WARNING, "Timed out while trying to get placeholder data from proxy: ", e); } catch (ExecutionException e) { if(e.getCause() instanceof IllegalArgumentException) { cache.put(queue, invalidMessage); } else { throw new RuntimeException(e); } - } + } catch (TimeoutException ignored) {} }); return cached; diff --git a/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/StatusPlayer.java b/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/StatusPlayer.java index f7b8307..88eb676 100644 --- a/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/StatusPlayer.java +++ b/spigot/src/main/java/us/ajg0702/queue/spigot/placeholders/placeholders/StatusPlayer.java @@ -46,9 +46,7 @@ public class StatusPlayer extends Placeholder { cache.put(key, response); } catch (InterruptedException | ExecutionException e) { throw new RuntimeException(e); - } catch (TimeoutException e) { - plugin.getLogger().log(Level.WARNING, "Timed out while trying to get placeholder data from proxy: ", e); - } + } catch (TimeoutException ignored) {} }); return cache.getOrDefault(key, "...");