Update console log to match RS Standards.
This commit is contained in:
1 parent
fc778193c0
commit
df80243883
3 files changed
+21
-4
No files matched your search
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<groupId>com.rsscripting</groupId>
|
<groupId>com.rsscripting</groupId>
|
||||||
<artifactId>rs-mobstand</artifactId>
|
<artifactId>rs-mobstand</artifactId>
|
||||||
<version>1.0.1</version>
|
<version>1.0.3</version>
|
||||||
|
|
||||||
<name>RS-MobStand</name>
|
<name>RS-MobStand</name>
|
||||||
|
|
||||||
|
|||||||
@@ -174,7 +174,24 @@ public class RSAdminMenu {
|
|||||||
+ currentVersion
|
+ currentVersion
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!currentVersion.equalsIgnoreCase(
|
if (latestVersion == null) {
|
||||||
|
|
||||||
|
lore.add(
|
||||||
|
ChatColor.GRAY
|
||||||
|
+ "Latest Version: "
|
||||||
|
+ ChatColor.WHITE
|
||||||
|
+ "Unknown"
|
||||||
|
);
|
||||||
|
|
||||||
|
lore.add("");
|
||||||
|
|
||||||
|
lore.add(
|
||||||
|
ChatColor.RED
|
||||||
|
+ "Unable To Check"
|
||||||
|
);
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (!currentVersion.equalsIgnoreCase(
|
||||||
latestVersion
|
latestVersion
|
||||||
)) {
|
)) {
|
||||||
|
|
||||||
|
|||||||
@@ -146,8 +146,8 @@ public class VersionChecker {
|
|||||||
|
|
||||||
catch (Exception exception) {
|
catch (Exception exception) {
|
||||||
|
|
||||||
plugin.getLogger().warning(
|
plugin.getLogger().info(
|
||||||
"Could not check for updates."
|
"Unable to check for updates."
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user