Take information from chat

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

twinlio

Member
May 9, 2020
1
0
0
34
Is there a way to take something from when someone types in chat, cancel event, and set it to a variable?
 
Well im new but i found this cause I wanted to help 1 person! Lol

Code:
on chat:
    cancel event
    if {rank::%UUID of player%} is "admin":
        broadcast "&c[Admin] %player%&8: &f%message%"
    if {rank::%UUID of player%} is "mod":
        broadcast "&e[Mod] &e%player%&8: &f%message%"
    if {rank::%UUID of player%} is "jrmod":
        broadcast "&e[Jr.Mod] %player%&8: &f%message%"
    if {rank::%UUID of player%} is "default":
        broadcast "&7%player%&8: &7%message%"

Idk if this is what u want but this is when a player chats it runs a broadcast with the message. i assume you could change the commands... i probs wont be able to help you anymore cause I'm new too... :emoji_frowning:
I hope this help
 
Code:
on chat:
    if message contains "hi":
        cancel event
        set {_msg} to message
        send "hi %player%" to player"

Think this was what you wanted?
 
Status
Not open for further replies.