Solved EventHandle is underlined red?

Discussion in 'Plugin Development' started by plisov, Aug 27, 2015.

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

    plisov

    I am trying to create particle effects into a shape but when I get to the line
    Code:
    .runTaskTimer(EventHandle.getInstance(), 0, 1); 
    The EventHandle is underlined red. I can't import it or anything. Here is the whole event.
    Code:
        public static void coneEffect(final Player player){
            new BukkitRunnable(){
                    double phi = 0;
                    public void run(){
                            phi = phi + Math.PI/8;                                
                            double x, y, z;                
                           
                            Location location1 = player.getLocation();
                            for (double t = 0; t <= 2*Math.PI; t = t + Math.PI/16){
                                    for (double i = 0; i <= 1; i = i + 1){
                                            x = 0.4*(2*Math.PI-t)*Math.cos(t + phi + i*Math.PI);
                                            y = 0.5*t;
                                            z = 0.4*(2*Math.PI-t)*Math.sin(t + phi + i*Math.PI);
                                            location1.add(x, y, z);
                                            ParticleEffect.BLOCK_DUST.display(location1, 0, 0, 0, 0, 1);
                                            location1.subtract(x,y,z);
                                    }
                                   
                            }              
                           
                            if(phi > 10*Math.PI){                                          
                                    this.cancel();
                            }
                    }      
            }.runTaskTimer(EventHandle.getInstance(), 0, 1);                      
    }
    
    Any help is much appreciated.

    Solved. Fixed it :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 10, 2016
  2. Offline

    frontflip12345

    What's in your EventHandle class? Does it have the getInstance function?
     
  3. Offline

    loler778

    How exactly did you fixed it? I am having the same problem
     
Thread Status:
Not open for further replies.

Share This Page