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

Spigot chat message that is exactly one line for everybody

I am coding a 1.18 Spigot plugin in java and i want to make a line breaker. The problem is to pick the length of it. I would like to send the player a Message like: "_______________________________" but this message should be exacly the length of…
0
votes
1 answer

Class does not exist and exists

I am getting a NoClassDefFoundError exception I don't know Why because my class is imported and there are no errors in the compiler but when I run the plugin the error is. I even checked if the .class file exists in the .jar file and it existed so I…
0
votes
2 answers

Is the MySQL procedure in this Minecraft plugin correct?

To get an idea of what the basic structure looks like, I downloaded a money system including MySQL from Spigot and looked at the code. public static boolean playerExists(String uuid) { try { ResultSet rs =…
0
votes
1 answer

Minecraft Server Paused after my Custom Plugin Loading

this problem has started after I fixed my Plugin in the maven file with erasing this. D:\My New Plugins\Server\plugins this breaked my first test Server erasing all the Plugin Folder Files and damaged the code.…
Fender Selim
  • 65
  • 1
  • 2
  • 8
0
votes
1 answer

How can I send Animation-Packet with ProtocolLib in Spigot?

I want to show a damage animation on a entity without damage. NOT: entity.damage(2); and then public void onEntityDamage(EntityDamageEvent event) { event.setDamage(0); more like that: entity.setHealth(entity.getHealth - 2); "Send a packet to…
Undercraft_CR
  • 55
  • 1
  • 9
0
votes
2 answers

XY coords to XZ positive/negative coords like minecraft

I recently came up with the idea to color my minecraft map with a picture of colors. So this is how I created a picture with different colors in paint, then in my plugin - each color means a different block I made forums that take each color from XY…
0
votes
1 answer

InventoryClickEvent gets fired multiple times

I have an abstract GUI parent class handling a click event. public abstract class GUI implements Listener { private final Inventory inventory; public GUI(Player player) { Bukkit.getPluginManager().registerEvents(this,…
DerArkeN
  • 45
  • 7
0
votes
1 answer

Bukkit: Replacing block just drops item of new block

I'm new to Java and Spigot-API. I want to do a BlockBreakEvent which detects if a GOLD_ORE block got destroyed by a player. If so, it should replace that GOLD_ORE block with a STONE block. However it doesn't work and instead of replacing the block…
puncher
  • 1,570
  • 4
  • 15
  • 38
0
votes
1 answer

How to make commands with subcommands in spigot plugins?

So I'm trying to make a command with subcommands command examples: /its heal (player) /its feed (player) /its help Here is my main plugin file code if needed: package com.itsmateo20; import com.itsmateo20.events.JoinQuit; import…
It'sMateo20
  • 105
  • 2
  • 8
0
votes
1 answer

Spigot with Guice gives NoClassDefFoundError on internal.Messages$FormatOptions

I've been playing around with Guice and stumbled upon this error that doesn't seem to make a lot of sense to me. It seems like whenever an error occurs during injection, Guice fails to properly log the injection error due to a failed message…
martijn p
  • 598
  • 4
  • 19
-1
votes
1 answer

How to Alphabetize the Names of All Online Players in minecraft spigot plugin

I want to alphabetize the names of all online players. and then get 1 random player from that
vitekform
  • 25
  • 5
-1
votes
1 answer

How to import com.mojang.authlib.GameProfile

I'm currently trying to create a Spigot plugin, but I need to use GameProfile to apply textures, and I can't seem to import it. When I import it using: import com.mojang.authlib.GameProfile; I get the error: Cannot resolve symbol 'mojang' I'm using…
Pinouz
  • 11
  • 2
-1
votes
1 answer

Limiting the amount of entities a Mobspawner can spawn

[Java Spigot / Minecraft] Is there a way to create a plugin that limits the amount of mobs a spawner can spawn on a server? For example I want to create a mob spawner that automatically stops spawning mobs or destroys itself after spawning 500…
-1
votes
1 answer

On hostinger i have swapped the server to Spigot, but when i attempt start the server i get an error saying the spigot jar is nonexistent

On hostinger i have swapped the server to Spigot, but when i attempt start the server i get an error saying the spigot jar is nonexistent help server settings the error i expected there would be no errrors but what happened was the spigot jar was…
-1
votes
1 answer

java.lang.IllegalArgumentException: Invalid key. Must be [a-z0-9/._-]:

I'm making a plugin but when a start the server it gives this error massage Error: [16:43:41] [Server thread/ERROR]: Error occurred while enabling CustomServer v1.0-SNAPSHOT (Is it up to date?) java.lang.IllegalArgumentException: Invalid key. Must…
Entropire
  • 11
  • 3