Advertisement
Lisenochek

Untitled

Sep 4th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. package com.realistic.tempeture;
  2.  
  3. import java.util.HashMap;
  4.  
  5. import org.bukkit.Bukkit;
  6. import org.bukkit.Location;
  7. import org.bukkit.block.Biome;
  8. import org.bukkit.entity.Player;
  9.  
  10. public class tempetureAPI {
  11.  
  12. public static void callScheulder() {
  13.  
  14. HashMap<Player, Integer> hash = new HashMap<>();
  15.  
  16. for (Player ps : Bukkit.getOnlinePlayers()) {
  17.  
  18. while (Bukkit.getOnlinePlayers().size() > 0) {
  19.  
  20. Location loc = ps.getLocation();
  21. Biome b = loc.getWorld().getBiome(loc.getBlockX(), loc.getBlockZ());
  22.  
  23. StringBuilder s = new StringBuilder().append(hash.get(ps).intValue());
  24.  
  25. if (b.DESERT != null) {
  26.  
  27. if (hash.get(ps) == null) {
  28.  
  29. hash.put(ps, 1);
  30.  
  31. } else {
  32.  
  33. int current = hash.get(ps).intValue();
  34. current++;
  35.  
  36. s.toString();
  37. }
  38. }
  39. }
  40. }
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement