Search in sources :

Example 16 with ProxyServer

use of de.dytanic.cloudnetcore.network.components.ProxyServer in project CloudNet by Dytanic.

the class PacketInStopProxy method handleInput.

@Override
public void handleInput(Document data, PacketSender packetSender) {
    String proxyId = data.getString("serverId");
    ProxyServer proxyServer = CloudNet.getInstance().getProxy(proxyId);
    if (proxyServer != null) {
        proxyServer.getWrapper().stopProxy(proxyServer);
    }
}
Also used : ProxyServer(de.dytanic.cloudnetcore.network.components.ProxyServer)

Aggregations

ProxyServer (de.dytanic.cloudnetcore.network.components.ProxyServer)16 MinecraftServer (de.dytanic.cloudnetcore.network.components.MinecraftServer)12 Wrapper (de.dytanic.cloudnetcore.network.components.Wrapper)9 TypeToken (com.google.gson.reflect.TypeToken)4 CloudServer (de.dytanic.cloudnetcore.network.components.CloudServer)4 DefaultType (de.dytanic.cloudnet.lib.DefaultType)2 CloudPlayer (de.dytanic.cloudnet.lib.player.CloudPlayer)2 ProxyInfo (de.dytanic.cloudnet.lib.server.info.ProxyInfo)2 ServiceId (de.dytanic.cloudnet.lib.service.ServiceId)2 Document (de.dytanic.cloudnet.lib.utility.document.Document)2 AuthLoginResult (de.dytanic.cloudnet.lib.network.auth.AuthLoginResult)1 PacketOutAuthResult (de.dytanic.cloudnet.lib.network.auth.packetio.PacketOutAuthResult)1 PlayerConnection (de.dytanic.cloudnet.lib.player.PlayerConnection)1 ProxyProcessMeta (de.dytanic.cloudnet.lib.server.ProxyProcessMeta)1 User (de.dytanic.cloudnet.lib.user.User)1 CollectionWrapper (de.dytanic.cloudnet.lib.utility.CollectionWrapper)1 WrapperChannelDisconnectEvent (de.dytanic.cloudnetcore.api.event.network.WrapperChannelDisconnectEvent)1 CloudNetClient (de.dytanic.cloudnetcore.network.CloudNetClient)1 CloudNetClientAuth (de.dytanic.cloudnetcore.network.CloudNetClientAuth)1 INetworkComponent (de.dytanic.cloudnetcore.network.components.INetworkComponent)1