My plugin is effectively overriding most in-game items with custom fields such as weildLevel and xpReturn etc. I'm using standard inheritance at...
@CodePlaysMinecraft Unfortunately that is probably a bad idea! I've put in a really awful "fix" for now, basically I kill every villager in the...
I have custom VILLAGER entities (NPCVillager.class) in my world which are managed by an NPCManager class. Using NMS I have made these VILLAGERs...
@Tecno_Wizard I've fixed the issue. The repeating task is every 20 seconds so shouldn't have much effect on the server.
So I have an NPCManager class which handles to spawning and de-spawning of my NPCs from the game. NPCs are villagers with custom behaviours. So...
@KingFaris11 Thanks! Totally forgot about the ChatColor thing!
@Synapz It's a utility function inside a class called InventoryUtils, it's doesn't need to be part of an object.
Here's my method to check if a player's inventory contains x number of a custom named item. public static boolean containsByName(Player...
@Bram0101 Thank you the setItem() method worked great. It must be a bug because I tested setType(Material.WOOD) and it worked fine but...
At the moment I'm iterating through the player's inventory and attempting to clear a particular slot using slot.setAmount(0) and...
@HeyAwesomePeople Brilliant! Thanks a lot :)
This is weird. I've added a maven dependency to my project for the Fanciful JSON chat library. It imports fine and I'm able to start writing with...
@MiniDigger I'm able to import this library using Maven into my project (IntelliJ IDEA), and I'm able to use it fine. When I build my project,...
@bwfcwalshy [IMG] This is what I mean. Both parts of the inventory come under the same name when you create a CUSTOM inventory...
@bwfcwalshy This wouldn't work because both containers come under the same inventory name! @Elimnator Ah of course, thanks!
Separate names with a comma.