Fixes incorrect formatting and unused imports
This commit is contained in:
@@ -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");
|
||||
|
@@ -1,6 +1,5 @@
|
||||
package net.knarcraft.stargate.command;
|
||||
|
||||
import net.knarcraft.stargate.Stargate;
|
||||
import net.md_5.bungee.api.ChatColor;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.command.Command;
|
||||
|
@@ -106,7 +106,7 @@ public final class StargateConfig {
|
||||
|
||||
//Set up vault economy if vault has been loaded
|
||||
setupVaultEconomy();
|
||||
|
||||
|
||||
//Set up dynmap
|
||||
DynmapAPI dynmapAPI = (DynmapAPI) Bukkit.getPluginManager().getPlugin("dynmap");
|
||||
if (dynmapAPI != null) {
|
||||
|
@@ -4,7 +4,6 @@ import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.nio.charset.Charset;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
||||
public class FileHelper {
|
||||
|
Reference in New Issue
Block a user