mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-12-28 12:07:33 +01:00
add paper to the "isUsingSpigot" check (#468)
partially fixes #467 will make protocollib use the spigot updater on paper servers.
This commit is contained in:
parent
1ddb7a0014
commit
0f13a32925
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user