mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-11-30 20:39:53 -05:00
Add Method
This commit is contained in:
1 parent
1d9b241bfd
commit
d6e2ca1fb6
2 files changed
+16
No files matched your search
@@ -16,6 +16,9 @@ import net.md_5.bungee.api.ProxyServer;
|
||||
import net.md_5.bungee.api.plugin.Plugin;
|
||||
import net.md_5.bungee.api.plugin.PluginManager;
|
||||
import net.md_5.bungee.api.scheduler.ScheduledTask;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class BungeeLoader extends Plugin {
|
||||
@@ -115,4 +118,8 @@ public class BungeeLoader extends Plugin {
|
||||
public static java.util.logging.Logger getPluginLogger() {
|
||||
return logger;
|
||||
}
|
||||
|
||||
public static List<String> getServerNames() {
|
||||
return new ArrayList<>(ProxyServer.getInstance().getServers().keySet());
|
||||
}
|
||||
}
|
||||
@@ -24,6 +24,9 @@ import de.rayzs.pat.utils.message.MessageTranslator;
|
||||
import de.rayzs.pat.utils.Reflection;
|
||||
import de.rayzs.pat.utils.configuration.Configurator;
|
||||
import de.rayzs.pat.utils.group.GroupManager;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
@Plugin(name = "ProAntiTab",
|
||||
@@ -116,4 +119,10 @@ public class VelocityLoader {
|
||||
public static VelocityLoader getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
public static List<String> getServerNames() {
|
||||
List<String> servers = new ArrayList<>();
|
||||
server.getAllServers().forEach(server -> servers.add(server.getServerInfo().getName()));
|
||||
return servers;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user