MrBlue
Spawns storage chests with set loot across the map

Supported Games
GameServerKingsGameServerKings

This plugin will spawn x number of chests around the map with random loot that you define. Loot boxes will automatically despawn at the configured despawn time.

You can change the spawn location, radius etc if you want it to be more localized to a specific area.

Chat Commands

  • /lootchests addspawn [radius] - Adds a new spawn location for chests to spawn.
  • /lootchests additem [min] [max] [chance] - Adds item from first hotbar slot to the item list.
    • [min] - Minimal amount of the item
    • [max] - Maximum amount of the item
    • [chance] - All items have their own chance, all chance values are counted up and a random number is selected to get a item. Example: Amber 100 chance and Owrong 300 chance, Owrong has 3 times more chance to be slected.

Or if you know what you are doing you can edit the data file LootChests.json directly located in oxide/data.

Permissions

  • lootchests.admin -- Allows player to use the chat commands

Configuration

  • Default spawn time is 2 hours.
  • Default despawn time is 30 minutes.
{
  "ChestSpawnCount": 20,
  "ItemsPerChest": 1,
  "SecondsForSpawn": 7200,
  "SecondsTillDestroy": 1800,
  "ShowDespawnMessage": true,
  "ShowSpawnMessage": true,
  "PrefabName": "",
  "StartPoints": [
    "-3000, 450, -3000, 300"
  ]
}
  • ChestSpawnCount - Amount of chests spawned at every location.
  • ItemsPerChest - Amount of items spawned in every chest.
  • SecondsForSpawn - Interval of chests spawning.
  • SecondsTillDestroy - Time till chests despawn (custom storage items might despawn on their own timer).
  • ShowDespawnMessage - If true, a message will be broadcasted to everyone saying chests have despawned.
  • ShowSpawnMessage - If true, a message will be broadcasted to everyone saying chests have spawned.
  • PrefabName - Allows you to add custom storage chests. Example: Weapons Crates by Noviets
  • StartPoints - All locations chests should spawn (use the /lootchests addspawn command).

Localization

{
  "NoPermission": "<color=#ffa500>LootChests</color>: You dont have Permission to use this command! (lootchests.admin)",
  "Usage": "<color=#ffa500>LootChests</color>: Usage:\n<color=orange>/lootchests addspawn [radius]</color> - Add new chest spawn point\n<color=orange>/lootchests additem [minstack] [maxstack] [chance]</color> - Adds item from first hotbar slot",
  "AddNoItem": "<color=#ffa500>LootChests</color>: Could not find a item in your first hotbar slot!",
  "ItemAdded": "<color=#ffa500>LootChests</color>: <color=purple>{itemname}</color> has been added with min {minstack} and max {maxstack} items: with {chance} chance",
  "LocationAdded": "<color=#ffa500>LootChests</color>: Location added: {location} with radius: {radius}",
  "Spawned": "<color=#ffa500>LootChests</color>: Loot Chests have Spawned",
  "Despawned": "<color=#ffa500>LootChests</color>: Loot Chests have Despawned",
  "ChestSpawnError": "<color=#ffa500>LootChests</color>: Error: Unable to spawn the chest as it did not exist."
}

Credits

  • Noviets, the original author of this plugin

MIT License


Copyright (c) 2020 MrBlue


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.