How to get a tag besides your name?

Discussion in 'Bukkit Help' started by nubpro, Jun 22, 2011.

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

    nubpro

    How to get a tag besides your name?
    What if I want a tag besides my name.
    Example: [I'mDragons] NubPro: Blah...
    I know there is a way to code this but I need help with it.

    Eg:
    /tag I'mDragons

    In Game:
    [I'mDragons]NubPro

    If without a .txt file is possible?

    Could anyone help me?
    @CaiusTSM
    Any idea?
    Sorry for disturbing you.

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

    MetalMadness

    If you want, just change the tag in permissions, putting [Tag] in the prefix. Or use a clan based plugin. You won't need to modify any ymls, except the configuration.

    Try http://forums.bukkit.org/threads/me...zation-optional-area-defenses-more-860.19904/

    Warning, it has conflicts with some important plugins like
    • iChat (Chat Related, set use-chat-tags: false or disable iChat)
    • HeroicChat (Chat Related, set use-chat-tags: false)
    • Essentials (Not sure why, probably multiple reasons)
    • War (uses /team)
     
  3. Offline

    CaiusTSM

    How I understand your question is how to add a tag to a player through a command.
    You could have a hashmap of players, and strings.
    Then add a player to that hashmap when a player says /tag; add a string that is the first argument.
    Then in the chat event, when a player said something search through the hashmap for that player and then add the tag on front of what he said.
     
  4. Offline

    dak393

    Prefixer will do that as well as permissions + ichat (or most other chat plugins) (both in sig)
     
  5. Offline

    nubpro

    I'm not looking for plugins.

    @CaiusTSM you understand me better. :D

    What if I don't want it to be saved?
    EG:
    /tag noob Hi
    Preview:
    [Noob]: Hi
    without player name?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  6. Offline

    dak393

    Ah I'm sorry you're coding it. well you could take hints from the source code
     
  7. Offline

    nubpro

    Thanks :D
     
Thread Status:
Not open for further replies.

Share This Page