+ Only >Supporter can use chat while dead
* Adjusted hospital spawn-rotation + Added regions to key-presses(preperation)
This commit is contained in:
@@ -38,6 +38,7 @@ namespace ReallifeGamemode.Server.Services
|
||||
public static void SendMessage(Player player, string message)
|
||||
{
|
||||
if (player == null) return;
|
||||
if (player.GetData<bool>("isDead") == true && (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)) return;
|
||||
player.SendChatMessage(message);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user