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

Why == doesn't returns true in this case?

I'm jython/python bukkit plugin developer and I'm stuck here. I was always using == in cases like this one, and everything worked perfect. What's the problem? Here's the code: lastslot = event.getNewSlot() iteminslot =…
Amar Kalabić
  • 888
  • 4
  • 15
  • 33
0
votes
1 answer

Java: HashSet duplicating last value

for some reason all entries I am putting into a HashSet are duplicating the last entry (Even though they're different). I don't know why this is and have tried many things to fix it. Here is my code for putting an entry into the hashset: public…
Kondax Design
  • 175
  • 1
  • 1
  • 15
0
votes
1 answer

cannot convert from element type object to string

ArrayList display = new ArrayList(); for (Player p : game.getAllPlayers()) display.add(new StringBuilder().append(game.isPlayerActive(p) ? ChatColor.BLACK : ChatColor.GRAY).append(NameUtil.stylize(p.getName(), true,…
0
votes
3 answers

Error at Minecraft Plugin

I've an error when I'm launching my minecraft server. The external library I'm using for the plugin is the recommended build craftbukkit-1.6.4-R2.0. I'm using the craftbukkit-1.6.4-R2.0 to launch the server and as the external library in…
0
votes
2 answers

Java Bukkit Plugin "Cannot be resolved to a variable"

I've two classes under the same package Class names are "TestPlugin" and "Pokemon". The error I get is in the class TestPlugin at line 7 where there's written "New Pokemon". The error is "Cannot be resolved to a variable". I want the TestPlugin to…
0
votes
2 answers

Bukkit plugin syntax error : Syntax error, insert "}" to complete ClassBody

Here is my code. The last curly bracket at the bottom has the error. This is very annoying and I have been trying to fix it. Is it that I have too much bracets or something? I'm really stumped. Please help. enter code here package…
0
votes
1 answer

Bukkit plugin Error - Syntax error on }, { expected

I am getting this error when creating a command for this youtube tutorial, he explains how to make a plugin where when you join fireworks explode and I wanted to make a command for it. I got the error Syntax error on token "}", { expected. Here is…
user2674614
  • 19
  • 1
  • 1
  • 3
0
votes
2 answers

Cannot invoke equalsIgnoreCase() on the primitive type boolean

I'm creating a plugin for bukkit servers, an antiswear one, but i'm trying to not make it case sensitive, how can i do this? code: package me.Lorenzo.AntiSwear; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import…
Hockz
  • 33
  • 5
0
votes
3 answers

How do I link a user input argument with a string?

So, I'm rather new to Java and I just starting a project, but I ran into some issues. My question is... How do I link a user input (argument) with a String? I have already defined a few Strings earlier on in my code, but in this line I want it to…
user2033914
  • 1
  • 1
  • 2
0
votes
1 answer

JAVA: Loading a big configuration file to code - How to store it?

I have big configuration file to my bukkit plugin but I don't know how to create a config class for it. If I create one class with that amount of variables then is hard to use and read/edit. So I have new idea using inner-clesses but how about…
user2250333
  • 133
  • 3
  • 17
0
votes
1 answer

Link breaks in Minecraft Chat?

I am building a plugin that requires a user to click on a Long link in chat. Somethig like this: http://www.example.com/sample.php?code=124ds8g89fgfg9fd9g76hg89f7d698d67fgh7 Whenever i send this to the user: sender.sendMessage(url); Only part of…
Hunter Mitchell
  • 7,063
  • 18
  • 69
  • 116
0
votes
1 answer

Jython HashMap arguments

I'm coding bukkit plugins for Minecraft servers in jython, using PyPluginLoader. I've events and everything else which works, but I want to make toggle command, which will toggle blockspawn mode on, but if you enter it again, it shuts it off. Here's…
Amar Kalabić
  • 888
  • 4
  • 15
  • 33
0
votes
1 answer

Everything using MongoDB must throw UnknownHostException

I'm working on a plugin for a Bukkit (Minecraft) Server. I want to be able to write stuff to my MongoDB database, but any methods that include creating a mongoClient must throw an UnknownHostException, as well as everything it's nested in. For…
August
  • 12,410
  • 3
  • 35
  • 51
0
votes
1 answer

API Creation Inquiry

I am working on a project that needs an API. In most APIs (for example Minecraft Modloader), the API runs the "mod" class, without knowing its name. How is this possible? For this project, I need to get all instances of a class called Spell, without…
NerdicViking
  • 137
  • 9
0
votes
1 answer

NoSuchMethodError even though self-coded method exists

I've been searching for a solution for my problem but haven't got any sufficient answers. I am working on a Bukkit plugin's update system. Thus, I had to code the classes myself. But all the time I'd like to call a method (to be specific:…
mezzodrinker
  • 998
  • 10
  • 28