Remember that this version of the plugin is in beta mode. If you find any error you can send it to my discord. It is at the end.
Important:
This plugin has a PlaceholderAPI dependency
Give the opportunity to have a partner to the players of your server
Marry System
Family System
Family Adoptions System
Set a shared home
Private chats (Marry Chat/Family Chat)
Gifts
Teleport
Genders
Share health
Family System
Databases (File/SQLite/MySQL)
Fully customizable
Per Player Language
And many other new things!
marriage.reload (Reload the plugin files)
marriage.moduletoggle
Placeholders List:
- %puerkasmarriage_married% (If player is married, will return ❤) - %puerkasmarriage_married_text%(If player is married, will return YES or NO) - %puerkasmarriage_gender% (Return players's gender) - %puerkasmarriage_gender_text% (Return players's gender MALE or FEMALE) -%puerkasmarriage_marriedwith%(Return player partner name) - %puerkasmarriage_partnerlastloggedin% (Return the last login of partner)
Commands:
Languages:
Family Commands:
Change family name:
#Updater
Updater:
checkUpdates: true
sendOpMessage: true
automaticUpdate: false
#Backend Configuration
Backend:
# Set the type you want to database (set 'none' to disable. Set File, SQL or MySQL)
type: file
# MySQL server address/ip
hostname: localhost
# MySQL server's port (MySQL/SQL=3306)
port: 3306
# MySQL user
username: root
# MySQL user's password
password: password
# Database in MySQL/SQL to save Marriage's data.
database: PuerkasMarriage
Languages:
- Spanish
- English
FamilyCommand: |-
&e&m========&7[ &6&lPuerkas Family &c❤ &7]&e&m========
&f
&b/family setName <name> &7Set a name to your family
&b/family adopt <name> &7Adopt a child
&b/family accept <name> &aAccept an adoption petition
&b/family kick <name> &7Kick a member of your family
&b/family chat &7Toggle family chat mode
&f
&bFamily Name: {family_name}
HelpCommand: |-
&e&m========&7[ &6&lPuerkas Marriage &c❤ &7]&e&m========
&f
&b/marry languages &7Show avariable languages
&b/marry setLang <language> &7Set your language
&7
&b/marry gift &7Give the item(s) you currently hold
&b/marry gender <male/female> &7Specify your gender
&b/marry <player> &7Request a marriage
&b/marry pvp <on/off> &7Enable or disable pvping with your partner
&b/marry list <page> &7View a list of all married players
&b/marry seen &7Check when your partner last logged in
&b/marry home &7Teleport to your marriage home
&b/marry setHome &7Set a home for you and your partnet
&b/marry chat &7Enable or disable marriage chat mode
&b/marry heal &7Send your health to you partner
&b/marry divorce &7Divorce your current partner
&b/marry tp &7Teleport to you partner
&b
&bStatus: &a{status}
MarryChat:
format: '&c❤ &7[&cMarryChat&7] &7{player}&8: &7{message}'
#new
FamilyChat:
format: '&c❤ &7[&cFamilyChat&7] &7{player}&8: &7{message}'
#Inventory
Inventories:
Status:
title: '&8{player1} ❤ {player2}'
items:
player1:
title: '&a{player_name}'
lore: |-
&7{player_name} is married with {partner}
player2:
title: '&a{player_name}'
lore: |-
&7{player_name} is married with {partner}
#Placeholders
Placeholders:
married_status:
married: '&c❤'
not_married: '&cNo married'
married_text:
married: 'Yes'
not_married: 'No'
gender:
male: '&b♂'
female: '&d♀'
gender_text:
male: 'Male'
female: 'Female'
marriedwith:
not_married: '&cNot married'
partner_last_logged_in:
not_married: '&cNot married'
Messages:
languages:
avariable_languages: '&aAvariable Languages: &b'
ussage: '&cUssage: /marry setlang <language>'
lang_setted: '&aYour lang is now &b{language}&a!'
#new
family_name:
name_lenght: '&cThe name cannot be longer than 17 letters'
not_married: '&cIn order to have a family, you first have to get married'
setted: '&aThe family name has been changed to &b{name}&a!'
family_chat:
not_married: '&cTo activate family chat, you must be married'
enabledChat: '&aYou have enabled family chat!'
disabledChat: '&aYou have disabled family chat!'
ender_chest:
single: '&cYou are not married to anyone'
partner_chest_open: '&aYour partner opened the shared chest!'
partner_offline: '&cYou cannot open the shared chest if your partner is not online.'
family_status:
single: '&cYou are not married'
no_name: '&cYour family has no name'
status:
single: '&csingle'
married: '&amarried with {partner}'
message: '&a{player} is {variable}'
adopted: '&aAdopted by &b{player}'
gift:
single: '&cYou are not married to anyone'
success: '&aYou have recived {item} as gift from your partner'
nothing: '&cYou arent holding an item to gift'
notOnline: '&cYour partner is not online'
adopted: '&cYou can''t do this because you don''t have a partner. You are adopted.'
gender:
variable:
male: 'MALE'
female: 'FEMALE'
ussage: '&bUssage: /marry gender <male/famale>'
setted: '&aSetted your gender to &b{gender}'
pvp:
ussage: '&bUssage: /marry pvp <true/false>'
enabled: '&aNow you can pvp with your partner'
disabled: '&cNow you cant pvp with your partner'
single: '&cYou are not married to anyone'
adopted: '&cYou can''t do this because you don''t have a partner. You are adopted.'
home:
single: '&cYou are not married to anyone'
notHave: '&cYou dont have a marry house. You can set using &7/marry setHome'
teleported: '&aTeleported to your marry home'
adopted: '&cYou can''t do this because you don''t have a partner. You are adopted.'
setHome:
single: '&cYou are not married to anyone'
homeChanged: '&aYour marry home has been changed!'
homeSetted: '&aYour marry home has been setted!'
adopted: '&cYou can''t do this because you don''t have a partner. You are adopted.'
chat:
single: '&cYou are not married to anyone'
enabledChat: '&aYou have enabled marry chat!'
disabledChat: '&aYou have disabled marry chat!'
adopted: '&cYou can''t do this because you don''t have a partner. You are adopted.'
teleport:
single: '&cYou are not married to anyone'
notOnline: '&cYour partner is not online.'
teleported: '&aTeleported to your partner'
adopted: '&cYou can''t do this because you don''t have a partner. You are adopted.'
heal:
single: '&cYou are not married to anyone'
notOnline: '&cYour partner is not online.'
healed: '&aYou have healed your partner'
cannot: '&cYou cant heal your partner because your health is less than 2'
adopted: '&cYou can''t do this because you don''t have a partner. You are adopted.'
seen:
single: '&cYou are not married to anyone'
lastLogin: '&aYour partner connected last time - {lastlogin}'
adopted: '&cYou can''t do this because you don''t have a partner. You are adopted.'
divorce:
single: '&cYou are not married to anyone'
divorced: '&aYou have divorced &b{partner}&a!'
partnerDivorced: '&b{partner} &ahas divorced you!'
adopted: '&cYou can''t do this because you don''t have a partner. You are adopted.'
acceptBDeny:
acceptUssage: '&bUssage: &a/marry accept <player>'
nothing: '&cNobody asked you to marry you'
playerNotAsk: '&c{player} asked you to marry you'
adopted: '&cYou can''t do this because you don''t have a partner. You are adopted.'
alredyMarried: |-
&cYoure already married to {partner}.
&cIf you want, you can divorce him using /marry divorce
accepted: '&b{player} agreed to marry you!'
married: '&bYou and {player} have married!'
#new
adopt:
variables:
accept:
title: '&a&lACCEPT'
hover: '&aClick to accept!'
deny:
title: '&c&lDENY'
hover: '&aClick to deny!'
not_married: '&cIn order to have a family, you first have to get married'
no_request: '&cNo one asked to adopt you!'
notOnline: '&cThis player is not online'
alredyAdopted: '&cYou already have {name} adopted.'
playerAdopted: '&cThis player is already addopted.'
adoptSended: '&aYou sent a adoption petition to &b{player}&a!'
adopt_accept: '&b{player} &aaccepted your adoption request!'
adopted_by: '&aYou have been adopted by &b{player}'
adopt: |-
&b&m===========================================
&aThe player &b{player} &awants to adopt you!
&7 &aUse /family accept {player} to accept
&b&m===========================================
marry:
variables:
accept:
title: '&a&lACCEPT'
hover: '&aClick to accept!'
deny:
title: '&c&lDENY'
hover: '&aClick to deny!'
notOnline: '&cThis player is not online'
alredyMarried: |-
&cYoure already married to {partner}.
&cIf you want, you can divorce him using /marry divorce
playerMarried: '&cThis player is already married.'
marrySended: '&aYou sent a marriage petition to &b{player}&a!'
marry: |-
&b&m===========================================
&f
&aThe player &b{player} &awants to marry you
&7 Use /marry accept {player} to accept
&f
&b&m===========================================
Admin Commans:
/marry reload - Reload all messages
/marry toggleModule - Enable or disable module
Marry Commands:
/marry languages - List avariable languages
/marry setLang <language> - Set player language
/marry gift - Give the item(s) you currently hold
/marry gender <male/female> - Specify your gender
/marry <player> - Request a marriage
/marry pvp <on/off> - Enable or disable pvping with your partner
/marry list <page> - View a list of all married players
/marry seen - Check when your partner last logged in
/marry home - Teleport to your marriage home
/marry setHome - Set a home for you and your partnet
/marry chat - Enable or disable marriage chat mode
/marry heal - Send your health to you partner
/marry divorce - Divorce your current partner
/marry tp - Teleport to you partner
Family Commands:
/family setName <name> - Set name to your family
/family adopt <name> - Adopt a player to your family
/family accept <name> - Accept adoption request
/family kick <name> - Kick a player from your family
/family chat - Enable/Disable Family chat
Code (Text):
How to use:
1: Download the plugin and put it in the plugins folder
2: Start your server
3: Now you can use!
- When a command error occurs, the console will give you an error. You copy that error, paste it in a pastebin and send it to my discord to solve it as soon as possible.
You may use my plugin on your server for free, but you may not claim to have coded the plugin yourself. You may decomplie and look at the source code to learn from it.