Solved How to get int from the config to an event

Discussion in 'Plugin Development' started by Jumb_1907, Feb 4, 2017.

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

    Jumb_1907

    Hey,

    How to get an int from my config to file to a class? (not my main class)

    Thanks
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Jumb_1907 Give the second class a constructor that has the main class as parameter.
    Store that instance, then you can use plugin.getConfig()
     
  3. Offline

    Jumb_1907

    Can you give me an example?
     
  4. Offline

    timtower Administrator Administrator Moderator

Thread Status:
Not open for further replies.

Share This Page