1.18.2 i did not test it block.getDrops(player.getActiveItem()).toArray(new ItemStack[0]) #getDrops(ITEMSTACK) will return a collection of what...
If you want to use the whole code here you go, you can use it like a template or something idk. [SPOILER]
Your Main class should extend JavaPlugin and register events there, something like this: public class Main extends JavaPlugin { @Override...
i wrote the code for 1.18.2 in paper, and i tested it in both bukkit and paper, and it worked. do you have any plugin installed that controls...
This code works for me: [SPOILER]
the class cl.chunkloader.ChunkLoader needs to extend JavaPlugin something like this: public class ChunkLoader extends JavaPlugin {
use ChunkLoader(Plugin plugin)
you are using papermc in your pom: <dependency> <groupId>com.destroystokyo.paper</groupId>...
The CostumModelData is 5 if you find any bugs tell me.
1. which version of minecraft? 2. name of the plugin? 3. we cannot add new items. what you can do is create a server texturepack for a gold...
if you want to try and do it yourself don't click on code. [SPOILER]
what do you mean by block? block the effect or block the potion item? if the item should be blocked, will the item be removed once the player...
p.getInventory().setItemInOffHand(ITEMSTACK);
if you find any bugs tell me :)
so if i understand correctly you want us to make a plugin that makes that everyone on the server has a current level and the level defines what...
https://bukkit.org/threads/you-need-help-we-need-this-information-to-help-you.2018/ please provide more info
player.getInventory().setHelmet(helmetItem); this lets you put an itemstack in the helmet slot of a player.
effect is null if(effect != null) { if(effect.getAmplifier() < 1) { // do stuff } }
i don't know much about maps thats why i always use HashMaps, but i still tried to implement it and i did. but one thing was bothering me. A...
no they must both need have peace with another if one of them removes the peace both can damage another again
Separate names with a comma.