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
42 lines
999 B
Java
42 lines
999 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;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* Remove Host Event
|
|
*/
|
|
public class SubRemoveHostEvent extends Event implements SubEvent {
|
|
private UUID player;
|
|
private String host;
|
|
|
|
/**
|
|
* Host Remove 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; }
|
|
}
|