1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Chat placeholders, possible?

Discussion in 'Skript' started by Kamino_Ramos, Feb 28, 2017.

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

    Kamino_Ramos Member

    Joined:
    Feb 1, 2017
    Messages:
    18
    Likes Received:
    1
    I want to create my own clan system, and everything seems pretty clear but one thing, clan tags in chat.

    Idea is, similar to SimpleClans, leader of clan can choose clan tag, maximum of 3 symbols (color codes not in count), and this tag will be displayed near nickname of clam members, and if there is no clan, nothing is displayed.

    Is there way to make this using skript? For example, I use herochat, can I put something like $clantag$ in format, so it will be replaced with tag or nothing (if no clan)? Is it possible, in general, to replace anything in chat format with needed value? Or do I have to write custom chatmanager skript too?
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Maybe that's will work, but this plugin needs hook in to skript!
    The best way how to solve this is make chat skript by your self.
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Jip and then you can just write:
    Code (Skript):
    1. On chat:
    2.     Cancel event
    3.     If {clantag.%player%} is set:
    4.         Broadcast "[%{clantag.%player%}%] %player%: %message%"
    5.     Else:
    6.         Broadcast "%player%: %message%"
     
Thread Status:
Not open for further replies.
Loading...