summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerrecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/playerrecv.cpp')
-rw-r--r--src/net/eathena/playerrecv.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/playerrecv.cpp b/src/net/eathena/playerrecv.cpp
index 9eb57b687..d9674a90e 100644
--- a/src/net/eathena/playerrecv.cpp
+++ b/src/net/eathena/playerrecv.cpp
@@ -477,4 +477,18 @@ void PlayerRecv::processKilledBy(Net::MessageIn &msg)
}
}
+void PlayerRecv::processPlayerAttrs(Net::MessageIn &msg)
+{
+ const int len = msg.readInt16("len");
+ if (len < 8)
+ return;
+
+ const int gmLevel = msg.readInt32("group id");
+
+ if (localPlayer == nullptr)
+ return;
+
+ localPlayer->setGMLevel(gmLevel);
+}
+
} // namespace EAthena