Solved Json

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

    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.

Adrihun

Member
Feb 1, 2017
368
6
0
Okay, so In the latest version of MCR WheezyGold added the feature where ranks in the chat have descriptions.
So when you hover over the rank name it will say things like " The Owner Rank" in JSON.

And I contacted WheezyGold if I could copy & paste that into my server and he said yes.

I don't know how to do it though. I tried it on my server but it didn't work

I'm using Pex and Chatex, is it possible to do this JSON chat thing?

Here is his Script - https://forums.skunity.com/resources/official-skript-2-2-mp-core-remake-1-8-8.54/updates

If anyone could help me get the JSON only script that would be amazing
 
@ChisleLP
Meh, I tried. But also, If I cancel the chat event and just broadcast what the player said, then my Anti Spam, Anti Swear and things won't work.
 
@ChisleLP
Meh, I tried. But also, If I cancel the chat event and just broadcast what the player said, then my Anti Spam, Anti Swear and things won't work.
Don't changed anythings...

just do somelike this

code_language.skript:
on chat:
    if message contains "fuck" "asshole"....
        cancel event
        stop
    if "%last message%" contains "%message%" #i know, this expresion doesn't exist. just i wan't show
        cancel event
        stop
    #if you has more "Anti sweaer, anti spam" just add more list then at end (Ugh, you need stop trigger in ever "if"...
    cancel event
    #sorry. my brain is dumb for json
    json("@a", "<Gods>||ttp:This ranks is god||<%player>||ttp:maybe more hover name infomantion?||> %message%")
 
The only method i know is to modify the chat packet, but that would not be easy
 
4y6bHrt.png

1pJhxdi.png


Qhz2PKO.png
 
@BrettPlayMC Still cant find it?

Is this what you're talking about?

code_language.skript:
json()
json("<recipient>", "<json text in json.sk notation>")
Sends a json formatted message to the recipient (accepts @a)
 
@BrettPlayMC Still cant find it?

Is this what you're talking about?

code_language.skript:
json()
json("<recipient>", "<json text in json.sk notation>")
Sends a json formatted message to the recipient (accepts @a)
Go to the json.sk page. :emoji_slight_smile:
Ok bye.
 
You should read more.... there is a tutorial to easy way to understand..


upload_2017-5-15_21-54-34.png


Like everyone say. go json.sk page
 
Yerah sure. Because i did a mistake. Dude. Just test it with commands, then you learn a lot stuff. then change it into chat events.... dude.... -.-
 
dud i don't want to do "on chat:" i don't want to cancel the event, and broadcast what the player wrote
that is not good for server performance?
 
dud i don't want to do "on chat:" i don't want to cancel the event, and broadcast what the player wrote
that is not good for server performance?
You have to cancel the event or you can't do Json chat.
 
Status
Not open for further replies.