Local jar file dependency error

Discussion in 'Plugin Development' started by 12Imix34, Jul 7, 2024.

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

    12Imix34

    I am using CraftBukkit in my plugin, but i get an error saying the imports do not exists. When I type, for example, org.bukkit.craftbukkit.entity, it wont show code completions (maybe thats part of the problem) but it will only highlight the line in red until i have typed the entire thing out.

    When I also try to type CraftPlayer and hovering it to click "Import Class", it wont import it like the rest, instead it would rename CraftPlayer into org.bukkit.craftbukkit.entity.CraftPlayer.

    I have included a systemPath for the dependency in pom.xml:
    Code:
    <dependency>
        <groupId>org.bukkit</groupId>
        <artifactId>craftbukkit</artifactId>
        <version>1.19.4</version>
        <scope>system</scope>
        <systemPath>${project.basedir}/src/main/resources/lib/CraftBukkit.jar</systemPath>
    </dependency>

    the errors i get are:
    Code:
    java: package org.bukkit.craftbukkit.entity does not exist
    java: package net.minecraft.server.level does not exist
    java: package net.minecraft.server.network does not exist
     
Thread Status:
Not open for further replies.

Share This Page