The title says it all; I'm trying to code a plugin that counts the number of ores and blocks total mined by the player in the past thirty minutes....
@Machine Maker Let me double-check to make sure I understand everything. Let's say I want to have two subcommands called "/chat reload" that...
@Machine Maker It's the broadcast line... Bukkit.broadcastMessage(). Either I'm missing something obvious or I changed the code...
@Machine Maker Ah okay I see, I switched the method out and it worked just fine! Thanks! On another note, is there a reason why this produces an...
@Machine Maker Alright. The first class is the main class. private ProtocolManager manager; @Overridepublic void onEnable() { manager =...
@Machine Maker I'm still getting the unhandled exception error, any idea why that's occurring?
Sorry if this is kind of a noob-ish question, but I was messing around with the animation packet the other day. More specifically, I added a...
@Kars Can you elaborate? Do I add extra arguments after the setExecutor()?
@KarimAKL I ended up trying a different way altogether, by removing the for-each loop in openGUI() and having the plugin automatically add the...
@KarimAKL No, it doesn't work. I'm getting a NPE on the method invContainsPlayer. Here's the code in my manager class public class...
@X1machinemaker1X But isn't that only an available method in InventoryClickEvent? If so, doesn't InventoryClickEvent only trigger when the player...
@darthteddy1 @KarimAKL I can't update the inventory though... Maybe you guys misunderstood my question, so let me re-explain. I have a class,...
@KarimAKL No, not yet. I believe I have the update-inventory part working, but whenever the player returns home (hypothetically speaking), the...
@KarimAKL @X1machinemaker1X Ooohh I get it... calling .getContents() returns the whole inventory. Since not all of the inventory is filled up, the...
@KarimAKL It should though... in the actual openGUI method, I have a line inside the list of Users that sets the Display name of the head:...
@X1machinemaker1X It isn't the same. The list the inventory loops through contains a list of players below a certain Y-level. So each ItemStack...
@KarimAKL Is there an elegant way of doing this? The way I'm thinking of involves a for loop that loops through each ItemStack in the Inventory,...
@KarimAKL No, I have a player head with the display name set as the player's name. I have the count set a the lore for each head. I doubt the...
I'm making a counter for the number of diamonds, iron, gold, emeralds, etc. mined below a certain Y-level. I have the Inventory working to display...
@KarimAKL Sorry to bother you again, but is there a way to list all the commands when you do /help <name of plugin>? At the moment, it just lists...
Separate names with a comma.