Why is plugin returning null?

Discussion in 'Spigot Plugin Development' started by TheGamerPlayz, May 17, 2016.

  1. Can you show us the stacktrace?
  2. in your onEnable do plugin = this;
  3. True... How I haven't see this. x)
  4. Set the
    Code (Text):
    plugin = this;
    at the top of your method.
  5. remov ethe static off your public static Main plugin;
    use constructors getters and setter.
  6. Why do I need getters and setters?
  7. @TheGamerPlayz you have 3+ instances of the Manager class. Keep 1 reference in your main class and create and use a getter for it
  8. Ok, so with a little experimenting I learned that I am not calling the plugin correctly in any of my files.