Create a variable from a string to use in a command?

Discussion in 'Plugin Development' started by jogeta_masude, Jan 18, 2012.

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

    jogeta_masude

    Hi I'm new to java, but i have been practicing non stop! What i'm trying to do is when someone types a command for example

    /command <user>

    I want to be able to convert the second part of the command which would be the <user> from a string to a variable that I can then use later on, but I can't figure out how to do this. Any help/suggestions/places to look?
     
  2. Offline

    SirTyler

    the <user> would be an arg from the onCommand() function. so it would already be a var, but if you want you can always set an external var to equal that var.
     
Thread Status:
Not open for further replies.

Share This Page