IndexOutOfRangeException with custom commandSolved

when i try use a command i made to heal a player it spits this in the console 

using Oxide.Core.Libraries.Covalence;
using System;

namespace Oxide.Plugins
{
    [Info("heals", "Rodney", 0.1)]
    [Description("Commands to Assist admins!")]

    public class heals : CovalencePlugin
    {
        [Command("heal")]
        private void HealCommand(IPlayer player, string Command, string[] args)
        {
            if (player.IsAdmin)
            {
                if (args.Length == 1)
                {
                    var target = players.FindPlayer(args[1]);
                     if (target != null)
                    {
                        target.Heal(50);
                    }
                }
            }
            else
            {
                player.Reply("You Don't have Permission to use this Command!");

            }​

Could you show us the error?

Also your class name should be capitalized.

(21:28:56) | Failed to call hook 'HealCommand' on plugin 'adminPlus v0.1.0' (IndexOutOfRangeException: Index was outside the bounds of the array.)
at Oxide.Plugins.adminPlus.HealCommand (Oxide.Core.Libraries.Covalence.IPlayer player, System.String Command, System.String[] args) [0x00014] in <80e2aa12b2fa4b00b47d372a797ca4b1>:0
at Oxide.Plugins.adminPlus.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00051] in <80e2aa12b2fa4b00b47d372a797ca4b1>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0

You're using the wrong index, to get the first element of the list you use 0, because indexing in lists and arrays starts at 0. So you are currently trying to get the 2nd element of the array.

I don't really understand, does that have to do with the args?

var target = players.FindPlayer(args[1]);

should be 

var target = players.FindPlayer(args[0]);

Since you are getting the first argument

Locked automatically