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

Saving player inventory

Working on a command allowing to transfer worlds, I'm trying to save the player inventory. public void savePlayerInv(Player p, World w){ File playerInvConfigFile = new File(plugin.getDataFolder() + File.separator + "players" + File.separator +…
HcgRandon
  • 705
  • 2
  • 10
  • 18
4
votes
1 answer

Using fsockopen to connect to server - connection refused

What I am trying to do is add support for Votifier plugin on my website. I have forwarded the correct ports for the Minecraft server, tested and confirmed that they are open. Also used Minestatus to confirm that the Votifier plugin is working…
SlickTheNick
  • 91
  • 2
  • 7
4
votes
1 answer

Can't shade ND4j into a jar

So, I've been trying to integrate deeplearning4j(DL4j) in my Minecraft plugin and so far it's going very well. The only problem I have is shading into the jar. I successfully shaded dl4j in it but can't seem to put nd4j in it which is a library that…
Antony
  • 41
  • 1
  • 2
4
votes
1 answer

Creating and Setting ItemStacks in an Anvil Inventory (Bukkit/Spigot API)

How do I set an ItemStack in an anvil inventory? I need the method to be supported for versions 1.8.8-1.14.4. I can create the inventory, but can't set items. This is what I have: void open(Player player) { Inventory createKitGUI =…
DarkKnights22
  • 41
  • 1
  • 4
4
votes
1 answer

How to remove cursor from a Map (Bukkit)

I'm currently developing a plugin which only renders an image to a map like this: public class MapRendererTest extends MapRenderer { private Image image; public MapRendererTest(File file) { try { this.image =…
freggy
  • 67
  • 9
4
votes
4 answers

Bukkit event for hunger?

I am trying to make a plugin that removes hunger from Minecraft. However, I cannot find the event for it! Is there an event called when a player loses hunger? Something like PlayerHungerChangeEvent?
4
votes
1 answer

Java API in separate JAR file

I'm making a Spigot minecraft plugin with an API to allow other developers to hook into it. How can I create the API in a separate JAR file that will function the same as if it was in the plugin itself? I need this because the plugin will not be…
SpiroMarshes
  • 87
  • 1
  • 7
4
votes
1 answer

Hide Entity for some Players - Spigot/Bukkit - Java

I tried to hide an Entity (ArmorStand) for some Players. Is there a Method like for Players (Player1.hidePlayer(Player2);)? Thank you for your help and sorry for my bad English :)
LeWimbes
  • 517
  • 1
  • 10
  • 25
4
votes
2 answers

Bukkit: Giving player velocity to another

So I have this code: Vector vel = playerA.getVelocity(); playerB.setVelocity(vel); Which gives playerB the velocity of playerA. The problem is that playerB often gets unsycned from playerA's position and if the players are more than a block or so…
byAdam
  • 51
  • 6
4
votes
2 answers

Bukkit: How would I call an event?

I just started coding Bukkit and I have been trying to code a plugin that enable pvp for a certain player, and can disable it but only for themselves. It was working fine until I found I needed an event to make this work, yet I have not learned of…
smokybacon
  • 59
  • 1
  • 1
  • 4
4
votes
3 answers

Reset score from an objective?

I have a big issue with removing a score from the scoreboard using Bukkit API. Here is my code: ScoreBoard board; Objective obj = board.registerNewObjective("foo", "dummy"); obj.getScore("bar").setScore(5); // ... Now, I need to remove that "bar"…
Victor2748
  • 4,149
  • 13
  • 52
  • 89
4
votes
3 answers

Modify message for a single player

I'm writing a minecraft plugin that will notify someone when you mention his name in chat. He will receive a customized message where in the message his name is underlined and recoulerd. It will also play a music note. I have this, but it will sent…
NullReference
  • 311
  • 5
  • 20
4
votes
1 answer

NoSuchMethod Error Java but method exists

I understand there are other topics on this already but their solutions have not successfully been able to help me. I am creating a plugin and there is a class called CommandErrors that has only static references and methods in it. Here is the error…
jer_francis
  • 153
  • 1
  • 11
4
votes
2 answers

Java ArrayList IndexOutOfBoundsException Index: 1, Size: 1

I'm attempting to read a certain file in Java and make it into a multidimensional array. Whenever I read a line of code from the script, The console says: Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 I know that this error is…
baseman101
  • 352
  • 1
  • 4
  • 19
4
votes
2 answers

Maven shade relocations across all modules?

I have a maven multimodule project that has one parent pom-project and a bunch modules. One of these modules is the "main module" that has all the libraries shaded into it. All other modules depend on that module and use the provided libraries. The…
pschichtel
  • 759
  • 7
  • 18