Skip to content

Commit

Permalink
No Trespassing
Browse files Browse the repository at this point in the history
  • Loading branch information
800maximum123 committed Aug 11, 2024
1 parent 63b1cb3 commit 9333d6f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions code/game/jobs/role_authority.dm
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,15 @@ I hope it's easier to tell what the heck this proc is even doing, unlike previou
for(var/mob/new_player/M in GLOB.player_list) //Get all players who are ready.
if(!M.ready || M.job)
continue
// [RU-PVE-EDIT]
if(M.client.total_enter_lock)
to_chat(M, SPAN_NOTICE("You have BLACKLISTED from entering!"))
return
if(!enter_allowed)
if(!check_rights(, show_msg = FALSE) && M.client.enter_lock_bypass)
to_chat(M, SPAN_NOTICE("There is an administrative lock on entering the game!"))
return
// [/RU-PVE-EDIT]

unassigned_players += M

Expand Down
6 changes: 6 additions & 0 deletions void-marines/code/admin_tools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,9 @@
/client/proc/allow_to_join,
/client/proc/gm_lighting,
))

/mob/dead/join_as_freed_mob()
if(usr.client.total_enter_lock)
to_chat(usr, SPAN_WARNING("You have BLACKLISTED from entering!"))
return
. = ..()

0 comments on commit 9333d6f

Please sign in to comment.