mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-25 09:27:39 +01:00
Add AccountCheckEvent
This commit is contained in:
parent
00e577ff0a
commit
e11bed92a3
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user