Questions tagged [bukkit]

Bukkit is a free, open-source variant of the vanilla Minecraft server that allows programmers to extend it using plugins written in Java.

Bukkit is a Minecraft server variant that completely changes how running and modifying a Minecraft server is done, making managing and creating servers easier and providing more flexibility. It's focused on performance, ease-of-use and extreme customisability.

Bukkit provides you with the tools necessary to completely shape your server and makes it easy to maintain it through the use of a built-in plugin install, uninstall and updating system.

Plugin developers can write plugins to modify the game's behavior, adding new features into the game using the Bukkit API. They can then share their plugins with the community.

See also:

As of Aug 21, 2014 at 8:42 AM, Bukkit has been discontinued and CraftBukkit (the actual server application) has been taken down due to DMCA requests.

Now, Spigot is a continuation of Bukkit and can be used in place of CraftBukkit.

Spigot

Spigot is a modification of the original CraftBukkit project, just made more efficient. It is a huge collection of various tweaks to help increase performance, and make it more flexible as server software.

It still implements the Bukkit API, allowing most plugins originally developed for CraftBukkit to be reverse-compatible with the Spigot platform.

See also:

1809 questions
33
votes
5 answers

Should a database connection stay open all the time or only be opened when needed?

I have a bukkit plugin (minecraft) that requires a connection to the database. Should a database connection stay open all the time, or be opened and closed when needed?
aman207
  • 1,068
  • 2
  • 11
  • 19
16
votes
2 answers

Trying to shoot a bullet in a 3D world. Experiencing an odd offset in x and z

Alright, so I am using Bukkit API (Minecraft), which should not be too much of a problem in this as it is used minimally. So a Location contains world, x, y, z, yaw and pitch. This may come in handy, but I doubt it. My problem is that I go to shoot…
JNorr44
  • 276
  • 1
  • 2
  • 11
13
votes
2 answers

IllegalArgumentException: Bound must be positive

I get an error saying that my bound must be positive. Here is the line I get it on: inv.setItem(i, items.get(r.nextInt(items.size()))); As far as I know, it comes from the part where I request a random integer from the list of items. This is how I…
Guus Huizen
  • 165
  • 1
  • 2
  • 9
13
votes
4 answers

Run Configuration to Debug Bukkit/Minecraft Plugin in IntelliJ IDEA?

I'm helping my kid learn to create Minecraft plugins, although I don't have much experience with Java or IDEA. Everything is working well so far, but in order to execute our code, we have to: Make the project in IDEA (output path is set to…
Craig Stuntz
  • 125,891
  • 12
  • 252
  • 273
11
votes
1 answer

How to make a function be called every 2 ticks

I'm making a bukkit plugin for my friend, and I want to find out how to call a function every 2 ticks (1/10th of a second).
Henry
  • 342
  • 1
  • 2
  • 13
9
votes
1 answer

Making the module jdk.incubator.httpclient visible at runtime

Question How can I make the classes from the module jdk.incubator.httpclient visible at runtime? What I'm Using Java 9 + Maven + HttpClient jdk.incubator.http.HttpClient Problems => Maven build failing when using jdk.incubator.HttpClient. Fixed with…
Caleb Bassham
  • 1,874
  • 2
  • 16
  • 33
9
votes
1 answer

Sellable Menu Kit field changes when two or more references of the class are created (with GitHub)

I have been experiencing an odd bug in my Spigot/Bukkit plugin lately which totally does not make any sense. Please note that this question may be long due to the fact that the project I am working on is fairly big and since the source code…
Thanos Paravantis
  • 7,393
  • 3
  • 17
  • 24
8
votes
1 answer

java.lang.NoSuchMethodError when it is clearly there

General Info: I am using the Bukkit/Spigot API in version git-Spigot-1d14d5f-ba32592 (MC: 1.8.3) (Implementing API version 1.8.3-R0.1-SNAPSHOT), IntelliJ IDEA 14.1.3 and compile with its default compiler. The java jdk version is 1.8.0_25. So when I…
8
votes
2 answers

Designing a Bukkit plugin framework - Child command handling via annotations

Some words to introduce the situation. Context: To ease my workflow while writing Bukkit plugins (the basically de-facto API for the Minecraft Server until Sponge gets it's implementation going), I've decided to put together a "mini-framework" for…
ZKF
  • 91
  • 1
  • 5
7
votes
1 answer

How to use Minecraft's WorldEdit undo stack in a Bukkit mod

I am trying to update blocks in Minecraft within a Bukkit mod and be able to //undo those changes within Minecraft. I can change the block but I cannot //undo the change. I must be missing something simple since Google hasn't helped me find a…
Ian
  • 841
  • 5
  • 10
7
votes
2 answers

ClassNotFoundException on org.apache.http.ssl.TrustStrategy

I'm trying to run a plugin that makes HTTP/HTTPS POST requests. On it its declared the needed dependencies, that is httpclient and httpcore. I'm using versions 4.5.3 and 4.4.6 respectively. Although imported correctly all (I mean), I got this error…
bbruno5
  • 111
  • 1
  • 4
  • 9
7
votes
4 answers

Check if Object exists in ArrayList in Java

I have the following List of objects: private List teamlist = new ArrayList(); And I'm adding objects to the list like so: teamlist.add(new MCWarTeam(args[0], joinkey)); Now the objects in the list have no name, but can be…
Martin
  • 453
  • 3
  • 5
  • 14
7
votes
2 answers

How do I open my own inventory via a Event?

I am trying to open up my inventory whenever I pick up an item. This is in Bukkit. Here is the event so far, the arguments for player.openInventory are empty. @EventHandler public void blank(PlayerDropItemEvent e){ Player player =…
Mark Johnson
  • 127
  • 5
7
votes
2 answers

Can a synthetic or bridge method be used to smooth an int -> double API change?

Java has special markers on methods called synthetic and bridge. JLS 13.1.7, "Any constructs introduced by a Java compiler that do not have a corresponding construct in the source code must be marked as synthetic ..." So synthetic methods are…
Riking
  • 2,389
  • 1
  • 24
  • 36
7
votes
3 answers

Blank file after writing to it?

So I have been trying to write a Bukkit plugin for a friend of mine, and for some reason the config generation is not working. The code in question is below, and I will be happy to add any code that people need to help me out with this. When I run…
Nic
  • 6,211
  • 10
  • 46
  • 69
1
2 3
99 100