Skip to content

Instantly share code, notes, and snippets.

View AxisKriel's full-sized avatar

Rodrigo Rente AxisKriel

View GitHub Profile

Keybase proof

I hereby claim:

  • I am axiskriel on github.
  • I am kriel (https://keybase.io/kriel) on keybase.
  • I have a public key ASDljFcA2svBepJ9mY03EF-3qccFzgdPTlNdxMbj5EvzUQo

To claim this, I am signing this object:

@AxisKriel
AxisKriel / GroupManager.cs
Last active August 29, 2015 14:17
New GroupManager.cs / UserManager.cs permission methods
/// <summary>
/// Adds permissions to a group in the database.
/// </summary>
/// <param name="name">The group name.</param>
/// <param name="permissions">List of permissions to add.</param>
/// <returns>Whether the SQL succeeded or not.</returns>
public bool AddPermissions(string name, List<string> permissions)
{
if (!GroupExists(name))
throw new GroupNotExistException(name);
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using TShockAPI;
using Terraria;
namespace ItemExchanger
{