Guest User

Untitled

a guest
Feb 13th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. //Vai ficar assim:
  2. public void aoEntrar(PlayerJoinEvent e){
  3. File f = new File(getDataFolder, "bans.yml");
  4. FileConfiguration fc = Yamlconfiguration.loadFile(f);
  5. Player p = e.getPlayer();
  6. if(fc.getString("Banidos." + p.getName()) != null){
  7. p.setKickMsg("Voce ainda esta banido!");
  8. }
  9. }
  10.  
  11. //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