Skip to content

Commit 02e0dd4

Browse files
committed
Update v2.4.2
* Fixed a bug where the player is not kicked from the server after being banned
1 parent 8db1b1f commit 02e0dd4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fxmanifest.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ games { 'gta5' }
44
author 'Musiker15 - MSK Scripts'
55
name 'msk_core'
66
description 'Functions for MSK Scripts'
7-
version '2.4.1'
7+
version '2.4.2'
88

99
lua54 'yes'
1010

server/functions/bansystem.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ MSK.BanPlayer = function(playerId, targetId, time, reason)
153153

154154
bannedPlayers[#bannedPlayers + 1] = {id = banId, ids = player, reason = reason, time = banTime, from = bannedby}
155155
banLog(playerId, bannedby, targetId, targetName, banTime, reason, json.encode(player), banId)
156-
-- DropPlayer(targetId, ('Banned by %s for %s until %s. BanID: %s'):format(bannedby, reason, banTime, banId))
156+
DropPlayer(targetId, ('Banned by %s for %s until %s. BanID: %s'):format(bannedby, reason, banTime, banId))
157157
end
158158
end)
159159
end

0 commit comments

Comments
 (0)