From 0f13a329258670494fa698b5d5978c0cdf3c61ae Mon Sep 17 00:00:00 2001 From: MiniDigger Date: Fri, 18 May 2018 20:10:46 +0200 Subject: [PATCH] add paper to the "isUsingSpigot" check (#468) partially fixes #467 will make protocollib use the spigot updater on paper servers. --- .../src/main/java/com/comphenix/protocol/utility/Util.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/API/src/main/java/com/comphenix/protocol/utility/Util.java b/modules/API/src/main/java/com/comphenix/protocol/utility/Util.java index f6ef046d..1a460a0b 100644 --- a/modules/API/src/main/java/com/comphenix/protocol/utility/Util.java +++ b/modules/API/src/main/java/com/comphenix/protocol/utility/Util.java @@ -53,11 +53,11 @@ public class Util { } /** - * Whether or not this server is running Spigot. This works by checking - * the server version for the String "Spigot" + * Whether or not this server is running Spigot or a Spigot fork. This works by checking + * the server version for the Strings "Spigot" or "Paper". * @return True if it is, false if not. */ public static boolean isUsingSpigot() { - return Bukkit.getServer().getVersion().contains("Spigot"); + return Bukkit.getServer().getVersion().contains("Spigot") || Bukkit.getServer().getVersion().contains("Paper"); } }