mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-06-22 20:55:04 +02:00
- 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
622 B
Java
29 lines
622 B
Java
package net.ME1312.SubServers.Host.API.Event;
|
|
|
|
import net.ME1312.SubServers.Host.Library.Event.Event;
|
|
import net.ME1312.SubServers.Host.Library.Util;
|
|
|
|
/**
|
|
* Proxy Add Event
|
|
*/
|
|
public class SubAddProxyEvent extends Event {
|
|
private String proxy;
|
|
|
|
/**
|
|
* Proxy Add Event
|
|
*
|
|
* @param proxy Host Being Added
|
|
*/
|
|
public SubAddProxyEvent(String proxy) {
|
|
if (Util.isNull(proxy)) throw new NullPointerException();
|
|
this.proxy = proxy;
|
|
}
|
|
|
|
/**
|
|
* Gets the Proxy to be Added
|
|
*
|
|
* @return The Proxy to be Added
|
|
*/
|
|
public String getProxy() { return proxy; }
|
|
}
|