/
config.yml
231 lines (211 loc) · 9.44 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
# MarriageMaster Config File
# Language Settings
Language:
# Defines the used language and the corresponding file used. The corresponding language file will be placed next to the config.yml named: <Language>.yml
Language: en
# Options:
# Overwrite (deletes all changes from the file and extracts a new language file)
# Upgrade (extracts a new language file and copy's all settings from the old language file)
# Update (adds the default (english) text values for all missing values, just some basic formatting)
UpdateMode: Upgrade
# Database Settings
Database:
# SQLite = data stored in SQLite file, MySQL = data stored in MySQL database (see selection below), Shared = use shared connection pool from PCGF PluginLib
Type: SQLite
# Defines the storage format for UUIDs for compatibility with other plugins (shared user table).
# true: format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
# false: format: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
UseUUIDSeparators: false
# Options: auto, online, offline | auto will decide based on the server online mode option.
# If you are using BungeeCord, set it to whatever you use on your BungeeCord server!!!
UUID_Type: auto
SQL:
Host: 'localhost'
Database: 'minecraft'
User: 'minecraft'
Password: 'minecraft'
# The max amount of connections to the database the connection pool will open.
# You may want to adjust this setting based on the load of your database server and the amount of players.
MaxConnections: 2
# Allows to set the connection properties.
# Properties: ["useSSL=false"]
Properties: []
Tables:
User: marry_players
Partner: marry_partners
Home: marry_home
Priests: marry_priests
# Settings controlling the cache behavior of the plugin. You may can optimize it a little bit depending on your player count, ram or cpu bottlenecks.
Cache:
UnCache:
# The strategie used to uncache offline players. Options
# interval (offline players get uncached every x seconds)
# intervalChecked (like interval, but also ensures that the player is already offline for at lest the interval time, add's a cpu overhead)
# ondisconnect (player instantly gets uncached as soon as he disconnects from the server, may adds overhead if other plugins try to access the player data when they go offline, also it may be problematic for players with unstable connections)
# ondisconnectdelayed (player gets uncached x seconds after he went offline, adds overhead on disconnect, you shouldn't use this with a lot of players joining and leaving.)
Strategie: interval
# Used for the interval based uncaching algorithms. Also used as delay for ondisconnectdelayed. Value in seconds. Default: 600 = 10 minutes
Interval: 600
Delay: 600
Marriage:
# Defines if players need to get married by a priest or if they can marry each other on their own.
RequirePriest: true
# This option defines if a priest is needed to divorce 2 players or if they can divorce on their own.
# Options: true, false, auto (auto will copy the RequirePriest value)
DivorceRequiresPriest: auto
AllowMultiplePartners: false
# This setting disables the "/marry setpriest" command players can still be promoted to a priest with the "marry.priest" permission.
DisableSetPriestCommand: false
Surnames:
Enable: false
Force: false
# Surname requirements
AllowColors: false
AllowedCharacters: A-Za-z
# Values below 3 will be set to 3
MinLength: 3
# Values below the in length will be set to the min length
MaxLength: 16
AnnounceOnMarriage: true
Confirmation:
Enable: true
AutoDialog: true
BothPlayersOnDivorce: false
OtherPlayerOnSelfDivorce: false
InfoOnPartnerJoinLeave:
Enable: true
# Delay for online partners info on join. In seconds
JoinDelay: 0
# The prefix/suffix options do not work with all chat plugins!
# If your chat plugin support placeholder APIs it would be better to use them! More details: https://github.com/GeorgH93/MarriageMaster/wiki/Placeholders
Prefix:
Enable: false
# Placeholders: {Surname}, {PartnerName}, {PartnerDisplayName}, {StatusHeart}, {MagicHeart}
String: "<heart>{PartnerName}<heart>"
OnLineBeginning: true
Suffix:
Enable: false
# Placeholders: {Surname}, {PartnerName}, {PartnerDisplayName}, {StatusHeart}, {MagicHeart}
String: "{Surname}"
Gift:
Enable: true
AllowInCreative: false
# List of worlds where players can't receive gifts
BlacklistedWorlds: []
# If this option is enabled the partner has to accept the gift.
RequireConfirmation: false
Kiss:
Enable: true
# Time between two kisses in seconds
WaitTime: 10
# How many hearths should be spawned
HearthCount: 50
List:
UseFooter: true
EntriesPerPage: 8
PvP:
AllowBlocking: true
BonusXp:
Enable: true
# Values less or equals 1 will disable the bonus xp, but still allows to split xp between players
Multiplier: 2
# If enabled the picked up xp will be split between both players. So each player will receive (xp * multiplier / 2) xp
SplitXpOnPickup: true
# If enabled the xp will be split with all partners that are in range. So each player will receive (xp * multiplier / count_partners_in_range) xp. Requires that SplitXpOnPickup is enabled.
SplitWithAllPartnersInRange: false
SkillAPI:
Enable: false
# List of sources that should be excluded from the xp boost. The command source is always excluded!
ExcludeSources: []
Multiplier: 2
# If split is enabled the multiplied amount will be split between both partners. So each player will receive (xp * multiplier / 2) xp
SplitXp: true
# If enabled the xp will be split with all partners that are in range. So each player will receive (xp * multiplier / count_partners_in_range) xp. Requires that SplitXp is enabled.
SplitWithAllPartnersInRange: false
McMMO:
Enable: false
Multiplier: 2
# If split is enabled the multiplied amount will be split between both partners. So each player will receive (xp * multiplier / 2) xp
SplitXp: true
# If enabled the xp will be split with all partners that are in range. So each player will receive (xp * multiplier / count_partners_in_range) xp. Requires that SplitXp is enabled.
SplitWithAllPartnersInRange: false
# List of sources that should be excluded from the xp boost.
ExcludeSources: [ "COMMAND" ]
# List of skills that should be excluded from the xp boost.
ExcludeSkills: []
HealthRegain:
Enable: true
Multiplier: 2
Chat:
Enabled: true
AllowSurveillance: false
# Ranges for actions
# -1 no range limit and no world limit, 0 no range limit but in the same world, >= 1 range limit in meters/blocks
Range:
Marry: 25.0
Divorce: 25.0
Backpack: 5
Gift: 0
Kiss: 2
KissInteract: 5
Hug: 2
HearthVisible: 128
BonusXP: 10
Heal: 3
# This settings will be used for all teleports (home and to partner)
Teleport:
Delay: false
# Time in seconds
DelayTime: 3
# List of worlds where you can't teleport to
BlacklistedWorlds: []
# This option controls whether a safety check is performed before the player is teleported.
CheckSafety: true
# If this option is enabled the partner has to accept the teleport request before the player will be teleported. Only applicable for teleporting to another player.
RequireConfirmation: false
BackpackShare:
Enable: true
Economy:
Enable: false
# Each of the two players will have to pay half of the amount. Example: cost=100 -> player_a has to pay 50 and player_b has to pay 50
Marry: 100.0
# Each of the two players will have to pay half of the amount. Example: cost=100 -> player_a has to pay 50 and player_b has to pay 50
Divorce: 100.0
Tp: 25.0
Gift: 10.0
HomeTp: 25.0
SetHome: 100.0
# Allows the execution of commands on certain events related to the marriage
CommandExecutor:
Enable: false
# General information about the command executor:
# The commands can contain placeholders in the format {PlaceholderName} (The {} is part of the name. The available placeholders are listed right about the event).
# Every event can executed multiple commands in the list. Commands do not have to start with / !
# Commands to be executed:
# Will be executed when two players marry, without a priest
# Allowed placeholders: {Player1}, {Player2}
# OnMarry: [ "eco give {Player1} 100", "pex user {Player2} add example.perm" ]
OnMarry: []
# Will be executed when two players marry by a priest
# Allowed placeholders: {Player1}, {Player2}, {Priest}
OnMarryWithPriest: []
# Will be executed when two players get divorced, without a priest
# Allowed placeholders: {Player1}, {Player2}
OnDivorce: []
# Will be executed when two players get divorced through a priest
# Allowed placeholders: {Player1}, {Player2}, {Priest}
OnDivorceWithPriest: []
# The command that should be used if no sub-command was used.
# Options: help (/marry help), custom_help (will display the messages defined in the language file in Language.Ingame.Help.CustomHelp)
DefaultCommand: "help"
# The marriage color is used for the magic/colored heart and is set to an random value by default.
AllowPlayersToChangeMarriageColor: true
Misc:
AutoUpdate:
# When auto update is disabled you still can use the build in update function manually with /marry update
Enable: true
Channel: ${updateChannel}
# Enable this option if you are in a BungeeCord environment. It is also recommended to install the plugin on your BungeeCord server
UseBungeeCord: false
# Config File Version. Don't touch it!
Version: 100