Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void summonCircle(Location location, double size) {
- for (int d = 0; d <= 360; d += 1) { // 360 - заполненность формы
- Location particleLoc = new Location(location.getWorld(), location.getX(), location.getY(), location.getZ());
- particleLoc.setX(location.getX() + Math.cos(d) * size);
- particleLoc.setZ(location.getZ() + Math.sin(d) * size);
- Objects.requireNonNull(location.getWorld()).spawnParticle(Particle.REDSTONE, particleLoc, 20, new Particle.DustOptions(Color.RED, 1));
- }
- } public void GlaveRegion(Player p) {
- Task = Bukkit.getScheduler().scheduleSyncRepeatingTask(basecreate.getInstance(), () -> {
- Location locate = new Location(p.getWorld(), plugin.getConfig().getDouble(id + ".base.coords.x"), plugin.getConfig().getDouble(id + ".base.coords.y"), plugin.getConfig().getDouble(id + ".base.coords.z"));
- summonCircle(locate, index);
- }, 0, 40);
- }
Advertisement
Add Comment
Please, Sign In to add comment