package net.larry1123.util.customPacket;

import net.canarymod.Canary;
import net.canarymod.api.OfflinePlayer;
import net.canarymod.api.entity.living.humanoid.Player;
import net.larry1123.util.config.UtilConfigManager;

import java.util.LinkedList;

public class BungeeCordless extends BungeeCord {

    public BungeeCordless() {
        super();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getRealPlayerIp(Player player) {
        return player.getIP();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int getServerPlayerCount(String server) {
        // TODO not sure about this one yet
        return Canary.getServer().getNumPlayersOnline();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public LinkedList<OfflinePlayer> getServerPlayerList(String server) {
        return new LinkedList<OfflinePlayer>();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public LinkedList<String> getServerList() {
        return new LinkedList<String>();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getCurrentServerName() {
        return UtilConfigManager.getConfig().getBungeeCordConfig().getServerName();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean sendPlayertoServer(Player player, String server) {
        return false;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean sendMessageToServer(String server, String subCnannel, String data) {
        return false;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean sendMessageToServerAsAllPlayers(String server, String subCnannel, String data) {
        return false;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean sendMessageToServerAsPlayer(String server, String subCnannel, String data, Player player) {
        return false;
    }

}

@@ -574,22 +574,28 @@
 erCount(
-String
+RemoteServer
  server)
@@ -813,22 +813,28 @@
 yerList(
-String
+RemoteServer
  server)
@@ -964,22 +964,28 @@
 kedList%3C
-String
+RemoteServer
 %3E getSer
@@ -1026,22 +1026,28 @@
 kedList%3C
-String
+RemoteServer
 %3E();%0A   
@@ -1108,30 +1108,36 @@
 %0A    public 
-String
+RemoteServer
  getCurrentS
@@ -1165,16 +1165,39 @@
  return 
+RemoteServer.getServer(
 UtilConf
@@ -1255,16 +1255,17 @@
 erName()
+)
 ;%0A    %7D%0A
@@ -1369,22 +1369,28 @@
 player, 
-String
+RemoteServer
  server)
@@ -1511,22 +1511,28 @@
 oServer(
-String
+RemoteServer
  server,
@@ -1697,22 +1697,28 @@
 Players(
-String
+RemoteServer
  server,
@@ -1879,22 +1879,28 @@
 sPlayer(
-String
+RemoteServer
  server,

Did not change Cordless. derp