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 {
|
public class LanguageSupport {
|
||||||
|
|
||||||
private final AnuraCore plugin;
|
|
||||||
public HashMap<String, String> languages = new HashMap<>();
|
public HashMap<String, String> languages = new HashMap<>();
|
||||||
private HashMap<String, HashMap<String, String>> languageValues = new HashMap<>();
|
private HashMap<String, HashMap<String, String>> languageValues = new HashMap<>();
|
||||||
|
|
||||||
public LanguageSupport(AnuraCore plugin) {
|
public LanguageSupport() {
|
||||||
this.plugin = plugin;
|
|
||||||
try {
|
try {
|
||||||
ResultSet al = AnuraCore.sql.querySelect("SELECT name, short_name FROM coreAvailableLanguages");
|
ResultSet al = AnuraCore.sql.querySelect("SELECT name, short_name FROM coreAvailableLanguages");
|
||||||
if (!al.next()) {
|
if (!al.next()) {
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ public class Setup {
|
|||||||
|
|
||||||
public static void setupClasses() {
|
public static void setupClasses() {
|
||||||
try {
|
try {
|
||||||
Core.getMainClass().lang = new LanguageSupport(Core.getMainClass());
|
Core.getMainClass().lang = new LanguageSupport();
|
||||||
new Inventories(Core.getMainClass());
|
new Inventories(Core.getMainClass());
|
||||||
setupInventories();
|
setupInventories();
|
||||||
Core.getMainClass().perms = new Permissions(Core.getMainClass());
|
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()) {
|
if ((args[0].equalsIgnoreCase("reload") || args[0].equalsIgnoreCase("rl")) && sender.isOp()) {
|
||||||
try {
|
try {
|
||||||
Core.getMainClass().getConfig().load(new File("plugins/Core/", "config.yml"));
|
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);
|
Core.statusMsg(sender, "config_rl_done", true);
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
Core.statusMsg(sender, "config_rl_error_io", false);
|
Core.statusMsg(sender, "config_rl_error_io", false);
|
||||||
|
|||||||
Reference in New Issue
Block a user