mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-11-30 20:39:53 -05:00
Add LuckPerms Implementation
This commit is contained in:
1 parent
780c733a53
commit
08a19c4ecf
2 files changed
+8
No files matched your search
@@ -11,6 +11,7 @@ import de.rayzs.pat.api.brand.CustomServerBrand;
|
||||
import de.rayzs.pat.api.communication.ClientCommunication;
|
||||
import de.rayzs.pat.utils.configuration.Configurator;
|
||||
import de.rayzs.pat.utils.group.GroupManager;
|
||||
import de.rayzs.pat.utils.luckperms.LuckPermsAdapter;
|
||||
import de.rayzs.pat.utils.message.MessageTranslator;
|
||||
import net.md_5.bungee.api.ProxyServer;
|
||||
import net.md_5.bungee.api.plugin.Plugin;
|
||||
@@ -56,6 +57,9 @@ public class BungeeLoader extends Plugin {
|
||||
manager.registerListener(this, new BungeeBlockCommandListener());
|
||||
manager.registerListener(this, new BungeePingListener());
|
||||
|
||||
if(manager.getPlugin("LuckPerms") != null)
|
||||
LuckPermsAdapter.initialize();
|
||||
|
||||
try {
|
||||
Class.forName("io.github.waterfallmc.waterfall.QueryResult");
|
||||
manager.registerListener(this, new WaterfallAntiTabListener());
|
||||
|
||||
@@ -20,6 +20,7 @@ import de.rayzs.pat.plugin.metrics.impl.VelocityMetrics;
|
||||
import de.rayzs.pat.utils.ConnectionBuilder;
|
||||
import de.rayzs.pat.api.brand.CustomServerBrand;
|
||||
import de.rayzs.pat.api.communication.ClientCommunication;
|
||||
import de.rayzs.pat.utils.luckperms.LuckPermsAdapter;
|
||||
import de.rayzs.pat.utils.message.MessageTranslator;
|
||||
import de.rayzs.pat.utils.Reflection;
|
||||
import de.rayzs.pat.utils.configuration.Configurator;
|
||||
@@ -78,6 +79,9 @@ public class VelocityLoader {
|
||||
server.getEventManager().register(this, new VelocityConnectionListener(server, this));
|
||||
server.getEventManager().register(this, new VelocityPingListener(server));
|
||||
|
||||
if(server.getPluginManager().getPlugin("LuckPerms").isPresent())
|
||||
LuckPermsAdapter.initialize();
|
||||
|
||||
startUpdaterTask();
|
||||
server.getScheduler().buildTask(this, () -> {
|
||||
ClientCommunication.syncData();
|
||||
|
||||
Reference in new issue
Block a user