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

Temporary perms

Discussion in 'Development' started by Remarkabless, Dec 24, 2017.

  1. Remarkabless

    Remarkabless Slime

    Messages:
    83
    GitHub:
    Remakem
    is there a way to where I can set a perm when a player does something.

    For example, lets say the player wears full “gold” armor. Once he puts it on he gets the perm “gold.armor” and when he takes atleast one piece of armor of it takes away the permission.

    (not asking for the armor change code, asking for temporary functions code(example)”

    Thanks
     
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    Same way as you would attach a permission to a player
    remove/add it on armor change event
    if you dont know how to get an attachment try looking into permission plugins and use the attachment+add/remove part
     
  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.