Want to know something...

Discussion in 'Plugin Development' started by Sakul6499, Aug 19, 2014.

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

    Sakul6499

    Hey Guys!
    I want to know if it Possible to run a methode with an String in it.
    The Orginal methode must run so:
    [NAME].[What?].[What to do?]
    // Manager.PARTICLE.display(...)
    // Manager.KICK.now(...)

    Is it Possible to solve it so?!
    Manager. + STRING + .display

    I managed it with 'IF' but is it Possible to make it like so?

    Thx
     
  2. Offline

    Necrodoom

    I'm not sure what you are trying to do. PARTICLE and KICK in this context would be variables found in Manager class. Explain what you are trying to do.
     
  3. You can use reflection, or if it's an enum, it has an method to get the name from a string.
     
  4. Offline

    Sakul6499

    ähm sry guys...

    I just want to know something that is to easy to ask and ... year

    Forgot my Question please
     
Thread Status:
Not open for further replies.

Share This Page