JSON, message problem!

Discussion in 'Plugin Development' started by jusjus112, Oct 20, 2014.

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

    jusjus112

    I have in my plugin a JSON message, with tellraw.
    Everything works, except the run_command, it runs a command
    by the player, so if the player isn't op they dont have permissions!
    But, wich value is for console commands? so, that the player
    activate the command without perms?
     
  2. Offline

    SmooshCakez

    jusjus112 You can active commands without permissions if you remove the required permissions or temporarily give them to the player and then remove them after they run the command. By 'value for console commands' I assume you mean the value to use in Bukkit.dispatchCommand(...) as the console, which is Bukkit.getConsoleSender();
     
  3. Offline

    jusjus112

    SmooshCakez
    i mean, in the JSON message form!
    So, i have the tellraw JSON message, and dont know what else to put in run_command for console sender
     
  4. Offline

    fireblast709

    jusjus112 you can't. All you can do is create a new command that performs a command as console.
     
  5. Offline

    jusjus112

Thread Status:
Not open for further replies.

Share This Page