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

JDBC exception "Operation not allowed after ResultSet closed" when iterating over ResultSet

I have a problem with this code: ResultSet dane = statement.executeQuery("SELECT * FROM ProWarns WHERE blahblah = '" + cel + "'"); while (dane.next()) { // some code (only get some string from result) if (TimeEnd <= EndTime) { …
user2250333
  • 133
  • 3
  • 17
0
votes
1 answer

Object Serialization not working

It does everything it needs to do except save and/or load the data. I'm assuming the issue is with the loading even though the try/catch gets no exceptions. The files are created by the plugin but it won't load the data that was supposedly saved…
TheNickmaster21
  • 275
  • 3
  • 13
0
votes
1 answer

PHP Minecraft Votifier

I'm trying me best to get this thing working but I dont know why the minecraft server consoles gives me: 05.04 01:40:29 [Server] INFO /212.1.212.1:58215 lost connection my code php function: function Votifier($public_key, $server_ip, $server_port,…
user2247135
0
votes
2 answers

Returning an extended class

I'm not sure if this will really make any sense (I've kinda confused my self ) but what I am trying to do is create a mini-game plugin and I'm trying to make it cycle between maps, I create a new class that extends BaseGame I pass in plugin…
0
votes
4 answers

How should I use a Hashmap to store objects?

I am developing a plugin that will store clans (Clan class objects) in a hashmap to be used during operation. The hasmap will be stored in a file (serializing the hashmap as a whole would be ideal but I'm not sure if that is possible) for later and…
TheNickmaster21
  • 275
  • 3
  • 13
0
votes
1 answer

Bukkit Configuration File Creation Error

I'm kind of new to programming bukkit plugins so please go easy on my if the answer is obvious. I am trying to create a second configuration file to store locations and other data, but when I run my plugin I keep getting a NullPointerException. Here…
fractal
  • 43
  • 1
  • 6
0
votes
1 answer

Minecraft RCON isn't working when ran from web server, but is working from localhost

I have a script that should whitelist people on my minecraft server remotely from my webserver. This script works perfectly when ran from my localhost, but not when ran on my web server (Connection timeout). Is there anything that would make this…
Davis Mariotti
  • 574
  • 1
  • 4
  • 23
0
votes
1 answer

YAML Syntax Error

I am developing a permissions.yml file for PermissionsEx in Bukkit. I recently encountered an error whilst validating the syntax, after exhausting all my options the error still reads "syntax error on line 130, col 18: `' " (There is no tab spacing…
cianz182
  • 121
  • 1
  • 1
  • 7
0
votes
1 answer

.equals not working with scanner

I know it's reading the file because I have it print the contents of the txt file to the console but everytime I try .equals the variable doesn't change to true/false just stays at true any ideas? public static void readWebPage() { …
0
votes
1 answer

Is there any way to get around a class not implementing Serializable?

Ok, so I use Bukkit's ItemStack in a HashMap that is stored in a file and reloaded from it, but I found out that org.bukkit.craftbukkit.v1_4_6.inventory.CraftMetaItem which is used in the hash map created by ItemStack.serialize() is not implementing…
Tom
  • 846
  • 5
  • 18
  • 30
0
votes
1 answer

NoSuchMethodError when the method obviously exists

20:15:43 [INFO] macintosh264 issued server command: /sell hand 20:15:43 [INFO] [XYZShop] MacCommand sell executed 20:15:43 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'sell' in plugin XYZShop v0.1.3 …
macintosh264
  • 983
  • 2
  • 11
  • 27
0
votes
2 answers

Converting custom type in Java with bukkit

How to convert String to (custom Type) Enchantment? Following code alerts "Type mismatch: cannot convert from String to Enchantment" String s = "DAMAGE_ALL.2"; String[] enchantINFO = s.split("."); Enchantment enchantTYPE = enchantINFO[0]; //TODO…
John Smith
  • 321
  • 1
  • 3
  • 10
0
votes
2 answers

Java HashMaps with bukkit

And how to add 2 enchantments at once in bukkit with myItem.addEnchantments( Enchantment.KNOCKBACK, 1 /* TODO Here goes 2nd enchantment */ ); 'addEnchantments' accepts 'addEnchantments(Map < Enchantment, int >)'
John Smith
  • 321
  • 1
  • 3
  • 10
0
votes
3 answers

Keep a variable's value unchanging in Java

This is my simple script: public void cast(Player caster) { Location loc = caster.getTargetBlock(null, 512).getLocation(); for (int c = 0; c < 2; c++) { for (int b = 0; b < 2; b++) { for (int a = 0; a < 1; a++) { …
tincopper2
  • 79
  • 10
0
votes
2 answers

Loading a MySQL Database into Java Swing Application

I have a MySQL database that i am trying to load into a java application i am making. It is to show the current online players in a minecraft server. I have it setup to where the Server updates the database when a person leaves or joins. I need it…
user1596149
  • 1
  • 1
  • 2