JEFF Media Developer Blog

Java & Spigot development

Menu
  • Blog
  • Main Website
  • Privacy Policy
Menu

Bukkit vs. Spigot-API vs. CraftBukkit vs. Spigot

Posted on August 30, 2022September 18, 2022 by mfnalex

Some people are confused about what the difference between Bukkit, Spigot-API, CraftBukkit and Spigot is, so I’ll try to explain.

Bukkit is the basic API

Bukkit contains all the usual interfaces and enums, like org.bukkit.entity.Player or org.bukkit.Material. For most plugins, this is all you need. It does not contain any implementations, meaning: you cannot “run” it directly.

Spigot API is an improved version of Bukkit

The Spigot API is basically just “Bukkit + some additional features”. It for examples includes the org.bukkit.entity.Player.Spigot interface, which for example also allows you to send action bar messages. It also does not contain any implementations.

CraftBukkit is the implementation of Bukkit

CraftBukkit is the implementation of Bukkit. It contains everything that Bukkit contains, plus the original Minecraft Server code, plus the actual implementation of the Bukkit interfaces.

For example, CraftBukkit contains the org.bukkit.craftbukkit.v<version>.entity.CraftPlayer class, which implements org.bukkit.entity.Player. Whenever you are accessing the usual Player interface in your plugin, you are actually dealing with a CraftPlayer instance.

Let’s take a look at what happens if you use somePlayer.sendMessage(“asd”):

  1. You call somePlayer.sendMessage(“asd”)
  2. somePlayer is actually an instance of CraftPlayer, which overrides the sendMessage(String) method, so you’re actually calling this implementation
  3. CraftPlayer’s sendMessage(String) method delegates the “sending a message” logic to the underlying NMS Player object

So, one could say that the CraftPlayer class is basically a wrapper for the NMS Player class, exposed by the Bukkit Player interface

Spigot is the implementation of Spigot-API

Spigot is the same as CraftBukkit, but it doesn’t only implement the Bukkit API, but also the Spigot API. For example, you wouldn’t find the org.bukkit.entity.Player.Spigot class in CraftBukkit, but you’d find it in Spigot. Additionally, it includes some performance improvements and additional configuration options over CraftBukkit.

TL;DR

Bukkit is the basic API. CraftBukkit is a working server software that implements Bukkit, i.e. lets you run Bukkit plugins.

Spigot-API is an improved version of Bukkit. Spigot is a working server software that implements Spigot-API, i.e. lets you run Bukkit and Spigot-API plugins.

Join my Discord Server for feedback or support. Just check out the channel #programming-help πŸ™‚

2 thoughts on “Bukkit vs. Spigot-API vs. CraftBukkit vs. Spigot”

  1. ΠΏΠΎΡ‡ΠΈΠ²ΠΊΠΈ Π±Π°Π»ΠΈ says:
    April 29, 2023 at 1:13 am

    I’m really loving the theme/design of your weblog.
    Do you ever run into any browser compatibility issues?
    A few of my blog visitors have complained about my blog not working correctly in Explorer but looks great in Safari.
    Do you have any tips to help fix this issue?

    Reply
    1. mfnalex says:
      May 14, 2023 at 6:56 pm

      Buy a proper theme. I’m using Dark Minimalistblogger.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Solution: Creating a Datastore on Proxmox Backup Server fails at “Chunkstore create” (“File exists” or “Too many links”)
  • Don’t disable dependency-reduced-pom.xml
  • Maven Multi-Module setup for supporting different NMS versions
  • How to read or block Spigot’s console output
  • Why IntelliJ complains about your pom.xml file

Recent Comments

  1. mfnalex on Creating custom heads in Spigot 1.18.1+
  2. Timon Coucke on Maven Multi-Module setup for supporting different NMS versions
  3. 3ricL on Creating custom heads in Spigot 1.18.1+
  4. Ryan Leach on Why the GPL does NOT directly apply to all Spigot plugins
  5. Azzy on NMS: Use Mojang maps for your Spigot plugins with Maven or Gradle

Archives

  • December 2024
  • August 2023
  • July 2023
  • June 2023
  • February 2023
  • January 2023
  • October 2022
  • August 2022
  • March 2022
  • December 2021
  • October 2021
  • August 2021
©2025 JEFF Media Developer Blog
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking β€œAccept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT