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

Enter command with each line from a file

I am trying to write a plugin that reads a file line by line and then enters a command in the console with each name as separate commands. This does contain code which relies on the Bukkit API, but it should be simple enough to figure out. I am…
swiftsly
  • 811
  • 4
  • 16
  • 29
0
votes
3 answers

How do I declare a projectile and cancel the damage from it with this event code in Bukkit

I need to know how to declare a projectile inside the if statement using the getCause() conditional. Then, I need to know how to cancel the damage from that projectile if the players are in the same gang. Please give me an explanation on how to do…
Dev Sock
  • 171
  • 1
  • 2
  • 12
0
votes
2 answers

Minecraft Bukkit YML list issue

Alright, so I'm trying to make a list to gather up all the gangs that have been created by players online using the plugin. But when ever it adds an item to the YML list, it names it "true" which isn't what I want. I want the gang name added. It…
Dev Sock
  • 171
  • 1
  • 2
  • 12
0
votes
1 answer

Cant reset Score

So using my two methods here public static void run(final Plugin plugin, String oldText, final Scroller scroller, final Scoreboard board, final Objective obj){ final String text = scroller.next(); …
John
  • 131
  • 2
  • 15
0
votes
2 answers

Null Pointer Exception when trying to use a CommandExecutor

I've been stuck on this error for about a half an hour now trying to figure out what's causing it, and what to do to fix it. If you could please give me an answer to both of those inquiries, it would be greatly appreciated. Here's my main…
Dev Sock
  • 171
  • 1
  • 2
  • 12
0
votes
2 answers

Cant save block in Hashmap

Ok so, I have a method here that when the Entity hits the ground it saves the Location and the Block inside of a HashMap defined like so: public static HashMap blocks = new HashMap(); Then a few ticks later…
John
  • 131
  • 2
  • 15
0
votes
1 answer

The type of the expression must be an array type but it resolved to double

When I use this code: switch (1.$SwitchMap$org$bukkit$Material[block.getType().ordinal()]) I get an error: The type of the expression must be an array type but it resolved to double I am coding a Minecraft Bukkit plugin Here is my entire…
0
votes
1 answer

Error when using ProtocolLibrary PacketAdapter()

I am making a Craftbukkit plugin that has a message in the player count list, Like HIVE-MC or Omega Realm. I am coding in Ecplise and using ProtocolLib v3.2.0 and Craftbukkit 1.7.2 R0.3. I am new to java and don't understand it much. I do know that…
mas0701
  • 303
  • 2
  • 12
0
votes
1 answer

Craftbukkit Player Count Message Plugin Coding Error

I am making a Craftbukkit plugin that has a message in the player count list, Like HIVEmc or Omega Realm. I am coding in Ecplise and using ProtocolLib v3.2.0 and Craftbukkit 1.7.2 R0.3. I am new to java and don't understand it much. SO FAR...…
mas0701
  • 303
  • 2
  • 12
0
votes
2 answers

Bukkit How do I get a argument from a string?

I'm trying to make a plugin that detects when people chat "#say " it will broadcast a message with those arguments. What I need to know is how to get arguments from a string. Please help. Main: package com.gong.say; import…
TheMrGong
  • 5
  • 2
0
votes
1 answer

Minecraft, FTB, MCPC+, Multicraft, Plugin: Console cannot run command without permissions

I am trying my hand at Bukkit plugins and im having some difficulty on my first. My console for the server is incapable of running the command, if i could get your review, an explanation to whats going on would be helpfull. Class Code: This is just…
DirtyRedz
  • 566
  • 5
  • 14
0
votes
3 answers

Java - How to get an Integer associated with a String in a HashMap

I want to know how to get the Integer that is associated with the String in the HashMap people: public HashMap people; public int getAssociatedInt(Person p){ return (The thing I do not know how to get); } I already tried…
jl00
  • 105
  • 1
0
votes
1 answer

Adjusting Velocity according to the Yaw rotation of a Player

How could I adjust the Velocity of a Player. According to the Direction of the Player. So when a Player turns with a certain velocity, The velocity will change to the direction of the player. So he could freely move around in mid-air, to any…
user2803086
  • 153
  • 1
  • 3
  • 10
0
votes
2 answers

Delete player from MySQL database

I have a command that kicks a player from a MySQL database, but it's not working when the player is offline; it won't delete them from the database. Here's my code: this.ms.connect(); PreparedStatement kick = this.ms.prepare("DELETE FROM `players`…
0
votes
1 answer

Simple Bukkit Plugin - Opening A Chest

Server owner had asked me to write a simple plugin for the server. All it requires is that if you click on a bookshelf with a written book in hand, it will open a chest. When the person closes that chest, all the books placed in it are destroyed. I…
Jordan.McBride
  • 267
  • 2
  • 7
  • 20