mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
Adding an event thing
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
package com.github.devotedmc.hiddenore.events;
|
||||
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
|
||||
public class HiddenOreEvent extends Event implements Cancellable {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
|
||||
private final Player player;
|
||||
private final Location dropLocation;
|
||||
private List<ItemStack> drops;
|
||||
|
||||
public HiddenOreEvent(final Player player, final Location dropLocation, List<ItemStack> drops) {
|
||||
|
||||
}
|
||||
|
||||
public HiddenOreEvent(boolean isAsync) {
|
||||
super(isAsync);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
private boolean cancel = false;
|
||||
|
||||
@Override
|
||||
public boolean isCancelled() {
|
||||
return cancel;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCancelled(boolean cancelled) {
|
||||
this.cancel = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return HiddenOreEvent.handlers;
|
||||
}
|
||||
|
||||
public static HandlerList getHandlerList() {
|
||||
return handlers;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user