Git Product home page Git Product logo

chperms's Introduction

CHPerms

An implementation of the Bukkit permissions system, controlled by CommandHelper

Download the correct version for your version of CommandHelper:
CHPerms 3.0.0 (CommandHelper 3.3.3)
CHPerms 3.0.2 (CommandHelper 3.3.4)

PERMISSION FUNCTIONS

get_permissions()
  Type: 	array
  Return: array
  Args: 	customOnly
  Description:
    Returns an array of all registered permissions. If
    customOnly is true, only the permissions you have created will be in the array,
    defaults to false.
register_permission()
  Type: 	void
  Return: void
  Args: 	permissionArray, overwrite
  Description:
    Registers a permission on the server. If overwrite
    is true, any conflicting permissions will be unregistered. The permissionArray
    must include a 'name' key containing the permission's name. Other keys can be
    'default', 'description', and 'children'. Default can be one of true, false, op,
    or !op, but defaults to op. If description is not given, it won't have one.
    Children must be null or an array of permission name keys and boolean values.
    The values given will be the values of the child when the parent is set. This
    is the equivilent of setting permissions in the server permissions.yml.
unregister_permission()
Type:  void
Return:	void
Args:	permission
Description: Removes the specified permission if it is registered, otherwise 
nothing happens.

PLAYER PERMISSION FUNCTIONS

phas_permission()
  Type: 	boolean
  Return:   boolean
  Args: 	[player], permission
  Description:
    Returns whether the target (function user if not given) has a
    permission, based on the server's built in permission system.
set_permissions
  Type: 	void
  Return: void
  Args: 	[player], permission(s)
  Description:
    Sets an array of permissions at once before	recalculating permissions
    for player. Permissions must be an array of permission arrays in the
    format array('perm.node': true). This overrides permission defaults.
set_permission
  Type: 	void
  Return:   void
  Args: 	[player], permission, boolean
  Description:
    Sets the value of a permission for a player, defaulting to the
    current user. This overrides permission defaults.
unset_permission()
  Type: 	void
  Return:   void
  Args: 	[player], permission
  Description:
    Unsets a permission, so only that permission's default will apply.
unperm_player()
Type:	    boolean
Return:	    boolean
Args:       player
Description: Removes the attachment from the player, returns whether anything 
actually changed.
hijack_permissions()
  Type: 	void
  Return:   void
  Args:     [player]
  Description: 
    Runs through the given player's permissions, imports any that 
    commandhelper hasn't set, and removes the setting from the player sothat the 
    other plugin can't change it anymore. If no player is given, all players are 
    used.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.