Advertisement
RazorPlay01

Timer1

May 13th, 2022
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private void actualizar(final FileConfiguration config,final Player jugador) {
  2. BukkitScheduler sh = Bukkit.getServer().getScheduler();
  3. taskID = sh.scheduleSyncRepeatingTask(plugin,new Runnable(){
  4. public void run(){
  5. if(!updateInventory(config,jugador)){
  6. Bukkit.getScheduler().cancelTask(taskID);
  7. return;
  8. }
  9.  
  10. }
  11. },0L,20L);
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement