Getting command results

Discussion in 'Plugin Development' started by Warreo, Oct 28, 2013.

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

    Warreo

    I have no idea if this is even remotely possible, but I'm trying to make a player run a command (which I already know how to do) and get the result of running said command. For example having a player dispatch the command /balance and getting the result, assumingly as a string, and again not sure if possible, without displaying any of it to said player. Please note I'm not looking for the economy object that Vault implements but the resulting string of running a said command.
     
  2. Offline

    1Rogue

    You would simply need to write code that would do the checking of the balance without running the command itself.
     
  3. Offline

    Warreo


    Unfortunately, that's what I figured. But just curious if it was remotely possible.
     
  4. Offline

    1Rogue


    It should practically a copy/paste from your command, really.
     
  5. Offline

    Warreo


    Well it wasn't so much I was trying to get results from my own commands, but more other plugins assuming said command returned only a player message.
     
Thread Status:
Not open for further replies.

Share This Page