From 6dd12fab6c42c4c82fe1a6f6c552ebe78764aaba Mon Sep 17 00:00:00 2001 From: BradBot_1 Date: Sun, 8 Oct 2023 00:15:04 +0100 Subject: [PATCH] Better flight speed placeholder --- .../java/fun/bb1/spigot/fly/connect/PlaceHolderApiSupport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fun/bb1/spigot/fly/connect/PlaceHolderApiSupport.java b/src/main/java/fun/bb1/spigot/fly/connect/PlaceHolderApiSupport.java index b7b1475..0b02ef4 100644 --- a/src/main/java/fun/bb1/spigot/fly/connect/PlaceHolderApiSupport.java +++ b/src/main/java/fun/bb1/spigot/fly/connect/PlaceHolderApiSupport.java @@ -64,7 +64,7 @@ public final class PlaceHolderApiSupport extends PlaceholderExpansion { return switch(params.toLowerCase()) { case "active", "on" -> Boolean.toString(player.isOnline() && ((Player)player).getAllowFlight()); case "inactive", "off" -> Boolean.toString(!player.isOnline() || !((Player)player).getAllowFlight()); - case "speed" -> Float.toString(player.isOnline() ? 0 : ((Player)player).getFlySpeed()); + case "speed" -> Float.toString(player.isOnline() ? 0 : ((Player)player).getFlySpeed() * 10); default -> null; }; }