示例#1
0
 /// <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));
 }
示例#2
0
 /// <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);
 }
示例#3
0
 /// <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);
 }
示例#4
0
 /// <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));
 }
示例#5
0
 /// <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);
 }
示例#6
0
 /// <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);
 }
示例#7
0
 /// <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();
 }
示例#8
0
 /// <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);
示例#9
0
 /// <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);
示例#10
0
 /// <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);
示例#11
0
 /// <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);
示例#12
0
 /// <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);
示例#13
0
 /// <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);
示例#14
0
 /// <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);