Updated package and plugin descriptor file

This commit is contained in:
Jaime Martinez Rincon 2017-08-08 20:39:22 +02:00
parent 46b7971934
commit 89e5101d98
32 changed files with 108 additions and 112 deletions

View File

@ -56,7 +56,7 @@
<relocations>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>me.jaimemartz.lobbybalancer</shadedPattern>
<shadedPattern>me.jaimemartz.playerbalancer</shadedPattern>
</relocation>
</relocations>
</configuration>

View File

@ -1,17 +1,17 @@
package me.jaimemartz.lobbybalancer;
package me.jaimemartz.playerbalancer;
import lombok.Getter;
import me.jaimemartz.faucet.ConfigFactory;
import me.jaimemartz.lobbybalancer.commands.FallbackCommand;
import me.jaimemartz.lobbybalancer.commands.MainCommand;
import me.jaimemartz.lobbybalancer.commands.ManageCommand;
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
import me.jaimemartz.lobbybalancer.connection.ServerAssignRegistry;
import me.jaimemartz.lobbybalancer.listener.*;
import me.jaimemartz.lobbybalancer.manager.PlayerLocker;
import me.jaimemartz.lobbybalancer.ping.StatusManager;
import me.jaimemartz.lobbybalancer.section.SectionManager;
import me.jaimemartz.lobbybalancer.utils.DigitUtils;
import me.jaimemartz.playerbalancer.commands.FallbackCommand;
import me.jaimemartz.playerbalancer.commands.MainCommand;
import me.jaimemartz.playerbalancer.commands.ManageCommand;
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
import me.jaimemartz.playerbalancer.connection.ServerAssignRegistry;
import me.jaimemartz.playerbalancer.listener.*;
import me.jaimemartz.playerbalancer.manager.PlayerLocker;
import me.jaimemartz.playerbalancer.ping.StatusManager;
import me.jaimemartz.playerbalancer.section.SectionManager;
import me.jaimemartz.playerbalancer.utils.DigitUtils;
import net.md_5.bungee.api.plugin.Command;
import net.md_5.bungee.api.plugin.Listener;
import net.md_5.bungee.api.plugin.Plugin;

View File

@ -1,10 +1,10 @@
package me.jaimemartz.lobbybalancer.commands;
package me.jaimemartz.playerbalancer.commands;
import me.jaimemartz.lobbybalancer.PlayerBalancer;
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
import me.jaimemartz.lobbybalancer.connection.ConnectionIntent;
import me.jaimemartz.lobbybalancer.section.ServerSection;
import me.jaimemartz.lobbybalancer.utils.MessageUtils;
import me.jaimemartz.playerbalancer.PlayerBalancer;
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
import me.jaimemartz.playerbalancer.connection.ConnectionIntent;
import me.jaimemartz.playerbalancer.section.ServerSection;
import me.jaimemartz.playerbalancer.utils.MessageUtils;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.chat.ComponentBuilder;

View File

@ -1,7 +1,7 @@
package me.jaimemartz.lobbybalancer.commands;
package me.jaimemartz.playerbalancer.commands;
import me.jaimemartz.lobbybalancer.PlayerBalancer;
import me.jaimemartz.lobbybalancer.manager.PasteHelper;
import me.jaimemartz.playerbalancer.PlayerBalancer;
import me.jaimemartz.playerbalancer.manager.PasteHelper;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.chat.ComponentBuilder;

View File

@ -1,11 +1,11 @@
package me.jaimemartz.lobbybalancer.commands;
package me.jaimemartz.playerbalancer.commands;
import me.jaimemartz.lobbybalancer.PlayerBalancer;
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
import me.jaimemartz.lobbybalancer.connection.ConnectionIntent;
import me.jaimemartz.lobbybalancer.ping.ServerStatus;
import me.jaimemartz.lobbybalancer.section.ServerSection;
import me.jaimemartz.lobbybalancer.utils.MessageUtils;
import me.jaimemartz.playerbalancer.PlayerBalancer;
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
import me.jaimemartz.playerbalancer.connection.ConnectionIntent;
import me.jaimemartz.playerbalancer.ping.ServerStatus;
import me.jaimemartz.playerbalancer.section.ServerSection;
import me.jaimemartz.playerbalancer.utils.MessageUtils;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.chat.ClickEvent;
@ -161,7 +161,7 @@ public class ManageCommand extends Command {
.create()
);
//todo show status when hovering over server
//TODO show status when hovering over server
section.getServers().forEach(server -> {
ServerStatus status = plugin.getStatusManager().getStatus(server);
sender.sendMessage(new ComponentBuilder("|> Server: ")

View File

@ -1,4 +1,4 @@
package me.jaimemartz.lobbybalancer.configuration;
package me.jaimemartz.playerbalancer.configuration;
import me.jaimemartz.faucet.ConfigEntry;
import me.jaimemartz.faucet.ConfigEntryHolder;

View File

@ -1,11 +1,11 @@
package me.jaimemartz.lobbybalancer.connection;
package me.jaimemartz.playerbalancer.connection;
import me.jaimemartz.lobbybalancer.PlayerBalancer;
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
import me.jaimemartz.lobbybalancer.manager.PlayerLocker;
import me.jaimemartz.lobbybalancer.ping.ServerStatus;
import me.jaimemartz.lobbybalancer.section.ServerSection;
import me.jaimemartz.lobbybalancer.utils.MessageUtils;
import me.jaimemartz.playerbalancer.PlayerBalancer;
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
import me.jaimemartz.playerbalancer.manager.PlayerLocker;
import me.jaimemartz.playerbalancer.ping.ServerStatus;
import me.jaimemartz.playerbalancer.section.ServerSection;
import me.jaimemartz.playerbalancer.utils.MessageUtils;
import net.md_5.bungee.api.config.ServerInfo;
import net.md_5.bungee.api.connection.ProxiedPlayer;

View File

@ -1,9 +1,9 @@
package me.jaimemartz.lobbybalancer.connection;
package me.jaimemartz.playerbalancer.connection;
import me.jaimemartz.lobbybalancer.PlayerBalancer;
import me.jaimemartz.lobbybalancer.manager.NetworkManager;
import me.jaimemartz.lobbybalancer.ping.ServerStatus;
import me.jaimemartz.lobbybalancer.section.ServerSection;
import me.jaimemartz.playerbalancer.PlayerBalancer;
import me.jaimemartz.playerbalancer.manager.NetworkManager;
import me.jaimemartz.playerbalancer.ping.ServerStatus;
import me.jaimemartz.playerbalancer.section.ServerSection;
import net.md_5.bungee.api.config.ServerInfo;
import net.md_5.bungee.api.connection.ProxiedPlayer;

View File

@ -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.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.connection.ProxiedPlayer;

View File

@ -1,9 +1,9 @@
package me.jaimemartz.lobbybalancer.listener;
package me.jaimemartz.playerbalancer.listener;
import me.jaimemartz.lobbybalancer.PlayerBalancer;
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
import me.jaimemartz.lobbybalancer.connection.ServerAssignRegistry;
import me.jaimemartz.lobbybalancer.manager.PlayerLocker;
import me.jaimemartz.playerbalancer.PlayerBalancer;
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
import me.jaimemartz.playerbalancer.connection.ServerAssignRegistry;
import me.jaimemartz.playerbalancer.manager.PlayerLocker;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.api.event.PlayerDisconnectEvent;
import net.md_5.bungee.api.plugin.Listener;

View File

@ -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.ByteStreams;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import me.jaimemartz.lobbybalancer.PlayerBalancer;
import me.jaimemartz.lobbybalancer.connection.ConnectionIntent;
import me.jaimemartz.lobbybalancer.section.ServerSection;
import me.jaimemartz.playerbalancer.PlayerBalancer;
import me.jaimemartz.playerbalancer.connection.ConnectionIntent;
import me.jaimemartz.playerbalancer.section.ServerSection;
import net.md_5.bungee.api.config.ServerInfo;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.api.connection.Server;

View File

@ -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.plugin.Listener;
import net.md_5.bungee.event.EventHandler;

View File

@ -1,12 +1,12 @@
package me.jaimemartz.lobbybalancer.listener;
package me.jaimemartz.playerbalancer.listener;
import me.jaimemartz.lobbybalancer.PlayerBalancer;
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
import me.jaimemartz.lobbybalancer.connection.ConnectionIntent;
import me.jaimemartz.lobbybalancer.connection.ServerAssignRegistry;
import me.jaimemartz.lobbybalancer.manager.PlayerLocker;
import me.jaimemartz.lobbybalancer.section.ServerSection;
import me.jaimemartz.lobbybalancer.utils.MessageUtils;
import me.jaimemartz.playerbalancer.PlayerBalancer;
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
import me.jaimemartz.playerbalancer.connection.ConnectionIntent;
import me.jaimemartz.playerbalancer.connection.ServerAssignRegistry;
import me.jaimemartz.playerbalancer.manager.PlayerLocker;
import me.jaimemartz.playerbalancer.section.ServerSection;
import me.jaimemartz.playerbalancer.utils.MessageUtils;
import net.md_5.bungee.api.config.ServerInfo;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.api.event.ServerConnectEvent;

View File

@ -1,11 +1,11 @@
package me.jaimemartz.lobbybalancer.listener;
package me.jaimemartz.playerbalancer.listener;
import me.jaimemartz.lobbybalancer.PlayerBalancer;
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
import me.jaimemartz.lobbybalancer.connection.ConnectionIntent;
import me.jaimemartz.lobbybalancer.manager.PlayerLocker;
import me.jaimemartz.lobbybalancer.section.ServerSection;
import me.jaimemartz.lobbybalancer.utils.MessageUtils;
import me.jaimemartz.playerbalancer.PlayerBalancer;
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
import me.jaimemartz.playerbalancer.connection.ConnectionIntent;
import me.jaimemartz.playerbalancer.manager.PlayerLocker;
import me.jaimemartz.playerbalancer.section.ServerSection;
import me.jaimemartz.playerbalancer.utils.MessageUtils;
import net.md_5.bungee.api.chat.TextComponent;
import net.md_5.bungee.api.config.ServerInfo;
import net.md_5.bungee.api.connection.ProxiedPlayer;

View File

@ -1,7 +1,7 @@
package me.jaimemartz.lobbybalancer.manager;
package me.jaimemartz.playerbalancer.manager;
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.connection.ProxiedPlayer;

View File

@ -1,8 +1,8 @@
package me.jaimemartz.lobbybalancer.manager;
package me.jaimemartz.playerbalancer.manager;
import com.github.kennedyoliveira.pastebin4j.*;
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.CommandSender;
import net.md_5.bungee.api.chat.ComponentBuilder;

View File

@ -1,4 +1,4 @@
package me.jaimemartz.lobbybalancer.manager;
package me.jaimemartz.playerbalancer.manager;
import net.md_5.bungee.api.connection.ProxiedPlayer;

View File

@ -1,9 +1,9 @@
package me.jaimemartz.lobbybalancer.ping;
package me.jaimemartz.playerbalancer.ping;
import me.jaimemartz.lobbybalancer.PlayerBalancer;
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
import me.jaimemartz.lobbybalancer.utils.ServerListPing;
import me.jaimemartz.lobbybalancer.utils.ServerListPing.StatusResponse;
import me.jaimemartz.playerbalancer.PlayerBalancer;
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
import me.jaimemartz.playerbalancer.utils.ServerListPing;
import me.jaimemartz.playerbalancer.utils.ServerListPing.StatusResponse;
import net.md_5.bungee.api.Callback;
import net.md_5.bungee.api.config.ServerInfo;

View File

@ -1,8 +1,8 @@
package me.jaimemartz.lobbybalancer.ping;
package me.jaimemartz.playerbalancer.ping;
import lombok.Getter;
import lombok.Setter;
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
import net.md_5.bungee.api.config.ServerInfo;
public final class ServerStatus {

View File

@ -1,8 +1,8 @@
package me.jaimemartz.lobbybalancer.ping;
package me.jaimemartz.playerbalancer.ping;
import me.jaimemartz.lobbybalancer.PlayerBalancer;
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
import me.jaimemartz.lobbybalancer.section.ServerSection;
import me.jaimemartz.playerbalancer.PlayerBalancer;
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
import me.jaimemartz.playerbalancer.section.ServerSection;
import net.md_5.bungee.api.config.ServerInfo;
import net.md_5.bungee.api.scheduler.ScheduledTask;

View File

@ -1,9 +1,9 @@
package me.jaimemartz.lobbybalancer.section;
package me.jaimemartz.playerbalancer.section;
import me.jaimemartz.lobbybalancer.PlayerBalancer;
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
import me.jaimemartz.lobbybalancer.connection.ConnectionIntent;
import me.jaimemartz.lobbybalancer.utils.MessageUtils;
import me.jaimemartz.playerbalancer.PlayerBalancer;
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
import me.jaimemartz.playerbalancer.connection.ConnectionIntent;
import me.jaimemartz.playerbalancer.utils.MessageUtils;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.chat.ComponentBuilder;

View File

@ -1,9 +1,9 @@
package me.jaimemartz.lobbybalancer.section;
package me.jaimemartz.playerbalancer.section;
import lombok.Getter;
import lombok.Setter;
import me.jaimemartz.lobbybalancer.PlayerBalancer;
import me.jaimemartz.lobbybalancer.configuration.ConfigEntries;
import me.jaimemartz.playerbalancer.PlayerBalancer;
import me.jaimemartz.playerbalancer.configuration.ConfigEntries;
import net.md_5.bungee.api.config.ServerInfo;
import net.md_5.bungee.api.scheduler.ScheduledTask;
import net.md_5.bungee.config.Configuration;

View File

@ -1,13 +1,13 @@
package me.jaimemartz.lobbybalancer.section;
package me.jaimemartz.playerbalancer.section;
import com.google.gson.annotations.Expose;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;
import me.jaimemartz.lobbybalancer.PlayerBalancer;
import me.jaimemartz.lobbybalancer.connection.ProviderType;
import me.jaimemartz.lobbybalancer.utils.AlphanumComparator;
import me.jaimemartz.lobbybalancer.utils.FixedAdapter;
import me.jaimemartz.playerbalancer.PlayerBalancer;
import me.jaimemartz.playerbalancer.connection.ProviderType;
import me.jaimemartz.playerbalancer.utils.AlphanumComparator;
import me.jaimemartz.playerbalancer.utils.FixedAdapter;
import net.md_5.bungee.api.config.ServerInfo;
import net.md_5.bungee.config.Configuration;

View File

@ -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.ListenerInfo;

View File

@ -1,4 +1,4 @@
package me.jaimemartz.lobbybalancer.utils;
package me.jaimemartz.playerbalancer.utils;
/*
* The Alphanum Algorithm is an improved sorting algorithm for strings

View File

@ -1,4 +1,4 @@
package me.jaimemartz.lobbybalancer.utils;
package me.jaimemartz.playerbalancer.utils;
public class DigitUtils {
public static int getDigits(String string, int digits) {

View File

@ -1,4 +1,4 @@
package me.jaimemartz.lobbybalancer.utils;
package me.jaimemartz.playerbalancer.utils;
public class FileInfo {
public static final String USER_ID = "%%__USER__%%";

View File

@ -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.config.ConfigurationAdapter;

View File

@ -1,4 +1,4 @@
package me.jaimemartz.lobbybalancer.utils;
package me.jaimemartz.playerbalancer.utils;
public class LevenshteinDistance {
public static <T> T closest(Iterable<T> collection, T target) {

View File

@ -1,15 +1,11 @@
package me.jaimemartz.lobbybalancer.utils;
package me.jaimemartz.playerbalancer.utils;
import ch.jalu.configme.properties.Property;
import me.jaimemartz.faucet.ConfigEntry;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.chat.TextComponent;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Supplier;
import java.util.function.Predicate;
public class MessageUtils {
public static void send(CommandSender sender, String text) {

View File

@ -1,4 +1,4 @@
package me.jaimemartz.lobbybalancer.utils;
package me.jaimemartz.playerbalancer.utils;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

View File

@ -1,5 +1,5 @@
name: LobbyBalancer
main: me.jaimemartz.lobbybalancer.LobbyBalancer
main: com.jaimemartz.playerbalancer.PlayerBalancer
version: ${project.version}
author: jaime29010
softdepend: [RedisBungee]