We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ddb7a0 commit 0f13a32Copy full SHA for 0f13a32
modules/API/src/main/java/com/comphenix/protocol/utility/Util.java
@@ -53,11 +53,11 @@ public static <E> List<E> asList(E... elements) {
53
}
54
55
/**
56
- * Whether or not this server is running Spigot. This works by checking
57
- * 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".
58
* @return True if it is, false if not.
59
*/
60
public static boolean isUsingSpigot() {
61
- return Bukkit.getServer().getVersion().contains("Spigot");
+ return Bukkit.getServer().getVersion().contains("Spigot") || Bukkit.getServer().getVersion().contains("Paper");
62
63
0 commit comments