声明 event OnPrePurchase(player entity<Player>, shopItem entity<ShopItem>) go 参数 名称 类型 描述 玩家 Player 购买商品的玩家 商品 ShopItem 商品