1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Permissions

Discussion in 'Development' started by Donquih0te, Sep 4, 2017.

  1. Donquih0te

    Donquih0te Spider

    Messages:
    7
    GitHub:
    donkihotd
    How is it possible to realize the division of the player's rights permissions the worlds. That is, in every world the player has different permissions. And write all this in mysql database. I'm interested in the structure itself, the code can not give
     
  2. LCraftPE

    LCraftPE Silverfish

    Messages:
    20
    GitHub:
    LCraftPE
    Hello,
    I would give a rank to the player when he joins the server (in the only case when the player is new on the server) which I would then save in my MySQL database and then, I would define his permissions (with addAttachment and removeAttachment functions) according to his rank when the player changes world (https://github.com/pmmp/PocketMine-...tmine/event/entity/EntityLevelChangeEvent.php). Finally, you could also change the rank of the player with a command.
    Keep me informed.
     
  3. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    Check out PurePerms, it might be quicker to fix the (broken) multiworld perms there instead of rewriting from scratch. And if you want to write your own anyway, you'll find lots of useful information in there to help you.
     
    Donquih0te likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.