Skip to content

Commit

Permalink
changed Plugin name for alerting admin for new updates
Browse files Browse the repository at this point in the history
Took 19 minutes
  • Loading branch information
TubYoub committed Dec 15, 2024
1 parent a6d3fbc commit fe7f787
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ public void onPlayerJoin(PlayerJoinEvent event) {
if (player.hasPermission("StatusPlugin.admin") && plugin.getConfigManager().isCheckUpdate()) {
// Alert if a critical update is available
if (this.versionInfo.isNewVersionAvailable && this.versionInfo.urgency == UpdateUrgency.CRITICAL || this.versionInfo.urgency == UpdateUrgency.HIGH) {
player.sendMessage(plugin.getPluginPrefix() + ChatColor.RED + "A critical update for BT Grave is available!");
player.sendMessage(plugin.getPluginPrefix() + ChatColor.RED + "Please update to version: " + this.versionInfo.latestVersion);
player.sendMessage(plugin.getPluginPrefix() + ChatColor.RED + "Backup your config");
player.sendMessage(plugin.getPluginPrefix() + ChatColor.RED + " A critical update for Tubs StatusPlugin is available!");
player.sendMessage(plugin.getPluginPrefix() + ChatColor.RED + " Please update to version: " + this.versionInfo.latestVersion);
player.sendMessage(plugin.getPluginPrefix() + ChatColor.RED + " Backup your config");
// only works this way and idk why
TextComponent modrinthLink = new TextComponent(ChatColor.GREEN + "" + ChatColor.UNDERLINE + "Modrinth");
modrinthLink.setClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, "https://modrinth.com/plugin/bt-graves/version/" + this.versionInfo.latestVersion));
Expand Down

0 comments on commit fe7f787

Please sign in to comment.