From 1190734f8d257953087d878481065e7cdf6c1a0b Mon Sep 17 00:00:00 2001 From: Frcsty <50297792+Frcsty@users.noreply.github.com> Date: Tue, 10 Mar 2020 09:09:31 +0100 Subject: [PATCH] Update has_permission.js (#12) Spell check <3 --- scripts/has_permission.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/has_permission.js b/scripts/has_permission.js index 3c7a59a..039bfdc 100644 --- a/scripts/has_permission.js +++ b/scripts/has_permission.js @@ -1,20 +1,20 @@ -// create a variable and name it wantever you want like this +// create a variable and name it whatever 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) +// if the haspermission variable that we created before returns 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 +// if the haspermission variable 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 +permission();