Help with playEffect() !!!

Discussion in 'Plugin Development' started by acosta9898, May 17, 2014.

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

    acosta9898

    So I've been playing around with the playEffect() method and I've run into a problem...

    So here's a snip of my code:

    Code:java
    1. Location location = player.getLocation();
    2. player.playEffect(location, Effect.POTION_BREAK, data);


    So where I summon the Effect the last parameters is "T data"
    Does anyone know what "T" means??
    Any information would be greatly appreciated!
     
  2. acosta9898 Do you really expect us to read it?... can you read it yourself?
    Code:java
    1. Use me! Im usefull!

    adding [HELP] just make people dont want to help you. and deprecated methods are fine. they just might change soon... if youre planning on making plugin without using deprecated methods... youll have bad time.. haha.
    anyways, Il suggest you to compare the string without chat colors.
     
  3. Offline

    Azubuso

    acosta9898
    Like Someone_Like_You just said...could you please add a bit of syntax to your paste...it's impossible to read. :p

    EDIT: Also, you need to use player.getWorld() when using the playEffect method. :)
     
    Someone_Like_You likes this.
Thread Status:
Not open for further replies.

Share This Page