forked from MagicBane/Server
create PlayerManager static class
This commit is contained in:
@@ -11,6 +11,7 @@ package engine.net.client.handlers;
|
||||
|
||||
import engine.Enum;
|
||||
import engine.exception.MsgSendException;
|
||||
import engine.gameManager.PlayerManager;
|
||||
import engine.gameManager.SessionManager;
|
||||
import engine.net.Dispatch;
|
||||
import engine.net.DispatchMessage;
|
||||
@@ -60,7 +61,7 @@ public class GuildControlHandler extends AbstractClientMsgHandler {
|
||||
PlayerCharacter player = SessionManager.getPlayerCharacter(origin);
|
||||
|
||||
//If we don't get a valid PC for whatever reason.. just ignore it.
|
||||
PlayerCharacter pc = PlayerCharacter.getFromCache(msg.getUnknown03());
|
||||
PlayerCharacter pc = PlayerManager.getFromCache(msg.getUnknown03());
|
||||
|
||||
if (pc != null) {
|
||||
dispatch = Dispatch.borrow(player, new GuildListMsg(pc));
|
||||
|
||||
Reference in New Issue
Block a user