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

Java Spigot Set the direction of the vector relative to the player's position

I have a problem with the correct vector alignment. I want to get a vector pointing in the same direction as the player, but with a constant Y value of 0. The point is, whatever the player's vertical and horizontal rotation, the vector's Y value was…
Adixe
  • 119
  • 7
3
votes
0 answers

How can I set the second layer of an NPC visible using PacketPlayOutEntityMetadata in 1_18_R1 (without Mojang Mapping)?

I'm trying to code a Minecraft Spigot Plugin using NMS. I want to create and spawn an NPC. The code I wrote for creating the EntityPlayer, GameProfile and for sending the packets works fine, but I can't figure out how to set the EntityPlayer…
user16946363
2
votes
1 answer

Configuration with name 'mainSourceElements' not found

I am new to Gradle, and when I try adding a plugin to the build.gradle file, I get an error. My Gradle version is 8.1.1. plugins { id 'java' id "io.freefair.lombok" version "8.0.1" } group = 'me.harvanchik' version =…
harvanchik
  • 78
  • 5
2
votes
3 answers

How to properly add craftbukkit/spigot/paper as an external library in Eclipse?

I'm having issues including bukkit/spigot/paper into my Eclipse since when I try "extends JavaPlugin" in my Class it does not seem able to import the file I have tried versions of craftbukkit, spigot and paper on several occasions but it just does…
2
votes
1 answer

How could I fix the Geyser PlayerInteractEvent issue?

I posted an issue about this on the Geyser GitHub here: Shooting Projectiles via Plugin is Glitchy #2913. My mini-game used the PlayerInteractEvent, so this was obviously a big problem for me. A little while later, "chrismwiggs" posted about a…
2
votes
2 answers

I want my code run once every 20t in a `PlayerMoveEvent`

I want my code to run once every 20t when a player touches the water package me.pgk.Listeners; import me.pgk.PGK; import org.bukkit.Bukkit; import org.bukkit.Material; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import…
PGK
  • 23
  • 3
2
votes
1 answer

java.net.SocketException: Invalid argument: connect with BungeeCord

I wrote a Java dependency that uses gRPC to connect to a server. Using this dependency in my spigot plugins and plain java projects works fine, but using it in BungeeCord plugins produces the following exception: Caused by:…
oniumy
  • 23
  • 5
2
votes
1 answer

How can I use BungeeCord Message Channel on Velocity?

I try to use the BungeeCord Message Channel on Velocity. I know this work. Here is my code: player.sendMessage("§aWait..."); ByteArrayDataOutput out =…
Undercraft_CR
  • 55
  • 1
  • 9
2
votes
1 answer

How to modify the default world generator

I'm currently working on a spigot server plugin and I want to modify the default world generator so that every chunk is made out of one random block. I heard that you can make a custom world generator but I only want to modify the default one. Is…
2
votes
1 answer

(Spigot 1.8) "stained_hardened_clay:14" != " stained_hardened_clay:14"

I am making a a mini game plugin, i need to replace every blocks that not a type, so i maked this : public static void replaceBlock(String x, String y, String z, String x2, String y2, String z2, String block, String secondBlockType, String…
Sysy's
  • 67
  • 3
1
vote
1 answer

Checking a Player for a Specific Item in Minecraft SpigotAPI Inventory

I need to find out if a player has a certain item in their inventory. I tried to find it in the documentation, but it is so terrible (as for me) that I could not find it. So far, there is such a code that works, but it works when a player places or…
Venom
  • 47
  • 5
1
vote
1 answer

Error loading plugin: Unsupported API version 1.2

I'm making a plugin for my server, but when I start the server, it gives me this error: [Server thread/ERROR]: Could not load 'plugins\CustomServer.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: Unsupported API version 1.2 …
Entropire
  • 11
  • 3
1
vote
1 answer

How to open an Inventory with an Item inside an Inventory

By just writing the code in one class and the write: case "example": player.openInventory(exampleInv); break; But because I like my things organized and well sorted I wrote the Inventory inside another class as the Inventory Click…
1
vote
1 answer

ClassNotFoundException: kotlin.jvm.internal.Intrinsics

I'm currently working on a Minecraft OITC plugin for Spigot 1.8.8! ~All written in Kotlin with IntelliJ While starting off with a simple EventHandler for ItemDrops, I ran into an Issue: Could not pass event PlayerDropItemEvent to RarityOITC…
YSheiny
  • 11
  • 3
1
vote
1 answer

SpiRawSqlService not found setting up EBean in a Spigot plugin

Overview I set up a github repo for this question to provide as much of the boiled down environment as possible. My goal is to set up ebean ORM for database manangement from a Paper Minecraft plugin. I'm able to shade in the ebean dependencies, but…
Apple Ptr
  • 11
  • 3
1
2 3
10 11