Disabled GM mode (#22)

Temporarily disabled, players can now use item commands without GM mode.
This commit is contained in:
JadeShrineMaiden
2020-08-22 01:38:10 +01:00
committed by GitHub
parent 786ee5f4f4
commit ab6df26f92
2 changed files with 13 additions and 11 deletions

View File

@@ -98,10 +98,11 @@ 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];
if (!plr.plr.IsGM) {
// Commented and disabled for future use
//if (!plr.plr.IsGM) {
// TODO: send fail packet
return;
}
// return;
//}
if (itemreq->eIL == 2) {
// Quest item, not a real item, handle this later, stubbed for now