Local jar file dependency error

Discussion in 'Plugin Development' started by 12Imix34, Jul 7, 2024 at 6:43 AM.

  1. Offline


    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:

    the errors i get are:
    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

Share This Page