Raycast issue

Discussion in 'Plugin Development' started by Yzzie_Crystal, Dec 7, 2019.

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

    Yzzie_Crystal

  2. Online

    timtower Administrator Administrator Moderator

    @Yzzie_Crystal CraftEntity is a NMS class.
    You need to add the server itself to the build path instead of the Bukkit.jar
     
  3. Offline

    Yzzie_Crystal

    What's an NMS class, and how would I add the server? Do I just add the entire folder?
     
  4. Online

    timtower Administrator Administrator Moderator

    @Yzzie_Crystal Net.Minecraft.Server
    Minecrafts own internals.
    And the server jar, just like with the Bukkit.jar
     
  5. Offline

    Yzzie_Crystal

    ...Looking at it now, I may have posted this in the wrong place.
    I'm really new to the whole plugin stuff (and servers, too), and never understood the connections/differences between spigot/bukkit/paper and the like. The problem is that I don't have a server jar because I'm running spigot. The code seems to have a lot of Bukkit stuff in it (imports from org.bukkit.net and stuff), so I thought this would be the right place.
    Sorry for the inconvenience, then, I'll look for help other places.

    Edit: Wow yeah spigot has it's own forums. I'm really sorry.
     
    Last edited: Dec 7, 2019
  6. Online

    timtower Administrator Administrator Moderator

    @Yzzie_Crystal You do realize that the spigot.jar is the server jar right? This issue has the same fix for both types.
     
  7. Offline

    Yzzie_Crystal

    Oh, what? I do have the spigot.jar in the build path, though.

    Edit: No, nevermind, I didn't. Thank you for your help!

    Edit 2: I added it but it didn't work, it still says that CraftEntity cannot be resolved to a type.

    Edit 3: After restarting my IDE, it works. So, thank you, still.
     
    Last edited: Dec 7, 2019
Thread Status:
Not open for further replies.

Share This Page