Remove plugin from LanguageSupport as it is not needed
This commit is contained in:
@@ -7,12 +7,10 @@ import org.bukkit.ChatColor;
|
||||
|
||||
public class LanguageSupport {
|
||||
|
||||
private final AnuraCore plugin;
|
||||
public HashMap<String, String> languages = new HashMap<>();
|
||||
private HashMap<String, HashMap<String, String>> languageValues = new HashMap<>();
|
||||
|
||||
public LanguageSupport(AnuraCore plugin) {
|
||||
this.plugin = plugin;
|
||||
public LanguageSupport() {
|
||||
try {
|
||||
ResultSet al = AnuraCore.sql.querySelect("SELECT name, short_name FROM coreAvailableLanguages");
|
||||
if (!al.next()) {
|
||||
|
||||
@@ -89,7 +89,7 @@ public class Setup {
|
||||
|
||||
public static void setupClasses() {
|
||||
try {
|
||||
Core.getMainClass().lang = new LanguageSupport(Core.getMainClass());
|
||||
Core.getMainClass().lang = new LanguageSupport();
|
||||
new Inventories(Core.getMainClass());
|
||||
setupInventories();
|
||||
Core.getMainClass().perms = new Permissions(Core.getMainClass());
|
||||
|
||||
@@ -52,7 +52,7 @@ public class AdminCommands implements CommandExecutor {
|
||||
if ((args[0].equalsIgnoreCase("reload") || args[0].equalsIgnoreCase("rl")) && sender.isOp()) {
|
||||
try {
|
||||
Core.getMainClass().getConfig().load(new File("plugins/Core/", "config.yml"));
|
||||
Core.getMainClass().lang = new LanguageSupport(Core.getMainClass());
|
||||
Core.getMainClass().lang = new LanguageSupport();
|
||||
Core.statusMsg(sender, "config_rl_done", true);
|
||||
} catch (IOException ex) {
|
||||
Core.statusMsg(sender, "config_rl_error_io", false);
|
||||
|
||||
Reference in New Issue
Block a user