Move from isGM to Account Levels (#106)

Co-authored-by: dongresource <dongresource@protonmail.com>
This commit is contained in:
CakeLancelot
2020-09-21 21:26:12 -05:00
committed by GitHub
parent 5d8bb7f8a5
commit adf017b07c
10 changed files with 25 additions and 20 deletions

View File

@@ -158,11 +158,10 @@ void ItemManager::itemGMGiveHandler(CNSocket* sock, CNPacketData* data) {
sP_CL2FE_REQ_PC_GIVE_ITEM* itemreq = (sP_CL2FE_REQ_PC_GIVE_ITEM*)data->buf;
PlayerView& plr = PlayerManager::players[sock];
// Commented and disabled for future use
//if (!plr.plr->IsGM) {
if (plr.plr->accountLevel > 50) {
// TODO: send fail packet
// return;
//}
return;
}
if (itemreq->eIL == 2) {
// Quest item, not a real item, handle this later, stubbed for now