Hello. I am making a master plugin for my server. I'm currently working on /kick. But, when I try to run it from console, it gives me an error....
@mkezar I believe for PlayerDeathEvent it's .getEntity() not .getplayer(). Don't ask why, since it's a player event.
Use Bukkit.getPlayer with the player's UUID in the ArrayList instead of the Player's name. And you didn't define the ArrayList. You defined the...
Just instance your plugin's Main class. Then check the config then check if that string contains true or false. Then use if statements to check if...
Why can't the suffix and prefix both be in the prefix? As far as I know unless you code your own plugin the, suffix is always AFTER the username.
When I started making bukkit plugin I noticed cmd.getName DOES NOT WORK. I had to use label.equalsIgnoreCase For it to work. @87pen Don't listen...
I think I found where you went wrong. Instead of using cmd.getName.equalsIgnoreCase You should use if(label.equaldsIgnoreCase("Your Command"));...
You didn't make it so that the ItemStack uses the ItemMeta Use playerhead.setItemMeta(playerheadmeta);
Just use the event shown up there somewhere ^^. Then check if it equals the command you want to block. like...
You could check when a player does a command then cancel the event.
Are you questioning me helping? ,_,
@SkyGlue Just use this: package me.SkyGlue; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import...
I'll try it. Thank you.
mythbusterma I just need to know how to convert the Location and Player STRING Back to a LOCATION and PLAYER.
mythbusterma It's the way I am using the Lists, HashMaps, and config.
Separate names with a comma.