Addon legendchat

  • 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!

zGhol

Member
Mar 9, 2017
2
0
0
22
I was wondering if I have some addon for the skript that would have how to create a tag in the example legendchat:

"Potato" to "&c [Potato]"

would be like this:

{potato}
I would go out there in chat

&C [Potato]
 
@zGhol I didn't add it to documentation since this plugin isn't too much used here, it's more in our country.


code_language.skript:
#Called when a player say something.
[on] l[egend]c[hat] chat

#Returns:
- player : The player who send the message:
- l[egend]c[hat] channel : The channel that the player send the message. Returns %channel%.
- l[egend]c[hat] message : The message. Can be cleared and setted to %string%. Returns %string%.

#Called when a player send a tell.
[on] l[egend]c[hat] tell

#Returns:
- sender : Who send the message. (player/console)
- receiver : Who will receive the message. (player/console)
- tell message : The message. Can be cleared and setted to %string%. Returns %string%.
code_language.skript:
#Returns if a player is muted.
%player% is muted
%player% is(n't| not) muted

#Returns if a player has permission to see/say in channel.
%player% can (see|say in) [channel] %channel%
%player% can't (see|say in) [channel] %channel%
code_language.skript:
#Make a player send tell to another player.
[make] %player% [send] tell %string% to %player%

#Mute a player for a minutes or forever (or until server restart).
mute %player% [for %integer% minute[s]]

#Unmute the player.
unmute %player%

#Make player say something in a channel.
make %player% say %string% in [channel] %channel%
code_language.skript:
#Returns the remaining time of mute of player if he's muted. Returns %integer%.
mute (left|remaining) time of %player%
%player%'[s] mute (left|remaining) time

#Returns the default channel of player in Legendchat. Can be set to %channel%. Returns %channel%.
default channel of %player%
%player%'[s] default channel

#Returns the spy state of player (true or false). Can be set to %boolean%. Returns %boolean%.
spy state of %player%
%player%'[s] spy state

#Returns the hide state of player (true or false). Can be se to %boolean%. Returns %boolean%.
hide state of %player%
%player%'[s] hide state

#Returns a custom chat tag of player. You have to add a tag at LegendChat's chat formati
#in your config file to see it in the chat. You can set and clear/delete it. Returns %string%.
[chat] tag %string% of %player%
%player%'[s] [chat] tag %string%

#Returns all custom tags from player. It will return something like "Mytag" not like "[MyTag]"
[chat] tags of %player%
%player%'[s] [chat] tags
code_language.skript:
#The channels that was created in config of plugin. Values: global, local...
- channel

About the tags, it is possible with:
code_language.skript:
[chat] tag %string% of %player
%player%'[s] [chat] tag %string%

[chat] tags of %player%
%player%'[s] [chat] tags

The first one you can get or set a tag, the second one you get all tags that was setted with first expression.
Examples:
code_language.skript:
on first join:
    set tag "group" of player to "&4[&cNewbie&8]"
    loop tags of player:
        send "%loop-value% - %tag loop-value of player%" #It will send "group - &4[&cNewbie&8]", as it is the only tag setted so far.

    clear tags of player #It will remove all custom tags setted so far.
    clear tag "group" of player #Or you can remove a specific one
If you need something else with that, feel free to tag or pm me (pm me it's better since both of us speak same language).