diff --git a/src/main/java/com/Acrobot/ChestShop/Events/Economy/AccountCheckEvent.java b/src/main/java/com/Acrobot/ChestShop/Events/Economy/AccountCheckEvent.java new file mode 100644 index 0000000..b3c6b85 --- /dev/null +++ b/src/main/java/com/Acrobot/ChestShop/Events/Economy/AccountCheckEvent.java @@ -0,0 +1,48 @@ +package com.Acrobot.ChestShop.Events.Economy; + +import org.bukkit.World; +import org.bukkit.event.Event; +import org.bukkit.event.HandlerList; + +/** + * Checks for the existance of an account + * + * @author Acrobot + */ +public class AccountCheckEvent extends Event { + private static final HandlerList handlers = new HandlerList(); + + private String account; + private World world; + + public AccountCheckEvent(String account, World world) { + this.account = account; + this.world = world; + } + + public AccountCheckEvent(String account) { + this.account = account; + } + + /** + * @return Account which is being checked + */ + public String getAccount() { + return account; + } + + /** + * @return The world in which the check occurs + */ + public World getWorld() { + return world; + } + + public HandlerList getHandlers() { + return handlers; + } + + public static HandlerList getHandlerList() { + return handlers; + } +}