Questions tagged [spigot]

Spigot is a Minecraft Server API that uses Bukkit and CraftBukkit bases written in Java. This tag is frequently used in place of Spigot forks such as PaperMC.

Spigot is a platform for minecraft server. It takes the minecraft vanilla server and add an abstract area to easily make plugin for multiple versions.

It started in 2010 with Bukkit (Informations) and you can find the full history and difference with here.

Spigot continue to use Bukkit and CraftBukkit bases.

To know how to write a plugin, you can see here.

When asking a question about spigot, don't forget :

  • Be sure you have one of the latest build
  • Give the version of minecraft you are using
  • Be sure you didn't forget to register listener with implements Listener or with @EventHandler
  • See in latest.log file the first error that concern your plugin, and include it in your question
158 questions
0
votes
1 answer

Cancelling an event spigot 1.19

I have written an event called JoinEvent that when an player joins the minecraft server it called. The event checks to see if the player is banned. If it is then it checks my mongodb database for the name to get the staff member and the reason then…
Knife worm
  • 67
  • 6
0
votes
1 answer

Minecraft Plugin spigot import com.earth2me.essentials?

Hello I am making a plugine with spigot api and I wanted to make a possible action according to the economy of the player (economy of essentials plugin). But I don't understand how I can add in dependency the essentials plugin on the…
0
votes
2 answers

Best way to identify a block with spigot

What's the best way to create a unique block that's can be identified with spigot? Something like a id. I want to create a game where you can place items, but I dont know how to identify if the player clicked on the right block. When there's no…
akut Game
  • 1
  • 1
0
votes
1 answer

Minecraft Plugin - Set Spawner spawn Type from Item

I'm currently programming a Minecraft Plugin for Spigot 1.19 with custom spawners. I need to make the spawner spawn an item it's right clicked with. I'm detecting this using the PlayerInteractEvent. That's what I have so far: @EventHandler private…
0
votes
1 answer

How to manage spigot inventory without using the title?

I want to have an inventory for each players when using spigot. So I'm using this code: Inventory inv = Bukkit.createInventory(null, 9, "Title name"); player.openInventory(inv); And when click on it, I'm using: @EventHandler public void…
Elikill58
  • 4,050
  • 24
  • 23
  • 45
0
votes
0 answers

Dependency 'fr.mrmicky:fastboard:1.2.1' not found

In my pom.xml file I'm having issues getting the fastboard integration (I am using Maven). My pom: org.apache.maven.plugins
Ben Walsh
  • 19
  • 1
  • 2
0
votes
2 answers

The mob is still colliding with the player

I have developed my own Minecraft plugin in Spigot for version 1.19, which includes the command "mob". This command allows players to teleport a mob to their location while remaining invisible. However, I am encountering a problem where the mob is…
snoopti
  • 11
  • 2
0
votes
1 answer

Is there a way to add the "CanPlaceOn" NBT tag to an item in spigot?

I try to make an item that can be placed in adventure mode in spigot, I know its possible with commands by adding the {CanPlaceOn} NBT tag to the item, but couldn't find a way in spigot I sadly couldn't really try anything so far since i didnt find…
0
votes
1 answer

Minecraft Bukkit and Spigot get item in jukebox

I am creating a plugin, with Bukkit in Minecraft : 1.19.4 and I need to see if there is a specific Music Disc in a JukeBox when the player right clicks on the block but I can't find a way to do that. So I tried: public class TestCD implements…
Daweii
  • 3
  • 1
0
votes
1 answer

How do I get a PNG url from a GET request in Java?

More explanation, I'm using Spigot and Java Discord API (JDA) to send a message to discord when someone speaks in Minecraft chat. I want to show the player's skin's face in an embed but I don't know how to do so since it keeps telling me I'm not…
Cocolennon
  • 35
  • 7
0
votes
1 answer

Reflection casting from ImmutableMap to Map

I'm trying to add values to an ImmutableMap. The field's name is commands. Here's my code: Field field = this.getDescription().getClass().getDeclaredField("commands"); Map> commands = new…
Gargant
  • 11
  • 2
0
votes
1 answer

How can I confirm an event when the player types a key word?

I've a problem about typing confirmation. I'm doing Virtual Spawner plugin. If player has enough money and typing Y his spawner gonna upgrade to Lvl2. My question is how can I do this Y or N confirmation? I thought with AsyncPlayerChatEvent. But…
Archuleus
  • 1
  • 1
0
votes
1 answer

Error trying to serialize to Json but error does not happen if I don't add cages

[19:44:33 ERROR]: Could not pass event InventoryClickEvent to LuckyWars v1.0.0 org.bukkit.event.EventException: null at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[patched_1.8.8.jar:git-PandaSpigot-82] …
pkp0
  • 1
0
votes
2 answers

Minecraft Spigot plugin not running

I have started java a week ago and I am trying to make a Minecraft plugin but it is not working. In the tutorial I'm watching the guy says to run the script to get a .jar file for it, the problem is that I can't press the run button (on IntelliJ)…
0
votes
1 answer

Casting warning

private void loadGlobalChest() { ConfigurationSection inventorySection = items.getConfigurationSection("inventory"); if (inventorySection != null) { globalChestInventory.setContents(((List)…