on load: if folder "plugins/RMarry" doesn't exists: create folder "plugins/RMarry" if file "plugins/RMarry/Messages.yml" doesn't exists: create file "plugins/RMarry/Messages.yml" set yaml value "Ozen" from file "plugins/RMarry/Messages.yml" to "&6[&aRMarry&6] &aWpisz /marry ozen [gracz]" set yaml value "OzenZapro" from file "plugins/RMarry/Messages.yml" to "&6[&aRMarry&6] &aGracz %sender% wysyla tobie prosbe o wyjscie za Ciebie. Wpisz /marry akceptuj [gracz] zeby pobrac sie, wpisz /marry odrzuc [gracz] zeby odrzucic prosbe" set yaml value "OzenZapro1" from file "plugins/RMarry/Messages.yml" to "&6[&aRMarry&6] &aWyslales prosbe o wyjscie za tego gracza" set yaml value "Rozwod" from file "plugins/RMarry/Messages.yml" to "&6[&aRMarry&6] &aWpisz /marry rozwod [gracz]" set yaml value "RozwodDone" from file "plugins/RMarry/Messages.yml" to "&6[&aRMarry&6] &aGracz %player% and %arg 2% rozwiedli sie!" set {Ozen} to yaml value "Ozen" from file "plugins/RMarry/Messages.yml" set {OzenZapro} to yaml value "OzenZapro" from file "plugins/RMarry/Messages.yml" set {OzenZapro1} to yaml value "OzenZapro1" from file "plugins/RMarry/Messages.yml" set {OzenRozwod} to yaml value "OzenRozwod" from file "plugins/RMarry/Messages.yml" if file "plugins/RMarry/GUI.yml" doesn't exists: create file "plugins/RMarry/GUI.yml" set yaml value "GUIName" from file "plugins/RMarry/GUI.yml" to "&a&lMarry" set {GUIName} to yaml value "GUIName" from file "plugins/RMarry/GUI.yml" variables: {ozen::%player%} = false command /marry [] []: trigger: if arg 1 isn't set: open chest with 3 rows named "%{GUIName}%" to player loop 27 times: set slot loop-number - 1 of current inventory of player to light glass pane named "" set slot 11 of current inventory of player to book named "&aOzen sie" set slot 15 of current inventory of player to book named "&aRozwiedz sie" if arg 1 is "ozen": if arg 2 is set: if {ozen::%player%} and {ozen::%arg 2%} is false: send "%{OzenZapro}%" to %arg 2% send "%{OzenZapro1}%" if arg 1 is "rozwod": if arg 2 is set: if {ozen::%player%} and {ozen::%arg 2%} is true: set {ozen::%player%} to false set {ozen::%arg 2%} to false send "%{RozwodDone}%" on inventory click: if inventory name of current inventory of player is "%{GUIName}%": if clicked slot is 11: close player's inventory send "%{Ozen}%" cancel event if clicked slot is 15: close player's inventory send "%{Rozwod}%" cancel event else: cancel event on chat: if {ozen::%player%} is true: set the player's display name to "&7&l(&d&l<3&7&l) &a%player%:" if {ozen::%player%} is false: set the player's display name to "&a%player%:"