@Override
public void run() {
if (player.isOnline()) {
String update = BTLCheck.getLatestVersion();
try {
if (Integer.parseInt(plugin.version.replace("BkrTorchLightV", "")) < Integer.parseInt(update.split(" ")[0].replace("BkrTorchLightV", ""))) {
player.sendMessage(ChatColor.GREEN + "New update!: " + update);
}
} catch (NumberFormatException e) {
BTL.logger.log(Level.WARNING, "Could not parse version updates.");
}
}
}
}