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
6
votes
2 answers

Change player skin with NMS in Minecraft (Bukkit/Spigot)

I'm currently working on a plugin that lets you assume the identity of another player. It does this almost flawlessly: Your UUID and username are changed to that of the user whose identity you are assuming serverside, and as far as the server and…
Redempt
  • 169
  • 1
  • 1
  • 9
6
votes
1 answer

Stacktrace of obfuscated code displays unobfuscated class name?

I'm working with a server-addon for Minecraft, which happens to be obfuscated. I've always thought that, after obfuscation, it's impossible to restore the original class names because they're completely removed, and it's what I've read…
XXLuigiMario
  • 125
  • 1
  • 8
6
votes
2 answers

How would I detect if a player is looking at another entity?

I have a player and of course able to grab the direction the player is facing in vector form. Using this vector, I need to calculate if the player is looking at an entity within x blocks and if a 'spell' would hit it. I would also need to take in…
SexyToad
  • 113
  • 1
  • 6
6
votes
3 answers

Am I abusing static?

To disguise players as another Entity, I made a disguise class as you can see here: public class Disguise { private static HashSet disguises = new HashSet<>(); private net.minecraft.server.v1_8_R2.EntityLiving nmsEntity; …
XLordalX
  • 584
  • 1
  • 7
  • 25
5
votes
1 answer

Get all nodes under YAML path

I have a YAML file that looks like this: Main: topofhouse: x: 276.4375 y: 71.0 z: -60.5 yaw: -290.7768 pitch: 35.400017 2ndfloor: x: 276.5 y: 67.0 z: -60.5 yaw: -8.626648 pitch: 16.199997 home: x:…
HcgRandon
  • 705
  • 2
  • 10
  • 18
5
votes
1 answer

Gradle build failed at :compileJava: `No matching variant`

I'm trying making a library for Minecraft Bukkit (Paper) plugin. I'm trying to build a jar file, but Gradle gives me this error: Execution failed for task ':compileJava'. > Could not resolve all files for configuration ':compileClasspath'. I'd…
FoliageOwO
  • 85
  • 1
  • 8
5
votes
1 answer

GraalVM - No language and polyglot implementation was found on the classpath

I'm trying to use GraalVM inside a project to add simple scripting capabilities. I'm using Maven for dependency management to load Graal's base dependencies. Here is my pom.xml:
mattrick
  • 3,580
  • 6
  • 27
  • 43
5
votes
3 answers

How to get ordered HashMap from YAML?

I'm trying to retrieve a Map from my config.yml file, but cannot find a way to keep the key order previously set. classes: beginner: 1000 proplayer: 2000 admin: 5000 I know that classes's keyset gets me a Map, but the order is not as the display…
LeoColman
  • 6,950
  • 7
  • 34
  • 63
5
votes
1 answer

How to stop a repeating task schedule in Bukkit

I am writing a minigame for Minecraft and have a problem with the schedule. I don't know how to stop the schedule. Please tell me how I can stop running this loop / Timer / Schedule: public void WarteTimer() { count =…
STobiasS
  • 75
  • 2
  • 6
5
votes
1 answer

How to set block data value?

Bukkit's setData(data) and getData() are deprecated. But there's no replacement. Bukkit/Spigot JavaDoc says this about setData(): Deprecated. Magic value Why is that?
Myst
  • 553
  • 1
  • 8
  • 19
5
votes
2 answers

Java getDeclaredFields of a class with missing dependencies

I am having trouble getting the declared fields of an Object that is missing/not using specific dependencies. Field[] fields = OBJECT.getClass().getDeclaredFields(); throws a NoClassDefFoundError when that object has imports to missing classes. The…
Maximvdw
  • 51
  • 3
5
votes
2 answers

Modifiers of variables based on level

I'm getting mad with this problem. Well, let's begin. I want to add some modifiers to different minecraft events (such as how much damage is dealed in the EntityDamageByEntityEvent) according to a level that is stored in a MySQL database. This level…
pitazzo
  • 1,125
  • 1
  • 13
  • 28
5
votes
2 answers

Java: Difference between initializing by constructor and by static method?

This might just be a question of personal taste and workflow, but in case it's more than that, I feel I should ask anyway. In Java, what differences are there between creating an instance via constructor and via a static method (which returns the…
ChaoticWeg
  • 291
  • 2
  • 15
5
votes
1 answer

Preventing damage to a specified player in Bukkit?

I'm trying to make a command that allows you to make any player invulnerable -- that is, god mode. This is my code so far (though it's all boilerplate) @EventHandler public void onEntityDamage(EntityDamageEvent event) { if(event.getEntity()…
Nic
  • 6,211
  • 10
  • 46
  • 69
5
votes
1 answer

Unable to find Clojure

EDIT: There are some other discussions going on that are related to this question on the Bukkit forums and on Github. So, I know one or two people have attempted this with no luck.. But I think I'm almost there. One problem: I don't know Java, so…
gdude2002
  • 197
  • 9