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

Issue when using dataFolder on Java plugin - cannot find where the folder is saved

I would like to save the output (player coordinates) of the minecraft game into a file named player.log. If my player username was 'abce', the name of the file should be 'abce.log'. However, I can't find where on my server this file has been stored…
Caledonian26
  • 727
  • 1
  • 10
  • 27
0
votes
1 answer

Trying to teleport mobs to a random location around a player

I can't get the location setup correctly. I've tried a few ways and what I came to now I felt was right but I just can't figure out what I'm doing wrong. package nathaniel.newplugin.eventlistener; import org.bukkit.Location; import…
0
votes
1 answer

Cancelling a scheduled repeater on Bukkit/Java

I am programming a plugin that records the coordinates of players in minecraft throughout the game, in Java with Bukkit API. I have used a 'repeating task' structure in my bukkit/java code below. However, I need to 'cancel' this repeating task when…
Caledonian26
  • 727
  • 1
  • 10
  • 27
0
votes
1 answer

I want to connect the Spring application with the external bukkit server through the REST API method

I want to control the bukkit server through the spring web application. For example, send a command to the console, receive his response, etc I'm trying to figure out a way, but I can't find a good one. How shall I do it? Even if third-party plugins…
0
votes
1 answer

Using Bukkit and Java to create a 'repeating task' code on a Minecraft spigot plugin

I am in the process of creating a spigot plugin (using Java and Bukkit language) that will allow me to store the coordinates of players in minecraft (Java edition) in real time. I want to use a 'scheduler' to do this with a 'repeating task'…
Caledonian26
  • 727
  • 1
  • 10
  • 27
0
votes
1 answer

How would I force download a certain file everytime a server is started?

How would I force my server to download a specific file every time the server is started up? For example; I have a plugin coded, and I want to make it so it will automatically reinstall that plugin to the server every time it is started up, but I…
0
votes
1 answer

ProtocolLib Advancement Toast Packet

How do I show an Advancement Toast with ProtocolLib? My code: PacketContainer packet = protocol.createPacket(PacketType.Play.Server.ADVANCEMENTS); protocol.sendServerPacket(e.getPlayer(), packet); I tried with getStrings().write but nothing…
Mime
  • 9
  • 2
0
votes
2 answers

Getting an the name of an item and getting the string value returns gibberish

I want to get the player whos name matches the name of the block which was placed and updated this players gamemode to survival. But this just gives me gibberish in the console: @EventHandler public void onPlace(BlockPlaceEvent blockPlaceEvent){ …
YoRisk
  • 3
  • 4
0
votes
2 answers

String (sentence) to Array and output Array in one sentence and put the last letter of every word to the beginning of every individual word

I have a question regarding I want to output following: When the Player types Hello, the output should be oHell. When the Player types Hello World, the output should be oHello dWorl. public class ConnectionListener implements Listener…
Julian
  • 1
  • 3
0
votes
1 answer

Removing a material from an Itemstack out of players inventory

I am working on a plugin that allows players to fly at the cost of a item. I have this code that works but only if the item is in the first slot of the players inventory (Hotbar) and no where else. To enable fly I have a command class that checks…
Mike
  • 1
  • 1
0
votes
0 answers

While trying to compile a spigot plugin using maven, I run into an issue and am really tired of it

The Error: net.atlas.SkyblockSandbox.player.SBPlayer is not abstract and does not override abstract method getTexture() in org.bukkit.entity.Player Some code I think is causing the issue (If more is needed to help fix the issue please let me…
Synthle
  • 9
  • 1
0
votes
1 answer

NoSuchFieldError MongoDB Error Spigot (Minecraft Server

This is the error im getting in the console https://prnt.sc/UEwAWFplmUWn Here is the line its refencing on console to the mongostorage class and the onEnable that is also referenced. onEnable: https://prnt.sc/8dnYz-VG7fL8 (the string that is not…
user19841649
0
votes
2 answers

getItemMeta is always returning null in my spigot plugin

Hi fellow coders I have been trying to make a custom sword and put it into a shop gui but when I try to change the swords meta using ItemStack.getitemmeta() and then i try to set the display name or something it says the sword meta is null. Also I…
0
votes
1 answer

Customizing the TabList with Bukkit 1.8

I'm working on a UHC Minecraft plugin with Bukkit API 1.8 I'm looking to modify the TabList (Player List) to display the Plugin name and credits (and potentially the player's kill count if possible) Searching on the internet I found this fill…
Av32000
  • 35
  • 3
0
votes
2 answers

Spigot/Bungeecord Hibernate - Invalid logger interface org.hibernate.internal.CoreMessageLogger

I tried using Hibernate ORM to handle my BungeeCord database mappings. I've used it before and had no problems doing so. Now I revisited Minecraft programming and could not get Hibernate running. My pom.xml is: