##################################################################################################### #Nie zezwalam na usuwanie komendy /pm autor. # #Zezwalam na edycję wszystkich wiadomości, oprócz tej z komendy /pm autor! # #Zezwalam na edycję lokalizacji folderów, a także plików. # #Nie zezwalam na handlowanie skryptem. # #Nie zezwalam na podszywanie się pod autora skryptu. # ##################################################################################################### on script load: if folder "plugins/PrivateMessage" doesn't exists: create folder "plugins/PrivateMessage" if folder "plugins/PrivateMessage/Players" doesn't exists: create folder "plugins/PrivateMessage/Players" if file "plugins/PrivateMessage/log.yml" doesn't exists: create file "plugins/PrivateMessage/log.yml" command /msg [] []: aliases: pm, m, tell permission: msg.pm permission message: &4Nie masz dostepu do tej komendy. trigger: arg 2 is not set: send "&cUzyj: /msg [Gracz] [Wiadomosc]" arg 2 is set: loop all players: name of loop-player is "%arg 1%": set {r.%player%} to arg 1 set {r.%arg 1%} to player wf "&6[&c%player% &6-> &9%arg 1%&6]&f %arg 2%" to "plugins/PrivateMessage/log.yml" send "&6[&cJa &6-> &9%arg 1%&6]&f %arg 2%" to player send "&6[&9%player% &6-> &cJa&6]&f %arg 2%" to loop-player if file "plugins/PrivateMessage/Players/%arg 1%.yml" doesn't exists: create file "plugins/PrivateMessage/Players/%arg 1%.yml" if file "plugins/PrivateMessage/Players/%player%.yml" doesn't exists: create file "plugins/PrivateMessage/Players/%player%.yml" wf "&6[&c%player% &6-> &9%arg 1%&6]&f %arg 2%" to "plugins/PrivateMessage/Players/%player%.yml" else: send "&cGracz do ktorego wysylasz wiadomosc jest offline!" command /r []: aliases: reply permission: reply.pm permission message: &4Nie masz dostepu do tej komendy. trigger: arg 1 is not set: send "&cUzyj: /r [Wiadomosc]" arg 1 is set: loop all players: name of loop-player is "%{r.%player%}%": wf "&6[&c%player% &6-> &c%{r.%player%}%&6]&f %arg 1%" to "plugins/PrivateMessage/log.yml" wf "&6[&c%player% &6-> &9%{r.%player%}%&6]&f %arg 1%" to "plugins/PrivateMessage/Players/%player%.yml" send "&6[&cJa &6-> &9%arg 1%&6]&f %arg 1%" to loop-player command /pm []: permission: admin.pm permission message: &4Nie masz dostepu do tej komendy. trigger: arg 1 is not set: send "&6===&cPrivateMessage&6===" send "&f/msg [Gracz] [Wiadomosc] - msg.pm" send "&f/r [Wiadomosc] - reply.pm" send "&f/pm - admin.pm" send "&f/pm reload - admin.pm" send "&f/pm autor - admin.pm" send "&6===&cPrivateMessage&6===" arg 1 is "help" or "pomoc" or "?": execute player command "pm" arg 1 is "autor": send "&6> &fSkrypt &cPrivateMessage&f opracowal xSzescianPL (Polski Sześcian) &6<" arg 1 is "reload": execute console command "/sk reload %script%" send "&6> &fPrzeladowano &cPrivateMessage by xSzescianPL&f."