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!
How can I check that the slot clicked in a custom inventory is part of the custom inventory and not the players inventory? Open a chest and...
@Zombie_Striker Ah I can't believe I didn't see that. This has been puzzling me for a while, thanks!
So in my plugin I have mob regions. A region has a constant number of spawned mobs (such as 4 zombies), which are tracked by a hashmap. The...
@Hex_27 enemies.remove(s); allies.remove(s); You're removing items from the List while iterating through it.
@1Rogue Just built it, works well but my checking if a mob is in a region is a bit iffy, will fix later. Do you happen to know if there is a...
Separate names with a comma.