mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-09-30 22:37:31 +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
30 lines
692 B
Java
30 lines
692 B
Java
package net.ME1312.SubServers.Sync.Event;
|
|
|
|
import net.ME1312.SubServers.Sync.Library.SubEvent;
|
|
import net.ME1312.SubServers.Sync.Library.Util;
|
|
import net.md_5.bungee.api.plugin.Event;
|
|
|
|
/**
|
|
* Proxy Remove Event
|
|
*/
|
|
public class SubRemoveProxyEvent extends Event implements SubEvent {
|
|
private String proxy;
|
|
|
|
/**
|
|
* Proxy Remove Event
|
|
*
|
|
* @param proxy Host Being Added
|
|
*/
|
|
public SubRemoveProxyEvent(String proxy) {
|
|
if (Util.isNull(proxy)) throw new NullPointerException();
|
|
this.proxy = proxy;
|
|
}
|
|
|
|
/**
|
|
* Gets the Proxy to be Removed
|
|
*
|
|
* @return The Proxy to be Removed
|
|
*/
|
|
public String getProxy() { return proxy; }
|
|
}
|