Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // create a variable and name it wantever you want like this
- // and use the placeholder you want, i'm using this one
- var generatorsperm = "%player_has_permission_gen.upgrade.1%";
- var generatorsperm2 = "%player_has_permission_gen.upgrade.2%";
- var generatorsperm3 = "%player_has_permission_gen.upgrade.3%";
- var generatorsperm4 = "%player_has_permission_gen.upgrade.4%";
- var generatorsperm5 = "%player_has_permission_gen.upgrade.5%";
- var generatorsperm6 = "%player_has_permission_gen.upgrade.6%";
- // create a function with the name you want
- function generators() {
- // if the generatorsperm variable that we created before return yes (true boolean)
- // the js placeholder will return what we set in the return down
- if (generatorsperm6 === "yes") {
- return "&a\u2587\u2587\u2587\u2587\u2587\u2587";
- } else if (generatorsperm5 === "yes") {
- // if the generatorsperm variable that we created before return yes (true boolean)
- // the js placeholder will return what we set in the return down
- return "&a\u2587\u2587\u2587\u2587\u2587&c\u2587";
- } else if (generatorsperm4 === "yes") {
- // if the generatorsperm varibale wasnt true it will return what we set down
- return "&a\u2587\u2587\u2587\u2587&c\u2587\u2587";
- } else if (generatorsperm3 === "yes") {
- // if the generatorsperm varibale wasnt true it will return what we set down
- return "&a\u2587\u2587\u2587&c\u2587\u2587\u2587";
- } else if (generatorsperm2 === "yes") {
- // if the generatorsperm varibale wasnt true it will return what we set down
- return "&a\u2587\u2587&c\u2587\u2587\u2587\u2587";
- } else if (generatorsperm === "yes") {
- return "&a\u2587&c\u2587\u2587\u2587\u2587\u2587";
- // if the generatorsperm varibale wasnt true it will return what we set down
- } else {
- return "&c\u2587\u2587\u2587\u2587\u2587\u2587";
- }
- }
- // by this we are calling the function to run
- generators();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement