public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args)  {
	if(cmd.getName().equalsIgnoreCase("fly")){
	if(!(sender instanceof Player)){
	sender.sendMessage("This is a player command.");
	}
	if(sender instanceof Player){
	if(sender.hasPermission("ArcadeEss.fly")){
	if(args.length == 0){
	    if(((Player) sender).isFlying()){
	   	((Player) sender).setAllowFlight(false);
	   	((Player) sender).setFlying(false);
	   	sender.sendMessage("Fly disabled for " + ((Player) sender).getDisplayName());
	    }else{
		((Player) sender).setAllowFlight(true);
		((Player) sender).setFlying(true);
		sender.sendMessage("Fly enabled for " + ((Player) sender).getDisplayName());
	    }
	    }else{
	    Player targetPlayer = Bukkit.getPlayer(args[0]);
	    if(targetPlayer.isOnline()){
		if(targetPlayer.isFlying()){
		targetPlayer.setAllowFlight(false);
		targetPlayer.setFlying(false);
		targetPlayer.sendMessage("Fly disabled for " + targetPlayer.getDisplayName() + " by " + ((Player) sender).getDisplayName());
		sender.sendMessage("Fly disabled for " + targetPlayer.getDisplayName() + " by " + ((Player) sender).getDisplayName());
		}else{
		targetPlayer.setAllowFlight(true);
		targetPlayer.setFlying(true);
		sender.sendMessage("Fly enabled for " + targetPlayer.getDisplayName() + " by " + ((Player) sender).getDisplayName());
		targetPlayer.sendMessage("Fly enabled for " + targetPlayer.getDisplayName() + " by " + ((Player) sender).getDisplayName());
		}
	    }else{
	    sender.sendMessage(targetPlayer.getDisplayName() + " cannot be found, is the player online?");
	    }
	    }
	}else{
	sender.sendMessage(ChatColor.RED + "You don't have permission to use this command.");
	}
	}
	}
	return false;
	}