Jump to content

i made a VERY simple troll chat for specific player


happyfone

Recommended Posts

command /chattroll <player> <text>:
    trigger:
        if {troll.toggle} is set:
            if {troll.toggle} is true:
                set {troll.toggle} to false
                set {troll.user} to ""
                message "Chat troll toggled off"
                set {troll.text} to arg 2
            else:
                message "Chat troll toggled on"
                set {troll.toggle} to true
                set {troll.user} to player-arg
        else:
            message "Chat troll toggled on"
            set {troll.toggle} to true
            set {troll.user} to player-arg

on quit:
    if player is {troll.user}:
        set {troll.toggle} to false
        set {troll.player} to ""
        set {troll.text} to ""

on chat:
    if {troll.toggle} is true:
        if player is {troll.user}:
            set message to "%{troll.text}%"

command /chattrollclear:
    trigger:
        if {troll.user} is "":
            message "&cAlready cleared troll from %{troll.last}%&c!"
        else:
            set {troll.toggle} to ""
            set {troll.text} to ""
            message "Successfully cleared troll from %{troll.user}%"
            set {troll.last} to {troll.user}
            set {troll.user} to ""

 

Download my latest Skript plugin:

 

Happy Fone Command Blocker

DONWLOAD NOW!!

\/\/\/\/\/\/\/\/\/\/\/\/\/

command-blocker.sk

Link to comment
Share on other sites

  • 3 months later...

Locked due to necroposting, please don't reply to an inactive topic (over 1 month)

Edited by Koronotchi

Junior Mod (01/04/2020) - Resigned 

 Discord » Koronotchi#0001 
Minecraft Username » Koronotchi 

image.png.17a385f298c8969f6b1cf03e27ee50d3.png

 

Link to comment
Share on other sites

  • zKoro locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...