SHARE
TWEET

Untitled

a guest Jul 17th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package ru.zoom4ikdan4ik.orecleaner.utils;
  2.  
  3. import java.util.List;
  4. import org.bukkit.Bukkit;
  5. import org.bukkit.Chunk;
  6. import org.bukkit.World;
  7.  
  8. public class Task
  9.   extends Utils
  10.   implements Runnable
  11. {
  12.   public void run()
  13.   {
  14.     for (int i = 0; i < worldList.size(); i++)
  15.     {
  16.       World world = Bukkit.getWorld((String)worldList.get(i));
  17.       maxChunks = world.getLoadedChunks().length;
  18.       chunks = 0;
  19.       Chunk[] arrayOfChunk;
  20.       int j = (arrayOfChunk = world.getLoadedChunks()).length;
  21.       for (int i = 0; i < j; i++)
  22.       {
  23.         Chunk chunk = arrayOfChunk[i];
  24.         clearBlocks(world, chunk);
  25.       }
  26.     }
  27.   }
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top