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
1 answer

How to change jar output directory when running as maven install in Eclipse?

I am making a Minecraft plugin for Bukkit 1.8, and everything works fine. I right click on the project name > Run As > Maven install. It outputs the .jar file to the target directory. I then copy the file to the plugins folder of my Minecraft…
marisusis
  • 342
  • 4
  • 20
3
votes
2 answers

Sending a PluginMessage from BungeeCord to a SpigotServer

I tried to send a message via the "BungeeCord Plugin Messaging Channel" from the Proxy to a Server. I used the following Code: In the BungeeCord Plugin: ByteArrayOutputStream bb = new ByteArrayOutputStream(); DataOutputStream outt =…
LeWimbes
  • 517
  • 1
  • 10
  • 25
3
votes
1 answer

Bukkit and Vault: Is there a way to loop through every single player's balance?

I am creating a Bukkit plugin where when a command is run, all player's balances will be modified (offline ones, too). I know it would be easy to do this with the online players, and using: economy.withdrawPlayer(, ); by simply…
Dr_Derek
  • 73
  • 9
3
votes
3 answers

Creating instances of the main class

I have been told that if I want to use an instance of my main class, I should do it with a constructor: private plugin; public ( plugin) { this.plugin = plugin; } Why is this better (or how does it…
Leo H.
  • 53
  • 7
3
votes
3 answers

How do I add chat colors?

I want to add color formats to my plugin (like essentials has colors in chat). For example, &6test would become "test" in gold. I almost added those colors, but I have a problem. It deletes the whole message and leaves the green test message. How do…
Reaper123
  • 109
  • 4
  • 8
3
votes
1 answer

Bukkit drop exploded blocks

I am using the Bukkit 1.8.3 API with Java 7. I have code that explodes blocks upon when you break it. It launches an explosion that breaks blocks around the block you just broke. My problem is that the exploded blocks are not dropping, just the one…
JarFile
  • 318
  • 2
  • 8
  • 30
3
votes
2 answers

Bukkit remove item from inventory

I am trying to check to see if a player has an item in their inventory, and remove one of them if they do. Here is what I have now: Material ammomat = parseMaterial(plugin.getConfig().getString("game.ammo_material")); ItemStack ammo = new…
IcyRelic
  • 167
  • 1
  • 3
  • 14
3
votes
2 answers

Send data from php to java

I have found quite a lot of other posts on this topic but none seem to have the answer I need. I have written a Bukkit plugin for Minecraft that can send post data to a PHP page and get a return from the page. Now the one thing I can't figure out. I…
Parker Jones
  • 83
  • 2
  • 10
3
votes
2 answers

Eclipse not showing classes from an external JAR file

I am currently trying to develop a plugin using the Bukkit API in Eclipse. However, it seems I cannot import specific classes from the API jar file. If I open the jar file up and look in the list of classes, the classes are there. However, eclipse…
DonyorM
  • 1,760
  • 1
  • 20
  • 34
3
votes
3 answers

Scan for a player location and Teleport user [Bukkit]

I've been searching but I don't find exactly what I want... I want to get a Player's location and if it fits with a definen location, teleport the player to another location. This is what I'm getting. No error shown in the console but nothing…
Ramses Asmush
  • 134
  • 1
  • 4
  • 10
3
votes
1 answer

Java - MySQL - Error while connecting to MySQL database

I'm trying to make a Bukkit plugin with MySQL support. The plugin that I'm making is a eco plugin, so I have to put all the names of the players in a MySQL table. I'm using a PlayerJoinEvent to register the player in the database if they haven't…
thijmen321
  • 473
  • 1
  • 3
  • 13
3
votes
2 answers

MySQL - Java - BukkitAPI - Error while connecting to MySQL database

I'm trying to make a Bukkit plugin with MySQL support. The plugin that I'm making is a eco plugin, so I have to put all the names of the players in a MySQL table. I'm using a PlayerJoinEvent to register the player in the database if they haven't…
bramhaag
  • 135
  • 1
  • 1
  • 18
3
votes
4 answers

How can I correctly set a Dye into an ItemStack?

I'm trying to apply a Dye color into an existing ItemStack, how can I do this without using deprecated methods and creating an new stack? I tried the following code but it's resulting in a normal ink sack. ps: I'm creating an stack in the first line…
Polyana Fontes
  • 3,156
  • 1
  • 27
  • 41
3
votes
1 answer

Need help for passing object to other class (scoreboard, bukkit)

Since yesterday I started to make my first plugin and there appeared some issues. I have class for scoreboard. And there is methods to make scoreboard, load it and change scores. Here it is: package eu.anavicius.TomTom1997.TomTowerDefence; import…
Anat0m
  • 37
  • 6
3
votes
2 answers

Setting Block Data from Schematic in Bukkit?

I am trying to load and paste a .schematic file (without hooking the MCEdit API) in bukkit. Below is the function/method i use to paste the schematic. While pasting, i keep getting a NullPointerException in the pasting process. When i logged what…
Hunter Mitchell
  • 7,063
  • 18
  • 69
  • 116