Hey there! So I saw that Bloxstreet has a basic admin kick message with a moderator thing, it shows the user who kicked/banned/pbanned/slocked/shutdown the server. I wanted to know if this can be done with basic admin. If you find anything that can help me do this, please reply. Thanks!
function Funcs.Kick(Args)
local Player = Args[1]
local playerPermissions = returnPermission(Player)
if Args[3] then
local Reason = sysTable.kickReason.. "User: " ..Player.Name
if Args[4] then
local combinedArgs = ""
for a,b in pairs(Args) do
if a > 3 then
combinedArgs = combinedArgs..b..' '
end
end
if combinedArgs ~= "" then
Reason = combinedArgs
end
end
local Victims = returnPlayers(Player,Args[3],Args[2])
if not Victims then return end
for a,b in next,Victims do
local victimPermissions = returnPermission(b)
if playerPermissions > victimPermissions then
pluginEvent:Fire("Kick Logs",{Player,"Kicked "..b.Name})
if Reason ~= sysTable.kickReason then
local Cleaned,newData = cleanUserData(Reason,Player,b)
if Cleaned and newData then
Reason = newData
elseif not Cleaned then
if newData and newData:lower():match('cannot communicate with') then
Reason = sysTable.kickReason..'\nA reason was provided, but your privacy settings prevent you from seeing it.'
else
Reason = newData or sysTable.kickReason
end
end
end
b:Kick('Basic Admin\n'..Reason)
end
end
end
end