Interesting, I assumed that there was a better way to handle items coming out of a dispenser. Will give this a shot and report. Thanks!
Hi there, I'm attempting to get the item that is shot from a dispenser, and then in turn kills a player. If this item doesn't kill a player, I...
OpenInv has this feature.
Works like a charm! Thanks a lot for the help raGan. and Tirelessly :)
12:23:42 [SEVERE] Could not pass event PlayerDeathEvent to PvP Restore v1.4 org.bukkit.event.EventException at...
for (Integer itemList : plugin.getConfig().getIntegerList("whitelist.items")) { for (ItemStack itemStackList : event.getDrops()) {...
Will give this a shot, and report progress. EDIT: Unfortunately, there's no setDrops method. Cloning the list would just make this more of a...
Got it, I read on how to read stacktraces and eliminated the error. Never knew they were really readable, I'm a native C++ coder just beginning to...
Okay, this is what I have so far. But it's giving me an NPE once everything is done. It does it flawlessly, but it spams my console. public...
Hey guys, I'm trying to do this using a list in my config. I can't think of a proper way to go through a player's items when he respawns and only...
Hi guys, I'm trying to make a function in which item IDs that are on an external config.yml are NOT dropped from a player's inventory when they...
Works! Awesome! Thanks! I forgot this little trick from when I was learning C++ last year, you're a life saver!
Yeah, it's an NPE whenever the code is called. Only while the helmet check code is in there, though. If I remove that, it compiles and works like...
See, the iterator is checking all the values of itemList, which is a changing value in this situation. It needs to be checked for all values of...
What if I made it: if (p.getInventory().getHelmet().getTypeId() == itemList && p.getInventory().getHelmet() != null)
public void blacklistItems(Player p) { if (p.hasPermission("pvprestore.blacklist.drop") &&...
Hi there everyone. I've been racking my brain over this for the past couple of hours. I've successfully made a plugin that checks a blacklist of...
Your main is incorrect. It's {$MainClass}.{$MainJavaFile} In your case it would be me.Repasa.Fd.FactionD Since your package is incorrect, you...
In this case I'll still need to check multiple instances. Would you recommend a switch statement or a recursive function?
I'm trying to think of a good way to do this. A hashmap seems unneeded here. Would this be more effective with a switch statement or an if/else...
Separate names with a comma.