Dispatching Commands Help

Discussion in 'Plugin Development' started by PotatoLol12321, Feb 13, 2015.

Thread Status:
Not open for further replies.
  1. Offline


    I'm trying to add this :

    /tellraw p ["",{"text":"Need help with the marketing system?","color":"gold","bold":"true","clickEvent":{"action":"run_command","value":"/list"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Click me for help!","color":"yellow"}]}}}]

    Into here
    Bukkit.dispatchCommand(Bukkit.getServer().getConsoleSender(), "");

    But the quote catches the quotes in the command so it's not letting me enter it in, any other ways to do this?

    So it tries to dispatch "/tellraw p["
  2. Offline


  3. Offline


  4. Offline


    @Skionz The escape character? I tried /"test/" but its not working from the outside "

    Nvm i got it thanks!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jun 13, 2016
Thread Status:
Not open for further replies.

Share This Page