48 lines
1.0 KiB
Java
48 lines
1.0 KiB
Java
package de.butzlabben.world.event;
|
|
|
|
import de.butzlabben.world.wrapper.SystemWorld;
|
|
import org.bukkit.command.CommandSender;
|
|
import org.bukkit.event.HandlerList;
|
|
|
|
/**
|
|
* Event if a systemworld gets deleted
|
|
*
|
|
* @author Butzlabben
|
|
* @since 09.05.2018
|
|
*/
|
|
public class WorldDeleteEvent extends WorldEvent {
|
|
|
|
public final static HandlerList handlers = new HandlerList();
|
|
private final SystemWorld world;
|
|
private final CommandSender executor;
|
|
|
|
public WorldDeleteEvent(CommandSender executor, SystemWorld world) {
|
|
this.executor = executor;
|
|
this.world = world;
|
|
}
|
|
|
|
public static HandlerList getHandlerList() {
|
|
return handlers;
|
|
}
|
|
|
|
/**
|
|
* @return get the world which will be deleted
|
|
*/
|
|
public SystemWorld getWorld() {
|
|
return world;
|
|
}
|
|
|
|
/**
|
|
* @return get the executor of the command
|
|
*/
|
|
public CommandSender getExecutor() {
|
|
return executor;
|
|
}
|
|
|
|
@Override
|
|
public final HandlerList getHandlers() {
|
|
return handlers;
|
|
}
|
|
|
|
}
|