コード例 #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);