Skip to content

Commit

Permalink
Fixed nilref in ban check
Browse files Browse the repository at this point in the history
  • Loading branch information
RektInator committed Nov 13, 2017
1 parent 525755b commit 206b8b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mp/plutoadmin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ end
-- onPlayerConnecting function
function onPlayerConnected(player)
-- kick player if player is banned
if banhandler.isPlayerBanned(args.player) then
if banhandler.isPlayerBanned(player) then
utils.kickPlayer(player, "You are banned from the server.")
end
end
Expand Down

0 comments on commit 206b8b2

Please sign in to comment.