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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
Try it out by yourself
Why is this needed to be a command? Check if the chat message begins with @ and then check for whatever?Yea I did tried "command @:" and "on command "@" " but I didn't get it ..
Thanks for the help tho..
Why is this needed to be a command? Check if the chat message begins with @ and then check for whatever?
it's called the skunity docsYea, how I do that?
I tried "If first letter" but it doesn't seem to work.
it's called the skunity docs
Try it out by yourself
there is no need to be rude, you could just tell the guy how do it without spoon feeding him. What a shame that skUnity has this kind of helpers nowdays.it's called the skunity docs
there is no need to be rude, you could just tell the guy how do it without spoon feeding him. What a shame that skUnity has this kind of helpers nowdays.
Now, regarding to the OP's issue, you need listen to the chat event and then check if the first character of the message is "@" ( or yet better, parse the message as "@%text%[ %text%]") and then do whatever you want to do.
No, it may come off as rude but you can't disagree 95% of people on here don't try and look for stuff before askingthere is no need to be rude, you could just tell the guy how do it without spoon feeding him. What a shame that skUnity has this kind of helpers nowdays.
Now, regarding to the OP's issue, you need listen to the chat event and then check if the first character of the message is "@" ( or yet better, parse the message as "@%text%[ %text%]") and then do whatever you want to do.
on chat:
if the first 1 characters of message is "@":
cancel event
set {Split.Message.%player%::*} to message split at "@"
loop {Split.Message.%player%::*}:
set {Split.Message.Send.%player%::*} to "%loop-var%"
broadcast "&4%player% &8: &c%{Split.Message.Send.%player%::*}%"
Code:
code_language.skript:on chat: if the first 1 characters of message is "@": cancel event set {Split.Message.%player%::*} to message split at "@" loop {Split.Message.%player%::*}: set {Split.Message.Send.%player%::*} to "%loop-var%" broadcast "&4%player% &8: &c%{Split.Message.Send.%player%::*}%"