Fixes incorrect formatting and unused imports

This commit is contained in:
2024-02-17 18:22:27 +01:00
parent a4d4864bdd
commit c560063c06
6 changed files with 12 additions and 8 deletions

View File

@@ -25,11 +25,11 @@ public class CommandAbout implements CommandExecutor {
ChatColor textColor = ChatColor.GOLD;
ChatColor highlightColor = ChatColor.GREEN;
try(InputStream inputStream = Stargate.class.getResourceAsStream("/messages/about.md")){
try (InputStream inputStream = Stargate.class.getResourceAsStream("/messages/about.md")) {
String aboutMessageString = FileHelper.readStreamToString(inputStream);
BaseComponent[] component = MineDown.parse(aboutMessageString);
commandSender.spigot().sendMessage(component);
} catch (IOException ioException){
} catch (IOException ioException) {
commandSender.sendMessage("Internal error");
}
String author = Stargate.getStargateConfig().getLanguageLoader().getString("author");