Solved Bukkit API 1.8 R2

Discussion in 'Plugin Development' started by Uhlala, Feb 26, 2017.

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

    Uhlala

    Where do I get the 1.8 R2 API ? I am trying to run a plugin in my server but it says that :


    Code:
    This server is running CraftBukkit version git-Bukkit-7019900 (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
    [12:49:19 ERROR]: Could not load 'plugins\TitlesAPI-1.5.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: net/minecraft/server/v1_8_R2/Packet
     
  2. Online

    timtower Administrator Administrator Moderator

    @Uhlala Is that your plugin?
    And your server is running a slightly older version as the plugin requires.
    Plugin is good,server isn't.
     
  3. Offline

    Uhlala

    It's not my plugin. I uploaded an API called TitlesApi in my Java Project (Eclipse). To run my Plugin , I have to put the TitlesAPI in the Plugins folder. But it's not working because it requires 1.8 R2 which I cannot find anywhere
     
  4. Online

    timtower Administrator Administrator Moderator

    @Uhlala You need to build on the craftbukkit version that you are running.
    Then just remove the bad imports and import the new ones.
     
  5. Offline

    Uhlala

    @timtower How do I do it? xd
     
  6. Offline

    Zombie_Striker

    @Uhlala
    Please do not run outdated servers. If you would like to know why, please read this thread. Update your server to 1.11.

    Is this what you downloaded? It is not limited to 1.8. You can use this on 1.10 and 1.11 servers as well. Not only that, but 1.11 already has this method built into it:
    Code:
    //Use this to send titles in 1.11
    Player#sendTitle("Top Message", "Bottom Message");
     
  7. Offline

    Uhlala

    @Zombie_Striker
    Well, I did what you said and appears that:

    Code:
     This server is running CraftBukkit version git-Bukkit-cb61ac0 (MC: 1.11.2) (Implementing API version 1.11.2-R0.1-SNAPSHOT)
    [13:38:55 INFO]: Checking version, please wait...
    [13:38:56 INFO]: You are running the latest version
    rl
    [13:39:25 INFO]: CONSOLE: Please note that this command is not supported and may cause issues when using some plugins.
    [13:39:25 INFO]: CONSOLE: If you encounter any issues please use the /stop command to restart your server.
    [13:39:26 ERROR]: Could not load 'plugins/TitlesAPI-1.5.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: net/minecraft/server/v1_8_R2/Packet
     
  8. Offline

    mythbusterma

    @Uhlala

    The Titles plugin isn't going to work on a version other than 1.8.2
     
  9. Offline

    Zombie_Striker

    @Uhlala
    TitlesAPI is not the same thing as TitleAPI. Not only that, but you do not need to use a separate plugin for Titles. Just use Player#sendTitle
     
Thread Status:
Not open for further replies.

Share This Page