You could add the Parrot variant to the lore then check the item on PlayerInteractEvent and spawn it manually, with variant, and tame it.
You'd either want to cancel the event or set the damage to be insanely high. Just outright killing them can cause a death to happen twice. Found...
Try changing it to: ItemStack StoneSword = new ItemStack(Material.STONE_SWORD, 1); PlayerInventory pi = player.getInventory(); int slot =...
If I am correct you want to play a particle effect around the mob? mob.getWorld().playEffect(location, effect, data); Location being the...
Not sure if this is the problem or not, but if(player.hasPermission("hkits.Thor")){ } else { Wouldn't this make it to where the command won't run...
Ah, thanks that fixed it.
Don't I already use ConfigurationSerialization.registerClass(ArenaData.class, "ArenaData");? Also Static {...
I'm currently making a plugin for Arenas, and I am completely stumped on an error I have. Here is the code from the class that throws the error...
I am working on a plugin that stores strings in an array list. I am trying to get strings from an array list and display them in a chat. But I...
Well I want to store a list of town names with a command. So I want to loop through those.
Currently I'm trying to use a for loop, although I am not sure if it will work. I'm making a plugin to save names to an array list when a command...
Thank you, it may not be the way I was taught, well with the little teaching I received but it worked. Now to figure out how to display lists of...
I made a simple chat plugin a while back trying that added players to the chat and removed them from the chat. So I decided to make a simple town...
Don't know why I had that in there but deleting it seems to have fixed it.
How could I make it getResource from the Data Folder instead?
I'm fairly new to java and bukkit plugin coding. I am trying to save a list of players as a .yml file then use it as an Array List. I'm not sure...
Do I save the player? I thought I only saved the name.
I added the the customconfig, but I'm getting errors. org.bukkit.plugin.InvalidPluginException: java.lang.NullPointerException at...
I'm new to developing and I need help creating a list in a .yml file and adding them to it when they type a command. Then removing them when they...
Separate names with a comma.