#Renamed Rankes but still need help
1 messages · Page 1 of 1 (latest)
adonis maintainers don't do the helping here
i don't believe you are able to rename the builtin ranks, you will need to add additional custom ranks
How do i do that?
What version of the Loader are you using?
Uhh, lemme check
No not that
oh
yeah ik
In studio explorer
in the loader?
Yes
228
Ok you are using an older version of the loader. But your loader still has the required features
What does the Settings modulescript say with the admin ranks? (Inside the loader)
lemme find that
settings.Ranks = {
["Warrant_Officer"] = {
Level = 100;
Users = {
--// Add users here
};
};
["Legionary"] = {
Level = 300;
Users = {
--// Add users here
};
};
["Sentinel"] = {
Level = 400;
Users = {
--// Add users here
};
};
["HiCOM"] = {
Level = 700;
Users = {
--// Add users here
};
};
["Council"] = {
Level = 700;
Users = {
--// Add users here
};
};
["Xenoi"] = {
Level = 900; --// Anything 900 or higher will be considered a creator and will bypass all perms & be allowed to edit settings in-game.
Users = { "oliea221"
--// Add users here (Also, don't forget quotations and all that)
};
};
};```
Ah ok
So the issue is that Adonis doesn't set the ranknames to the coresponding level
They have to be changed with a plugin
Your thing has more ranks than Adonis
yes, i added some
Which ranks corespond to the default Adonis ones?
Uhhh
well, Warrant_Officer does
actually
tbh idk
Warrant_Officer does, i think
I'm not sure..
I edited the permission levels, so i dont think it will correspond to any
Well what should they coresponmd to?
excluding warrant_officer and xenoi
I dont know....
Like you can decide
What
Ok ill just pick something then
Ok I believe this will work \/
local newranks = {
creator = "Xenoi",
moderators = "Warrant_Officer",
admins = "Sentinel",
headadmins = "HiCOM"
}
return function(Vargs)
local server, service = Vargs.Server, Vargs.Service
local count = 0
for k, v in pairs(server.Commands) do
if type(v.AdminLevel) == "string" then
local level = string.lower(v.AdminLevel)
if newranks[level] then
v.AdminLevel, count = newranks[level], count + 1
end
end
end
print(string.format("Renamed %d Adonis commands.", count))
end
Make a modulescript inside "Plugins" folder
Paste my code inside that modulescript. And rename the script to "Server-RenameRanks"
Server plugin names start with "Server-" and client plugin names start with "Client-"
Create a "ModuleScript" inside AdonisLoader > "Plugins". Then name the moduleScript "Server-RanksRename"
Yes
Show is it inside the Plugins folder
Ok it should work now
ok
Test it in game
Oh.
In your terminal output what does it show as :: Adonis:: Renamed %d Adonis commands. ?
Like the number
Of renamed commands
So it doesn't show "Renamed Adonis commands"?
no
Are there any errors in the output
?
Sharind the AdonisAsset id doesn't matter because its public and all one can do is run Adonis.
But sharing the soundids means if they aren¨'t public sounds then others can use your sounds in their games (though they can also do this if they exploit, or if they look at your inventory)
Oh your output is very large
Which is why you may not have spotted the message
Type "Adonis commands" in the "Filter..." thing in your output
so you can find the message