Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.kyle.burnett.hungergames.listener;
- import me.kyle.burnett.hungergames.Main;
- import org.bukkit.entity.Player;
- import org.bukkit.event.EventHandler;
- import org.bukkit.event.player.PlayerJoinEvent;
- public class JoinEvent implements org.bukkit.event.Listener{
- public static Main plugin;
- public JoinEvent(Main instance){
- plugin = instance;
- }
- @EventHandler
- public void playerJoin(PlayerJoinEvent e){
- Player p = e.getPlayer();
- if(Main.userConfig.contains(p.getName())){
- return;
- }else if(!Main.userConfig.contains(p.getName())){
- Main.userConfig.createSection(p.getName() + ".Arena");
- Main.userConfig.createSection(p.getName() + ".Rank");
- Main.userConfig.createSection(p.getName() + ".Class");
- Main.userConfig.createSection(p.getName() + ".Kill's");
- Main.userConfig.createSection(p.getName() + ".Death's");
- Main.userConfig.createSection(p.getName() + ".Kill/Death-Ratio");
- Main.saveUserConfig();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment