I have this code. When i try to use it on my 1.14 server, i get this error: Caused by: java.lang.IllegalStateException: BroadcastMessageEvent...
But can i do that on a Material? There isn't a setdata on material
Hello. I have this piece of code to loop through a players inventory and remove amount of a material: if (itemCount >=amount){...
The blocks will not be removed unless the blocks are in the same slot. The blocks will not be removed if it is the same number of blocks in your...
I am trying to make a plugin that can loop through an inventory and delete a certain amount of a material. {...
I am trying to make a shop plugin, but when i am using the shop and right clicking on the sign, shopinv is not changing its inventory. shopinv...
27.10 12:17:55 [Server] INFO at plugin.magicalwars2.net.libs.WreckingBall.onClick(WreckingBall.java:30) ~[?:?] 27.10 12:17:55 [Server] INFO Caused...
An item is an entity. A material that is being thrown on the ground is being transformed into an item. It is when the item is spinning on the...
If you create an inventory like that it will be cleared after a reload or restart of the server. If you want to store it over longer times, you...
You can make an Inventory with Inventory inv = new Inventory(); Then you can put the chest's content inside of inv, and then when a player tries...
ItemStack is using Material, and you are trying to put an item instead of a material. Try to use new ItemStack(diamondToDrop.getType());
http://dl.bukkit.org/downloads/bukkit/
Material.valueOf(string); ?
When the game starts, you can make an empty hashmap<Location, Material>. When a player destroys a block, you can add the material into the...
Separate names with a comma.