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