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
1
vote
3 answers

Saving to yml file using Spigot

I'm attempting to produce a Message.yml file using Spigot's YAMLConfiguration. This is my code: public static void create() { if(messagesFile.exists()) return; try { messagesFile.createNewFile(); …
1
vote
1 answer

Kotlin coroutines in Minecraft spigot plugin

In the docs it says that coroutines are lighter than threads and so I wanted to use a kotlin coroutine instead of the BukkitRunnable. //Defined as class field private val scope = coroutineScope(Dispatchers.Default) //In class method scope.launch…
1
vote
3 answers

I can't resend a texturepack request

I code currently a minecraft java plugin which loads a texturepack but I have a problem. When you decline the download of the texturepack, it will never ask again for downloading or accepting and I never got a error. I used this…
1
vote
1 answer

Ignore UUIDs in attribute modifiers when comparing items

When I try to find, if two items are same, I can't. It's because of a attribute modifiers that have some UUIDs that are always random so I can't compare items with attribute modifiers. Even though I know I can compare items by name etc. I want to…
Miskakao
  • 99
  • 1
  • 7
1
vote
2 answers

SQLite find a UUID and change value in row (Minecraft plugin)

I have a question about SQLite in bukkit encoding. I'm trying to figure out how to find a player in the database using a UUID and change values ​​(such as the number of tokens) on the same line. I'm using a prepared statement and I've tried this,…
Romis Pejs
  • 87
  • 4
1
vote
1 answer

class cannot be cast to the same class Spigot custom API

I recently made a custom api for my spigot plugin to manage the database connection in an easier way. I had to get the plugin and cast it to the class of my API I imported. public GameAPI api; @Override public void onEnable() { this.api =…
1
vote
0 answers

Receiving bad performance while running Minecraft Spigot inside of a docker container

I'm trying to run a 1.8.8 spigot instance out of a docker container and am receiving terrible performance in comparison with just running the instance out of a screen or tmux session. I've looked across so many places, although I've been unable to…
Ashton
  • 11
  • 2
1
vote
1 answer

Spigot - Plugin won't load and the error isn't specified

I'm making a server bridge for a server, but it won't load. This is the log: [ERROR] Could not load 'plugins/MGServerBridge.jar' in folder 'plugins' at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135)…
JustAdam
  • 11
  • 4
1
vote
1 answer

Spring does not scan components without main function

I am trying to implement Spring in a spigot plugin. I noticed I got the BeanNotFoundException, when searching around on the internet I tried some things but it never worked. So I tried running the same code in the main function and it worked…
Justin
  • 39
  • 1
  • 5
1
vote
1 answer

How do I check if an argument(money amount) has only 2 decimal places?

I am working on my first own money system. So far, except for one thing, everything is going great. I currently can't find a solution to block from the 3rd decimal place of my argument if it is "0". Example: /pay (Player) (1.11000000000000...1) With…
TheHuman
  • 11
  • 1
0
votes
0 answers

Minecraft Spigot World Edit API: How to copy/paste regions?

I am making a dungeon generator in Minecraft spigot and I am trying to implement a copy paste method using the World Edit API. i cant see much on the documentation and i believe chatGPT is giving outdated information, as follows: public void…
0
votes
0 answers

Censorship of words: A method for checking words

I'm censoring the chat. Censorship works, but the plugin replaces the word, even if this word does not need to be blocked. For example: Blocking the word "port" The plugin blocks as follows: Tele****ing What check should I add to this method to make…
DiceMa
  • 11
  • 1
0
votes
0 answers

Getting "Class loaders have different class objects" error when trying to use custom kotlin spigot library

I have two separate kotlin projects that communicate with each other, one being a library and one being a project using said library. In the library I have the following data class: data class MelodiaGUIItem(..., val clickFunc: (InventoryClickEvent)…
Melody
  • 19
  • 4
0
votes
0 answers

Spigot Plugin Help (1.20.1)

So I'm creating a custom CampfireRecipe to turn rotten flesh into raw beef but it has a probability of dropping a bone instead of beef (30%). Well it does not work. I think that it does not work because it's not calling getMaterialWithProb() once it…
0
votes
0 answers

Is it possible to create task that adds dependencies to project?

I want to create a Gradle plugin to simplify the creation of the project for Spigot plugin using mappings, I already have all the necessary tasks, however I do not know how to do that when applying the plugin to the project to add remapped-mojang…
1
2
3
10 11