mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-12-23 19:57:36 +01:00
Added warning to CommandLocaleExport
This commit is contained in:
parent
895fb30417
commit
14f6c95095
@ -33,11 +33,17 @@ public class CommandLocaleExport extends Subcommand {
|
||||
Paste paste = new Paste(configuration.saveToString());
|
||||
|
||||
paste.getHastebinToken(token -> {
|
||||
sender.sendMessage(
|
||||
this.getPlugin().getLangYml().getMessage("link-to-locale").replace(
|
||||
"%token%", token
|
||||
)
|
||||
);
|
||||
if (token.length() > 15) {
|
||||
sender.sendMessage(
|
||||
this.getPlugin().getLangYml().getMessage("export-failed")
|
||||
);
|
||||
} else {
|
||||
sender.sendMessage(
|
||||
this.getPlugin().getLangYml().getMessage("link-to-locale").replace(
|
||||
"%token%", token
|
||||
)
|
||||
);
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
|
@ -34,6 +34,7 @@ messages:
|
||||
enabled-descriptions: "&fYou have successfully &aenabled &fenchantment descriptions!"
|
||||
disabled-descriptions: "&fYou have successfully &cdisabled &fenchantment descriptions!"
|
||||
descriptions-disabled: "&cEnchantment descriptions are disabled on this server."
|
||||
export-failed: "&cExporting the locale failed. Try again later!"
|
||||
|
||||
no-targets: "&cCannot be applied"
|
||||
no-conflicts: "&cNo conflicts"
|
||||
|
Loading…
Reference in New Issue
Block a user