forked from MagicBane/Server
Handler created for ArcOwnedMinesListHandler.
This commit is contained in:
@@ -262,9 +262,6 @@ public class ClientMessagePump implements NetMsgHandler {
|
||||
case VENDORDIALOG:
|
||||
VendorDialogMsg.replyDialog((VendorDialogMsg) msg, origin);
|
||||
break;
|
||||
case ARCOWNEDMINESLIST:
|
||||
ListOwnedMines((ArcOwnedMinesListMsg) msg, origin);
|
||||
break;
|
||||
case ARCMINECHANGEPRODUCTION:
|
||||
changeMineProduction((ArcMineChangeProductionMsg) msg, origin);
|
||||
break;
|
||||
@@ -1423,22 +1420,6 @@ boolean updateCity = false;
|
||||
|
||||
}
|
||||
|
||||
private static void ListOwnedMines(ArcOwnedMinesListMsg msg, ClientConnection origin) {
|
||||
|
||||
PlayerCharacter pc = SessionManager.getPlayerCharacter(origin);
|
||||
|
||||
if (pc == null)
|
||||
return;
|
||||
//TODO verify this against the warehouse?
|
||||
|
||||
if (GuildStatusController.isInnerCouncil(pc.getGuildStatus()) == false)// is this only GL?
|
||||
return;
|
||||
|
||||
msg.setMineList(Mine.getMinesForGuild(pc.getGuild().getObjectUUID()));
|
||||
Dispatch dispatch = Dispatch.borrow(pc, msg);
|
||||
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
|
||||
}
|
||||
|
||||
private static void changeMineProduction(ArcMineChangeProductionMsg msg, ClientConnection origin) {
|
||||
|
||||
PlayerCharacter sourcePlayer = SessionManager.getPlayerCharacter(origin);
|
||||
|
||||
Reference in New Issue
Block a user