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!
on chat:
cancel event
json(@a, "%player%||ttp:&7your specific text||: %message%")
I do not want to cancel the chat event, how do I do it with packet? I know that this should be possible, I just do not know how to include the json thing.You'll need to cancel the packet event and then send your own message. Much easier would be to use the on chat event like this:
Untested but should work. Requires json.sk thocode_language.skript:on chat: cancel event json(@a, "%player%||ttp:&7your specific text||: %message%")
As I said, find out if the message includes a player name, cancel the packet event and send the message again with json.sk and your jsonI do not want to cancel the chat event, how do I do it with packet? I know that this should be possible, I just do not know how to include the json thing.
I'm editing the packet itself, not cancelling it, I already edited it with multiple things, I just want to include the json in my edited things and I do not know how to do thatAs I said, find out if the message includes a player name, cancel the packet event and send the message again with json.sk and your json
You need to find out how json looks like in a chat packet and put that into thereI'm editing the packet itself, not cancelling it, I already edited it with multiple things, I just want to include the json in my edited things and I do not know how to do that
yup, that is what I'm trying to find and I can't find anywhere, saw a script with that before but that script doesn't exist on skunity.com anymore so can't look at it's code for itYou need to find out how json looks like in a chat packet and put that into there
Try logging every chat packet to a file and send yourself a json messageyup, that is what I'm trying to find and I can't find anywhere, saw a script with that before but that script doesn't exist on skunity.com anymore so can't look at it's code for it
I do not know how to log that correctly, when I tried it, it crashed my serverTry logging every chat packet to a file and send yourself a json message
log "'%{_packet}%'" to "packets.log"
got it, looks like this:will be in /plugins/Skript/logs/packets.logcode_language.skript:log "'%{_packet}%'" to "packets.log"
You could do this easily using json.sk. I can make it for you if you want.I do not want to cancel the chat event, how do I do it with packet? I know that this should be possible, I just do not know how to include the json thing.
Can you post here the result of your code after you end doing it?ok I decided to just start cancelling the chat event, I thinked about it and found that it won't really disturb anything and will be just same. the example with on chat event cancelling is incorrect, but I got it to work correctly.
on chat:Can you post here the result of your code after you end doing it?
I think that is skidded from @WheezyGold7931's Mineplex remake script as it looks very similar.on chat:
cancel event
{mutes::%uuid of player%::*} is not set
{staffchat::%player%} is not set
{chatmsg2::%player%} is not set
{tempgbotask::%player%} is not set
{partychat::%player%} is not set
{readrules2.%player%} is set
set {_name} to "%display name of player%"
replace "%player%" with "test" in {_name}
json("@a", "%{_name}%||ttp:&cReal name: &e&l%player%||&7∶ &a%message%")
it's written 100% by me and never used anyone's other script for that one. I just have made my own party/staff chat systems, mute system, and system where you can't chat without having read rules, so that checks are made in the script.I think that is skidded from @WheezyGold7931's Mineplex remake script as it looks very similar.
Well I don't know if the op has all of those variables or things in his server.it's written 100% by me and never used anyone's other script for that one. I just have made my own party/staff chat systems, mute system, and system where you can't chat without having read rules, so that checks are made in the script.