Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void removeholo(Player p) {
- double radiusSquared = 2*2;
- for (Entity armorStand : p.getWorld().getEntities()) {
- if(armorStand instanceof ArmorStand) {
- if(armorStand.getLocation().distanceSquared(p.getLocation()) <= radiusSquared){
- armorStand.remove();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement