forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBBSManager.cs
More file actions
25 lines (22 loc) · 773 Bytes
/
Copy pathBBSManager.cs
File metadata and controls
25 lines (22 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System.Threading.Tasks;
using L2dotNET.DataContracts.Shared.Enums;
using L2dotNET.Models.Player;
using L2dotNET.Network.serverpackets;
namespace L2dotNET.Managers.bbs
{
public class BbsManager
{
private readonly Config.Config _config;
public BbsManager(Config.Config config)
{
_config = config;
}
public async Task RequestShow(L2Player player, int type)
{
if (_config.GameplayConfig.Server.CommunityBoard.EnableCommunityBoard)
player.ShowHtmBbs("<html><body><br><br><center>Welcome to the community board</center><br><br></body></html>");
else
await player.SendPacketAsync(new SystemMessage(SystemMessageId.CbOffline));
}
}
}