Skip to content

Commit

Permalink
Fix #318
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardosnt committed Jun 14, 2016
1 parent 1da9a58 commit 1d8aea5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NativeModules/Kit/Kit.cs
Expand Up @@ -93,7 +93,7 @@ public Kit( string name, uint cooldown, decimal cost, bool resetCooldownWhenDie
/// </summary>
public bool CanUse( ICommandSource player )
{
return player.HasPermission( $"essentials.kit.{Name}" );
return player.HasPermission( $"essentials.kit.{Name.ToLowerInvariant()}" );
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/NativeModules/Warp/Warp.cs
Expand Up @@ -88,7 +88,7 @@ public Warp( string name, Vector3 location, float rotation )
/// <returns>If source has permission to use this warp</returns>
public bool CanUse( ICommandSource source )
{
return source.HasPermission( $"essentials.warp.{Name}" );
return source.HasPermission( $"essentials.warp.{Name.ToLowerInvariant()}" );
}

public override string ToString()
Expand Down

0 comments on commit 1d8aea5

Please sign in to comment.