2016-07-16 21:53:44 +00:00
|
|
|
package buttondevteam.core.player;
|
2016-07-16 21:48:11 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
public YamlConfiguration GetYaml() {
|
|
|
|
return yaml;
|
|
|
|
}
|
|
|
|
|
|
|
|
public TBMCPlayer GetPlayer() {
|
|
|
|
return player;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public HandlerList getHandlers() {
|
|
|
|
return handlers;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static HandlerList getHandlerList() {
|
|
|
|
return handlers;
|
|
|
|
}
|
|
|
|
}
|