Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Set Particles Off

Comments in 'Plugin Development' started by PixelGuy75, May 8, 2015.

  1. PixelGuy75
    Offline

    PixelGuy75 Notable Member Plugin Developer

    Joined:
    Feb 9, 2014
    Posts:
    316
    Plugins:
    2
    Minecraft User:
    PixelGuy75
    I am trying to add an effect and keep the particles off. The effect part works, but it still shows the particles. Here is my code:
    PHP:
                $effect Effect::getEffect(1);
                
    $effect->setVisible(false);
                
    $effect->setDuration(107374182);
                
    $player->addEffect($effect);
  2. Gamecrafter
    Offline

    Gamecrafter Notable Member Plugin Developer

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    So you want to give player effects without the particles, correct?
  3. PixelGuy75
    Offline

    PixelGuy75 Notable Member Plugin Developer

    Joined:
    Feb 9, 2014
    Posts:
    316
    Plugins:
    2
    Minecraft User:
    PixelGuy75
    Yes
  4. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    I think you only see the Particles by your own, other Players don't see it.
  5. PixelGuy75
    Offline

    PixelGuy75 Notable Member Plugin Developer

    Joined:
    Feb 9, 2014
    Posts:
    316
    Plugins:
    2
    Minecraft User:
    PixelGuy75
    I thought there was a way that both you and other players had particles off.
  6. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    Well, in my Plugin it actually doesn't show for both. The only thing I did too is adding a Config and setting the Amplifier, try to add:
    PHP:
    $effect->setAmplifier(1);

Share This Page

Advertisement