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
0 answers

Maven Compile Failed

i got a maven compile problem after i reinstalled the windows. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project helium: Execution default-compile of goal…
cproxbtw
  • 3
  • 2
0
votes
1 answer

How can I cancel Scoreboard Team every second on player quit - MInecraft Spigot 1.19?

I would like to have the teams "coins" and "tokens" update in the scoreboard every second when the player enters the server. The BukkitRunnable should be interrupted when the player leaves the server. I experimented a bit and found a solution. I…
TheHuman
  • 11
  • 1
0
votes
1 answer

The Playername of the Prefix is still white | Spigot 1.16.5

I code a hugh Plugin on Spigot 1.16.5 and now i have a problem. I want to set a Tab Prefix and everything works but the Playername is still white. Picture of the ingame Prefix public static void setScoreboard() { sb =…
Moritz L.
  • 9
  • 3
0
votes
3 answers

Minecraft Spigot Config.yml color change not working

I created a Timer for minecraft Spigot. In the Config.yml I added "&" coded for the color. But in Minecraft It looks like this: My code looks like this: prefix: '&6Timer &7»' #%d% -> Tage #%h% -> Stunden #%m% -> Minuten #%s% -> Sekunden actionbar:…
Vinx
  • 1
0
votes
2 answers

Get direction of arrow according to watched point

I want to get an arrow from the point with the direction to another point. Before begin, I'm using this method to get the arrow according to the yaw: public static String getArrow(double yaw) { if (22.50 < yaw && yaw < 67.50) return "⬉"; …
Elikill58
  • 4,050
  • 24
  • 23
  • 45
0
votes
0 answers

How to send packets in ProtocolLib (spigot 1.18.2)

i wanted to ask in there is a simple was to send a packet to The Server in minecraft spigot 1.18.2 using ProtocolLib. I haven‘t found a simple answer anywhere.
0
votes
2 answers

Minecraft Spigot I cannot get String from Component

Hello Support I can't get the String from a Component. I did this with 2 ways with bad results. TextComponent textComponent = (TextComponent) item.displayname; return textComponent.content(); The result of this is a error with Casting and return…
Fender Selim
  • 65
  • 1
  • 2
  • 8
0
votes
0 answers

Multiple plugins files with same module dependecy intellij

i have created a core module in IntelliJ (Community Edition) to setup easily my plugins(Minecraft) and do not re-write every Util class. I have encountered a few problems: Let's say i have 2 plugins, called Plugin1 and Plugin2, both import the…
0
votes
1 answer

Configuration just says null Spigot plugin minecraft

i keep getting this error and its really annoying, It looks like everything is correct tho. I am using intellij to write the code. I was setting up a config.yml and trying to make it change the words in the commands which i added the strings to the…
cats585
  • 9
  • 6
0
votes
1 answer

How do you import com.mojang.authlib [Maven]

I am making a plugin with custom skin textures and I need to use GameProfile which is Mojang authlib. I put it in my pom.xml but it says it cannot find the dependency Dependency 'com.mojang:authlib:1.5.21' not found . Here is my full…
Nathan
  • 3
  • 4
0
votes
1 answer

Java Spigot Websocket

I wonder how can I add a websocket server into my java spigot plugin. I tried this and got an error. public class Main extends JavaPlugin { @Override public void onEnable() { System.out.println("STARTED YEY :D"); …
Tigron
  • 3
  • 2
0
votes
1 answer

Running code x ticks after opening an inventory (Minecraft spigot)

I have heard of ways to run code later like run task later and other scheduler methods but I want to do it inside of an event which I am having trouble with. Here is some code for an example of where I want to run it: public class InventoryEvents…
Crafty
  • 11
  • 5
0
votes
1 answer

Import Boolean from another Class

I have a DataHolders class. It contains: public static boolean hit; In my other class theres: public void onHit(ProjectileHitEvent event) { if (event.getHitEntity() != null || event.getHitBlock() != null) { DataHolders.hit = true; …
zSxmpt
  • 9
  • 2
0
votes
1 answer

How do I share variables between classes created from a method?

Context I'm creating a spigot plugin for Minecraft which lets a player hunt another player with a certain command. Problem As of right now, all the variables are declared at the top of the class so that they are accessible from within the onCommand…
0
votes
0 answers

org.bukkit.scoreboard.Team is null after initial Call

I am making a skyblock plugin, but when I am creating the scoreboard, the team object which I use to change the balance in the scoreboard becomes null after initial call. This is the exception: [21:18:40 WARN]: [CustomSkyblock] Task #2 for…
user15168242