Remove plugin from LanguageSupport as it is not needed

This commit is contained in:
kaenganxt
2014-12-13 15:34:43 +01:00
parent 3de5f55c85
commit 32f6cfdcbf
3 changed files with 3 additions and 5 deletions

View File

@@ -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()) {

View File

@@ -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());

View File

@@ -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);