Bazz3l
Buy and plant trees in building authed areas using in-game currency

Supported Games

Permissions

  • treeplanter.use -- Allows player to plant trees using plugin

Chat Commands

  • tree -- List available trees
  • tree <type> -- Buy and plant tree

Configuration

Currency

  • UseCurrency: set true to use scrap as currency.
  • UseServerRewards: set true to use server reward points.
  • UseEconomics: set true to use economics points.

Default Configuration

{
  "UseServerRewards (use server rewards as currency)": false,
  "UseEconomics (use economics as currency)": false,
  "UseCurrency (use custom items as currency, by specifying the CurrencyItem)": true,
  "CurrencyItem (set an item id to use as currency, default is set to scrap)": -932201673,
  "CurrencySkinID (set an skin id to use as currency, default is set to 0)": 0,
  "EnableOwner (enables owners to chop down trees)": false,
  "EnableClan (enables clan members to chop down trees)": false,
  "BlockedAgriItems (specify which items should only be placed in a planter box)": {
    "seed.black.berry": true,
    "seed.blue.berry": true,
    "seed.green.berry": true,
    "seed.yellow.berry": true,
    "seed.white.berry": true,
    "seed.red.berry": true,
    "seed.corn": true,
    "clone.corn": true,
    "seed.pumpkin": true,
    "clone.pumpkin": true,
    "seed.hemp": true,
    "clone.hemp": true
  },
  "TreeConfigs (list of available trees to purchase)": [
    {
      "Name": "oak a",
      "Cost": 10,
      "Amount": 1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/v3_temp_field/oak_e.prefab"
    },
    {
      "Name": "oak b",
      "Cost": 10,
      "Amount": 1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/v3_temp_field_large/oak_b.prefab"
    },
    {
      "Name": "oak c",
      "Cost": 10,
      "Amount": 1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/v3_temp_field_large/oak_c.prefab"
    },
    {
      "Name": "birch a",
      "Cost": 10,
      "Amount": 1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/v3_temp_forest/birch_large_temp.prefab"
    },
    {
      "Name": "birch b",
      "Cost": 10,
      "Amount": 1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/v3_temp_beachside/birch_small_temp.prefab"
    },
    {
      "Name": "birch c",
      "Cost": 10,
      "Amount": 1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/v2_temp_forest/birch_large_temp.prefab"
    },
    {
      "Name": "douglas a",
      "Cost": 10,
      "Amount": 1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/v3_temp_forest_pine/douglas_fir_a.prefab"
    },
    {
      "Name": "douglas b",
      "Cost": 10,
      "Amount": 1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/v3_temp_forest_pine/douglas_fir_b.prefab"
    },
    {
      "Name": "douglas c",
      "Cost": 10,
      "Amount": 1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/v3_temp_forest_pine/douglas_fir_c.prefab"
    },
    {
      "Name": "palm a",
      "Cost": 10,
      "Amount": 1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/v3_arid_beachside/palm_tree_small_a_entity.prefab"
    },
    {
      "Name": "palm b",
      "Cost": 10,
      "Amount": 1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/v3_arid_beachside/palm_tree_small_b_entity.prefab"
    },
    {
      "Name": "palm c",
      "Cost": 10,
      "Amount": 1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/v3_arid_beachside/palm_tree_small_c_entity.prefab"
    },
    {
      "Name": "swamp a",
      "Cost": 10,
      "Amount": 1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/swamp-trees/swamp_tree_a.prefab"
    },
    {
      "Name": "swamp b",
      "Cost": 10,
      "Amount": 1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/swamp-trees/swamp_tree_b.prefab"
    },
    {
      "Name": "swamp c",
      "Cost": 10,
      "Amount": 1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/swamp-trees/swamp_tree_c.prefab"
    },
    {
      "Name": "pine a",
      "Cost": 10,
      "Amount": 1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/v3_temp_forest_pine/pine_a.prefab"
    },
    {
      "Name": "pine b",
      "Cost": 10,
      "Amount": 1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/v3_temp_field/pine_b.prefab"
    },
    {
      "Name": "pine c",
      "Cost": 10,
      "Amount": 1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/v3_temp_forest_pine/pine_c.prefab"
    }
  ]
}
MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

22.4K downloads
138 watchers

treesplant