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

No values are copied from the default config

I have written this code: public void reloadDefConfig(File filepath, String fileInJar) { File configFile = filepath; FileConfiguration daConfig = YamlConfiguration.loadConfiguration(configFile); if (!configFile.exists()){ …
HcgRandon
  • 705
  • 2
  • 10
  • 18
3
votes
1 answer

Java Spigot Set the direction of the vector relative to the player's position

I have a problem with the correct vector alignment. I want to get a vector pointing in the same direction as the player, but with a constant Y value of 0. The point is, whatever the player's vertical and horizontal rotation, the vector's Y value was…
Adixe
  • 119
  • 7
3
votes
0 answers

How can I set the second layer of an NPC visible using PacketPlayOutEntityMetadata in 1_18_R1 (without Mojang Mapping)?

I'm trying to code a Minecraft Spigot Plugin using NMS. I want to create and spawn an NPC. The code I wrote for creating the EntityPlayer, GameProfile and for sending the packets works fine, but I can't figure out how to set the EntityPlayer…
user16946363
3
votes
1 answer

Modifying playerlist scoreboard

I want to change the list that is displayed when a player presses the tab key. I have used player.setPlayerListName(ChatColor.GREEN +" new Name") to change a player name and player.setPlayerListHeaderFooter("header", "footer"); to set the…
Brentspine
  • 274
  • 1
  • 15
3
votes
5 answers

Nested ifs or ands?

I'm a beginner level programmer who's just starting to work on actual projects, and I'm starting to think about things such as efficiency and if my code looks professional. I was wondering if, when trying to check multiple booleans, is it better to…
3
votes
2 answers

shared health plugin Bukkit

Inside the for loop I aimed to damage other players that was not damaged. So, I made a new event that has a cause which is suicide so that when it damages the player this method will not be called all over again eventually killing the player. I did…
3
votes
1 answer

Retrofit API call from Bukkit plugin fails (IllegalAccessException)

I have an API library which uses Retrofit (and the GsonConverterFactory) to send requests and parse the responses into Java objects. This is working fine - but when I try and use the library from within a bukkit plugin, I get this error when trying…
3
votes
2 answers

Minecraft - Floating items despawning w this code?

With this small plugin, items that are stored i the arraylist "FLOATING" should not despawn, but yet they still do? Ive tried using both ItemDespawnEvent and EntityDeathEvent and both did not work public void itemVanish2(ItemDespawnEvent e) { …
3
votes
1 answer

Why doesn't the "EntityDamageByEntityEvent" get activated?

So, I'm trying to do a teams plugin, where each team has a player1 and player2. Now I wanted to add friendyfire using the EntityDamageByEntityEvent, but either my code doesn't work, or the event doesn't get activated. I'm pretty new to Plugins, so…
Ariix
  • 33
  • 3
3
votes
1 answer

SQLite syntax error but the statement is perfectly correct

I want to make a normal insert into a database, or just select one. But I can't do that, there is always an error. Caused by: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (near "ScientistRick": syntax error) …
3
votes
1 answer

Bukkit myInventory change item names

I have made a minecraft bukkit plugin which is a gamemode changer GUI but I can't figure out how to change the block names in the inventory that I opened up. At the moment all they say is Iron_Block, Gold_block ...etc If anyone could help me that…
coolio85
  • 171
  • 1
  • 13
3
votes
2 answers

Minecraft Plugin Gamemode changer GUI

I am trying to make a minecraft plugin which is a gamemode changer GUI which when I click a block it changes my gamemode. My plugin successfully shows up in console and lets me view the GUI in game but doesn't do anything of what I coded it to…
coolio85
  • 171
  • 1
  • 13
3
votes
1 answer

Redstone particles don't change their color

I'm trying to send colored redstone particles to player via packets using ProtocolLib. I Googled that to make them colored, I need use the offset parameters as the RGB system. However, it didn't work as intended; particles are still red or have…
i0xHeX
  • 315
  • 2
  • 15
3
votes
2 answers

How to make Java console App Like Bukkit (Show Log while keep cursor at bottom screen wait for input)

I want to create console app in Java like "Bukkit, Spigot" (https://i.stack.imgur.com/AXWq6.png) As you can see in the pic, There are print log to the Console screen but how to keep cursor at bottom of screen (Keep the ">" sign bottom of screen and…
Tackleza
  • 33
  • 5
3
votes
2 answers

How to check if a player right-clicked another player

Looking for the right event to work with. I want to check if a player right-clicked another player. This is what i have so far (doesn't work. Not getting into the if or the else statement: public void onPlayerRightClicks(PlayerInteractEntityEvent e)…
131
  • 1,363
  • 1
  • 12
  • 32