Solved Problem with loading plugin

Discussion in 'Plugin Development' started by Tails_Prower_24, Jan 2, 2016.

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

    Tails_Prower_24

  2. Offline

    Zombie_Striker

    Code:
           myPluginLogger.info("My plugin is being started");
            myPluginLogger.warning("Enabling plugin! Watch out!");
    
    First, Bukkit already logs your server.

    Code:
    package com.minigame;//with a class of "customminigame"
    
    This is your actual package.
    Code:
    com.minigame.customminigame.customminigame
    
    This is the package you're providing.

    Two important notes:
    1. Class names should start with a capital letter.
    2. The package name you're providing and the package thats actually are different
     
    Tails_Prower_24 likes this.
  3. Offline

    Gorbit99

    You don't own the domain minigame.com, so you can't use com.minigame as a packagename. Use me.tailsprower or something like that. Also, if your package name is not uniqe (like com.minigame as an example), the plugin will not be compatible with other plugins, that are using this package too, use something like me.tailsprower.minigame instead
     
  4. Offline

    Tails_Prower_24

  5. Offline

    Gorbit99

    Naming conventions, don't use uppercase letters in package names. You still don't own the domain Tails_Prower_numberhere.com, use me.tailsprower<numberhere> instead or setup a github page using this: https://pages.github.com/ tutorial. A github page is also more flexible because you can create a page with all your plugins, info about yourself and include your own artwork and while .me domainname exists and it can be taken, you will have a domain, that is yours. Also, include the name of the current plugin you're developing in the package name to make it uniqe.
    Do you have a plugin.yml?
     
  6. Offline

    Zombie_Striker

    Code:
    com.Tails_Prower_24;// .Customminigame
    Is this what you have in your plugin.yml ? com.Tails_Prower_24.Customminigame
     
  7. Offline

    Gorbit99

    @Zombie_Striker
    That would throw an error, that the class can't be found. It doesn't even try to enable the plugin from what I see, so a missingconfig file yould be the problem
     
  8. Offline

    Tails_Prower_24

    @Gorbit99 @Zombie_Striker

    Yes I do have a yml file

    find it here: http://pastebin.com/Fpma8SU5

    Still not working.

    @Zombie_Striker Do I need "com.tailsprower24;// .Customminigame" that exactly in my plugin.yml? I renamed the package to "com.tailsprower24"

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jan 2, 2016
  9. Offline

    Zombie_Striker

    @Tails_Prower_24
    You misspelled "Bump". Please only bump your thread only after 24 hours.

    //Config.yml
    com.tailsprower24.Customminigame

    //Your plugins actual package path.
    com.Tails_Prower_24.Customminigame
     
  10. Offline

    Tails_Prower_24

    Fixed! The "main:" in the plugin.yml MUST be the same as the package and the class

    this was my package:
    Code:
     com.tailsprower24 
    This was my class
    Code:
     Customminigame 
    This is what must be in the plugin.yml under the "main:" section
    Code:
     (package name).(class name) 
    Make sure that the class name starts with an uppercase letter.
     
  11. Offline

    JoaoBM

    @Tails_Prower_24 Mark the thread as solved if you managed to find a solution.
     
Thread Status:
Not open for further replies.

Share This Page