Start spamming protocollib updating for command usage too
This commit is contained in:
@@ -2531,6 +2531,18 @@ public class DisguiseUtilities {
|
||||
return components.toArray(new BaseComponent[0]);
|
||||
}
|
||||
|
||||
public static void sendProtocolLibUpdateMessage(CommandSender p, String version, String requiredProtocolLib) {
|
||||
p.sendMessage(ChatColor.RED + "Please ask the server owner to update ProtocolLib! You are running " + version +
|
||||
" but the minimum version you should be on is " + requiredProtocolLib + "!");
|
||||
p.sendMessage(ChatColor.RED + "https://ci.dmulloy2.net/job/ProtocolLib/lastSuccessfulBuild/artifact/target" +
|
||||
"/ProtocolLib" + ".jar");
|
||||
p.sendMessage(ChatColor.RED + "Or! Use " + ChatColor.DARK_RED + "/ld updateprotocollib" + ChatColor.RED +
|
||||
" - To update to the latest development build");
|
||||
p.sendMessage(ChatColor.DARK_GREEN +
|
||||
"This message is `kindly` provided by Lib's Disguises on repeat to all players due to the sheer " +
|
||||
"number of people who don't see it");
|
||||
}
|
||||
|
||||
public static boolean isOlderThan(String requiredVersion, String theirVersion) {
|
||||
int[] required = getNumericVersion(requiredVersion);
|
||||
int[] has = getNumericVersion(theirVersion);
|
||||
|
Reference in New Issue
Block a user