From 8327f7e67116e18e9d69648f3be9be64d37fed3f Mon Sep 17 00:00:00 2001 From: extendedclip Date: Mon, 9 Mar 2020 14:08:24 -0400 Subject: [PATCH] Added scripts folderr --- scripts/has_permission.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 scripts/has_permission.js diff --git a/scripts/has_permission.js b/scripts/has_permission.js new file mode 100644 index 0000000..3c7a59a --- /dev/null +++ b/scripts/has_permission.js @@ -0,0 +1,20 @@ +// create a variable and name it wantever you want like this +// and use the placeholder you want, i'm using this one +var haspermission = "%player_has_permission_permission.test%"; + +// create a function with the name you want +function permission() { + +// if the haspermission variable that we created before return yes (true boolean) +// the js placeholder will return what we set in the return down + if (haspermission === "yes") { + return "&aYou have the Test permission!"; + } + +// if the haspermission varibale wasnt true it will return what we set down + else { + return "&cYou don't have the Test permission!"; + } +} +// by this we are calling the function to run +permission(); \ No newline at end of file