Fix update notification ingame message

This commit is contained in:
NotMyFault 2021-06-27 18:11:57 +02:00
parent c46647d491
commit 8e23b10f7c
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C
2 changed files with 2 additions and 5 deletions

View File

@ -364,7 +364,7 @@ public class PlayerEventListener extends PlotListener implements Listener {
&& PremiumVerification.isPremium() && UpdateUtility.hasUpdate) {
Caption boundary = TranslatableCaption.of("update.update_boundary");
Caption updateNotification = TranslatableCaption.of("update.update_notification");
Template internalVersion = Template.of("p2version", String.valueOf(UpdateUtility.internalVersion.versionString()));
Template internalVersion = Template.of("p2version", UpdateUtility.internalVersion.versionString());
Template spigotVersion = Template.of("spigotversion", UpdateUtility.spigotVersion);
Template downloadUrl = Template.of("downloadurl", "https://www.spigotmc.org/resources/77506/updates");
pp.sendMessage(boundary);

View File

@ -479,10 +479,7 @@
"legacyconfig.legacy_config_done": "<prefix><green>The conversion has finished. PlotSquared will now be disabled and the new configuration file will be used at next startup. Please review the new worlds.yml file. Please note that schematics will not be converted, as we are now using WorldEdit to handle schematics. You need to re-generate the schematics.</green>",
"legacyconfig.legacy_config_conversion_failed": "<prefix><red>Failed to convert the legacy configuration file. See stack trace for information.</red>",
"update.update_boundary": "<gold>-----------------------------------</gold>",
"update.update_notification": "<prefix><gold>There appears to be a PlotSquared update available!</gold>",
"update.internal_version": "<prefix><gold>You are running version </gold><dark_aqua><p2version></dark_aqua>",
"update.spigot_version": "<prefix><gold>Latest version is </gold><dark_aqua><spigotversion></dark_aqua>",
"update.download": "<prefix><gold>Download the update at: <click:open_url:<downloadurl>><downloadurl></click>",
"update.update_notification": "<prefix><gold>There appears to be a PlotSquared update available!</gold>\n<gold>You are running version </gold><dark_aqua><p2version></dark_aqua>\n<gold>Latest version is </gold><dark_aqua><spigotversion></dark_aqua>\n<gold>Download the update at: <click:open_url:<downloadurl>><downloadurl></click>",
"flag.flag_key": "<gray>Key: <key></gray>",
"flag.flag_desc": "<gray>Desc: <value></gray>",
"flag.not_valid_flag": "<red>That is not a valid flag.</red>",