mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-12-01 04:49:44 -05:00
Improvement
This commit is contained in:
1 parent
2129978a84
commit
f8bfe8385a
4 files changed
+7
-4
No files matched your search
@@ -37,8 +37,9 @@ public class BukkitLoader extends JavaPlugin {
|
||||
logger = getLogger();
|
||||
|
||||
Reflection.initialize(getServer());
|
||||
bStats.initialize(this);
|
||||
Storage.load();
|
||||
MessageTranslator.initialize();
|
||||
bStats.initialize(this);
|
||||
|
||||
PluginManager manager = getServer().getPluginManager();
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@ public class BungeeLoader extends Plugin {
|
||||
|
||||
Reflection.initialize(getProxy());
|
||||
Storage.load();
|
||||
MessageTranslator.initialize();
|
||||
GroupManager.initialize();
|
||||
bStats.initialize(this);
|
||||
PluginManager manager = ProxyServer.getInstance().getPluginManager();
|
||||
@@ -61,7 +62,6 @@ public class BungeeLoader extends Plugin {
|
||||
}
|
||||
|
||||
startUpdaterTask();
|
||||
|
||||
ProxyServer.getInstance().getScheduler().schedule(this, () -> ClientCommunication.sendInformation("instance::"), 2, TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
|
||||
@@ -52,8 +52,10 @@ public class VelocityLoader {
|
||||
Configurator.createResourcedFile("./plugins/ProAntiTab", "files\\velocity-storage.yml", "storage.yml", false);
|
||||
|
||||
Storage.load();
|
||||
MessageTranslator.initialize();
|
||||
GroupManager.initialize();
|
||||
|
||||
|
||||
metricsFactory.make(this, 21638);
|
||||
|
||||
server.getCommandManager().register("pat", new VelocityCommand(), "bpat", "bungeeproantitab", "proantitab");
|
||||
|
||||
@@ -12,10 +12,10 @@ import java.util.Map;
|
||||
public class MessageTranslator {
|
||||
|
||||
private static final HashMap<Character, String> colors = new HashMap<>();
|
||||
private static final boolean support;
|
||||
private static boolean support;
|
||||
private static Translator translator = null;
|
||||
|
||||
static {
|
||||
public static void initialize() {
|
||||
colors.put('1', "<dark_blue>");
|
||||
colors.put('2', "<dark_green>");
|
||||
colors.put('3', "<dark_aqua>");
|
||||
|
||||
Reference in new issue
Block a user