-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: added normal hook crafting recipe
- Loading branch information
Showing
6 changed files
with
46 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 29 additions & 7 deletions
36
BP/scripts/fishing_system/configuration/server_configuration.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,36 @@ | ||
import { FormBuilder } from "utils/form_builder"; | ||
import { cloneConfiguration } from "./configuration_handler"; | ||
|
||
export const serverConfiguration = { | ||
caughtFishDespawnTimer: new FormBuilder("yn:fishing_got_reel.configuration.server.caught_fish_despawn_timer").createTextField("30"), | ||
expirationTimer: new FormBuilder("yn:fishing_got_reel.configuration.server.expiration_timer").createTextField("300"), | ||
CatchingPlacement: new FormBuilder("yn:fishing_got_reel.configuration.server.caught_direction").createDropdown(['CURRENT', 'BACK', 'FRONT'], "CURRENT"), | ||
caughtFishDespawns: new FormBuilder("yn:fishing_got_reel.configuration.server.does_caught_fish_despawn").createToggle(false), | ||
ShowMessageUponJoin: new FormBuilder("yn:fishing_got_reel.configuration.server.show_message_on_join").createToggle(true), | ||
debug: new FormBuilder("Debug Mode").createToggle(true), | ||
/** | ||
* (Required: Caught Fish Despawns Toggle) Number of seconds before the fish despawns after being reeled. Note: Putting string instead of number just returns the default value | ||
*/ | ||
caughtFishDespawnTimer: new FormBuilder("yn:fishing_got_reel.configuration.server.caught_fish_despawn_timer").createTextField("30"), | ||
/** | ||
* Number of seconds before cancelling the fishing system. Note: Putting string instead of number just returns the default value | ||
*/ | ||
expirationTimer: new FormBuilder("yn:fishing_got_reel.configuration.server.expiration_timer").createTextField("300"), | ||
/** | ||
* The locator for when will be caught entity be placed or reeled | ||
*/ | ||
CatchingPlacement: new FormBuilder("yn:fishing_got_reel.configuration.server.caught_direction").createDropdown(['CURRENT', 'BACK', 'FRONT'], "CURRENT"), | ||
/** | ||
* Makes the caught fish despawn after an x amount of seconds being reeled-in. | ||
*/ | ||
caughtFishDespawns: new FormBuilder("yn:fishing_got_reel.configuration.server.does_caught_fish_despawn").createToggle(false), | ||
/** | ||
* Shows the script initialization message log upon player joining, default is true. | ||
*/ | ||
ShowMessageUponJoin: new FormBuilder("yn:fishing_got_reel.configuration.server.show_message_on_join").createToggle(true), | ||
/** | ||
* Enables debug messages to content logs. | ||
*/ | ||
debug: new FormBuilder("Debug Mode").createToggle(false), | ||
}; | ||
|
||
export let serverConfigurationCopy = cloneConfiguration(serverConfiguration); | ||
export let setServerConfiguration = (newServerConfig) => serverConfigurationCopy = newServerConfig; | ||
export let resetServerConfiguration = () => serverConfigurationCopy = cloneConfiguration(serverConfiguration); | ||
export const VERSION = "1.0.1"; | ||
|
||
// version (do not change) | ||
export const VERSION = "1.0.1"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters