mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2024-11-27 05:05:19 +01:00
Fixed ClassCastException
This commit is contained in:
parent
1419c5135c
commit
1db26e83da
@ -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<String, ServerSection> sections = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
|
||||
@Getter private final Map<ServerInfo, ServerSection> servers = new TreeMap<>();
|
||||
@Getter private final Map<ServerInfo, ServerSection> servers = new HashMap<>();
|
||||
|
||||
public SectionManager(PlayerBalancer plugin) {
|
||||
this.plugin = plugin;
|
||||
|
Loading…
Reference in New Issue
Block a user