Browse Source

Added lang.yml support

master
Deliable 3 years ago
parent
commit
cb7509eff2
  1. 9
      src/com/entryrise/lagassist/Main.java

9
src/com/entryrise/lagassist/Main.java

@ -40,8 +40,6 @@ public class Main extends JavaPlugin implements Listener {
public static String USER = "%%__USER__%%";
public static final String PREFIX = "§2§lLag§f§lAssist §e» §f";
public static JavaPlugin p;
public static boolean paper = false;
@ -51,12 +49,19 @@ public class Main extends JavaPlugin implements Listener {
private static File file;
public static FileConfiguration config = new YamlConfiguration();
private static File langfile = new File(getDataFolder(), "lang.yml");
public static YamlConfiguration lang = new YamlConfiguration();
public static final String PREFIX = "§2§lLag§f§lAssist §e» §f";
@Override
public void onEnable() {
p = this;
file = new File(getDataFolder(), "server.yml");
config = Others.getConfig(file, 32);
lang = Others.getConfig(langfile, 1);
paper = VersionMgr.isPaper();

Loading…
Cancel
Save