Create a HashMap<UUID, Long> which stores the player UUID and the Long is the time in milliseconds. When your plugin starts, start you runnable....
@mine-care I am fairly sure his problem is here: Weird night because I have seen people post this in their post at least 4 times on the front...
Here is my suggestion. STOP. USING. /RELOAD. Bad things WILL happen because most plugin developers have no idea how to elegantly do this.
NO. No you cannot. At least not with your server not doing anything else while it is doing so. I have many private servers at my disposal which I...
Your problem is not brackets, it is your knowledge of Java unfortunately. :/ Additionally, why would you be creating an INFINITE repeating task...
Configs do not store "UUID's" they store it as a String. You must convert it back to a UUID or cast the p.getUUID() to a String....
@mythbusterma @CraftCreeper6 I'm sorry but I have been coding in Bukkit for over 3 years now and in my own experience, tracking blocks to restore...
I have created this exact plugin already so I will give you the nuts and bolt of it to save you some time. You need the Essentials.jar in your...
You are WAY off base here. I implement loading/unloading worlds in many of my "arena type" plugins at little to no noticeable effect on server...
There is nothing I said that was wrong. You however are grossly wrong by stating tracking blocks is the "most effecient way". There are so many...
@chris8787878787 I figured as much but based on the example code you showed here, not sure you are up to the task to complete your goal. Good luck!
1. Every variable HAS A MEANING. You define it. You should use something useful so you can (or someone looking at your code) can understand it....
I am not 100% sure what you are even trying to accomplish but this code does what it seems like you intended. Are you trying to penalize or gimp a...
No I am not saying that. I said what I said above. Also, this seems wrong "Player p = e.getEntity().getPlayer();" Doesn't e.getEntity() already...
if(e.getEntity().getKiller().getInventory().getItemInHand().equals(Material.DIAMOND_SWORD)) @chris8787878787 You cannot compare an ItemStack to a...
I don't want to bash you here but the potion effect working or not is the least of your worries. Your IF conditionals show a complete lack of Java...
@chris8787878787 --- Your code is horribly inefficient first off. Why are you IF-condition testing like that?? You realize you are checking ALL...
@mastertrolable I suggest against trying to store all of the blocks modified during a game. You will have to ensure so many variables do not...
Yes, but careful not to block opening the player inventory.
I generally do not provide verbatim code, but in this case there would be no way to show you so here is a snippet of how I iterated over regions...
Separate names with a comma.