From 1db26e83daddfc5112dd55712fca070e9a08ade6 Mon Sep 17 00:00:00 2001 From: Jaime Martinez Rincon Date: Tue, 8 Aug 2017 20:58:39 +0200 Subject: [PATCH] Fixed ClassCastException --- .../com/jaimemartz/playerbalancer/section/SectionManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/jaimemartz/playerbalancer/section/SectionManager.java b/src/main/java/com/jaimemartz/playerbalancer/section/SectionManager.java index b8ef85f..c008e19 100644 --- a/src/main/java/com/jaimemartz/playerbalancer/section/SectionManager.java +++ b/src/main/java/com/jaimemartz/playerbalancer/section/SectionManager.java @@ -8,6 +8,7 @@ import net.md_5.bungee.api.config.ServerInfo; import net.md_5.bungee.api.scheduler.ScheduledTask; import net.md_5.bungee.config.Configuration; +import java.util.HashMap; import java.util.Map; import java.util.TreeMap; import java.util.concurrent.TimeUnit; @@ -19,7 +20,7 @@ public class SectionManager { private final PlayerBalancer plugin; @Getter @Setter private ServerSection principal; @Getter private final Map sections = new TreeMap<>(String.CASE_INSENSITIVE_ORDER); - @Getter private final Map servers = new TreeMap<>(); + @Getter private final Map servers = new HashMap<>(); public SectionManager(PlayerBalancer plugin) { this.plugin = plugin;