Solved how to control ppl talk?

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

kenkencw

Active Member
Jan 31, 2017
68
0
0
Malaysia
www.huskycraftmc.com
how to control ppl talk in public chat like little troller plugin?
need the outout msg same like exacly chat format of ppl talk

public chat can be format included marry symbol, factions, factions chat, factions chat prefix, essentials prefix, nick, etc
idle one format changed by player anytime, once sent fake chat little bit different, all ppl will know its fake
 
Last edited:
code_language.skript:
on chat:
    cancel event
    broadcast "prefix | %player% | %message%"

# You need to include %message% and %player% otherwise it won't work

I think that's what you want
 
not like this
i need a totally can control ppl talk, like little troller plugin got this features, idk how they did it
 
If you have Essentials installed, use /sudo %player% c:<message you want them to say>
 
If you have Essentials installed, use /sudo %player% c:<message you want them to say>
but it output as command by default

i know skript can make ppl do command
code_language.skript:
make player execute command "/make command"

but i wonder a code like this
code_language.skript:
make player execute chat "fake chat"
 
but it output as command by default

i know skript can make ppl do command
code_language.skript:
make player execute command "/make command"

but i wonder a code like this
code_language.skript:
make player execute chat "fake chat"

Picture: http://prntscr.com/er6akl
code_language.skript:
command /sudo [<player>] [<text>] [<text>]:
    trigger:
        if arg 1 is not set:
            message "Arg 1 not set!"
            stop
        else:
            if arg 2 is not set:
                message "Arg 2 is not set!"
                stop
            if arg 2 is "c:":
                if arg 3 is not set:
                    message "Arg 3 is not set!"
                    stop
                else:
                    # This needs to be your chat format
                    broadcast "&7[&c%arg 1%&7] &f> %arg 3%"
                    stop
            if arg 2 is set:
                make arg 1 execute command "/%arg 2%"
                stop
 
Picture: http://prntscr.com/er6akl
code_language.skript:
command /sudo [<player>] [<text>] [<text>]:
    trigger:
        if arg 1 is not set:
            message "Arg 1 not set!"
            stop
        else:
            if arg 2 is not set:
                message "Arg 2 is not set!"
                stop
            if arg 2 is "c:":
                if arg 3 is not set:
                    message "Arg 3 is not set!"
                    stop
                else:
                    # This needs to be your chat format
                    broadcast "&7[&c%arg 1%&7] &f> %arg 3%"
                    stop
            if arg 2 is set:
                make arg 1 execute command "/%arg 2%"
                stop

not like this

public chat can be format included marry symbol, factions, factions chat, factions chat prefix/nick/suffix, essentials prefix, nick, etc
idle one format changed by player anytime, once sent fake chat little bit different, all ppl will know its fake
 
not like this

public chat can be format included marry symbol, factions, factions chat, factions chat prefix/nick/suffix, essentials prefix, nick, etc
idle one format changed by player anytime, once sent fake chat little bit different, all ppl will know its fake
My example worked. It doesn't output a command, PAY ATTENTION to the c: before the message. Putting c: before the 2nd argument makes it chat.
 
My example worked. It doesn't output a command, PAY ATTENTION to the c: before the message. Putting c: before the 2nd argument makes it chat.

your code only works in static format, their chat format is more complicated, can be everyday not same, actually i just need a code can directly trigger server output chat API, maybe this more undertand for u
 
your code only works in static format, their chat format is more complicated, can be everyday not same, actually i just need a code can directly trigger server output chat API, maybe this more undertand for u
It works with any added changes by plugins, try it.
 
Status
Not open for further replies.