diff --git a/definitions/09-Hiro-Economy.json b/definitions/09-Hiro-Economy.json index 4b64aeb..ff57587 100644 --- a/definitions/09-Hiro-Economy.json +++ b/definitions/09-Hiro-Economy.json @@ -59,5 +59,6 @@ "key1": "value1" } } - } + }, + "allow_fake_receipts": false } diff --git a/economy.go b/economy.go index 5c788b9..5c50eae 100644 --- a/economy.go +++ b/economy.go @@ -44,10 +44,11 @@ var ( // EconomyConfig is the data definition for the EconomySystem type. type EconomyConfig struct { - InitializeUser *EconomyConfigInitializeUser `json:"initialize_user,omitempty"` - Donations map[string]*EconomyConfigDonation `json:"donations,omitempty"` - StoreItems map[string]*EconomyConfigStoreItem `json:"store_items,omitempty"` - Placements map[string]*EconomyConfigPlacement `json:"placements,omitempty"` + InitializeUser *EconomyConfigInitializeUser `json:"initialize_user,omitempty"` + Donations map[string]*EconomyConfigDonation `json:"donations,omitempty"` + StoreItems map[string]*EconomyConfigStoreItem `json:"store_items,omitempty"` + Placements map[string]*EconomyConfigPlacement `json:"placements,omitempty"` + AllowFakeReceipts bool `json:"allow_fake_receipts,omitempty"` } type EconomyConfigDonation struct { diff --git a/schemas/09-Hiro-Economy.json b/schemas/09-Hiro-Economy.json index f67ce5a..dc8ce2b 100644 --- a/schemas/09-Hiro-Economy.json +++ b/schemas/09-Hiro-Economy.json @@ -174,6 +174,9 @@ } }, "type": "object" + }, + "allow_fake_receipts": { + "type": "boolean" } }, "type": "object"