Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[PocketEssentials] API Development Document

Comments in 'Plugin Development' started by VanishedKevin, Oct 12, 2013.

  1. VanishedKevin
    Offline

    VanishedKevin Banned

    Joined:
    Aug 27, 2013
    Posts:
    279
    Minecraft User:
    VanishedKevin
    Tip:
    1: In this article, {API} means a pointer which point to API, {Player} means a Player object.


    *****[How to Check a Player's Permission]*****
    TIP: Both of them return bool.
    --------
    $test = {API}->perm->checkPerm("Username", "PermissionNode.SubNode");
    ---OR---
    $test = {Player}->checkPerm("PermissionNode.SubNode")
    --------

    *****[Do I need to register a Permission Node to the server]*****
    No, you don't. Just check them when you need.

    This document will update frequently.

Share This Page

Advertisement