Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Java] How do I convert a string into code?
#3
Considering that the code would have to be obfuscated anyway, throwing a bit more work into it at least, I think I may end up doing a massive match-list thing that's easier for end users to understand.

Like instead of "new ItemStack(Item.paper, 1, 0)", just plain "paper" is in the config file and the code adds "new ItemStack(Item.paper, 1, 0)" to the array.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)