1,832 questions
1
vote
2
answers
142
views
How to create server-side menus in Minecraft that render entities (like the horse menu) but with custom mobs (e.g., a ravager)?
I’m developing a plugin for a bukkit server and need to create custom inventory GUIs that dynamically render entities (e.g., a ravager) inside the menu, similar to how the vanilla horse inventory ...
0
votes
1
answer
65
views
Why does a local test server initialize my plugin twice?
I am developing a minecraft bukkit plugin. Whenever I want to test the plugin by starting a server, the following error appears:
[11:05:09 ERROR]: Error occurred while enabling ...
0
votes
0
answers
23
views
Global state vs local isolation. My own spring context
not long ago we started developing our own Spring but adapted to bukkit api by removing unnecessary systems, modules, etc (plugin development). When creating a context we faced the problem of global ...
0
votes
1
answer
57
views
Item name and lore de/serialization
For some reason when setting a item's name/lore using custom ChatColors via the Bukkit API(aka ItemMeta#setDisplayName()) and then later checking its NBT, it formats the NBT using redundant formatting ...
-2
votes
1
answer
83
views
Why do i get "Invalid plugin.yml"
Hello i want to create my first plugin but i have been running into a problem with the invalid plugin
here is my code
I am using Gradle Minecraft 1.20.4
Error :
org.bukkit.plugin....
-1
votes
1
answer
249
views
The issue of loading worlds with Minecraft Folia's WorldCreate
I am using Folia and need to load a world that has already been saved to disk. However, I'm unsure which scheduler to use: EntityScheduler, GlobalRegionScheduler, RegionScheduler, or perhaps no ...
0
votes
1
answer
95
views
config.getstring returns null only if the config has more than 3 "points"
This is my config.yml:
gui:
title: "This is the GUI's name"
items:
feather: "This is item feather"
cookie:
hello: "Hello, here's a cookie"
And here's the part ...
2
votes
1
answer
267
views
How to change a nametag with or without protocollib
So i've been searching for the past year and out of all the solutions to change the nametag of a player 2 have been standing out one is using reflection and another is just using protocollib.
The ...
0
votes
1
answer
59
views
Save World.Environement into config.yml
I want have a lobby world.
I want this lobby world can be change in the config.yml.
To load this world, I need to use the command:
WorldCreator lobby = new WorldCreator("MyLobbyWorldName");
...
1
vote
1
answer
146
views
how to call "/server server_name" from bukkit plugin
I used Velocity proxy
I need call
/server server_name
from my Bukkit plugin
I tried to call a command with
player.chat("/server server_name")
but I got the error " undefined command &...
0
votes
1
answer
99
views
java get random from list by its percentage chance
i've have an list:
public List<Map<Integer, Rarity>> classes = Arrays.asList(
Collections.singletonMap(0, new Rarity("rarity_default", "Default!", 55.0)),
// ...
);
...
0
votes
1
answer
198
views
Bukkit -> Forge network messages
I send the packet via the Bukkit plugin. Package Send Code:
public static boolean sendPacket(Player player, String message) {
try {
String full_msg = "Text(" + message + ")&...
0
votes
1
answer
91
views
Minecraft Java Bukkit
I want to make it so that my bukkit-paper plugin for 1.20.1 works, where you can mine an end portal frame with silk-touch and it mines, and you get the item:
package me.grubbauer.endcrafter;
import ...
0
votes
0
answers
56
views
How to update victim's scoreboard inside onPlayerDeath in below piece of code
I was wondering how I could update the victim's scoreboard inside the if (killer != null) in my onPlayerDeath script. I want it so that when the player dies to another player it updates the victim's ...
0
votes
1
answer
98
views
Question about vectors (player velocity) and Spigot API
I can’t understand how I can push the player back, left and right, I only understood how to push the player to the side where he is looking.
I tried to use ChatGPT but it produced code that doesn't ...
0
votes
0
answers
31
views
BukkitScheduler doesn't repeat the task correctly
I am trying to do a grenade launcher, and I want to be able to code an animation of the grenade when the player launches it with a right click (= I want the player to be able to see the grenade before ...
0
votes
0
answers
168
views
How to save a scoreboard in a Minecraft Bukkit 1.20.4 Plugin
My code is creating a player_data_txt file in the paper plugins folder but it doesn't have any player data in it and the scoreboard isn't saving when players leave and rejoin.
package me.dev.Boost;
...
0
votes
1
answer
49
views
Bukkit / Java : Problem with recursive method
I'm trying to do a plugin where guns can shoot ammo, and I want that when the ammo hit a block (= block of the location of the ammo isn't air), this ammo destroys the block
The problem is that the ...
0
votes
0
answers
93
views
Is it possible to programatically add plugins to a Bukkit server properly?
I am currently working on a Minecraft plugin using the Bukkit API. The plugin needs to, at runtime, add additional plugins to the server programatically. In SimplePluginManager, used by the ...
0
votes
1
answer
120
views
Bukkit Java - ArrayList is not working in Event
I want to make a plugin which gives a player night vision efect after typing a command and it is working but i also want to add if player is on this arraylist its giving an efect after dying, but it ...
0
votes
0
answers
26
views
Is there a less verbose way to bundle a library with an additional jar? [duplicate]
I've been developing a plugin that includes a feature of saving people's alt accounts in a database. I want it to be secure, so I decided to use the same hashing algorithm/library I used in my ...
-1
votes
1
answer
138
views
Could not load 'plugins\TownTheServer-1.0-SNAPSHOT.jar' in folder 'plugins'
When starting the server, refuses to load my plugin with an error:
Could not load 'plugins\TownTheServer-1.0-SNAPSHOT.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: main class `me....
0
votes
0
answers
167
views
Getting NoClassDefFoundError in jar file
I just added new dependency:
<dependency>
<groupId>com.github.hamza-cskn.obliviate-invs</groupId>
<artifactId>core</artifactId>
<version>4.1.13</...
0
votes
0
answers
59
views
What am I doing wrong to access this variable from another class?
Hey so I'm working on a Minecraft Paper plugin in Kotlin, I have a CommandExecutor class named 'SC' with this relevant content:
class SC : CommandExecutor {
companion object {
private val ...
1
vote
0
answers
355
views
Minecraft TNT Velocity plugin
I'm currently working on a PaperMC plugin for my Minecraft server, and I'm looking for a way to increase the knockback effect experienced by TNT entities when they are hit or damaged. By default, when ...