mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Split off ingame commands from server
This commit is contained in:
@@ -39,6 +39,7 @@ namespace FFXIVClassic_Lobby_Server
|
||||
class PacketProcessor
|
||||
{
|
||||
Server mServer;
|
||||
CommandProcessor cp;
|
||||
Dictionary<uint, ConnectedPlayer> mPlayers;
|
||||
List<ClientConnection> mConnections;
|
||||
|
||||
@@ -47,6 +48,7 @@ namespace FFXIVClassic_Lobby_Server
|
||||
mPlayers = playerList;
|
||||
mConnections = connectionList;
|
||||
mServer = server;
|
||||
cp = new CommandProcessor(playerList);
|
||||
}
|
||||
|
||||
public void processPacket(ClientConnection client, BasePacket packet)
|
||||
@@ -198,7 +200,7 @@ namespace FFXIVClassic_Lobby_Server
|
||||
|
||||
if (chatMessage.message.StartsWith("!"))
|
||||
{
|
||||
if (mServer.doCommand(chatMessage.message, player))
|
||||
if (cp.doCommand(chatMessage.message, player))
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user