Somehow I don't think that is quite what you wanted to say. You contradict yourself 1) You're not coding bukkit plugin 2) You're using someone...
I think i'm going to write a book. Oh wait, I am illiterate. Do you see the problem here?
Because your for loop has the experession i == args.length. Therefore when I execute the command and type 6 args, i < args.length therefore your...
Is your guiclass variable initialised somewhere?
A fair amount of lack of understanding, wrong/unknowledgeable suggestions and general lack of Java knowledge has been going around in this thread....
If you want the clicks value to persist, then just edit it outside the method. So do, clicks++ or click += 1; and then you set the value in the...
Keep your code as it is, but replace clicks++ with ++clicks
Increase the duration of the potion effect to something much higher. Try something like 1000, then go from there.
You cast e.getEntity() before checking it.
Compare the names of each for (PotionEffect pe : player.getActivePotionEffects()) { System.out.println(pe.getType().getName());...
ZodiacTheories Move the debug statement to outside the if statement but inside the loop still.
You never insitialise your config variable to anything. Set it equal to getConfig()
GameplayJDK A nice thought indeed, but I just checked and PotionEffectType isn't actually an enum, and is not usable in a switch statement as...
Your 'config' variable is null. Show me the code where you initialise it,
Read the stack-trace then show me the line of code which the source of the error is coming from. (Hint: it's in your onCommand method).
Separate names with a comma.