My plugin wont work help :(

Discussion in 'Plugin Development' started by whickedarkness, Nov 9, 2013.

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

    whickedarkness

    Hello my name is frank and i have been working on this plugin i created the plugin.yml and everything but it still does not work the server is running on 1.6.4 help this is the error i get


    http://pastebin.com/qQXRmKeD

    someone help please D;
     
  2. Offline

    Seadragon91

    Ok the error says, that the server couldn't find your main class. Please post the plugin.yml and from your main class code the line that includes package.
     
  3. Offline

    whickedarkness



    here it is

    name: HeadShot
    author: Whickedarkness
    main: Headshotme
    version: 1.6.4
    database: false
    description: >
    When you shoot a player "You shot player"

    and here is what my plugin looks like

    http://pastebin.com/AMKy7Prt
     
  4. Offline

    Seadragon91

    Good, change the main point to:
    main: Headshotme.Headshot
     
  5. Offline

    whickedarkness


    alright


    THANKS SO MUCH

    may i ask when i make another plugin how do i know what to put in the main

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  6. Offline

    Seadragon91

    You are welcome, glad that your problem is fixed ;).
     
  7. Offline

    whickedarkness


    may i ask when i make another plugin how do i know what to put in the main
     
  8. Offline

    Mikaelrk2

    You need to make a new package with the name of "me.your name ".
    "your name" is your default in real life name.
     

  9. The main: field points to the main class of your plugin. The main class needs to contain onEnable() and extend JavaPlugin.

    For example, the plugin I'm working on has the following classes:

    InventoryLog
    PlayerInv
    PlayerInvTask

    InventoryLog contains the onEnable() method and also extends JavaPlugin, so my plugin.yml file looks like this:

    Name: InvLog
    Main: someguy.inventorylog.InventoryLog
     
  10. Offline

    drtshock

Thread Status:
Not open for further replies.

Share This Page