Update the PL update message
This commit is contained in:
parent
7e21f20120
commit
c1afce7378
@ -175,25 +175,27 @@ public class LibsDisguises extends JavaPlugin {
|
|||||||
String version = ProtocolLibrary.getPlugin().getDescription().getVersion();
|
String version = ProtocolLibrary.getPlugin().getDescription().getVersion();
|
||||||
|
|
||||||
if (DisguiseUtilities.isProtocolLibOutdated()) {
|
if (DisguiseUtilities.isProtocolLibOutdated()) {
|
||||||
getLogger().severe("!! May I have your attention please !!");
|
BukkitRunnable runnable = new BukkitRunnable() {
|
||||||
getLogger()
|
private int timesRun;
|
||||||
.severe("Update your ProtocolLib! You are running " + version + " but the minimum version you should be on is " + requiredProtocolLib +
|
|
||||||
"!");
|
|
||||||
getLogger().severe("https://ci.dmulloy2.net/job/ProtocolLib/lastSuccessfulBuild/artifact/target/ProtocolLib" + ".jar");
|
|
||||||
getLogger().severe("Or! Use /ld updateprotocollib - To update to the latest development build");
|
|
||||||
getLogger().severe("!! May I have your attention please !!");
|
|
||||||
|
|
||||||
new BukkitRunnable() {
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
getLogger().severe("!! May I have your attention please !!");
|
getLogger().severe("!! May I have your attention please !!");
|
||||||
getLogger().severe("Update your ProtocolLib! You are running " + version + " but the minimum version you should be on is " +
|
getLogger().severe("Update your ProtocolLib! You are running " + version + " but the minimum version you should be on is " +
|
||||||
requiredProtocolLib + "!");
|
requiredProtocolLib + "!");
|
||||||
getLogger().severe("https://ci.dmulloy2.net/job/ProtocolLib/lastSuccessfulBuild/artifact/target" + "/ProtocolLib" + ".jar");
|
getLogger().severe("https://ci.dmulloy2.net/job/ProtocolLib/lastSuccessfulBuild/artifact/target" + "/ProtocolLib" + ".jar");
|
||||||
getLogger().severe("Or! Use /ld updateprotocollib - To update to the latest development build");
|
getLogger().severe("Or! Use /ld protocollib - To update to the latest development build");
|
||||||
|
|
||||||
|
if (timesRun++ > 0) {
|
||||||
getLogger().severe("This message is on repeat due to the sheer number of people who don't see this.");
|
getLogger().severe("This message is on repeat due to the sheer number of people who don't see this.");
|
||||||
}
|
}
|
||||||
}.runTaskTimer(this, 20, 10 * 60 * 20);
|
|
||||||
|
getLogger().severe("!! May I have your attention please !!");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
runnable.run();
|
||||||
|
runnable.runTaskTimer(this, 20, 10 * 60 * 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If this is a release build, even if jenkins build..
|
// If this is a release build, even if jenkins build..
|
||||||
|
Loading…
Reference in New Issue
Block a user