I was told I should do these type of operations async?
I am using a custom level system. I would set up the connection pool when I enable the plugin.
My question is how often can I open up a...
So I am creating this plugin where every user has a level. For example, Alexa will be level 1 and I could be level 2. That is an easy one to...
So I am trying to make a simple command, when you do /createsign it places a sign on the block you are looking at. I thought it was going to...
I was wondering how can I ignite a creeper, like set it to explode. What I am doing spawning a creeper and I create a BukkitRunnable and set...
That works, but how do people do it? like allowing people to modify the config.yml and just reloading to change the value, instead of...
But I need the saveConfig() on my onDisable
List<String> times = getConfig().getStringList("times");
What I mean is that I go to the config.yml through the FTP files and edit it like that. When I reload the server, it does not change....
Already tried that, still not working. And how would I saveConfig() if I am editing it from the FTP files.
I am having a problem that when I change a value from my config, to be more specific I am changing "cooldown-time" to a different value. It...
I found the mistake, I just wasn't using an economy plugin.
Sure I'll give you the whole thing! I just think that some code is irrelevant, but ok. Line 148 is:
I am doing a simple plugin that when you do /voucher test it adds $10 to the player. My code:
To be honest, I do not need to configure anything in that HashMap, due to that everything is done in-game. I just need to store it.
I am not the most experienced person when it comes to the configuration API. I have a HashMap with a ItemStack as a key and an ItemStack...
This problem is driving me insane lol, I created a whole new project to test it out. My code:
HashMap<ItemStack, ItemStack> vouchesSaved = new HashMap<ItemStack, ItemStack>();
VouchInventories inventories =...
I have an InventoryClickEvent, code:
What is on line 39 of your code? Also I would recommend getting the ItemMeta and getting the displayName() instead of what you are doing
Why are you doing this?
String name = p.getItemInHand().getType().name();
Also can you show us the error please? or what line is not working?
Separate names with a comma.