Simple Json Format

Discussion in 'Spigot Plugin Help' started by XxDeltaRunzxX, Apr 16, 2018.

  1. I was wondering what the correct Json Skript format is to cancel a players command and send them a Json message in return. For Example;

    Player Example

    /Msg XxDeltaRunzxX Hi
    "The owner is not excepting messages at this time."

    I think the formatting was something like:

    On command "/msg XxDeltaRunzxX"
    cancel event
    Message %player%: "&b&lThe owner is not excepting messages at this time."

    Same would go with other commands

    /ban XxDeltaRunzxX
    "HA! You can not ban the owner!

    On command "Ban XxDeltaRunzxX"
    cancel event
    Message %player%: "&4&lHA! You can not ban the owner!"

    I really liked it because it also blocked the console from executing the commands, because script would cancel the event.
     

Share This Page