2016-08-22 15:10:54 +00:00
|
|
|
package buttondevteam.bucket.core;
|
2016-07-04 22:20:39 +00:00
|
|
|
|
|
|
|
import org.bukkit.configuration.file.YamlConfiguration;
|
|
|
|
import org.bukkit.event.Event;
|
|
|
|
import org.bukkit.event.HandlerList;
|
|
|
|
|
|
|
|
public class TBMCPlayerLoadEvent extends Event {
|
|
|
|
private static final HandlerList handlers = new HandlerList();
|
|
|
|
|
2016-07-16 21:48:11 +00:00
|
|
|
private YamlConfiguration yaml;
|
|
|
|
private TBMCPlayer player;
|
2016-07-04 22:20:39 +00:00
|
|
|
|
2016-07-16 21:48:11 +00:00
|
|
|
public TBMCPlayerLoadEvent(YamlConfiguration yaml, TBMCPlayer player) {
|
|
|
|
//TODO: Convert player configs
|
|
|
|
this.yaml = yaml;
|
|
|
|
this.player = player;
|
2016-07-04 22:20:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public YamlConfiguration GetPlayerConfig() {
|
2016-07-16 21:48:11 +00:00
|
|
|
return yaml;
|
|
|
|
}
|
|
|
|
|
|
|
|
public TBMCPlayer GetPlayer() {
|
|
|
|
return player;
|
2016-07-04 22:20:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public HandlerList getHandlers() {
|
|
|
|
return handlers;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static HandlerList getHandlerList() {
|
|
|
|
return handlers;
|
|
|
|
}
|
|
|
|
}
|