mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-06-22 20:55:04 +02:00
42 lines
870 B
Java
42 lines
870 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 net.ME1312.SubServers.Host.ExHost;
|
|
|
|
/**
|
|
* SubServers.Host Disable Event Class
|
|
*/
|
|
public class SubDisableEvent extends Event {
|
|
private int exit;
|
|
|
|
/**
|
|
* SubServers.Host Disable Event
|
|
*
|
|
* @param host SubServers.Host
|
|
* @param exit Exit Code
|
|
*/
|
|
public SubDisableEvent(ExHost host, int exit) {
|
|
if (Util.isNull(host, exit)) throw new NullPointerException();
|
|
this.exit = exit;
|
|
}
|
|
|
|
/**
|
|
* Get the Exit Code
|
|
*
|
|
* @return Exit Code
|
|
*/
|
|
public int getExitCode() {
|
|
return exit;
|
|
}
|
|
|
|
/**
|
|
* Set the Exit Code
|
|
*
|
|
* @param value Value
|
|
*/
|
|
public void setExitCode(int value) {
|
|
this.exit = value;
|
|
}
|
|
}
|