Guest User

Untitled

a guest
Jan 17th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. while (doStorm) {
  2. int radius = plugin.config.getInt("storm.radius", 1);
  3. for (Player p : Bukkit.getServer().getOnlinePlayers()) {
  4. Block b = p.getLocation().getBlock().getRelative(random.nextInt(radius)- radius / 2, 0, random.nextInt(radius)- radius / 2);
  5. Location loc = b.getLocation();
  6. p.getWorld().strikeLightning(loc);
  7. }
  8. }
Add Comment
Please, Sign In to add comment