server-master/srcs/WingsAPI.Game/Networking/Broadcasting/OnlyGameMasters.cs
2026-02-10 18:21:30 +01:00

8 lines
No EOL
259 B
C#

using WingsEmu.DTOs.Account;
namespace WingsEmu.Game.Networking.Broadcasting;
public class OnlyGameMasters : IBroadcastRule
{
public bool Match(IClientSession session) => session.PlayerEntity.Authority >= AuthorityType.GameMaster && session.GmMode;
}