Thanks I will remember that, but that wasn't the thing that caused problems. (I edited main post with info about it)
My code: Main class: public class cdpmain extends JavaPlugin { .. int[] votes; List<ItemStack> voteOptions = new ArrayList<ItemStack>(); .....
Separate names with a comma.