add eventchat & new positon for unjail
This commit is contained in:
@@ -479,9 +479,25 @@ namespace ReallifeGamemode.Server.Commands
|
||||
public void CmdFactionNREventchat(Player player, string onoff)
|
||||
{
|
||||
|
||||
List<Player> players = NAPI.Pools.GetAllPlayers();
|
||||
switch (onoff.ToLower())
|
||||
{
|
||||
case "on":
|
||||
NAPI.Pools.GetAllPlayers().ForEach(p =>
|
||||
{
|
||||
p.SetData("eventAllowed", true);
|
||||
});
|
||||
break;
|
||||
|
||||
case "off":
|
||||
NAPI.Pools.GetAllPlayers().ForEach(p =>
|
||||
{
|
||||
p.SetData("eventAllowed", false);
|
||||
});
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user