Skip to content
This repository was archived by the owner on Feb 7, 2019. It is now read-only.

Commit 55ad062

Browse files
Removed Nags when no new version found.
Fixed more nags Signed-off-by: ShakeforProtein <[email protected]>
1 parent b49be83 commit 55ad062

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/me/shakeforprotein/stoneores/UpdateChecker.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ public Boolean getCheckDownloadURL(Player p) {
4545
JSONParser parser = new JSONParser();
4646
JSONObject json = (JSONObject) parser.parse(inputLine);
4747
gitVersion = json.get("tag_name").toString();
48-
49-
p.sendMessage("Latest " + pl.getDescription().getName() + " Version is " + gitVersion);
50-
p.sendMessage("Your " + pl.getDescription().getName() + " Version is " + pl.getDescription().getVersion());
5148
if (!gitVersion.equalsIgnoreCase(pl.getDescription().getVersion())) {
49+
p.sendMessage("Latest " + pl.getDescription().getName() + " Version is " + gitVersion);
50+
p.sendMessage("Your " + pl.getDescription().getName() + " Version is " + pl.getDescription().getVersion());
5251
p.sendMessage(ChatColor.GOLD + "Please update " + pl.getDescription().getName() + " with version at " + pl.getConfig().getString("releasePage"));
5352
}
5453

0 commit comments

Comments
 (0)