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