Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates sources to show Beestation servers as "Beestation" and "Beestation LRP" #54

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions CentCom.Server/BanSources/BeeBanParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ public BeeBanParser(DatabaseContext dbContext, BeeBanService banService, ILogger

protected override Dictionary<string, BanSource> Sources => new Dictionary<string, BanSource>
{
{ "bee-mrp", new BanSource
{
Display = "Beestation",
Name = "bee-mrp",
RoleplayLevel = RoleplayLevel.Medium
} },
{ "bee-lrp", new BanSource
{
Display = "Beestation LRP",
Name = "bee-lrp",
RoleplayLevel = RoleplayLevel.Low
} },
{ "bee-mrp", new BanSource
{
Display = "Beestation MRP",
Name = "bee-mrp",
RoleplayLevel = RoleplayLevel.Medium
} }
};

Expand Down
2 changes: 1 addition & 1 deletion CentCom.Server/Services/BeeBanService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ namespace CentCom.Server.Services;
public class BeeBanService : RestBanService
{
private const int ParallelRequests = 1;
private static readonly BanSource LrpSource = new BanSource { Name = "bee-lrp" };
private static readonly BanSource MrpSource = new BanSource { Name = "bee-mrp" };
private static readonly BanSource LrpSource = new BanSource { Name = "bee-lrp" };

public BeeBanService(ILogger<BeeBanService> logger) : base(logger)
{
Expand Down