Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void actualizar(final FileConfiguration config,final Player jugador) {
- BukkitScheduler sh = Bukkit.getServer().getScheduler();
- taskID = sh.scheduleSyncRepeatingTask(plugin,new Runnable(){
- public void run(){
- if(!updateInventory(config,jugador)){
- Bukkit.getScheduler().cancelTask(taskID);
- return;
- }
- }
- },0L,20L);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement