Player.setPlayerListName doesn't work with PlayerJoinEvent

Discussion in 'Plugin Development' started by PureGero, Apr 12, 2014.

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

    PureGero

    My code is basically:
    Code:java
    1. public void onPlayerJoin(PlayerJoinEvent e){
    2. e.getPlayer().setPlayerListName("Nameless");
    3. }

    Once the player joins, their name in the TAB menu is still the same as their username.
    If I call the Player.setPlayerListName method anywhere else it works, help?
     
  2. Offline

    amhokies

    Are you sure your Listener is being triggered?
     
  3. Offline

    Go Hard

    Do you have you events registered and have your @EventHandler?
     
  4. Offline

    PureGero

    Somehow another piece of code in the PlayerJoinEvent listener looked like it was getting run..
    Such a simple thing to just miss when checking over code, thank you all :D
     
Thread Status:
Not open for further replies.

Share This Page