🔔 管理提醒: 本帖被 代号丶 执行压帖操作(2013-07-01)
⚠ 提醒:该帖发布已超过3年,信息资源可能已失效,资源谨慎下载以免浪费积分。反馈请前往站务版块。
发现GM不能互相看到 发布方法 rNurzag 1xu~@v60 maplecharacter.java ?^2nrh,n+ 查找: MkhD*\D / getMap().broadcastMessage(this, MaplePacketCreator.removePlayerFromMap(getId()), false); 94^b"hU 替换为: Y`(~eNX^% getMap().broadcastNonGmMessage(this, MaplePacketCreator.removePlayerFromMap(getId())); -2(?O`tZ ========================== CO9PQ`9+ maplemap.java BMqr YW 查找: R1/c@HQw? /** )iZU\2L * Broadcasts the given packet to everyone on the map but the source. source = null Broadcasts to everyone /]U;7) * i"xV=. * @param source IRueq @4 * @param packet &H P g> 在前面加上 7XLqP public void broadcastNonGmMessage(MapleCharacter source, MaplePacket packet) { V]GF53D synchronized (characters) { D/JSIDd for (MapleCharacter chr : characters) { q#SEtyJL if (chr != source && (!chr.isGM() || !chr.isHidden())) chr.getClient().getSession().write(packet); T "hjL } z;y{QO } (z8;J>7 }
Ctrl + Enter 快速发布 匿名回贴(消耗10铜币)