How do you send particle effects to player using ProtocolLib

Discussion in 'Plugin Development' started by Irantwomiles, May 17, 2017.

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

    Irantwomiles

    Any help would be appreciated! I've been looking at the wiki but to be honest I don't really know how to implement it.
     
  2. Offline

    Zombie_Striker

  3. Offline

    Irantwomiles

    Yea I saw that, but my problem is this. I'm working on this plugin that allows people to practice pvp by 1v1ing each other inside of areans, but I want to make it so multiple people can fight inside of the same arena which would help server owners a lot because then they wouldn't have to make 50+ arenas.

    My thought process was this. I figured out how to cancel all sounds and particle effects using protocollib, so I thought if there is a way to cancel the effect, there must be a way to show the effect as well. That way I could show for example specific potion particle effects to the two people that are fighting instead of everyone in the arena. Do you know if there is a better way of going about this or do I just have to keep pulling out my hair until I figure it out.
     
  4. Offline

    Zombie_Striker

    @Irantwomiles
    But you can still use those methods. If you call that method on a player, only that player will see the particles, so all you have to do is call this method on those two players.
     
  5. Offline

    Irantwomiles

    Oh sorry, I forgot to mention I'm using an older version of Spigot because this plugin is written for a specific community that still plays on 1.7-1.8 and these methods are not in the version of the spigot I use, which is mainly why I'm trying to use ProtocolLib.
     
Thread Status:
Not open for further replies.

Share This Page