服务器插件
中文名称: |
婚姻 |
英文名称: |
Marriage |
插件来源: |
转载 |
适用服务端: |
Spigot |
插件类型: |
综合 |
语言支持: |
英文 其他 |
适用版本: |
全版本 |
前置插件/mod: |
|
下载地址: |
附件 |
原贴地址: |
https://www.spigotmc.org/resources/marriage.38296/ |
马上登录/注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 youareLLL 于 2024-5-2 14:33 编辑
————介绍————
这个插件可以和你的女朋友(或男朋友:3)结婚。您也可以传送到伴侣身边,亲吻伴侣或显示有关婚姻的信息。
————指令————
/marriage help =帮助文档(就是此文档) /marriage marry 和ta结婚 /marriage divorce 和tadivorce /marriage tp 传送到对象 /marriage kiss亲吻伴侣 |
————权限————
————配置———— #---------------------------------------
# MARRIAGE -- marry, rozchod, tp, chat, gift, kiss
# Created by FJouk
#---------------------------------------
#DO NOT EDIT THIS CODE (ONLY MESSAGES, CONFIG AND PERMISSIONS)!
#-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-
options:
#------------
# CONFIG |
#------------
#Main command (Default: mariage)
cmd.main: marriage
#Prefix (Default: &7[&bMARRIAGE&7]&r)
prefix: &7[&bMARRIAGE&7]&r
#------------
# MESSAGES |
#------------
# ERRORS #
player.noperm: &cYou don't have enought permission!
partner.notonline: &cYour partner isn't online!
player.notonline: &cThis player isn't online!
# WARNINGS #
player.noname: &eYou must set player's name!
request.none: &eYou don't have enought request!
player.inmarriage: &eThis player is already in marriage!
you.inmarriage: &eYou are already in marriage!
you.notmarriage: &eYou aren't in marriage!
# NORMAL MESSAGES #
accepted: &aRequest accepted.
denied: &cRequest denied.
player.accepted: &aPlayer %player% accepted your request.
player.denied: &cPlayer %player% dienied your request.
you.divorce: &cYou are divorce with %{weed.%player%}%.
player.divorce: &cPlayer %player% divorce with you.
you.kiss: &aYou kissed %{weed.%player%}%.
player.kiss: &a%player% kiss you.
you.request: &aYou want to marry with %player-argument%
player.request: &a%player% wants to marry with you
# INFO #
date: Marriage date
partner: Partner
kiss: Kiss counter
#------------
# PERMISSIONS |
#------------
#/warn warn command
perm.marry: marry.marry
#/warn check command
perm.divorce: marry.divorce
#/warn reset command
perm.tp: marry.tp
#/warn reset command
perm.kiss: marry.kiss
#/warn reset command
perm.info: marry.info
#------------
# CODE |
#------------
on join:
set {request::%player%} to 0
if player has permission "perm.joined":
stop
else:
set {marry::%player%} to 0
wait 1 tick
command "pex user %player% add perm.joined"
command /marryadmin [<player>]:
trigger:
set {marry::%player%} to 0
set {marry::%player-argument%} to 0
command /{@cmd.main} <text> [<player>] [<text>]:
usage: &c/{@cmd.main} help
trigger:
if arg 1 is "help":
message "&e&m-----------------------------------------------------"
message "&b&l &nMARRIAGE"
message ""
message "&b/{@cmd.main} help &f- &6Help command (this)"
message "&b/{@cmd.main} marry <player> &f- &6Marry with...."
message "&b/{@cmd.main} divorce <player> &f- &6Divorce with...."
message "&b/{@cmd.main} tp &f- &6Teleport to partner"
message "&b/{@cmd.main} kiss &f- &6Kiss partner"
message "&b/{@cmd.main} info &f- &6About marriage"
message "&e&m-----------------------------------------------------"
if arg 1 is "marry":
if arg 2 is not set:
message "{@prefix} {@player.noname}"
else if arg 3 is "ano":
if {request::%player%} is 1:
set {weed.%player%} to player-argument
set {weed.%player-argument%} to player
add 1 to {marry::%player%}
add 1 to {marry::%player-argument%}
wait 1 tick
set {weed.day.%player%} to now
set {weed.day.%player-argument%} to now
message "{@prefix} {@accepted}"
message "{@prefix} {@player.accepted}" to {weed.%player%}
else:
message "{@prefix} {@request.none}"
stop
else if arg 3 is "ne":
if player has permission "perm.marry":
if {request::%player%} is 1:
message "{@prefix} {@player.denied}" to player-argument
else:
message "{@prefix} {@request.none}"
else:
message "{@prefix} {@player.noperm}"
else:
if player has permission "perm.marry":
if {marry::%player%} is 0:
if {marry::%player-argument%} is 0:
if player-argument is not online:
message "{@prefix} {@player.notonline}"
else:
wait 1 tick
message "{@prefix} {@you.request}"
message "{@prefix} {@player.request}" to player-argument
set {request::%player-argument%} to 1
else:
message "{@prefix} {@player.inmarriage}"
else:
message "{@prefix} {@you.inmarriage}"
else:
message "{@prefix} {@player.noperm}"
if arg 1 is "rozchod":
if player has permission "perm.rozchod":
if {marry::%player%} is 0:
message "{@prefix} {@you.notmarriage}"
else:
if arg 2 is not set:
message "{@prefix} {@you.divorce}"
message "{@prefix} {@player.divorce}" to {weed.%player%}
wait 1 tick
set {marry::%player%} to 0
set {weed.%player%} to 0
wait 1 tick
reset {weed.%player%}
reset {weed.%player-argument%}
else:
message "{@prefix} {@player.noperm}"
if arg 1 is "tp":
if player has permission "perm.tp":
if {marry::%player%} is 0:
message "{@prefix} {@you.notmarriage}"
else if {weed.%player%} is not online:
message "{@prefix} {@partner.notonline}"
else:
if arg 2 is not set:
teleport player to {weed.%player%}
else:
message "{@prefix} {@player.noperm}"
if arg 1 is "kiss":
if player has permission "perm.kiss":
if {marry::%player%} is 0:
message "{@prefix} {@you.notmarriage}"
else if {weed.%player%} is not online:
message "{@prefix} {@partner.notonline}"
else:
add 1 to {weed.pusinky.%player%}
add 1 to {weed.pusinky.%{weed.%player%}%}
message "{@prefix} {@you.kiss}"
message "{@prefix} {&player.kiss}" to {weed.%player%}
else:
message "{@prefix} {@player.noperm}"
if arg 1 is "info":
if player has permission "perm.info":
message "&e&m-----------------------------------------------------"
message "&b&l &nMARRIAGE"
message ""
message "&b{@date}: &6%{weed.day.%player%}%"
message "&b{@partner}: %{weed.%player%}%"
message "&b{@kiss}: %{weed.pusinky.%player%}%"
message "&e&m-----------------------------------------------------"
————下载————
见附件
|
|