Jump to content

Set a player's permissions


Nd_

Recommended Posts

Yes there is!

First of all you will need to have this at the start of your skript:

script options:
    $ use permissions

With this you are able to view and manage player's permissions, for example:

add "permission.permission" to player's permissions
remove "permission.permission" from player's permissions

Note: You will need skQuery for this to work.

Edited by HyperFlame
  • Like 1
Link to comment
Share on other sites

9 hours ago, HyperFlame said:

Yes there is!

First of all you will need to have this at the start of your skript:


script options:
    $ use permissions

With this you are able to view and manage player's permissions, for example:


add "permission.permission" to player's permissions
remove "permission.permission" from player's permissions

Note: You will need skQuery for this to work.

Cool!

Link to comment
Share on other sites

  • 1 year later...

It doesnt work...

script options:
	$ use permissions


command perm [<player>] [<text>] [<permissions>]:
	permission: skript.admin
	permission message: "{@noperm}"
	trigger:
		if arg-1 isn't set:
			if arg-2 is set:
				if arg-2 is "add" or "give":
					if arg-3 is set:
						add "%arg-3%" to player's permissions
				else if arg-2 is "take" or "remove":
					if arg-3 is set:
						remove "%arg-3%" from player's permissions
		if arg-1 is set:
			if arg-2 is set:
				if arg-2 is "add" or "give":
					if arg-3 is set:
						add "%arg-3%" to arg-1's permissions 
				else if arg-2 is "take" or "remove":
					if arg-3 is set:
						remove "%arg-3%" from arg-1's permissions
                        

Errors:

permissions of the player can't have anything added to it

permissions of the player can't have anything removed from it

Edited by Mr_pro68YT
Link to comment
Share on other sites

  • 2 months later...

Locked! Please don't necropost! This post was created over a year ago!

First Joined: July 2015
VIP: January 2020
Jr.Mod: 1st April 2020
Mod: 16th July 2020

Info:

~ Skript Developer
~ Discord: @nicholxs#0001
~ Previous names: Nichxlxs, Deterno, iHaveSkills, Retrical

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...