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
-1
votes
3 answers

CraftBukkit development: Why does this throw NullPointerException?

I'm writing a simple Bukkit/Spigot plugin that replaces endermen inside of End City structures with shulkers. Here's the code: package ru.cardboardbox.shulkerspawner; import org.bukkit.*; import org.bukkit.block.Block; import…
-1
votes
1 answer

Setting string for config (Bukkit)

So currently I am making a plugin to remake mineplex features, and I got stuck when I got to bans, because I was trying to make it so that when you ban someone it puts a string in config with their name which you said in args, & then the string…
Cheap CPPS
  • 49
  • 1
  • 8
-1
votes
3 answers

Singleton java implementation

I don't really understand the concept of singleton in my bukkit plugin. In my plugin I need to get the plugin data folder and change the json file. I have to use the functionthis.getDataFolder().getAbsolutePath(); but it cannot be used in my plugin…
Raffon
  • 133
  • 10
-1
votes
2 answers

Repeating Task In Java

I need to repeat a task every 5 seconds in java, I'm creating a minecraft bukkit / spigot Plugin, so doing it with Java or using the bukkit api would both work great. Code: public void onEnable(){ getLogger().info("TBC Enabled"); …
Cheap CPPS
  • 49
  • 1
  • 8
-1
votes
1 answer

Players are unmuted when relog

I have no idea why my code is not keeping players muted after they relog even though I added them to the config. This is there the muted players get saved: private static ArrayList mutedPlayers = new ArrayList(); This is the event…
Martijn
  • 7
  • 2
-1
votes
1 answer

Why my plugin couldn't pass PlayerDeathEvent even though it should

I started making plugins recently. I wanted to create a plugin wich will say that "xyz Player has joined/left" and Death messages. It works fine for joining, and by dying from entitys that aren't players. But when Player kills another Player,…
-1
votes
1 answer

Initialize a command in Spigot

I'm learning Spigot and many tutorials say to use this syntax to initialize a command. private Main plugin; public Constructor(Main plugin) { this.plugin = plugin; plugin.getCommand("command").setExecutor(this); } But my Java knowledge…
-1
votes
0 answers

java.lang.IllegalArgumentException: Plugin already initialized

When I'm testing my new plugin an exception keeps getting thrown: java.lang.IllegalArgumentException: Plugin already initialized! Please help! Here's the code: package me.plugin.example; import org.bukkit.plugin.java.JavaPlugin; import…
MoMoMeer
  • 3
  • 3
-1
votes
1 answer

Is there any way to delete a certain block when placed on top of another certain block?

I am trying to find the easiest way to delete for example a rail, when placed on top of a slime block. I don't want to scan for all blocks within certain radius, because I don't want the plugin to use much ram. I would like the rail to get deleted…
Kub_Luk
  • 60
  • 5
-1
votes
2 answers

Couldn't import org.bukkit.entity.player in bukkit 1.13.2

I'm am making a plugin and I need to import org.bukkit.entity.player, but whenever i type it into eclipse with bukkit 1.13.2, it gives an error about there is no player class in org.bukkit.entity. How do I fix this?
nullminer
  • 19
  • 5
-1
votes
1 answer

Bukkit plugin not loaded (only one command)

I'm new in java and bukkit api and server can't load my plugin, error in console: https://pastebin.com/GzgLhHp6. Maybe problem in "private Plugin plugin" whick is not used, eclipse warned. My code: Plugin.java package Iaiao.main; import…
Iaiao
  • 13
  • 1
  • 8
-1
votes
2 answers

arraylist list not being recognized in another class

I was creating a plugin to MineCraft which needs a list of UUID and I figured to do it this way public class Freeze extends JavaPlugin implements CommandExecutor { public static List toggleList = new ArrayList(); } However when I'm…
-1
votes
1 answer

minecraft plugin does not recognize stuff

So im creating a simple freeze plugin which is supposed to freeze me. Somehow it does not work because it does not recognize my oncommand. The plugin is supposed to toggle it on by adding the player who wrote the plugin onto the toggleList. i have 3…
-1
votes
1 answer

IllegalArgumentException, Plugin cannot be null

Plugin's main class returns null when I initialized it in top of other class: java.lang.IllegalArgumentException: Plugin cannot be null Initialization in BeforeGame class: Main instance; public BeforeGame(Main instance) { this.instance =…
vladis086
  • 41
  • 1
  • 6
-1
votes
1 answer

Whether to store a variable as local or get a new one each time I need it

I'm using the minecraft Spigot API and you can store information in a config.yml file and retrieve it with plugin#getConfig(). I need to get a string from the config every second. The string will remain the same for about 5 minutes before changing…
oopsie
  • 29
  • 2
1 2 3
99
100