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
3
votes
4 answers

Bukkit ConfigurationSection getKeys

I have a bukkit config file that looks like this: effected mobs: skeleton: lower hp limit: 0 upper hp limit: 0 zombie: lower hp limit: 0 upper hp limit: 0 spider: lower hp limit: 0 upper hp limit: 0 I'm trying to get a…
donsavage
  • 387
  • 2
  • 4
  • 11
3
votes
2 answers

How do I pass instances of the main class to multiple listeners?

So, I've been working on a plugin. It was going great, until I stumbled on an issue. I'm using separate Listener (implements Listener) classes to manage my events, but for some of them, I need to access JavaPlugin methods, like for getting the…
Incomp
  • 63
  • 2
  • 7
3
votes
2 answers

Merging two Config.yml Files in Java?

While programming my bukkit plugin, i realized that i needed to have my own config file so i can add comments into the file. I also needed to be able to update the config (if it has been created and is old). I had also recently finished a simple…
Hunter Mitchell
  • 7,063
  • 18
  • 69
  • 116
3
votes
1 answer

Communication Between Bukkit Plugins on Separate Server

I was wondering if there is way to have two of the same bukkit (Minecraft) plugins communicate over something like Socket? What I would like to do is if someone executes a command, that command will then be executed and then sent to the other…
Geeky121
  • 75
  • 1
  • 1
  • 9
3
votes
1 answer

64 bit Java is not installing properly

Now I am not a very experienced programmer or computer person, so sorry if this is a repetitive problem that experts encounter here. So I have a Bukkit Minecraft server that I am wishing to expand, here is the code that I am using to run the server:…
Tastybot
  • 55
  • 9
3
votes
1 answer

Node.js: How to write to the java-childprocess-stdin

I've written a node.js-server who could spawn a java childprocess from a webinterface and display the stdout of the jar to the interface. now I need to send some commands over the stdin to the jar and thath's my problem: I'm spawning the server: jar…
Daniel Heinen
  • 45
  • 2
  • 5
3
votes
1 answer

Minecraft Bukkit Sign Manipulation

I am working in Bukkit, and basically I need to make a method so that when a sign is right-clicked, it does something. In this case it'll be an inventory of kits, but I'll cross that bridge when I come to it. Right now I am stumped as to how to…
Ty Brantner
  • 85
  • 1
  • 7
3
votes
1 answer

How can I set/get a HashMap in a YAML configuration file?

I am making my first bukkit plugin. I would like to programmatically create a YAML file that represents a HashMap. How can I set and get this data structure? The HashMap parameters look like , where Signature is my class that…
BLuFeNiX
  • 2,496
  • 2
  • 20
  • 40
3
votes
5 answers

List adding and removing elements

I'm currently programming a bukkit plugin (bukkit is a minecraft server type ;) ) and there, you've got a method in a class named YamlConfiguration that has following method: public List getList(String path) My problem is: I'd like to add and/or…
mezzodrinker
  • 998
  • 10
  • 28
3
votes
3 answers

Is there a way to attach data to a Bukkit ItemStack?

Ok, I am trying to attach data to a Minecraft Bukkit ItemStack. I would like it so the entity that it drops would also have it, but that is optional. If I can not do this directly, is there some other way I can keep a piece of data (java int, java…
Tom
  • 846
  • 5
  • 18
  • 30
3
votes
4 answers

Is it possible to use Bukkit for Minecraft to define a new kind of mob?

I'd like to write a Minecraft mod which adds a new type of mob. Is that possible? I see that, in Bukkit, EntityType is a predefined enum, which leads me to believe there may not be a way to add a new type of entity. I'm hoping that's wrong.
Peeja
  • 13,683
  • 11
  • 58
  • 77
3
votes
2 answers

Scanner nextLine() NoSuchElementException

I've been programming a Bukkit plugin for a while now, and this one issue has me stumped. I'm trying to read a line from a file using a Scanner, and add everything on the line before ": " to a HashSet. Every time I try, I get a…
Theway2cool1
  • 85
  • 2
  • 2
  • 6
3
votes
6 answers

HashMap saving with ObjectOutputStream

To save teleportation points on command, I have an HashMap: public HashMap mapHomes = new HashMap<>(); Which is accessed like this: if(cmd.getName().equalsIgnoreCase("sethome")){ Location loc = player.getLocation(); …
brotheroftux
  • 87
  • 1
  • 2
  • 9
2
votes
2 answers

Variable not resetting when command is ran again

I have a piece of code that outputs the player's total experience. The issue is that the XP value it outputs doesn't change if the actual XP does. For example, at level 50,000 the XP was 2,147,483,647. When level dropped to 4, the XP value stayed…
Erickj92
  • 1,193
  • 2
  • 7
  • 5
2
votes
1 answer

Buffered pipe in bash

I'm running a Bukkit (Minecraft) server on a Linux machine and I want to have the server gracefully shut down using the server's stop command and the computer suspend at a certain time using pm-suspend from the command line. Here's what I've…
xsznix
  • 2,535
  • 2
  • 17
  • 14