forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPointCmdManager.cs
More file actions
33 lines (27 loc) · 859 Bytes
/
Copy pathPointCmdManager.cs
File metadata and controls
33 lines (27 loc) · 859 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
26
27
28
29
30
31
32
33
using L2dotNET.Models.Player;
namespace L2dotNET.Managers
{
public class PointCmdManager
{
private static readonly PointCmdManager M = new PointCmdManager();
public static PointCmdManager GetInstance()
{
return M;
}
public bool Pointed(L2Player player, string text)
{
text = text.Substring(1);
switch (text)
{
case "traffic":
// player.SendMessageAsync($"Down: {player.Gameclient.TrafficDown / 1024} kb");
// player.SendMessageAsync($"Up: {player.Gameclient.TrafficUp / 1024} kb");
break;
default:
player.SendMessageAsync($"accepted point cmd {text}");
break;
}
return true;
}
}
}