Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void chunkCheck() {
- for (Player p : Bukkit.getOnlinePlayers()) {
- Location loc = p.getLocation();
- Chunk chunk = loc.getChunk();
- int x = commonSignalLocation.getBlockX();
- int y = commonSignalLocation.getBlockY();
- int z = commonSignalLocation.getBlockZ();
- BukkitRunnable run = new BukkitRunnable() {
- public void run() {
- if (chunk.isLoaded()) {
- if (MinecraftList.signalLoc.containsKey(commonSignalLocation)) {
- if (chunk.getBlock(x, y, z) != null) {
- }
- }
- }
- }
- };
- run.runTaskTimer(API.getInstance(), 1, 100);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment