gt: 		if (Config.NicknamedUsers.get(username) != null) {
context: package eu.creationation.lukeer31.Commands;
  
  import org.bukkit.command.Command;
  import org.bukkit.command.CommandExecutor;
  import org.bukkit.command.CommandSender;
  import org.bukkit.entity.*;
  
  import eu.creationation.lukeer31.Config;
  import eu.creationation.lukeer31.QuickNick;
  
  // The main nickname command
  
  public class Nick implements CommandExecutor {
  
  	public QuickNick plugin;
  
  	public Nick(QuickNick plugin) {
  		this.plugin = plugin;
  	}
  
  	@Override
  	public boolean onCommand(CommandSender sender, Command cmd, String label,
  			String[] args) {
  		// Check the argument lengths
  
  		// If there are no arguments, check to see if it's a player, if so reset
  		// their nickname, if they have perms, if not it's the console, output
  		// help!
  		if (args.length == 0) {
  			// Sender is a player
  			if (sender instanceof Player) {
  				// Check they have perms
  
  				// Have perms
  				if (sender.hasPermission(Config.SelfPerm)) {
  					// Reset their nickname
  					String username = sender.getName();
  					((Player) sender).setDisplayName(username);
  
  					// Remove the entry from the hashmap
  					RemoveEntry(username);
  
  					sender.sendMessage(Config.NicknameChanged);
  
  					return true;
  				}
  				// Doesen't have perms
  				else {
  					sender.sendMessage(Config.NoPermission);
  					return true;
  				}
  			}
  			// Sender is the console
  			else {
  				sender.sendMessage("Usage: /Nick [Player] [NickName]");
  				return true;
  			}
  		}
  
  		if (args.length == 1) {
  			// Sender is a player
  			if (sender instanceof Player) {
  				// Check they have permissions to change their nickname
  
  				// They do
  				if (sender.hasPermission(Config.SelfPerm)) {
  					// Sanity checks on the name
  					String nickname = args[0];
  					// Check the length
  					if (nickname.length() <= 16) {
  						// Nick is good, lets set it
  						((Player) sender).setDisplayName(nickname);
  						// Add it to the hashmap
  						AddEntry(sender.getName(), nickname);
  						// Tell them it's done
  						sender.sendMessage(Config.NicknameChanged);
  						return true;
  					}
  					// It's too long! (TWSS)
  					else {
  						sender.sendMessage(Config.NameTooLong);
  						return true;
  					}
  				}
  
  				// They don't
  				else {
  					sender.sendMessage(Config.NoPermission);
  					return true;
  				}
  
  			}
  
  			// Sender is the console
  			else {
  				sender.sendMessage("Usage: /Nick [Player] [NickName]");
  				return true;
  			}
  		}
  
  		if (args.length == 2) {
  			// Check whether it is the console or a player
  			// Player
  			if (sender instanceof Player) {
  				// Check they have perms to set others nicks
  
  				// They do
  				if (sender.hasPermission(Config.OtherPerm)) {
  					// Check the player is online
  					Player rec = plugin.getServer().getPlayer(args[0]);
  
  					// Online
  					if (rec != null) {
  						// Check the nickname they want is sane
  						String nickname = args[1];
  						String username = rec.getName();
  						// Sane
  						if (nickname.length() <= 16) {
  
  							// Check their nickname is not simply being reset
  							// It is being reset
  							if (username.equalsIgnoreCase(nickname)) {
  								rec.setDisplayName(username);
  								// Remove any entries from the hash
  								RemoveEntry(username);
  								// Tell the sender
  								sender.sendMessage(Config.NicknameChanged);
  								return true;
  							}
  
  							// It's not being reset
  							else {
  								rec.setDisplayName(nickname);
  								AddEntry(username, nickname);
  								// tell the sender
  								sender.sendMessage(Config.NicknameChanged);
  								return true;
  							}
  
  						}
  						// Too long
  						else {
  							sender.sendMessage(Config.NameTooLong);
  							return true;
  						}
  					}
  					// Offline , tell them and end
  					else {
  						sender.sendMessage(Config.NotOnline);
  						return true;
  					}
  				}
  
  				// They don't
  				else {
  					sender.sendMessage(Config.NoPermission);
  					return true;
  				}
  
  			}
  
  			// Console
  			else {
  				// Check the player is online
  				Player rec = plugin.getServer().getPlayer(args[0]);
  
  				// Online
  				if (rec != null) {
  					// Check the nickname they want is sane
  					String nickname = args[1];
  					String username = rec.getName();
  					// Sane
  					if (nickname.length() <= 16) {
  
  						// Check their nickname is not simply being reset
  						// It is being reset
  						if (username.equalsIgnoreCase(nickname)) {
  							rec.setDisplayName(username);
  							// Remove any entries from the hash
  							RemoveEntry(username);
  							// Tell the sender
  							sender.sendMessage(Config.NicknameChanged);
  							return true;
  						}
  
  						// It's not being reset
  						else {
  							rec.setDisplayName(nickname);
  							AddEntry(username, nickname);
  							// tell the sender
  							sender.sendMessage(Config.NicknameChanged);
  						}
  
  					}
  					// Too long
  					else {
  						sender.sendMessage(Config.NameTooLong);
  						return true;
  					}
  				}
  				// Offline , tell them and end
  				else {
  					sender.sendMessage(Config.NotOnline);
  					return true;
  				}
  			}
  
  		}
  
  		// It's not hit anything else, send them usage
  		sender.sendMessage(Config.NickUsage);
  		return true;
  	}
  
  	public void RemoveEntry(String username) {
  