-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new plugin Server-VoteKick.luau #47
base: master
Are you sure you want to change the base?
Conversation
Adds a new votekick command
Add new plugin: Server-VoteKick.luau
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should show the player's name when they do/don't get kicked
local Player = server.Functions.GetPlayers(plr, args[1])[1]
if Yes > No then
if Player then
Player:Kick(`Vote kicked. Reason: {args[2] or "No reason provided."}`)
Logs:AddLog("Script", `{Player.Name} was votekicked. Reason: {args[2] or "No reason provided."}`)
end
server.Functions.Notify("Vote kick", `{Player.Name} was vote kicked.`, {plr})
else
server.Functions.Notify("Vote kick", `{Player.Name} was not vote kicked.`, {plr})
end
That makes sense, don't know why I didn't think of that 🤦 |
This can be abused.. |
well you don't have to add it into your game |
Fair enough. We do need some anti-abusive measures if this is going to be added though. |
How can this be abused? |
What if people hate a innocent person so they use your command to kick them repeatedly? |
You need to add anti-spam measures as anyone can spam this at the moment. |
if Yes > No then | ||
if Player then | ||
Player:Kick(`Vote kicked. Reason: {args[2] or "No reason provided."}`) | ||
Logs:AddLog("Script", `{Player.Name} was votekicked. Reason: {args[2] or "No reason provided."}`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would recommend service.FormatPlayer(Player)
over Player.Name
.
Adds a new command :votekick