From e11bed92a3980f6015d98cb354e33ef66717822d Mon Sep 17 00:00:00 2001 From: Acrobot Date: Mon, 20 May 2013 19:09:45 +0200 Subject: [PATCH] Add AccountCheckEvent --- .../Events/Economy/AccountCheckEvent.java | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/main/java/com/Acrobot/ChestShop/Events/Economy/AccountCheckEvent.java 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; + } +}