public static Permission IsPermitted(string node, BasePlayer player) { if (_connector == null) { return(player.Op ? Permission.Permitted : Permission.Denied); } return(_connector.IsPermitted(node, player)); }
public static Permission IsPermitted(string node, BasePlayer player) { if (_connector == null) { throw new InvalidOperationException("No connector attached"); } return(_connector.IsPermitted(node, player)); }