/// <summary> /// Removes a CommandSender from a group. /// </summary> /// <returns><c>true</c>, command sender was removed from the group, <c>false</c> otherwise.</returns> /// <param name="sender">The CommandSender.</param> /// <param name="groupName">The group to add the CommandSender to.</param> public override bool removeCommandSenderFromGroup(CommandSender sender, string groupName) { return(this.permissionFile.removeSenderFromGroup(sender.DefiniteName, groupName)); }
/// <summary> /// Removes a permission from a CommandSender /// </summary> /// <param name="sender">The CommandSender to remove a permission from.</param> /// <param name="permission">The permission to remove.</param> public override void removePermissionFrom(CommandSender sender, string permission) { this.permissionFile.removePermissionFromSender(sender.DefiniteName, permission); }
/// <summary> /// Adds a CommandSender to a group. /// </summary> /// <param name="sender">The CommandSender.</param> /// <param name="groupName">The group to add the CommandSender to.</param> public override void addCommandSenderToGroup(CommandSender sender, string groupName) { this.permissionFile.addSenderToGroup(sender.DefiniteName, groupName); }
/// <summary> /// Gets whether a CommandSender has a permission. /// </summary> /// <returns><c>true</c>, if the CommandSender has the permission, <c>false</c> otherwise.</returns> /// <param name="sender">The CommandSender.</param> /// <param name="permission">The permission to check.</param> /// <param name="isExplicitly">(Out) Set to <c>true</c>, if the permission was set explicitly, <c>false</c> if the permission is set by default (currently only false).</param> public override bool isPermitted(CommandSender sender, string permission, out bool isExplicitly) { return(isPermitted(sender.DefiniteName, permission, out isExplicitly)); }
/// <summary> /// Gets whether a CommandSender has a permission. /// </summary> /// <returns><c>true</c>, if the CommandSender has the permission, <c>false</c> otherwise.</returns> /// <param name="sender">The CommandSender.</param> /// <param name="permission">The permission to check.</param> public override bool isPermitted(CommandSender sender, string permission) { return(isPermitted(sender.DefiniteName, permission)); //return this.permissionFile.senderIsAllowedTo(sender.DefiniteName, permission); }
/// <summary> /// Adds a permission to a CommandSender /// </summary> /// <param name="sender">The CommandSender to add a permission to.</param> /// <param name="permission">The permission to add.</param> /// <param name="append">If <c>true</c>, append the permission, otherwise prepend the permission.</param> public override void addPermissionTo(CommandSender sender, string permission, bool append) { this.permissionFile.addPermissionToSender(sender.DefiniteName, permission, append); }
/// <summary> /// Gets whether the sender has operator privileges. /// </summary> /// <returns><c>true</c>, if the sender has operator privileges, <c>false</c> otherwise.</returns> /// <param name="sender">The CommandSender.</param> public override bool isOp(CommandSender sender) { return(permissionFile.senderIsAllowedTo(sender.DefiniteName, "*")); //sender.isOp(); }
/// <summary> /// Gets whether a CommandSender has a permission. /// </summary> /// <returns><c>true</c>, if the CommandSender has the permission, <c>false</c> otherwise.</returns> /// <param name="sender">The CommandSender.</param> /// <param name="permission">The permission to check.</param> public abstract bool isPermitted(CommandSender sender, string permission);
/// <summary> /// Gets whether the sender has operator privileges. /// </summary> /// <returns><c>true</c>, if the sender has operator privileges, <c>false</c> otherwise.</returns> /// <param name="sender">The CommandSender.</param> public abstract bool isOp(CommandSender sender);
/// <summary> /// Gets whether a CommandSender has a permission. /// </summary> /// <returns><c>true</c>, if the CommandSender has the permission, <c>false</c> otherwise.</returns> /// <param name="sender">The CommandSender.</param> /// <param name="permission">The permission to check.</param> /// <param name="isExplicitly">(Out) Set to <c>true</c>, if the permission was set explicitly, <c>false</c> if the permission is set by default (currently only false).</param> public abstract bool isPermitted(CommandSender sender, string permission, out bool isExplicitly);
/// <summary> /// Removes a permission from a CommandSender /// </summary> /// <param name="sender">The CommandSender to remove a permission from.</param> /// <param name="permission">The permission to remove.</param> public abstract void removePermissionFrom(CommandSender sender, string permission);
/// <summary> /// Adds a permission to a CommandSender /// </summary> /// <param name="sender">The CommandSender to add a permission to.</param> /// <param name="permission">The permission to add.</param> /// <param name="append">If <c>true</c>, append the permission, otherwise prepend the permission.</param> public abstract void addPermissionTo(CommandSender sender, string permission, bool append);
/// <summary> /// Removes a CommandSender from a group. /// </summary> /// <returns><c>true</c>, command sender was removed from the group, <c>false</c> otherwise.</returns> /// <param name="sender">The CommandSender.</param> /// <param name="groupName">The group to add the CommandSender to.</param> public abstract bool removeCommandSenderFromGroup(CommandSender sender, string groupName);
/// <summary> /// Adds a CommandSender to a group. /// </summary> /// <param name="sender">The CommandSender.</param> /// <param name="groupName">The group to add the CommandSender to.</param> public abstract void addCommandSenderToGroup(CommandSender sender, string groupName);