Hey all, I've just recently started to develop plugins and very early ran into a 'problem' with switch statements and commands. After a little bit of research I found out that Java 1.6 doesn't support the usage of strings in switch statements, so I was thinking about using a HashMap<String, Integer> to register all the available commands, give them a unique number and pass said number to the switch statement and continue from there. Is the a 'good' way to go about this or is there a better way? I don't like having to make 20 if statements for the sole purpose that it's ugly (in my opinion). Also, I am wondering if I'm handling commands the right way in general. What I do is get the command in onCommand, assign this to a String variable, lowercase it and then check to see if it's in the HashMap and if so, grab it's assigned Integer. Then from there I check it in the switch, check if the sender is a player or console (depending on the command) and check the permissions. If this all passes, I continue to get whatever info I need for said command and pass this to a private function within the CommandExecutor and return true. If the permission isn't set for the player, I return a message and return true as well. Is this too the right way to go about things? Finally, how do I override basic commands such as time, kick, ban etc.? Sorry for the long post, just want to get things right from the beginning.