Trow_Games

Get Player In Radius

May 21st, 2015
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1.     Bukkit.getScheduler().scheduleSyncRepeatingTask(Main.config, new Runnable() {
  2.  
  3.         @Override
  4.         public void run() {
  5.             for (Entity perto : p.getNearbyEntities(7.0D, 7.0D, 7.0D)) {
  6.                 if (perto instanceof Player) {
  7.                     final Player hit = (Player) perto;
  8.                     hit.damage(3.0D);
  9.                 }
  10.             }
  11.         }
  12.     }, 0L, 5L * 20L);
Advertisement
Add Comment
Please, Sign In to add comment