What do these methods return + smoke particle question

Discussion in 'Plugin Development' started by meguy26, Apr 25, 2015.

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

    meguy26

    In bukkit their are 4 methods to get a players name, would someone mind explaining them?
    Code:
                p.getName();
                p.getCustomName();
                p.getDisplayName();
                p.getPlayerListName();
    Also, I am trying to use smoke particles for my plugin, but they do not want to stay in place, when i do:
    Code:
    p.playEffect(p.getLocation(), Effect.LARGE_SMOKE, 0);
    the smoke randomly flies around in different directions, how would i keep the smoke stationary? is it a different method or do i have to change the databit?

    I understand these are noobish questions, but please do not criticize me for it, i have a working plugin with over 20 classes. :) mostly working that is.
     
  2. Offline

    RichardBob123

    p.getName() returns the player's real string name.
    p.getCustomName() returns the player's custom name that he/she set for themselves on the server.
    p.getDisplayName() returns the players current name, whether that being a custom name or real name.
    p.getPlayerListName() returns the player's name that is displayed when someone looks at the player list (usually by hitting tab)
     
  3. Offline

    meguy26

    @RichardBob123
    thanks.

    To others/richard:
    what about that second question?
     
  4. Offline

    mrCookieSlime

    Moved to Plugin Developement.
     
  5. Offline

    meguy26

    @mrCookieSlime
    wait... I didn't start it Plugin Development?
    oops...
     
  6. Offline

    mrCookieSlime

    @meguy26
    No, you probably misclicked. It was in "Plugin Requests".
     
Thread Status:
Not open for further replies.

Share This Page