How to make a granting system unhardcoded?

  • 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.

Jacob105

Member
Aug 7, 2020
48
1
8
24
Skript version: Skript 2.2dev36
Minecraft version: 1.8-1.8.9 (Around this version category)
-----------------------------------------------------------------------
Code for /setrank:

https://pastebin.com/1ew7Z4ei

Code for /grant:

https://pastebin.com/HT3eV4Zy

PASSWORD FOR BOTH IS 'skunity'
-----------------------------------------------------------------------
so basically, how do I make the grant menu loop all of the ranks and variables for its correct variables?

Currently, it's hardcoded for:

Owner rank:
&4&l%player's displayname% (for like muting the chat or switching worlds or staff chat)
&4&lOwner (for the formatted rank setting)

Co-Owner
Developer
Manager
Head-Admin
Sr-Admin
Administrator
Head-Mod
Sr-Mod
Moderator
Head-Builder
Sr-Builder
Builder
Trainee
Default

(I want to make it for VIP or MVP)

Plugins used that are worth noting:
Skript
Luck Perms
Vault

Addons:
Eratz 1.0
SkQuery 3.6.0 Lime
skRayFall v1.9.18
TuSKe v1.8.2

I want to make the grant menu list all of the ranks in Luck Perms (as well as work & be valid in setrank)
this is honestly very hard, but my 'friend' Preceding made a skript permissions plugin completely in skript (with addons and vault ofc)
[doublepost=1605019909,1604950855][/doublepost]bump
[doublepost=1605225815][/doublepost]pls delete this thread, thanks
 
Status
Not open for further replies.