Particles!

Discussion in 'Plugin Development' started by andreaskal, Jul 17, 2015.

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

    andreaskal

    Hi, i'm new at bukkit development so can you please help with the Particle library: bukkit.org/threads/1-8-particleeffect-v1-7.154406/ because i have made the classes i need succesfully but i don't know how to use the effects!
    Thanks, :D
     
  2. Offline

    mine-care

    You use the enum ParticleEffect.VALUE.display(...) and on the display part you find the one that suits your needs.
     
  3. Offline

    andreaskal

    an example ?
    Thanks, :D
     
  4. Offline

    andreaskal

    i mean a example thats works and is filled.
    but can you say why this worldn't work ?
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
    if(label.equalsIgnoreCase("andy")) {
    Player player = (Player)sender;
    ParticleEffect.FLAME.display(player.getLocation(), 1, 1, 1, 1, 1);
    Thanks, :D
     
  5. @andreaskal Check before casting, use command.getName not label.
     
  6. Offline

    andreaskal

    like this ?

    Udklip.PNG
     
  7. @andreaskal getName is a method so it requires brackets but yes. And also check the instance of Player before casting.
     
  8. Offline

    andreaskal

    oops my fault :) but what does instance of player means ?
     
Thread Status:
Not open for further replies.

Share This Page