Solved Particel Effekte

Discussion in 'Plugin Development' started by TheGamblingMan, Jun 26, 2014.

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


    I use this lib for my particel effekts but it doesn't work for me and i don't know why do you know maybe something?
    File file = new File("plugins/Rush/Blöcke/grünblock.yml");
            YamlConfiguration cfg = YamlConfiguration.loadConfiguration(file);
            double x = cfg.getDouble("X");
            double y = cfg.getDouble("Y");
            double z = cfg.getDouble("Z");
            String worldname = cfg.getString("Worldname");
            World welt = Bukkit.getWorld(worldname);
            Location loc = new Location(welt, x, y, z);
            ParticleEffect.PORTAL.display(loc.add(0.5D, 0.5D, 0.5D), 0.5F, 0.5F,
                    0.5F, 1, 10);
    I also tryed it in a scheduler no error and no effects :(
  2. Offline


    Try loc.getWorld().playEffect(loc.add(0.5D, 0.5D, 0.5D), Effect.PORTAL, 10, 30);
  3. Offline


    TheGamblingMan make sure you have particles enabled in your client
    dsouzamatt likes this.
  4. Offline


    +1 to that. I wasted 30 minutes once wondering why my particles weren't working before I realised that I had them turned off :p
Thread Status:
Not open for further replies.

Share This Page