You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
A command plugin for “Basic Admin Essentials” that can only be use on one person. Can’t be used on “:warn %team” “:warn all”, only works on one person “:warn user” -
What is the issue? Include screenshots / videos if possible!
I can’t do anything that changes it into only use on one person. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried messing around with the args and stuff but nothing worked.
–
What i have is below
local Plugin = function(...)
local Data = {...}
-- Included Functions and Info --
local remoteEvent = Data[1][1]
local remoteFunction = Data[1][2]
local returnPermissions = Data[1][3]
local Commands = Data[1][4]
local Prefix = Data[1][5]
local actionPrefix = Data[1][6]
local returnPlayers = Data[1][7]
local cleanData = Data[1][8] -- cleanData(Sender,Receiver,Data)
-- Practical example, for a gui specifically for a player, from another player
-- cleanData(Sender,Receiver,"hi") -- You need receiver because it's being sent to everyone
-- Or for a broadcast (something everyone sees, from one person, to nobody specific)
-- cleanData(Sender,nil,"hi") -- Receiver is nil because it is a broadcast
-- Plugin Configuration --
local pluginLevel = 0
-- leave blank if the command has no arguments
local pluginName = 'warn'
local pluginPrefix = actionPrefix
local pluginUsage = "User(s), Reason"
local TweenService = game:GetService("TweenService")
local pluginDescription = "Warn a user with a reason"
local Chat = game:GetService("Chat")
-- Example Plugin Function --
local function pluginFunction(Args) -- keep the name of the function as "pluginFunction"
local Player = Args[1]
local BeforeReason = ""
local Reason = Args[4]
if Args[3] then
local Victims = returnPlayers(Player, Args[3]) if not Victims then return end
local CombinedVictims = ''
for a,b in pairs(Victims) do
if CombinedVictims == '' then
CombinedVictims = b.Name
else
CombinedVictims = CombinedVictims..', '..b.Name
end
end