Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Error on plugin Load

Comments in 'Plugin Development' started by Xirano, Oct 20, 2015.

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

    Xirano New Member

    Joined:
    Aug 2, 2015
    Posts:
    17
    Minecraft User:
    xirano78
    Hello all !
    I need help for the Main ;)
    Wen i make my plugin or edit the main i get error ! (Using DevTools and not phared plugin)
    Thx
  2. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    Give us the error and the code :)
  3. Xirano
    Offline

    Xirano New Member

    Joined:
    Aug 2, 2015
    Posts:
    17
    Minecraft User:
    xirano78
    The error is
    2015-10-20 [15:22:45] [Server thread/CRITICAL]: ClassNotFoundException: "Class xirano\mlp\Mobs not found" (EXCEPTION) in "/src/spl/BaseClassLoader" at line 131
  4. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    plugin.yml, Main.php.. tell us them so we see what's wrong ;)
  5. Xirano
    Offline

    Xirano New Member

    Joined:
    Aug 2, 2015
    Posts:
    17
    Minecraft User:
    xirano78
    Here is the Plugin.yml

    name: MaarioMobsByXiranoMc
    main: xirano\mlp\Mobs
    version: "2.5 Beta Finale"
    api: 1.12.0
    load: POSTWORLD
    author: XiranoMc
    commands:
    MlpSpawn:
    usage: false
    description: "Commande pour faire spawn des mobs !"
    aliases: [ent, entity]
    permission: MaarioLandMobs.command
  6. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    namespace on Main? or you did not create main file yet? and put them on [php ] brackets.
  7. Xirano
    Offline

    Xirano New Member

    Joined:
    Aug 2, 2015
    Posts:
    17
    Minecraft User:
    xirano78
    The main file is here

    Attached Files:

  8. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    .. The mob.php -.-
  9. Xirano
    Offline

    Xirano New Member

    Joined:
    Aug 2, 2015
    Posts:
    17
    Minecraft User:
    xirano78
    What ? You want the File Nommed Mobs ? Or I rename it Main ?
  10. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    Well.. i mean the FILE THAT IS CALLED MOBS.PHP AS IN PLUGIN.YML!!!!!!
  11. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    show your namespace and class name decleration.
  12. Xirano
    Offline

    Xirano New Member

    Joined:
    Aug 2, 2015
    Posts:
    17
    Minecraft User:
    xirano78
    This ? Screenshot_2015-10-21-13-17-12.png
  13. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Where is this part?
    PHP:
    class Main extends PluginBase implements Listener {
  14. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    When Main.php is, as you said, the Main File, why did you set Mobs.php in the plugin.yml as the Main File?
    Taha_The_Hacker likes this.
  15. CavinMiana
    Offline

    CavinMiana Active Member

    Joined:
    Aug 26, 2015
    Posts:
    101
    Minecraft User:
    CavinMiana
    Ahhhhh it's burning my eyes :p *your code lol
  16. Xirano
    Offline

    Xirano New Member

    Joined:
    Aug 2, 2015
    Posts:
    17
    Minecraft User:
    xirano78
    Fixed !
Thread Status:
Not open for further replies.

Share This Page

Advertisement