Detfor

Untitled

May 10th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. @EventHandler
  2. public void onJoin(PlayerJoinEvent e) {
  3. Player p = e.getPlayer();
  4. confAdd(p);
  5. income(p);
  6. }
  7.  
  8. private void income(Player p) {
  9. Player player = p;
  10. String pname = player.getName();
  11. Bukkit.getScheduler().runTaskTimer(plugin, new Runnable() {
  12.  
  13. @Override
  14. public void run() {
  15. for(int x = 1; x == 13; x++) {
  16. int incomeTemp = plugin.getConfig().getInt("players." + pname + ".bus" + x);
  17. inc += incomeTemp;
  18. }
  19. eco.bankDeposit(pname, inc);
  20.  
  21. }
  22. },1200 ,1200);
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment