Development Assistance Helix help

Discussion in 'Plugin Help/Development/Requests' started by xXCapzXx, Jun 14, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    xXCapzXx

    I have been trying to do this for weeks! Can someone help!

    I have looked at every tutorial, every webpage, but I still don't know.

    Can you guys edit my code so it works?

    This is my code:

    Code:
    
    package me.capz.plugin;
    
    import java.util.ArrayList;
    import java.util.List;
    
    import org.bukkit.Effect;
    import org.bukkit.Location;
    import org.bukkit.entity.Player;
    import org.bukkit.event.Listener;
    import org.bukkit.plugin.java.JavaPlugin;
    
    public class main extends JavaPlugin implements Listener{
    
       
        public void onEnable() {
            this.getServer().getPluginManager().registerEvents(this, this);
        }
    
    
    
        public static List<Location> circle(Location center, float radius, int amount, Player player) {
           List<Location> list = new ArrayList<Location>();
            for(int i = 0; i < amount; i++) {
               
                double a = 2*Math.PI / amount * i;
                double x = Math.cos(a) * radius;
                double z = Math.sin(a) * radius;
               
                list.add(center.clone().add(x, 0.25, z));
         
           
               
            }
           
            return list;
        }
       
    
    public void doParticles(Location loc) {
             loc.getWorld().spigot().playEffect(loc, Effect.FLAME);
    
          }
    }
    
     
  2. Offline

    Zombie_Striker

    @xXCapzXx
    *Sigh
    • Please don't double posts.
    • Use Java Naming Conventions.
    • You obviously did not search that hard. 1)Link 2)Link

    PS, this is for bukkit problems, not Spigot.
     
Thread Status:
Not open for further replies.

Share This Page