About Mushroom Event
Your players still roof camping? Start mushroom Event, let them start fighting for the title of the best mushroom picker and win prizes for the first three places.
Permission
To assign a permission, use 'oxide.grant <user or group> <name or steam id>'
mushroomevent.admin - Allow to using commands.
Commands
This plugin provides both chat and console commands using the same syntax. When using a command in chat, prefix it with a forward slash: `/`.
startme - starts the countdown to the start of the mushroom event.
stopme - Ends the event immediately, without giving away any prizes.
finishme - Ends the event immediately, with giving away any prizes.
configme - Opens the configuration UI panel
Configuration
Quote
{ "Run every X minutes": 120, "Minimum number of players": 3, "Time before mushroom event": 180, "Duration how long event is": 420, "Rewards for top 3 players": [ { "ShortName": "scrap", "Amount": 50 }, { "ShortName": "scrap", "Amount": 30 }, { "ShortName": "scrap", "Amount": 10 } ], "Start event sound": "assets/prefabs/deployable/survivalfishtrap/effects/fish_caught.prefab", "Finish event sound": "assets/prefabs/deployable/survivalfishtrap/effects/fish-trap-deploy.prefab", "Print Logs To Console": false }"Run every X minutes"
How often is the event to be triggered. 0 means that auto start is disabled.
Default Value: 30
Disable Value: 0
Recommended: 120 (every 2 hours)"Minimum number of players"
How many players are to be on the server for the mushroom event to begin.
Default Value: 3
Disable Value: 0
Recommended: 5"Time before mushroom event"
Time in seconds for which the mushroom event starts.
Default Value: 180
Disable Value: 0
Recommended: 300 (5 minutes)"Duration how long event is"
Duration of the mushroom event
Default Value: 420
Disable Value: Link
Recommended: 300 (5 minutes)"Rewards for top 3 players"
Items that will go to the best anglers.
The first 'ShortName' and 'Amount' belongs to the best player, each subsequent one is rewards for subsequent places.Default Value:
"Rewards for top 3 players": [ { "ShortName": "scrap", "Amount": 50 }, { "ShortName": "scrap", "Amount": 30 }, { "ShortName": "scrap", "Amount": 10 } ],Disable Value: null
"Rewards for top 3 players": null,
Recommended:
"Rewards for top 3 players": [ { "ShortName": "scrap", "Amount": 500 }, { "ShortName": "scrap", "Amount": 300 }, { "ShortName": "scrap", "Amount": 100 } ],
"Start event sound"
Path to in-game prefab sound. Run when the mushroom party begins.
Default Value: "assets/prefabs/deployable/survivalfishtrap/effects/fish_caught.prefab"
Disable Value: ""
Recommended: """Finish event sound"
Path to in-game prefab sound. Run after the mushroom event is over.
Default Value: "assets/prefabs/deployable/survivalfishtrap/effects/fish-trap-deploy.prefab"
Disable Value: ""
Recommended: """Print Logs To Console"
Display logs when the event starts, ends, and who will take first place.
Default Value: false
Disable Value: false
Recommended: false
Language
Default English FIle
{ "noOneStart": "Wow, no one played so no one won.", "bestPlayer": "{0} is the best mushroom picker with {1} mushrooms.", "playerStats": "You placed {0} of {1} with gather {2} mushrooms.", "rewardMessage": "You received {0}x {1} as an award!", "timeMessageToEvent": "<color=#326de3>Mushroom Event</color>: The mushroom event starts in {0} minutes." }
Hooks
void OnMushroomEventStartCountdown() - Call when starts counting down to the start of the fishing event.
void OnMushroomEventStarted() - Call when the fishing event begins.
void OnMushroomEventEnded() - Call when the fishing event is over.
void OnMushroomEventUIClosed() - Call when UI disappears from players screen.(Five seconds after fishing event is over)
Credits
@Billy Joe Thanks for your UI Tool(I hate it but i love it still)