Team COmmand help!!

Discussion in 'Plugin Development' started by shotgun528, Oct 21, 2014.

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

    shotgun528

    I coded a team plugin but it shown so:
    [Owner] name | name2 | name3 |

    i would have it so:
    [Owner] name | name2 | name3

    CODE:
    Code:java
    1. @Override
    2. public boolean onCommand(CommandSender sender, Command cmd, String label,
    3. String[] args) {
    4. PermissionManager pex = null;
    5.  
    6.  
    7.  
    8.  
    9. Player p = (Player) sender;
    10. PermissionsEx pex1 = (PermissionsEx) PermissionsEx.getPlugin();
    11. p.sendMessage("§b[]=========== §6Ace Topia Team§b ===========[]");
    12.  
    13.  
    14.  
    15.  
    16. Set<PermissionUser> own = pex1.getPermissionsManager().getGroup("Owner").getUsers();
    17.  
    18. StringBuilder list1 = new StringBuilder(ChatColor.GREEN + "§8[§4§lOwner§8] ");
    19.  
    20. for(PermissionUser Owner : own)
    21. {
    22. String Ownername = Owner.getName();
    23.  
    24. if(Bukkit.getPlayer(Ownername) != null)
    25. {
    26. list1.append(ChatColor.translateAlternateColorCodes('&', "&a&o" + Ownername + " §b§l| "));
    27. }
    28. else
    29. {
    30. list1.append(ChatColor.translateAlternateColorCodes('&', "&c&o" + Ownername + " §b§l| "));
    31. }
    32. }
    33.  
    34. p.sendMessage(list1.toString())


    PUSH

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
  2. Offline

    SmooshCakez

    shotgun528 Only bump your post every 24 hours. Just substring the 'list1' by 1 character before you send the player the message.
     
  3. Offline

    shotgun528

    what????!??!?! Can you send me the code?
     
  4. Offline

    fireblast709

  5. Offline

    shotgun528

    i dont understand .... im german
     
  6. Offline

    FerusGrim

    I assure you there are at least one or two German programmers who learned by reading documentation.
     
  7. Offline

    shotgun528

    Can anyone help me with a code?

    PUSH PLS!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
  8. Offline

    CraftCreeper6

    shotgun528 You know that thing that you can use the translate the page? It's pretty awesome, it's called Google Chrome. Use it.
     
Thread Status:
Not open for further replies.

Share This Page