Coding Error -

Discussion in 'Plugin Development' started by CoryDoesGaming, Oct 1, 2014.

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

    CoryDoesGaming

    Okay so, I have coded a plugin, but it keeps telling me my plugin.yml Main isn't loading or something, Here's my YML:

    name: Tutorial
    main: main.Cory.tutorial.Tutorial
    version: 1.0
    commands:
    hub:
    description: Our first command!
    usage: /hub [player]


    I have no idea what's actually going wrong. Please help when you can! :D
     
  2. Offline

    Totom3

    CoryDoesGaming The name and package name of the Main class must match with what you entered in plugin.yml :

    main: main.Cory.tutorial.Tutorial

    The main class should be 'Tutorial' and located in package 'main.Cory.tutorial'
     
  3. Offline

    ToPoEdiTs

    you use eclipse?
     
  4. Offline

    Jaaakee224

  5. Offline

    CoryDoesGaming

    alright Thanks,

    Yes! :) Eclipse Standard

    I'll see what I did, Thanks! :)

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

    teej107

    No tabs. Make sure you have even spacing. Put your command name at 2 spaces and anything that is part of that command at 4 spaces. Make sure your main: in your yml has the fully qualified class name of your JavaPlugin extended class. It is case sensitive.

    EDIT: Ninja'D
     
  7. Offline

    fireblast709

    Don't let standards limit and define you. You should try out different IDEs as well (IntelliJ and Netbeans being two very popular alternatives)
     
  8. Offline

    CoryDoesGaming

    Check The Conversation I started with you! :) teej107

    I know I know, I thought I'd start off small and then, get to know the bigger Coding Cores, If you understand lol :) fireblast709

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
Thread Status:
Not open for further replies.

Share This Page