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

I've checked everything in my YAML file and yet it gives me an error

I'm writing a spigot plugin and in the config.yml, I get an error, this is the error: Caused by: org.yaml.snakeyaml.scanner.ScannerExcption: mapping values are not allowed here in string, line 3, column 16: MaintenanceMode: "false" …
0
votes
1 answer

NullPointerException when registering a new command in main class

I want to create a new command in a minecraft plugin im currenly developing. it should give a player an item. I registered the command in my main class and in the plugin.yml but when the server loads the plugin, it always throws a…
potzplitz
  • 11
  • 2
0
votes
2 answers

What's the fastest way to find if a point is in one of many rectangles?

So basically im doing this for my minecraft spigot plugin (java). I know there are already some land claim plugins but i would like to make my own. For this claim plugin i'd like to know how to get if a point (minecraft block) is inside a region…
0
votes
1 answer

My final config object does not contain any values

So, I have started writing my plugin for my server. I made a method, that should get values from config and store them inside my storing object. But as the method serialize() tells, the object is except serialVersionUID empty. The output from the…
user16665136
0
votes
2 answers

JavaPlugin cannot be resolved to a type

I want to code a 1.18.2 Minecraft plugin using Java in the eclipse IDE. I'm pretty sure I'm using the latest versions for everything. I'm using a tutorial and when it said to put this in: public class Main extends JavaPlugin { A red line shows up…
0
votes
2 answers

Loop through tens to hundreds of thousands locations at multiples times per second

Trying to make a minecraft plugin here. I am trying to make a custom ore generator. The generator is cube, it has no exterior walls on the outside and the middle is filled with ores. When I create a generator I don't save every single location…
dmf
  • 3
  • 2
0
votes
1 answer

ClassNotFoundException with Jackson on plugin disable

I'm making a spigot plugin and in the onDisable function (which gets called when the server shuts down) I have it save my data. The problem is is that when it disables for some reason it cannot find one of the classes (ObjectWriter) that I use to…
DePianoman
  • 170
  • 1
  • 1
  • 10
0
votes
2 answers

How to set integer for target player?

I need an integer per player. I created a countdown, but the integer is for all players. When I set a value, this applies to all players. Each player should get their own value. Does anyone have an idea how to fix this? My code: private static final…
Slyxx_
  • 31
  • 3
0
votes
1 answer

NoClassDefFoundError while trying to use mongodb - Spigot Plugin

I want to write a plugin that can authenticate users by checking nosql database, but I bump into error when I try to run it in my server. I import the mongo driver using gradle but get NoClassDefFoundError. Here is the error code: [04:17:15] [Server…
GJ Guo
  • 11
  • 3
0
votes
1 answer

cannot add spigot to build path succesfully for 1.18 plugins

I've been trying to import spigot/bukkit for minecraft plugins. When trying to create the main class, I entered public class Main extends JavaPlugin{ } With an error under JavaPlugin, since their is no import. The tutorial im following told me to…
Drand
  • 9
  • 4
0
votes
1 answer

Jar does not contain plugin.yml

I know this is another question like, this but really - I tested all things that are on internet, and I can't make it work! Hi! I created GitHub repo: https://github.com/Norbiros/DenoriaBot. When I export this file - everything works fine, but when…
Norbiros
  • 3
  • 3
0
votes
1 answer

How do I get NMS classes for 1.18.1?

Simple thing: I want to use NMS classes for my Spigot 1.18.1 Plugin. I downloaded Buildtools, there are all spigot classes inside (ItemStack, World, Player, ...) But I want to use NBTTagCompound or .asNMSCopy(); Methods but the classes are not…
0
votes
2 answers

Replacing every block in a chunk crashes server

I am replacing blocks in chunks. Every time a chunk is loaded, I replace generating blocks with a random other one. So here is my code package de.belinked.chunkrandomizer; import java.util.Arrays; import java.util.List; import…
0
votes
1 answer

/execute doesn't work for my custom command

I made a custom /spawn command that teleports the sender to spawn I tried to use it doing "/execute as Mouton_redstone run spawn", "Mouton_redstone" being my minecrfat username. But it tells me that my command doesn't exist, when I run it myself, it…
0
votes
1 answer

(Spigot) How to await in java

I am making a minecraft mini game plugin, i need to make a loop that do the minigame, if the game is ended, stop it, but else continue, for making that i just created a boolean that is false and i put a : while(isEnded) { //my code } But in my…
Sysy's
  • 67
  • 3