Skip to content

Commit 0f13a32

Browse files
MiniDiggerdmulloy2
authored andcommitted
add paper to the "isUsingSpigot" check (#468)
partially fixes #467 will make protocollib use the spigot updater on paper servers.
1 parent 1ddb7a0 commit 0f13a32

File tree

1 file changed

+3
-3
lines changed
  • modules/API/src/main/java/com/comphenix/protocol/utility

1 file changed

+3
-3
lines changed

modules/API/src/main/java/com/comphenix/protocol/utility/Util.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ public static <E> List<E> asList(E... elements) {
5353
}
5454

5555
/**
56-
* Whether or not this server is running Spigot. This works by checking
57-
* the server version for the String "Spigot"
56+
* Whether or not this server is running Spigot or a Spigot fork. This works by checking
57+
* the server version for the Strings "Spigot" or "Paper".
5858
* @return True if it is, false if not.
5959
*/
6060
public static boolean isUsingSpigot() {
61-
return Bukkit.getServer().getVersion().contains("Spigot");
61+
return Bukkit.getServer().getVersion().contains("Spigot") || Bukkit.getServer().getVersion().contains("Paper");
6262
}
6363
}

0 commit comments

Comments
 (0)