mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-12-01 04:49:44 -05:00
Big API Change
This commit is contained in:
1 parent
0b52a2dbb0
commit
df4a4694b6
2 files changed
+7
-2
No files matched your search
@@ -28,10 +28,10 @@ public class Storage {
|
||||
public static List<ConfigStorage> LIST = new ArrayList<>();
|
||||
|
||||
public static class Messages {
|
||||
|
||||
public static OnlyForProxySection NO_PROXY = new OnlyForProxySection();
|
||||
public static StatsSection STATS_SECTION = new StatsSection();
|
||||
|
||||
public static void initialize() {}
|
||||
}
|
||||
|
||||
public static class Settings {
|
||||
@@ -40,9 +40,14 @@ public class Storage {
|
||||
public static CustomPluginsSection CUSTOM_PLUGIN = new CustomPluginsSection();
|
||||
public static CustomUnknownCommandSection CUSTOM_UNKNOWN_COMMAND = new CustomUnknownCommandSection();
|
||||
public static UpdateSection UPDATE = new UpdateSection();
|
||||
|
||||
public static void initialize() {}
|
||||
}
|
||||
|
||||
public static void loadAll() {
|
||||
Messages.initialize();
|
||||
Settings.initialize();
|
||||
|
||||
LIST.forEach(ConfigStorage::load);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,6 +14,6 @@ public class OnlyForProxySection extends ConfigStorage {
|
||||
@Override
|
||||
public void load() {
|
||||
super.load();
|
||||
MESSAGE = new ConfigSectionHelper<String>(this, "", "&cThis command works on Bungeecord/Velocity servers only!").getOrSet();
|
||||
MESSAGE = new ConfigSectionHelper<String>(this, null, "&cThis command works on Bungeecord/Velocity servers only!").getOrSet();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user