Solved Version 1.2.5 Help With Suffix On Players [Help Needed]

Discussion in 'Plugin Development' started by footy, Jul 20, 2014.

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

    footy

    Hello

    I currently Designing for Version 1.2.5 + MC.

    I tried a method of OnPlayerJoin

    Code:java
    1. @EventHandler
    2. public void playerJoin(PlayerJoinEvent e) {
    3. Player p = e.getPlayer();
    4. String pname = p.getName();
    5.  
    6.  
    7.  
    8.  
    9. if (p.hasPermission("suffix.pvp")) {
    10. String pvp = "" + ChatColor.GRAY + ChatColor.BOLD + "Top PvP" + ChatColor.BLUE + " >" + ChatColor.GOLD + " >" + ChatColor.BLUE + " >" + ChatColor.RESET + ChatColor.GOLD + pname + ChatColor.RESET + "";
    11. p.setDisplayName(pvp);
    12. }


    I Use plugin GroupManager for perms.

    Im not trying to add another Rank What i am trying to do is Create A Title, Which Has no perms or anying it is just a displayable Title. And Id like to put it After Player Name.

    This method i tried Seems Not To Work, Anyone Help me with Method which wud work ?. Am i using correct Event ?
     
  2. Offline

    Gater12

    footy
    That will only change the name in chat. Setting suffix after name using the Bukkit API requires scoreboards which was not implemented into 1.2.5.
     
  3. Offline

    footy


    Gater12

    Thanks =-)
     
Thread Status:
Not open for further replies.

Share This Page