SubServers-2/SubServers.Host/src/net/ME1312/SubServers/Host/API/Event/SubAddProxyEvent.java
ME1312 4aa943953f
Flesh out the Proxy API
- 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
2018-08-05 17:41:17 -04:00

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; }
}