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...
Hi, 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...
Hi, 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...
Hi, 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...
@Xerox262 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...
@Xerox262 But I need the saveConfig() on my onDisable //onDisable() List<String> times = getConfig().getStringList("times"); if...
@Xerox262 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....
@BaconStripzMan Already tried that, still not working. And how would I saveConfig() if I am editing it from the FTP files.
Hi, 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.
@Zombie_Striker Sure I'll give you the whole thing! I just think that some code is irrelevant, but ok. Line 148 is: econ.depositPlayer(p,...
Hi, I am doing a simple plugin that when you do /voucher test it adds $10 to the player. My code: OnEnable: @Override public void...
@teej107 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.
Hi, 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...
@Lightspeed This problem is driving me insane lol, I created a whole new project to test it out. My code: package me.thenewtao.voucher; import...
@Lightspeed Sure :) HashMap<ItemStack, ItemStack[]> vouchesSaved = new HashMap<ItemStack, ItemStack[]>(); VouchInventories inventories =...
Hi, I have an InventoryClickEvent, code: package me.thenewtao.voucher; import org.bukkit.Bukkit; import org.bukkit.Material; import...
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.