Fixes incorrect formatting and unused imports
This commit is contained in:
@@ -521,13 +521,16 @@ portalInfoServer=Server: %server%
|
||||
> currently support your language, please submit a translation [here](https://sgrewritten.org/translate)!
|
||||
|
||||
# Changes
|
||||
|
||||
#### \[Version 0.11.5.6] Unified Legacy Fork
|
||||
|
||||
- Fixed a potential stack trace experienced when disabling Dynmap
|
||||
- Fixed some problems related to negative economy transactions.
|
||||
- Fixed an exception occuring when negative yaw values are encountered.
|
||||
- Updated the about command and added a debug command.
|
||||
|
||||
#### \[Version 0.11.5.5] Unified Legacy Fork
|
||||
|
||||
- Hotfix for a compatibility issue preventing the plugin from working on most pre-1.20 server jars.
|
||||
|
||||
#### \[Version 0.11.5.4] Unified Legacy Fork
|
||||
|
@@ -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 {
|
||||
|
@@ -1,6 +1,9 @@
|
||||
&green&Stargate Unified Legacy v. &gold&@version@ &green&(maintained by&gold& [sgrewritten.org](https://sgrewritten.org)&green&).
|
||||
A Hmod transportation concept by&gold& [Dinnerbone](https://github.com/Dinnerbone)&green& and&gold& [Sturmeh](https://github.com/Sturmeh).
|
||||
&green&Ported to bukkit by&gold& [Drakia](https://github.com/DrakiaXYZ).&green& Revived by&gold& [EpicKnarvik97](https://sgrewritten.org/knarvik),
|
||||
&green&Stargate Unified Legacy v. &gold&@version@ &green&(maintained by&gold& [sgrewritten.org](https://sgrewritten.org)
|
||||
&green&).
|
||||
A Hmod transportation concept by&gold& [Dinnerbone](https://github.com/Dinnerbone)&green&
|
||||
and&gold& [Sturmeh](https://github.com/Sturmeh).
|
||||
&green&Ported to bukkit by&gold& [Drakia](https://github.com/DrakiaXYZ).&green& Revived
|
||||
by&gold& [EpicKnarvik97](https://sgrewritten.org/knarvik),
|
||||
&green&now incorporating features from all other Stargate forks.
|
||||
|
||||
For more information, visit&gold& [sgrewritten.org/legacy](https://sgrewritten.org/legacy)
|
||||
|
Reference in New Issue
Block a user