Solved SignListener can't get config

Discussion in 'Plugin Development' started by HungerCraftNL, Aug 9, 2013.

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

    HungerCraftNL

  2. Offline

    Trevor1134

    HungerCraftNL Are you trying to get the config in a different class than the one you put you enable/Disable in? If so you need to create a constructor.

    Code:
    private RedBull plugin;
     
    public CLASS_NAME(RedBull plugin){
      this.plugin = plugin;
    }
    Than to get the config:

    Code:
    plugin.getConfig().....
     
    HungerCraftNL likes this.
  3. Offline

    HungerCraftNL

    Thank you, it's ready for a test now :D

    Edit: Forgot to register the event in the main class :p
     
    Trevor1134 likes this.
  4. Offline

    Trevor1134

Thread Status:
Not open for further replies.

Share This Page