Plugin development problem

Discussion in 'Plugin Development' started by Sladd_Cool, Mar 3, 2014.

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


    I am quite new to plugin development and i am working on a kitpvp plugin for my server but i have one error that i can't figure out or find on google how to fix so thats why I am making this thread.
    The error says "The method command() is undefined for the type Main"
    Heres a part of the code: public class Main extends JavaPlugin {
    private Events Events = new Events(this);
    ArrayList<String> Pvp = new ArrayList<String>();
    ArrayList<String> Fisherman = new ArrayList<String>();
    ArrayList<String> kitused = new ArrayList<String>();

    public void onEnable() {
    The "commands();" part has the error
    It's probably an easy fix and many of you will facepalm reading this but please help.
  2. Offline


    I haven't got any help yet so i tahged you:)
  3. Offline


    Like the error says; commands() is not a Method, and theredore cannot be executed.
Thread Status:
Not open for further replies.

Share This Page