Add PAPIProxyBridge Support

This commit is contained in:
RayzsYT committed 2024-06-10 18:54:38 +02:00
1 parent 21bd15e5f0
commit cc2f86f248
3 files changed
+3

No files matched your search

@@ -33,6 +33,7 @@ public class BungeeLoader extends Plugin {
public void onLoad() {
Configurator.createResourcedFile(getDataFolder(), "files\\proxy-config.yml", "config.yml", false);
Configurator.createResourcedFile(getDataFolder(), "files\\proxy-storage.yml", "storage.yml", false);
Configurator.createResourcedFile(getDataFolder(), "files\\placeholders.yml", "placeholders.yml", false);
}
@Override
@@ -62,6 +62,7 @@ public class VelocityLoader {
Configurator.createResourcedFile("./plugins/ProAntiTab", "files\\proxy-config.yml", "config.yml", false);
Configurator.createResourcedFile("./plugins/ProAntiTab", "files\\proxy-storage.yml", "storage.yml", false);
Configurator.createResourcedFile("./plugins/ProAntiTab", "files\\placeholders.yml", "placeholders.yml", false);
Reflection.initialize(server);
Storage.CURRENT_VERSION = pluginContainer.getDescription().getVersion().get();
@@ -88,6 +88,7 @@ public class MessageTranslator {
CommandSender sender = target instanceof CommandSender ? (CommandSender) target : new CommandSender(target);
if(!PlaceholderReplacer.process(sender, text, sender::sendMessage))
sender.sendMessage(text);
return;
}