mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-06-22 20:55:04 +02:00
4aa943953f
- Proxies connected to Redis are downloaded on startup/reload - Named proxies are no longer removed on disconnect - Proxies now show up in `/sub list` - Proxies now have Add/Remove events in the API - Proxies are included in the response of the `DownloadServerList` packet
29 lines
712 B
Java
29 lines
712 B
Java
package net.ME1312.SubServers.Host.API.Event;
|
|
|
|
import net.ME1312.SubServers.Host.Library.Event.Event;
|
|
import net.ME1312.SubServers.Host.Library.Util;
|
|
import net.ME1312.SubServers.Host.Network.SubDataClient;
|
|
|
|
/**
|
|
* SubData Network Connect Event
|
|
*/
|
|
public class SubNetworkConnectEvent extends Event {
|
|
private SubDataClient network;
|
|
|
|
/**
|
|
* SubData Network Connect Event
|
|
*/
|
|
public SubNetworkConnectEvent(SubDataClient network) {
|
|
if (Util.isNull(network)) throw new NullPointerException();
|
|
this.network = network;
|
|
}
|
|
|
|
/**
|
|
* Get the SubData network
|
|
*
|
|
* @return SubData Network
|
|
*/
|
|
public SubDataClient getNetwork() {
|
|
return network;
|
|
}
|
|
} |