Solved Add Permission to player

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Funtime

Active Member
Apr 24, 2017
54
0
0
22
How do I add a permission to a player?

Here's what I have so far:

format slot 10 of player with iron ore named "&c&lIron" with lore "&e&oClick here to unlock||&e&othe ability to mine||&e&oiron ore!||||&fPrice: &a$&c{@ironPrice}||" to close then run [add permission {@ironPerm} to player]->[subtract {@ironPrice} from player's money]->[broadcast "&e&l&o%player% &a&ohas bought the ability to mine &6iron ore!"]
 
Yeah I have groupmanager, but I want to release it on Spigot. Therefore people may have different perm plugins. If there is no way, thats ok :emoji_slight_smile:
Im think there is no way... only way is, you need create a selfmade "Permission" skript with variables or YaML, checking if player has permission some like this way:

code_language.skript:
command /permission:
    trigger:
        if arg-1 is "add":
            if arg-2 is set:
                arg-3 is set
                set {Permission::%arg-2%::%arg-3%} to true

#then checking if player got permission
if {Permission::%player%::Punish.menu} is true:
    send "he got this permission"
else:
    send "Nope :/"


So, i think most of people use Groupmanager or Permission EX.
 
  • Like
Reactions: Funtime
Im think there is no way... only way is, you need create a selfmade "Permission" skript with variables or YaML, checking if player has permission some like this way:

code_language.skript:
command /permission:
    trigger:
        if arg-1 is "add":
            if arg-2 is set:
                arg-3 is set
                set {Permission::%arg-2%::%arg-3%} to true

#then checking if player got permission
if {Permission::%player%::Punish.menu} is true:
    send "he got this permission"
else:
    send "Nope :/"


So, i think most of people use Groupmanager or Permission EX.
Thanks for the help :emoji_grinning:
 
Status
Not open for further replies.