unstable whisper, now you can dm your friend(if you have any lol)

This commit is contained in:
rafi1212122
2023-06-08 09:37:50 +07:00
parent cd2087f6cb
commit 115fc0951b
8 changed files with 181 additions and 6 deletions

View File

@@ -4,8 +4,8 @@ using PemukulPaku.GameServer;
using Common.Database;
using PemukulPaku.GameServer.Game;
using PemukulPaku.GameServer.Commands;
using Common.Utils.ExcelReader;
using Newtonsoft.Json;
using MongoDB.Bson;
using Common.Resources.Proto;
namespace PemukulPaku
{
@@ -18,7 +18,8 @@ namespace PemukulPaku
#endif
Global.c.Log("Starting...");
Global.config.Gameserver.Host = NetworkInterface.GetAllNetworkInterfaces().Where(i => i.NetworkInterfaceType != NetworkInterfaceType.Loopback && i.OperationalStatus == OperationalStatus.Up).First().GetIPProperties().UnicastAddresses.Where(a => a.Address.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork).First().Address.ToString();
if (Global.config.Gameserver.Host == "127.0.0.1")
Global.config.Gameserver.Host = NetworkInterface.GetAllNetworkInterfaces().Where(i => i.NetworkInterfaceType != NetworkInterfaceType.Loopback && i.OperationalStatus == OperationalStatus.Up).First().GetIPProperties().UnicastAddresses.Where(a => a.Address.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork).First().Address.ToString();
CommandFactory.LoadCommandHandlers();
PacketFactory.LoadPacketHandlers();