added files.
This commit is contained in:
commit
49cdbc2c73
356 files changed
+39620
No files matched your search
@@ -0,0 +1,54 @@
|
||||
package me.frep.vulcan.api.event;
|
||||
|
||||
import me.frep.vulcan.api.check.Check;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
|
||||
public class VulcanSetbackEvent extends Event implements Cancellable {
|
||||
|
||||
private final Player player;
|
||||
|
||||
private boolean cancelled;
|
||||
|
||||
private final Check check;
|
||||
|
||||
private final long timestamp = System.currentTimeMillis();
|
||||
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
|
||||
public VulcanSetbackEvent(Player player2, Check check2) {
|
||||
super(true);
|
||||
this.player = player2;
|
||||
this.check = check2;
|
||||
}
|
||||
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
public static HandlerList getHandlerList() {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
public boolean isCancelled() {
|
||||
return this.cancelled;
|
||||
}
|
||||
|
||||
public void setCancelled(boolean cancelled2) {
|
||||
this.cancelled = cancelled2;
|
||||
}
|
||||
|
||||
public Player getPlayer() {
|
||||
return this.player;
|
||||
}
|
||||
|
||||
public Check getCheck() {
|
||||
return this.check;
|
||||
}
|
||||
|
||||
public long getTimestamp() {
|
||||
return this.timestamp;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user