SubServers-2/SubServers.Host/src/net/ME1312/SubServers/Host/API/Event/SubRemoveHostEvent.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

41 lines
945 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 java.util.UUID;
/**
* Remove Host Event
*/
public class SubRemoveHostEvent extends Event {
private UUID player;
private String host;
/**
* Server Host Event
*
* @param player Player Adding Host
* @param host Server Starting
*/
public SubRemoveHostEvent(UUID player, String host) {
if (Util.isNull(host)) throw new NullPointerException();
this.player = player;
this.host = host;
}
/**
* Gets the Host to be Removed
*
* @return The Host to be Removed
*/
public String getHost() { return host; }
/**
* Gets the player that triggered the Event
*
* @return The Player that triggered this Event or null if Console
*/
public UUID getPlayer() { return player; }
}