mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-27 04:25:14 +01:00
Add a simple shop edited event, not yet working
This commit is contained in:
parent
20e686f3b8
commit
fac9a18b8f
@ -0,0 +1,55 @@
|
||||
package com.Acrobot.ChestShop.Events;
|
||||
|
||||
import org.bukkit.block.Sign;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
|
||||
/**
|
||||
* Represents an event caused by a shop modification
|
||||
* @deprecated - not yet implemented
|
||||
* TODO: Implement
|
||||
* @author Andrzej Pomirski
|
||||
*/
|
||||
public class ShopEditedEvent extends Event {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
|
||||
private final Player modifier;
|
||||
private final Sign sign;
|
||||
private final String[] signLines;
|
||||
|
||||
public ShopEditedEvent(Player modifier, Sign sign, String[] signLines) {
|
||||
this.modifier = modifier;
|
||||
this.sign = sign;
|
||||
this.signLines = signLines;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The person who initiated the event
|
||||
*/
|
||||
public Player getModifier() {
|
||||
return modifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Shop sign
|
||||
*/
|
||||
public Sign getSign() {
|
||||
return sign;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Shop sign text
|
||||
*/
|
||||
public String[] getSignLines() {
|
||||
return signLines;
|
||||
}
|
||||
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
public static HandlerList getHandlerList() {
|
||||
return handlers;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user