#Private Server Ownder admin

1 messages · Page 1 of 1 (latest)

sage delta
#

Any errors?

#

i dont think you can test it in studio btw

sage delta
#

was it in a VIP server?

#

did that account own the private server

#

odd that it didnt give you admin

#

what happens when you run ;admins

#

even if they dont appear you may be able to still run them

#

sometimes they dont appear if your admin level recently changed

#

it should work

#

no idea why it isnt

#

It shouldnt, i dont think ACS interfers with Adonis normally

#

what version is your

#

adonis loader

#

that should work

#

okay try replacing your script with this

--!strict
--[[
    Original Author: TacoBellSaucePackets
    Original Source: https://devforum.roblox.com/t/adonis-g-api-usage/477194/4
    Description: This plugin will give a certain temporary permission level to private server owners

    Place this ModuleScript in Adonis_Loader > Config > Plugins and name it "Server-PrivateServerOwnerAdmin"
--]]

--// HeadAdmins can do :permadmin, so it's unsafe to to make them head admins unless you change the perm levels for those commands or disable SaveAdmins in the settings
local PRIVATE_SERVER_OWNER_ADMIN_LEVEL: number = 200 --// (admin levels are defined in loader Settings)

return function(Vargs)
    local server = Vargs.Server
    local service = Vargs.Service

    local Admin = server.Admin

    --// If VIP Server is detected trigger code.
    if game.PrivateServerOwnerId ~= 0 then
        service.Events.PlayerAdded:Connect(function(plr: Player)
                        print("Event Fired")
            if game.PrivateServerOwnerId == plr.UserId and PRIVATE_SERVER_OWNER_ADMIN_LEVEL > Admin.GetLevel(plr) then
                Admin.SetLevel(plr, PRIVATE_SERVER_OWNER_ADMIN_LEVEL)
            end
        end)
    end
end
#

why did

#

delete all your code here and replace it with the one i sent

#

yeah

#

when you join press f9 and send a screenshot of what comes up

#

uh could you do this but on an account that has dev access

#

the menu looks different if you have dev perms

#

yeah

#

okay

#

really odd

#

for some reason the event that should be firing isnt firing

#

can you try turning on HTTP requests?

sage delta
#

test and see if it works

#

awesome

#

no