@Horsey Oh, I'm embarassed. Haha. Thanks it's working.
So awhile ago I posted a similar thread on trying to receive the target player's uuid for the InventoryClickEvent. However, when I thought I had a...
[EDIT] Problem solved. I basically just created a public static variable for UUID and set it to the target's uuid and inside the InventoryClick...
So upon running a command: /punish player (name) It'll save the player's uuid and the target's uuid into a Hashmap. Then it'll open up a GUI, and...
@Horsey event.getPlayer() doesn't exist in InventoryClick event and using getWhoClicked() would just be the (command runner). Bump! Still trying...
I'm running into an issue I can't seem to find a solution to no wonder how many times I try. I'm developing a simple Punishment Plugin that opens...
Don't check if the argument is null, that just means you didn't type anything after the command. Check if the target is null. @S1ant Example:...
if(!ChatColor.stripColor(event.getInventory().getName()).equalsIgnoreCase("invName")) return; Player player = (Player)...
@XSilverSlayerX Action a = event.getAction(); ItemStack is = event.getItem(); if (a == Action.PHYSICAL || is == null ||...
@FireFlies Like @Skrubzy said, not to be rude, but I have a few questions. Why does it need to be case sensitive Wouldn't this just...
@10Cps_ What's the point of creating a /staff (add/delete/head) when you can just have the staff rank with a permission node, and it'll grab...
For basic example; Define the wanted color; Color c = Color.fromRPG(0,1,43); Then create the LeatherArmorMeta LeatherArmorMeta meta =...
@Aztron Did you properly debug it? For example: Send a message, to see if it triggers. Or open the file and see it will request a refresh afterward.
@SirGregg So you did in the main? getCommand("name").setExecutor(new ClassName(this));
@dotJar1 I grabbed the code to debug it. Works perfectly fine for me without changing anything. Did you make sure to refresh your plugin.yml...
Separate names with a comma.