Advertisement
Guest User

Untitled

a guest
Aug 6th, 2015
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. package at.keahie.work.listener;
  2.  
  3. import org.bukkit.entity.Player;
  4.  
  5. import at.keahie.work.main.Work;
  6.  
  7. public class Job {
  8.  
  9. private Player p;
  10. private String beruf;
  11. private Work plugin;
  12.  
  13. public Job(Player p, String beruf, Work plugin) {
  14. this.p = p;
  15. this.beruf = beruf;
  16. this.plugin = plugin;
  17.  
  18. }
  19.  
  20. public void setJob(Player p, String job) {
  21. plugin.cfg.addDefault(plugin.line + "", p.getName() + ":" + job);
  22. int i = plugin.cfg.getInt("Aktuelle Position:");
  23. plugin.cfg.set(plugin.line + "", i++);
  24. }
  25.  
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement