Solved Random space when concealing faction tag in brackets

Discussion in 'Bukkit Help' started by Abyssal, Nov 16, 2015.

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

    Abyssal

    Hey,
    I am trying to enclose the faction tags on my server in brackets, but when I do this it puts a random space at the end bracket (after the faction name).

    This is my format in EssentialsChat
    Code:
      format: '&f[&6{factions_relcolor}§l{factions_roleprefix}§r{factions_relcolor}{factions_name|rp}&f]{DISPLAYNAME} &f» &7{MESSAGE}'
    This is what it does: [​IMG]
     
  2. Offline

    Tecno_Wizard

    @Abyssal, that is not being caused from here. You have the actual faction name set as "Abyssal ". Note the space.
     
  3. Offline

    Abyssal

    @Tecno_Wizard
    I thought this at first, but it occurs for every faction on the server
     
  4. Offline

    Tecno_Wizard

    @Abyssal, that's odd. Asking the obvious, is there a space on every faction? I'm looking for other causes.
     
  5. Offline

    Abyssal

    @Tecno_Wizard
    No, I checked the faction files and all of the names have no space after their name, I'm pretty sure it's impossible to set a faction name with a space anyway
     
  6. Offline

    Tecno_Wizard

    @Abyssal, probably unrelated, but switch all of the color codes to the same curly thing. It's far less burdensome on the system converting it.
     
  7. Offline

    Abyssal

    @Tecno_Wizard
    Okie, thanks - I also replaced the § with & but still no luck :(
     
  8. Offline

    Tecno_Wizard

    @Abyssal other way around. Lol. I'm trying to figure out what {factions_relcolor} does.
     
  9. Offline

    Abyssal

    @Tecno_Wizard
    It changes the color of the faction tag when they either set the faction to ally(pink), neutral(gold) or enemy(red)

    This still happened when I didn't have the {faction_recolor} tag
     
  10. Offline

    Tecno_Wizard

    @Abyssal, yeah. Looked it up. In that case, apply this. (Still trying to figure out where 2 brackets magically appear in center. I've never dealt with factions' specific tags before. XD)

    §f[{factions_relcolor}{factions_roleprefix}][{factions_relcolor}{factions_name|rp}§f]{DISPLAYNAME} §f» §7{MESSAGE}

    EDIT: Lol. I found exactly where you copied and pasted the format from now.
     
  11. Offline

    Abyssal

  12. Offline

    Tecno_Wizard

    @Abyssal, nice.

    One min. XD

    EDIT: §f[{factions_relcolor}§l{factions_roleprefix}{factions_relcolor}{factions_name}§f]{DISPLAYNAME} §f» §7{MESSAGE}


    Give that a shot. I think I figured it out.
     
    Last edited: Nov 16, 2015
    Abyssal likes this.
  13. Offline

    Abyssal

    @Tecno_Wizard
    Perfecto
    [​IMG]

    Thank you very much <3!
    Guess |rp meant space or something? ;3
     
  14. Offline

    Tecno_Wizard

    @Abyssal, if the field is empty it adds a space directly to the right of it. That's what was going on.
     
    Abyssal likes this.
  15. Offline

    Abyssal

  16. Offline

    Tecno_Wizard

    @Abyssal, pas de probleme.

    Well I learned factions tags today. At least I didn't totally waste the day. XD

    I'll take a look at your server this weekend. I've been bored out of my mind lately.
     
    Last edited: Nov 16, 2015
    Sobsz and Abyssal like this.
Thread Status:
Not open for further replies.

Share This Page