ChromaCore/src/buttondevteam/bucket/core/TBMCPlayerSaveEvent.java

36 lines
786 B
Java
Raw Normal View History

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