DungeonsXL/api/src/main/java/de/erethon/dungeonsxl/api/event/DataReloadEvent.java

56 lines
1.5 KiB
Java
Raw Normal View History

2016-07-28 23:53:19 +02:00
/*
2023-09-28 19:16:23 +02:00
* Copyright (C) 2014-2023 Daniel Saukel
2016-07-28 23:53:19 +02:00
*
2020-04-25 21:49:44 +02:00
* This library is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later version.
2016-07-28 23:53:19 +02:00
*
2020-04-25 21:49:44 +02:00
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNULesser General Public License for more details.
2016-07-28 23:53:19 +02:00
*
2020-04-25 21:49:44 +02:00
* You should have received a copy of the GNU Lesser General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
2016-07-28 23:53:19 +02:00
*/
2020-04-25 00:38:54 +02:00
package de.erethon.dungeonsxl.api.event;
2016-07-28 23:53:19 +02:00
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
/**
2020-04-25 00:38:54 +02:00
* Fired when the plugin is reloaded with /dxl reload.
*
2016-07-28 23:53:19 +02:00
* @author Daniel Saukel
*/
public class DataReloadEvent extends Event implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private boolean cancelled;
@Override
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean cancelled) {
this.cancelled = cancelled;
}
@Override
public String toString() {
return getClass().getSimpleName();
}
2016-07-28 23:53:19 +02:00
}