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