#Renamed Rankes but still need help

1 messages · Page 1 of 1 (latest)

cold sequoia
#

One moment lemme find the xenoi cmds

#

see...

teal sage
#

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

cold sequoia
#

How do i do that?

dry gull
#

What version of the Loader are you using?

cold sequoia
#

Uhh, lemme check

dry gull
#

"Version" inside loader

#

A stringvalue

#

Tell what the value of that is

cold sequoia
#

238

dry gull
#

No not that

cold sequoia
#

oh

dry gull
#

🤦‍♂️

#

Go in studio

cold sequoia
#

yeah ik

dry gull
#

In studio explorer

cold sequoia
#

in the loader?

dry gull
#

Yes

cold sequoia
#

228

dry gull
#

Ok

#

Wait let me check

cold sequoia
dry gull
#

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)

cold sequoia
#

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)
            };
        };
    };```
dry gull
#

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

cold sequoia
#

How do i do that?

#

can i do that?

dry gull
#

I can script a plugin to do that

#

Wait

cold sequoia
#

ok

#

@dry gull , i changed the rank names again btw

dry gull
cold sequoia
#

yes, i added some

dry gull
#

Which ranks corespond to the default Adonis ones?

cold sequoia
#

Uhhh

#

well, Warrant_Officer does

#

actually

#

tbh idk

#

Warrant_Officer does, i think

dry gull
#

warrant_officer is moderator and Xenoi is Creator

#

But what are the others?

cold sequoia
#

ones i made and edited permission level

#

@dry gull

dry gull
#

?

#

What does Admins and HeadAdmins corespond to?

cold sequoia
#

I'm not sure..

#

I edited the permission levels, so i dont think it will correspond to any

dry gull
#

Well what should they coresponmd to?

cold sequoia
#

excluding warrant_officer and xenoi

cold sequoia
dry gull
#

Like you can decide

cold sequoia
#

What

dry gull
#

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
cold sequoia
#

where do i put it?

#

at the top?

dry gull
#

Make a plugin named "Server-RenameRanks" inside "Plugins" folder

#

Then it should work

cold sequoia
#

ok

#

@dry gull , ngl idk how to add plugins

#

ive never done that before

dry gull
#

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-"

cold sequoia
#

lol, im terrible at lua...

#

i still dont know

#

like that?

dry gull
#

What?

#

Nonono

#

Not in there

#

Remove it from there

cold sequoia
#

ok

#

done

dry gull
#

So inside Roblox studio

#

There is Adonis loader

#

Inside Adonis Loader is "Plugins"

cold sequoia
#

yes

#

like that

#

and then i rename it

dry gull
#

Create a "ModuleScript" inside AdonisLoader > "Plugins". Then name the moduleScript "Server-RanksRename"

#

Yes

#

Show is it inside the Plugins folder

cold sequoia
dry gull
#

Ok it should work now

cold sequoia
#

ok

dry gull
#

Test it in game

cold sequoia
#

it didnt work...

dry gull
#

Oh.

#

In your terminal output what does it show as :: Adonis:: Renamed %d Adonis commands. ?

#

Like the number

#

Of renamed commands

cold sequoia
#

lemme check

dry gull
#

So it doesn't show "Renamed Adonis commands"?

cold sequoia
#

no

dry gull
#

Are there any errors in the output

cold sequoia
#

yes

#

sound fails

#

which doesnt relate to adonis, i dont think

#

and also

dry gull
cold sequoia
#

idk if sharing asset ids is dangerous

#

i would think not

dry gull
#

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

cold sequoia
#

one sec

#

its ok

#

i will live with the normal rank names

#

thanks tho