Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Vai ficar assim:
- public void aoEntrar(PlayerJoinEvent e){
- File f = new File(getDataFolder, "bans.yml");
- FileConfiguration fc = Yamlconfiguration.loadFile(f);
- Player p = e.getPlayer();
- if(fc.getString("Banidos." + p.getName()) != null){
- p.setKickMsg("Voce ainda esta banido!");
- }
- }
- //Poderia adicionar mais ou menos, aquele código ai pra eu ver como ficaria, e vê ai, se é assim mesmo que tem que ser feito.
Advertisement
Add Comment
Please, Sign In to add comment