Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.realistic.tempeture;
- import org.bukkit.Bukkit;
- import org.bukkit.Location;
- import org.bukkit.block.Biome;
- import org.bukkit.entity.Player;
- import com.realistic.list.MinecraftList;
- public class tempetureAPI {
- private static MinecraftList ml;
- public tempetureAPI(MinecraftList ml) {
- this.ml = ml;
- }
- public static void callScheulder() {
- for (Player ps : Bukkit.getOnlinePlayers()) {
- while (Bukkit.getOnlinePlayers().size() > 0) {
- Location loc = ps.getLocation();
- Biome b = loc.getWorld().getBiome(loc.getBlockX(), loc.getBlockZ());
- if (b.DESERT != null) {
- if (ml.temp.keySet().contains(ps)) {
- ml.temp.put(ps, 1);
- } else {
- int current = ml.temp.get(ps).intValue();
- current++;
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement