Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- if file "plugins/QRegister/config.yml" doesn't exists:
- send "&e&oQ&6&lRegister&8> &cNie znaleziono pliku konfiguracyjnego." to console
- send "&e&oQ&6&lRegister&8> &aTworzenie trwa..." to console
- create file "plugins/QRegister/config.yml"
- send "&e&oQ&6&lRegister&8> &aStworzono plik konfiguracyjny." to console
- set "Prefix" to "&eQ&6Register&8 »" in yaml file "plugins/QRegister/config.yml"
- set "Suffix" to "&e&o&l." in yaml file "plugins/QRegister/config.yml"
- set "NazwaGUI" to "&3Wybierz swoja plec" in yaml file "plugins/QRegister/config.yml"
- set "WybierzPlec" to "&aNie wybrales plci. Aby to zrobic nacisnij na ta wiadomosc." in yaml file "plugins/QRegister/config.yml"
- set "Wybrano" to "&2Wybrales plec &6&o_PLEC_" in yaml file "plugins/QRegister/config.yml"
- set "Chat" to "_RANGA_ _PLEC_ _NICK_&6: &e&o_CZAT_" in yaml file "plugins/QRegister/config.yml"
- set "Chlopak" to "&8[&9C&8]" in yaml file "plugins/QRegister/config.yml"
- set "Dziewczyna" to "&8[&dD&8]" in yaml file "plugins/QRegister/config.yml"
- set {tag2} to single value "Prefix" get of "plugins/QRegister/config.yml" parsed as text
- set {prefix} to colored {tag2}
- set {suf2} to single value "Suffix" get of "plugins/QRegister/config.yml" parsed as text
- set {suffix} to colored {suf2}
- set {set} to single value "WybierzPlec" get of "plugins/QRegister/config.yml" parsed as text
- set {gui} to single value "NazwaGUI" get of "plugins/QRegister/config.yml" parsed as text
- set {wyb} to single value "Wybrano" get of "plugins/QRegister/config.yml" parsed as text
- set {chlo} to single value "Chlopak" get of "plugins/QRegister/config.yml" parsed as text
- set {dzie} to single value "Dziewczyna" get of "plugins/QRegister/config.yml" parsed as text
- on join:
- if {sex::%player%} is not set:
- wait 10 ticks
- send "%{prefix}% %{set}%%{suffix}%" to player
- command /plec [<text>]:
- trigger:
- if arg is "c" or "d" or "chlopak" or "dziewczyna":
- if arg is "c" or "chlopak":
- set {sex::%player%} to "c"
- set {_wiad} to {wyb}
- set {_pl} to {chlo}
- replace all "_Plec_" in {_wiad} with "%{_pl}%"
- send "%{prefix}% %{_wiad}%%{suffix}%"
- if arg is "d" or "dziewczyna":
- set {sex::%player%} to "d"
- set {_wiad} to {wyb}
- set {_pl} to {dzie}
- replace all "_Plec_" in {_wiad} with "%{_pl}%"
- send "%{prefix}% %{_wiad}%%{suffix}%"
- if arg is not set:
- send "%{prefix}% %{set}%%{suffix}%"
- on chat:
- cancel event
- if {sex::%player%} is not set:
- send "%{prefix}% %{set}%%{suffix}%"
- execute player command "qregister"
- stop
- if {sex::%player%} is set:
- set {chat.%player%} to single value "Chat" get of "plugins/QRegister/config.yml" parsed as text
- replace all "_NICK_" in {chat.%player%} with "%player%"
- replace all "_CZAT_" in {chat.%player%} with "%message%"
- replace all "_RANGA_" in {chat.%player%} with "%colored player's prefix%"
- if {sex::%player%} is "c" or "chlopak":
- set {sexpref::%player%} to "%{chlo}%"
- if {sex::%player%} is "d" or "dziewczyna":
- set {sexpref::%player%} to "%{dzie}%"
- replace all "_PLEC_" in {chat.%player%} with "%{sexpref::%player%}%"
- broadcast "%{chat.%player%}%"
- stop
Advertisement
Add Comment
Please, Sign In to add comment