9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-26 02:19:21 +00:00
Files
Custom-Fishing/plugin/src/main/resources/config.yml
2023-12-13 05:46:41 +08:00

242 lines
7.2 KiB
YAML

# Developer: @Xiao-MoMi
# Wiki: https://mo-mi.gitbook.io/xiaomomi-plugins/
config-version: '31'
# Debug
debug: false
# BStats
metrics: true
# Check updates
update-checker: true
# Available locales: english / chinese / french / hungarian
lang: english
# Mechanic settings
mechanics:
# Specifies the conditions required for the plugin mechanics to work.
# Here, the type is !world, which implies the plugin won't work in
# the world named 'blacklist_world'.
mechanic-requirements:
world_requirement:
type: '!world'
value:
- blacklist_world
# Configures global effects. This is useful if you want to give all the players certain effects based on certain conditions
global-effects:
effect_1:
type: conditional
conditions:
competition:
ongoing: true
id:
- weekend_competition
effects:
effect_1:
type: wait-time-multiplier
value: 0.85
# Configures global events for hook/bait/rod/loot
# which would help you reduce duplicated lines
global-events:
hook: {}
bait: {}
loot:
success:
title_action:
type: random-title
value:
titles:
- '<green>GG!</green>'
- '<green>Good Job!</green>'
subtitles:
- 'You caught a {nick}'
- 'Whoa! Nice catch!'
- 'Oh {nick} here we go!'
- 'Let''s see what it is!'
fade-in: 20
stay: 30
fade-out: 10
chance: 1.0
failure:
title_action:
type: random-title
value:
titles:
- '<red>Be concentrated!</red>'
- '<red>What a pity!</red>'
- '<red>Try next time!</red>'
- '<red>Bad luck</red>'
subtitles:
- 'The fish escaped...'
fade-in: 20
stay: 30
fade-out: 10
chance: 1.0
rod:
land:
priority_action:
type: priority
value:
priority_1:
conditions:
lava-fishing: true
actions:
fake_item_action:
type: fake-item
value:
duration: 35
position: hook
item: util:lava_effect
y: 0
x: 0
z: 0
priority_2:
conditions:
lava-fishing: false
actions:
fake_item_action:
type: fake-item
value:
duration: 35
position: hook
item: util:water_effect
y: 0
x: 0
z: 0
# Global properties which would help you reduce duplicated lines
global-loot-property:
show-in-fishfinder: true
disable-stat: false
disable-game: false
instant-game: false
# Fishing bag is where players can store their baits, utils, hooks and rods (Loot optional)
fishing-bag:
# Enable
enable: true
# Fishing bag container title
bag-title: '<blue>{player}''s Fishing Bag</blue>'
# Can fishing bag store fishing loots?
can-store-loot: false
# Other whitelist-items
whitelist-items:
- fishing_rod
# Fishing wait time
# This section would take effect if you set "override-vanilla" to true
# That also means vanilla mechanics for example lure enchantment
# would not longer take effect, so you have to configurate its effect
# in enchantment effects.
fishing-wait-time:
# override vanilla mechanic
override-vanilla: false
# ticks
min-wait-time: 100
max-wait-time: 600
# Lava fishing settings
# To modify vanilla fishing time, you should edit paper-world-defaults.yml where there's a section called fishing-time-range
lava-fishing:
# ticks
min-wait-time: 100
max-wait-time: 600
# Size settings
size:
# Some effects would increase/decrease size so the option decides whether they could ignore the limit
restricted-size-range: true
###### WARNING: THIS IS NOT AN IMPLEMENTED FEATURE AND MIGHT BE REMOVED IN THE FUTURE ######
# It's only available for developers to test for the moment.
# This feature requires much work on preventing dupe, counting price, merging dropped items,
# clicks in inventory, hopper transferring and lore updating...
# It might be removed if dupes or has bad performance.
## Allow players to stack fish with different sizes
#allow-stack: false
## Lore format
#lore-format:
# - ''
# - 'Total Size: {0}cm'
#############################################################################################
# Competition settings
competition:
# Use redis for cross server data synchronization
redis-ranking: false
# Server group
server-group: default
# Increase this value would allow you to use more placeholders like {4_player} {5_score} in sacrifice of some performance
placeholder-limit: 3
# Other settings
other-settings:
# It's recommended to use MiniMessage format. If you insist on using legacy color code "&", enable the support below.
legacy-color-code-support: false
# Thread pool settings
thread-pool-settings:
# The size of the core Thread pool, that is, the size of the Thread pool when there is no task to execute
# Increase the size of corePoolSize when you are running a large server with many players fishing at the same time
corePoolSize: 10
# The maximum number of threads allowed to be created in the Thread pool. The current number of threads in the Thread pool will not exceed this value
maximumPoolSize: 10
# If a thread is idle for more than this attribute value, it will exit due to timeout
keepAliveTime: 30
# Event priority: MONITOR HIGHEST HIGH NORMAL LOW LOWEST
event-priority: NORMAL
# Save the data from cache to file periodically to minimize the data loss if server crashes
# -1 to disable
data-saving-interval: 600
# Log the consumption of time on data saving
log-data-saving: true
# Lock player's data if a player is playing on a server that connected to database
# If you can ensure low database link latency and fast processing, you can consider disabling this option to improve performance
lock-data: true
# Requires PlaceholderAPI to work
placeholder-register:
'{date}': '%server_time_yyyy-MM-dd-HH:mm:ss%'
# CustomFishing supports using items/blocks from other plugins
# If items share the same id, they would inherit the effects
# Check the wiki for examples
item-detection-order:
- CustomFishing
- vanilla
block-detection-order:
- vanilla
# Custom durability format
custom-durability-format:
- ''
- '<gray>Durability</gray><white>: {dur} <gray>/</gray> {max}</white>'
# Offset characters' unicodes
# Never edit this unless you know what you are doing
offset-characters:
font: customfishing:offset_chars
'1':
'2':
'4':
'8':
'16':
'32':
'64':
'128':
'-1':
'-2':
'-4':
'-8':
'-16':
'-32':
'-64':
'-128':