ChestShop-3/com/Acrobot/ChestShop/Events/ShopDestroyedEvent.java
Acrobot 1bf4651efa Many, many changes
- Added ShopDestroyedEvent
- Fixed signs stacked on each other not working
- Fixed Admin Shops selling materials with metadata
- Fixed shops accepting '0' quantity
- Started working on database stuff
- Split BlockBreak listener to many files
- Added methods to InventoryUtil
- Fixed discounts
2012-10-16 17:03:45 +02:00

49 lines
1.0 KiB
Java

package com.Acrobot.ChestShop.Events;
import org.bukkit.block.Chest;
import org.bukkit.block.Sign;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import javax.annotation.Nullable;
/**
* @author Acrobot
*/
public class ShopDestroyedEvent extends Event {
private static final HandlerList handlers = new HandlerList();
private final Player destroyer;
private final Sign sign;
private final Chest chest;
public ShopDestroyedEvent(@Nullable Player destroyer, Sign sign, @Nullable Chest chest) {
this.destroyer = destroyer;
this.sign = sign;
this.chest = chest;
}
@Nullable public Player getDestroyer() {
return destroyer;
}
@Nullable public Chest getChest() {
return chest;
}
public Sign getSign() {
return sign;
}
public static HandlerList getHandlerList() {
return handlers;
}
@Override
public HandlerList getHandlers() {
return handlers;
}
}