mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2024-09-11 07:08:05 +02:00
Updated package and plugin descriptor file
This commit is contained in:
parent
46b7971934
commit
89e5101d98
2
pom.xml
2
pom.xml
@ -56,7 +56,7 @@
|
|||||||
<relocations>
|
<relocations>
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>org.bstats</pattern>
|
<pattern>org.bstats</pattern>
|
||||||
<shadedPattern>me.jaimemartz.lobbybalancer</shadedPattern>
|
<shadedPattern>me.jaimemartz.playerbalancer</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
</relocations>
|
</relocations>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
package me.jaimemartz.lobbybalancer;
|
package me.jaimemartz.playerbalancer;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import me.jaimemartz.faucet.ConfigFactory;
|
import me.jaimemartz.faucet.ConfigFactory;
|
||||||
import me.jaimemartz.lobbybalancer.commands.FallbackCommand;
|
import me.jaimemartz.playerbalancer.commands.FallbackCommand;
|
||||||
import me.jaimemartz.lobbybalancer.commands.MainCommand;
|
import me.jaimemartz.playerbalancer.commands.MainCommand;
|
||||||
import me.jaimemartz.lobbybalancer.commands.ManageCommand;
|
import me.jaimemartz.playerbalancer.commands.ManageCommand;
|
||||||
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
|
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
|
||||||
import me.jaimemartz.lobbybalancer.connection.ServerAssignRegistry;
|
import me.jaimemartz.playerbalancer.connection.ServerAssignRegistry;
|
||||||
import me.jaimemartz.lobbybalancer.listener.*;
|
import me.jaimemartz.playerbalancer.listener.*;
|
||||||
import me.jaimemartz.lobbybalancer.manager.PlayerLocker;
|
import me.jaimemartz.playerbalancer.manager.PlayerLocker;
|
||||||
import me.jaimemartz.lobbybalancer.ping.StatusManager;
|
import me.jaimemartz.playerbalancer.ping.StatusManager;
|
||||||
import me.jaimemartz.lobbybalancer.section.SectionManager;
|
import me.jaimemartz.playerbalancer.section.SectionManager;
|
||||||
import me.jaimemartz.lobbybalancer.utils.DigitUtils;
|
import me.jaimemartz.playerbalancer.utils.DigitUtils;
|
||||||
import net.md_5.bungee.api.plugin.Command;
|
import net.md_5.bungee.api.plugin.Command;
|
||||||
import net.md_5.bungee.api.plugin.Listener;
|
import net.md_5.bungee.api.plugin.Listener;
|
||||||
import net.md_5.bungee.api.plugin.Plugin;
|
import net.md_5.bungee.api.plugin.Plugin;
|
@ -1,10 +1,10 @@
|
|||||||
package me.jaimemartz.lobbybalancer.commands;
|
package me.jaimemartz.playerbalancer.commands;
|
||||||
|
|
||||||
import me.jaimemartz.lobbybalancer.PlayerBalancer;
|
import me.jaimemartz.playerbalancer.PlayerBalancer;
|
||||||
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
|
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
|
||||||
import me.jaimemartz.lobbybalancer.connection.ConnectionIntent;
|
import me.jaimemartz.playerbalancer.connection.ConnectionIntent;
|
||||||
import me.jaimemartz.lobbybalancer.section.ServerSection;
|
import me.jaimemartz.playerbalancer.section.ServerSection;
|
||||||
import me.jaimemartz.lobbybalancer.utils.MessageUtils;
|
import me.jaimemartz.playerbalancer.utils.MessageUtils;
|
||||||
import net.md_5.bungee.api.ChatColor;
|
import net.md_5.bungee.api.ChatColor;
|
||||||
import net.md_5.bungee.api.CommandSender;
|
import net.md_5.bungee.api.CommandSender;
|
||||||
import net.md_5.bungee.api.chat.ComponentBuilder;
|
import net.md_5.bungee.api.chat.ComponentBuilder;
|
@ -1,7 +1,7 @@
|
|||||||
package me.jaimemartz.lobbybalancer.commands;
|
package me.jaimemartz.playerbalancer.commands;
|
||||||
|
|
||||||
import me.jaimemartz.lobbybalancer.PlayerBalancer;
|
import me.jaimemartz.playerbalancer.PlayerBalancer;
|
||||||
import me.jaimemartz.lobbybalancer.manager.PasteHelper;
|
import me.jaimemartz.playerbalancer.manager.PasteHelper;
|
||||||
import net.md_5.bungee.api.ChatColor;
|
import net.md_5.bungee.api.ChatColor;
|
||||||
import net.md_5.bungee.api.CommandSender;
|
import net.md_5.bungee.api.CommandSender;
|
||||||
import net.md_5.bungee.api.chat.ComponentBuilder;
|
import net.md_5.bungee.api.chat.ComponentBuilder;
|
@ -1,11 +1,11 @@
|
|||||||
package me.jaimemartz.lobbybalancer.commands;
|
package me.jaimemartz.playerbalancer.commands;
|
||||||
|
|
||||||
import me.jaimemartz.lobbybalancer.PlayerBalancer;
|
import me.jaimemartz.playerbalancer.PlayerBalancer;
|
||||||
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
|
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
|
||||||
import me.jaimemartz.lobbybalancer.connection.ConnectionIntent;
|
import me.jaimemartz.playerbalancer.connection.ConnectionIntent;
|
||||||
import me.jaimemartz.lobbybalancer.ping.ServerStatus;
|
import me.jaimemartz.playerbalancer.ping.ServerStatus;
|
||||||
import me.jaimemartz.lobbybalancer.section.ServerSection;
|
import me.jaimemartz.playerbalancer.section.ServerSection;
|
||||||
import me.jaimemartz.lobbybalancer.utils.MessageUtils;
|
import me.jaimemartz.playerbalancer.utils.MessageUtils;
|
||||||
import net.md_5.bungee.api.ChatColor;
|
import net.md_5.bungee.api.ChatColor;
|
||||||
import net.md_5.bungee.api.CommandSender;
|
import net.md_5.bungee.api.CommandSender;
|
||||||
import net.md_5.bungee.api.chat.ClickEvent;
|
import net.md_5.bungee.api.chat.ClickEvent;
|
||||||
@ -161,7 +161,7 @@ public class ManageCommand extends Command {
|
|||||||
.create()
|
.create()
|
||||||
);
|
);
|
||||||
|
|
||||||
//todo show status when hovering over server
|
//TODO show status when hovering over server
|
||||||
section.getServers().forEach(server -> {
|
section.getServers().forEach(server -> {
|
||||||
ServerStatus status = plugin.getStatusManager().getStatus(server);
|
ServerStatus status = plugin.getStatusManager().getStatus(server);
|
||||||
sender.sendMessage(new ComponentBuilder("|> Server: ")
|
sender.sendMessage(new ComponentBuilder("|> Server: ")
|
@ -1,4 +1,4 @@
|
|||||||
package me.jaimemartz.lobbybalancer.configuration;
|
package me.jaimemartz.playerbalancer.configuration;
|
||||||
|
|
||||||
import me.jaimemartz.faucet.ConfigEntry;
|
import me.jaimemartz.faucet.ConfigEntry;
|
||||||
import me.jaimemartz.faucet.ConfigEntryHolder;
|
import me.jaimemartz.faucet.ConfigEntryHolder;
|
@ -1,11 +1,11 @@
|
|||||||
package me.jaimemartz.lobbybalancer.connection;
|
package me.jaimemartz.playerbalancer.connection;
|
||||||
|
|
||||||
import me.jaimemartz.lobbybalancer.PlayerBalancer;
|
import me.jaimemartz.playerbalancer.PlayerBalancer;
|
||||||
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
|
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
|
||||||
import me.jaimemartz.lobbybalancer.manager.PlayerLocker;
|
import me.jaimemartz.playerbalancer.manager.PlayerLocker;
|
||||||
import me.jaimemartz.lobbybalancer.ping.ServerStatus;
|
import me.jaimemartz.playerbalancer.ping.ServerStatus;
|
||||||
import me.jaimemartz.lobbybalancer.section.ServerSection;
|
import me.jaimemartz.playerbalancer.section.ServerSection;
|
||||||
import me.jaimemartz.lobbybalancer.utils.MessageUtils;
|
import me.jaimemartz.playerbalancer.utils.MessageUtils;
|
||||||
import net.md_5.bungee.api.config.ServerInfo;
|
import net.md_5.bungee.api.config.ServerInfo;
|
||||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package me.jaimemartz.lobbybalancer.connection;
|
package me.jaimemartz.playerbalancer.connection;
|
||||||
|
|
||||||
import me.jaimemartz.lobbybalancer.PlayerBalancer;
|
import me.jaimemartz.playerbalancer.PlayerBalancer;
|
||||||
import me.jaimemartz.lobbybalancer.manager.NetworkManager;
|
import me.jaimemartz.playerbalancer.manager.NetworkManager;
|
||||||
import me.jaimemartz.lobbybalancer.ping.ServerStatus;
|
import me.jaimemartz.playerbalancer.ping.ServerStatus;
|
||||||
import me.jaimemartz.lobbybalancer.section.ServerSection;
|
import me.jaimemartz.playerbalancer.section.ServerSection;
|
||||||
import net.md_5.bungee.api.config.ServerInfo;
|
import net.md_5.bungee.api.config.ServerInfo;
|
||||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
package me.jaimemartz.lobbybalancer.connection;
|
package me.jaimemartz.playerbalancer.connection;
|
||||||
|
|
||||||
import com.google.common.collect.HashBasedTable;
|
import com.google.common.collect.HashBasedTable;
|
||||||
import com.google.common.collect.Table;
|
import com.google.common.collect.Table;
|
||||||
import me.jaimemartz.lobbybalancer.section.ServerSection;
|
import me.jaimemartz.playerbalancer.section.ServerSection;
|
||||||
import net.md_5.bungee.api.config.ServerInfo;
|
import net.md_5.bungee.api.config.ServerInfo;
|
||||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package me.jaimemartz.lobbybalancer.listener;
|
package me.jaimemartz.playerbalancer.listener;
|
||||||
|
|
||||||
import me.jaimemartz.lobbybalancer.PlayerBalancer;
|
import me.jaimemartz.playerbalancer.PlayerBalancer;
|
||||||
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
|
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
|
||||||
import me.jaimemartz.lobbybalancer.connection.ServerAssignRegistry;
|
import me.jaimemartz.playerbalancer.connection.ServerAssignRegistry;
|
||||||
import me.jaimemartz.lobbybalancer.manager.PlayerLocker;
|
import me.jaimemartz.playerbalancer.manager.PlayerLocker;
|
||||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||||
import net.md_5.bungee.api.event.PlayerDisconnectEvent;
|
import net.md_5.bungee.api.event.PlayerDisconnectEvent;
|
||||||
import net.md_5.bungee.api.plugin.Listener;
|
import net.md_5.bungee.api.plugin.Listener;
|
@ -1,12 +1,12 @@
|
|||||||
package me.jaimemartz.lobbybalancer.listener;
|
package me.jaimemartz.playerbalancer.listener;
|
||||||
|
|
||||||
import com.google.common.io.ByteArrayDataInput;
|
import com.google.common.io.ByteArrayDataInput;
|
||||||
import com.google.common.io.ByteStreams;
|
import com.google.common.io.ByteStreams;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
import me.jaimemartz.lobbybalancer.PlayerBalancer;
|
import me.jaimemartz.playerbalancer.PlayerBalancer;
|
||||||
import me.jaimemartz.lobbybalancer.connection.ConnectionIntent;
|
import me.jaimemartz.playerbalancer.connection.ConnectionIntent;
|
||||||
import me.jaimemartz.lobbybalancer.section.ServerSection;
|
import me.jaimemartz.playerbalancer.section.ServerSection;
|
||||||
import net.md_5.bungee.api.config.ServerInfo;
|
import net.md_5.bungee.api.config.ServerInfo;
|
||||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||||
import net.md_5.bungee.api.connection.Server;
|
import net.md_5.bungee.api.connection.Server;
|
@ -1,6 +1,6 @@
|
|||||||
package me.jaimemartz.lobbybalancer.listener;
|
package me.jaimemartz.playerbalancer.listener;
|
||||||
|
|
||||||
import me.jaimemartz.lobbybalancer.PlayerBalancer;
|
import me.jaimemartz.playerbalancer.PlayerBalancer;
|
||||||
import net.md_5.bungee.api.event.ProxyReloadEvent;
|
import net.md_5.bungee.api.event.ProxyReloadEvent;
|
||||||
import net.md_5.bungee.api.plugin.Listener;
|
import net.md_5.bungee.api.plugin.Listener;
|
||||||
import net.md_5.bungee.event.EventHandler;
|
import net.md_5.bungee.event.EventHandler;
|
@ -1,12 +1,12 @@
|
|||||||
package me.jaimemartz.lobbybalancer.listener;
|
package me.jaimemartz.playerbalancer.listener;
|
||||||
|
|
||||||
import me.jaimemartz.lobbybalancer.PlayerBalancer;
|
import me.jaimemartz.playerbalancer.PlayerBalancer;
|
||||||
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
|
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
|
||||||
import me.jaimemartz.lobbybalancer.connection.ConnectionIntent;
|
import me.jaimemartz.playerbalancer.connection.ConnectionIntent;
|
||||||
import me.jaimemartz.lobbybalancer.connection.ServerAssignRegistry;
|
import me.jaimemartz.playerbalancer.connection.ServerAssignRegistry;
|
||||||
import me.jaimemartz.lobbybalancer.manager.PlayerLocker;
|
import me.jaimemartz.playerbalancer.manager.PlayerLocker;
|
||||||
import me.jaimemartz.lobbybalancer.section.ServerSection;
|
import me.jaimemartz.playerbalancer.section.ServerSection;
|
||||||
import me.jaimemartz.lobbybalancer.utils.MessageUtils;
|
import me.jaimemartz.playerbalancer.utils.MessageUtils;
|
||||||
import net.md_5.bungee.api.config.ServerInfo;
|
import net.md_5.bungee.api.config.ServerInfo;
|
||||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||||
import net.md_5.bungee.api.event.ServerConnectEvent;
|
import net.md_5.bungee.api.event.ServerConnectEvent;
|
@ -1,11 +1,11 @@
|
|||||||
package me.jaimemartz.lobbybalancer.listener;
|
package me.jaimemartz.playerbalancer.listener;
|
||||||
|
|
||||||
import me.jaimemartz.lobbybalancer.PlayerBalancer;
|
import me.jaimemartz.playerbalancer.PlayerBalancer;
|
||||||
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
|
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
|
||||||
import me.jaimemartz.lobbybalancer.connection.ConnectionIntent;
|
import me.jaimemartz.playerbalancer.connection.ConnectionIntent;
|
||||||
import me.jaimemartz.lobbybalancer.manager.PlayerLocker;
|
import me.jaimemartz.playerbalancer.manager.PlayerLocker;
|
||||||
import me.jaimemartz.lobbybalancer.section.ServerSection;
|
import me.jaimemartz.playerbalancer.section.ServerSection;
|
||||||
import me.jaimemartz.lobbybalancer.utils.MessageUtils;
|
import me.jaimemartz.playerbalancer.utils.MessageUtils;
|
||||||
import net.md_5.bungee.api.chat.TextComponent;
|
import net.md_5.bungee.api.chat.TextComponent;
|
||||||
import net.md_5.bungee.api.config.ServerInfo;
|
import net.md_5.bungee.api.config.ServerInfo;
|
||||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
@ -1,7 +1,7 @@
|
|||||||
package me.jaimemartz.lobbybalancer.manager;
|
package me.jaimemartz.playerbalancer.manager;
|
||||||
|
|
||||||
import com.imaginarycode.minecraft.redisbungee.RedisBungee;
|
import com.imaginarycode.minecraft.redisbungee.RedisBungee;
|
||||||
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
|
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
|
||||||
import net.md_5.bungee.api.config.ServerInfo;
|
import net.md_5.bungee.api.config.ServerInfo;
|
||||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
package me.jaimemartz.lobbybalancer.manager;
|
package me.jaimemartz.playerbalancer.manager;
|
||||||
|
|
||||||
import com.github.kennedyoliveira.pastebin4j.*;
|
import com.github.kennedyoliveira.pastebin4j.*;
|
||||||
import com.google.common.io.CharStreams;
|
import com.google.common.io.CharStreams;
|
||||||
import me.jaimemartz.lobbybalancer.PlayerBalancer;
|
import me.jaimemartz.playerbalancer.PlayerBalancer;
|
||||||
import net.md_5.bungee.api.ChatColor;
|
import net.md_5.bungee.api.ChatColor;
|
||||||
import net.md_5.bungee.api.CommandSender;
|
import net.md_5.bungee.api.CommandSender;
|
||||||
import net.md_5.bungee.api.chat.ComponentBuilder;
|
import net.md_5.bungee.api.chat.ComponentBuilder;
|
@ -1,4 +1,4 @@
|
|||||||
package me.jaimemartz.lobbybalancer.manager;
|
package me.jaimemartz.playerbalancer.manager;
|
||||||
|
|
||||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package me.jaimemartz.lobbybalancer.ping;
|
package me.jaimemartz.playerbalancer.ping;
|
||||||
|
|
||||||
import me.jaimemartz.lobbybalancer.PlayerBalancer;
|
import me.jaimemartz.playerbalancer.PlayerBalancer;
|
||||||
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
|
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
|
||||||
import me.jaimemartz.lobbybalancer.utils.ServerListPing;
|
import me.jaimemartz.playerbalancer.utils.ServerListPing;
|
||||||
import me.jaimemartz.lobbybalancer.utils.ServerListPing.StatusResponse;
|
import me.jaimemartz.playerbalancer.utils.ServerListPing.StatusResponse;
|
||||||
import net.md_5.bungee.api.Callback;
|
import net.md_5.bungee.api.Callback;
|
||||||
import net.md_5.bungee.api.config.ServerInfo;
|
import net.md_5.bungee.api.config.ServerInfo;
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
package me.jaimemartz.lobbybalancer.ping;
|
package me.jaimemartz.playerbalancer.ping;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
|
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
|
||||||
import net.md_5.bungee.api.config.ServerInfo;
|
import net.md_5.bungee.api.config.ServerInfo;
|
||||||
|
|
||||||
public final class ServerStatus {
|
public final class ServerStatus {
|
@ -1,8 +1,8 @@
|
|||||||
package me.jaimemartz.lobbybalancer.ping;
|
package me.jaimemartz.playerbalancer.ping;
|
||||||
|
|
||||||
import me.jaimemartz.lobbybalancer.PlayerBalancer;
|
import me.jaimemartz.playerbalancer.PlayerBalancer;
|
||||||
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
|
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
|
||||||
import me.jaimemartz.lobbybalancer.section.ServerSection;
|
import me.jaimemartz.playerbalancer.section.ServerSection;
|
||||||
import net.md_5.bungee.api.config.ServerInfo;
|
import net.md_5.bungee.api.config.ServerInfo;
|
||||||
import net.md_5.bungee.api.scheduler.ScheduledTask;
|
import net.md_5.bungee.api.scheduler.ScheduledTask;
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package me.jaimemartz.lobbybalancer.section;
|
package me.jaimemartz.playerbalancer.section;
|
||||||
|
|
||||||
import me.jaimemartz.lobbybalancer.PlayerBalancer;
|
import me.jaimemartz.playerbalancer.PlayerBalancer;
|
||||||
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
|
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
|
||||||
import me.jaimemartz.lobbybalancer.connection.ConnectionIntent;
|
import me.jaimemartz.playerbalancer.connection.ConnectionIntent;
|
||||||
import me.jaimemartz.lobbybalancer.utils.MessageUtils;
|
import me.jaimemartz.playerbalancer.utils.MessageUtils;
|
||||||
import net.md_5.bungee.api.ChatColor;
|
import net.md_5.bungee.api.ChatColor;
|
||||||
import net.md_5.bungee.api.CommandSender;
|
import net.md_5.bungee.api.CommandSender;
|
||||||
import net.md_5.bungee.api.chat.ComponentBuilder;
|
import net.md_5.bungee.api.chat.ComponentBuilder;
|
@ -1,9 +1,9 @@
|
|||||||
package me.jaimemartz.lobbybalancer.section;
|
package me.jaimemartz.playerbalancer.section;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import me.jaimemartz.lobbybalancer.PlayerBalancer;
|
import me.jaimemartz.playerbalancer.PlayerBalancer;
|
||||||
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
|
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
|
||||||
import net.md_5.bungee.api.config.ServerInfo;
|
import net.md_5.bungee.api.config.ServerInfo;
|
||||||
import net.md_5.bungee.api.scheduler.ScheduledTask;
|
import net.md_5.bungee.api.scheduler.ScheduledTask;
|
||||||
import net.md_5.bungee.config.Configuration;
|
import net.md_5.bungee.config.Configuration;
|
@ -1,13 +1,13 @@
|
|||||||
package me.jaimemartz.lobbybalancer.section;
|
package me.jaimemartz.playerbalancer.section;
|
||||||
|
|
||||||
import com.google.gson.annotations.Expose;
|
import com.google.gson.annotations.Expose;
|
||||||
import lombok.AccessLevel;
|
import lombok.AccessLevel;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import me.jaimemartz.lobbybalancer.PlayerBalancer;
|
import me.jaimemartz.playerbalancer.PlayerBalancer;
|
||||||
import me.jaimemartz.lobbybalancer.connection.ProviderType;
|
import me.jaimemartz.playerbalancer.connection.ProviderType;
|
||||||
import me.jaimemartz.lobbybalancer.utils.AlphanumComparator;
|
import me.jaimemartz.playerbalancer.utils.AlphanumComparator;
|
||||||
import me.jaimemartz.lobbybalancer.utils.FixedAdapter;
|
import me.jaimemartz.playerbalancer.utils.FixedAdapter;
|
||||||
import net.md_5.bungee.api.config.ServerInfo;
|
import net.md_5.bungee.api.config.ServerInfo;
|
||||||
import net.md_5.bungee.config.Configuration;
|
import net.md_5.bungee.config.Configuration;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package me.jaimemartz.lobbybalancer.utils;
|
package me.jaimemartz.playerbalancer.utils;
|
||||||
|
|
||||||
import net.md_5.bungee.api.config.ConfigurationAdapter;
|
import net.md_5.bungee.api.config.ConfigurationAdapter;
|
||||||
import net.md_5.bungee.api.config.ListenerInfo;
|
import net.md_5.bungee.api.config.ListenerInfo;
|
@ -1,4 +1,4 @@
|
|||||||
package me.jaimemartz.lobbybalancer.utils;
|
package me.jaimemartz.playerbalancer.utils;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The Alphanum Algorithm is an improved sorting algorithm for strings
|
* The Alphanum Algorithm is an improved sorting algorithm for strings
|
@ -1,4 +1,4 @@
|
|||||||
package me.jaimemartz.lobbybalancer.utils;
|
package me.jaimemartz.playerbalancer.utils;
|
||||||
|
|
||||||
public class DigitUtils {
|
public class DigitUtils {
|
||||||
public static int getDigits(String string, int digits) {
|
public static int getDigits(String string, int digits) {
|
@ -1,4 +1,4 @@
|
|||||||
package me.jaimemartz.lobbybalancer.utils;
|
package me.jaimemartz.playerbalancer.utils;
|
||||||
|
|
||||||
public class FileInfo {
|
public class FileInfo {
|
||||||
public static final String USER_ID = "%%__USER__%%";
|
public static final String USER_ID = "%%__USER__%%";
|
@ -1,4 +1,4 @@
|
|||||||
package me.jaimemartz.lobbybalancer.utils;
|
package me.jaimemartz.playerbalancer.utils;
|
||||||
|
|
||||||
import net.md_5.bungee.api.ProxyServer;
|
import net.md_5.bungee.api.ProxyServer;
|
||||||
import net.md_5.bungee.api.config.ConfigurationAdapter;
|
import net.md_5.bungee.api.config.ConfigurationAdapter;
|
@ -1,4 +1,4 @@
|
|||||||
package me.jaimemartz.lobbybalancer.utils;
|
package me.jaimemartz.playerbalancer.utils;
|
||||||
|
|
||||||
public class LevenshteinDistance {
|
public class LevenshteinDistance {
|
||||||
public static <T> T closest(Iterable<T> collection, T target) {
|
public static <T> T closest(Iterable<T> collection, T target) {
|
@ -1,15 +1,11 @@
|
|||||||
package me.jaimemartz.lobbybalancer.utils;
|
package me.jaimemartz.playerbalancer.utils;
|
||||||
|
|
||||||
import ch.jalu.configme.properties.Property;
|
import ch.jalu.configme.properties.Property;
|
||||||
import me.jaimemartz.faucet.ConfigEntry;
|
|
||||||
import net.md_5.bungee.api.ChatColor;
|
import net.md_5.bungee.api.ChatColor;
|
||||||
import net.md_5.bungee.api.CommandSender;
|
import net.md_5.bungee.api.CommandSender;
|
||||||
import net.md_5.bungee.api.chat.TextComponent;
|
import net.md_5.bungee.api.chat.TextComponent;
|
||||||
|
|
||||||
import java.util.function.Consumer;
|
|
||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
import java.util.function.Supplier;
|
|
||||||
import java.util.function.Predicate;
|
|
||||||
|
|
||||||
public class MessageUtils {
|
public class MessageUtils {
|
||||||
public static void send(CommandSender sender, String text) {
|
public static void send(CommandSender sender, String text) {
|
@ -1,4 +1,4 @@
|
|||||||
package me.jaimemartz.lobbybalancer.utils;
|
package me.jaimemartz.playerbalancer.utils;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
@ -1,5 +1,5 @@
|
|||||||
name: LobbyBalancer
|
name: LobbyBalancer
|
||||||
main: me.jaimemartz.lobbybalancer.LobbyBalancer
|
main: com.jaimemartz.playerbalancer.PlayerBalancer
|
||||||
version: ${project.version}
|
version: ${project.version}
|
||||||
author: jaime29010
|
author: jaime29010
|
||||||
softdepend: [RedisBungee]
|
softdepend: [RedisBungee]
|
Loading…
Reference in New Issue
Block a user