import AbstractGameCommand from "./AbstractGameCommand" ; import UseItem from "../network/outgoing/game/UseItem" ; import L2Item from "../entities/L2Item" ; export default class CommandUseItem extends AbstractGameCommand { execute ( item ) { if ( item instanceof L2Item ) { item = item . ObjectId ; } this . GameClient ?. sendPacket ( new UseItem ( item , false ) ) ; } }