In need of help with Adonis Admin

I’m looking to give VIP Server Owners temporary Moderator so that they can use all the basic commands in a game in their VIP servers however, I haven’t seemed to be able to figure out how. This is using Adonis Admin FYI. Does anyone know how to go about this?

Hey @FaIIenHavoc! :wave:

Instead you can use “Kohls Admin Infinite.”

Then go inside ‘Admin command setting’ script. and put

local Players = game:GetService("Players") 
-- is this a VIP server?
if game.PrivateServerId ~= "" and game.PrivateServerOwnerId ~= 0 then 
    -- listen for new players being added
    Players.PlayerAdded:Connect(function(player) 
        -- check if the player is the server owner
        if player.UserId == game.PrivateServerOwnerId then
            print("The private server owned has joined the game")
            -- This is where you would insert the player to admin list
            -- Eg: table.insert(AdminList, player.Name)
        end
    end)
end

if this helped make sure to give me the solution button so people know you don’t need help! :smiley:

You could enable API access in the Adonis settings, once that is enabled just check if the server is a vip server, and if so grant them temporary moderator through the API.

1 Like

Ok, thank you very much for your input.