What's at line number 40?
First Google search result: https://bukkit.org/threads/cooldown-time-is-not-working-maybe-because-of-the-hashmap.139092/#post-1617998
That would require him to set up a scheduler to achieve this:
Or a copy of the main class
I see the problem now. In each plugin, only one class (the main class) can extend JavaPlugin. Judging by your plugin.yml, the main class is...
Yes, that does not explain why absolutely nothing happens when the command is executed though.
Would you mind posting the content of your...
Thanks @Zombie_Striker . I guess I copied it wrongly from above.
This ought to work for values below 1%. Why shouldn't it?
Alright, let's see:
If you want to put a percentage value into your config (e.g. skeletonDropChance: 50), then you have to either devide that...
It depends: Is the value you enter in the config a percentage or a probability value?
If the percentage was 50%, the...
Take a look at this thread.
Take a look at Math.random()
You actually could. That's a simple mathematical problem: You have a vector (the direction the attacker is looking), a starting point of that...
Does the plugin load? Do you get any errors? Have you registered the command in the plugin.yml file? What exactly happens when you execute the...
Please send your new code in the listener class along with your main class.
You don't need "else if". Simply use "else" and it should work.
By using a HashMap that maps a player's name or UUID to the ability they selected. For the ability, I suggest the use of an enum. When a player...
What exactly does not work? Are there any errors?
It's a NullPointerException. Every quick Google search result will tell you how to narrow it down and fix it. If someone else keeps on doing the...
Separate names with a comma.