Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- if file "plugins/Report/config.yml" doesn't exist:
- wait 5 ticks
- create file "plugins/Report/config.yml"
- wf "##===========##" to "plugins/Report/config.yml"
- wf "##Report sistema: 1.0" to "plugins/Report/config.yml"
- wf "##Autorius:" to "plugins/Report/config.yml"
- wf "##Simuciokas" to "plugins/Report/config.yml"
- wf "##===========##" to "plugins/Report/config.yml"
- wf "Pamirštas žaidėjo slapyvardis: &cJūs pamiršote parašyti žaidėjo slapyvardi" to "plugins/Report/config.yml"
- wf "Administratorių permission: report.matyti" to "plugins/Report/config.yml"
- wf "Žinutė administratoriams 1: &creportavo žaidėją slapyvardžiu" to "plugins/Report/config.yml"
- wf "Žinutė administratoriams 2: &cPriežąstis:" to "plugins/Report/config.yml"
- wf "Žinutė reportuotojui 1: &cAčiū už reportavimą, jūsų žinutė buvo išsiusta administratoriams. Reportuotas: " to "plugins/Report/config.yml"
- wf "Žaidėjas neegzistuoja: &cŠis žaidėjas neegzistuoja" to "plugins/Report/config.yml"
- wf "Savęs reportavimas: &cKodėl jūs save norite reportuoti? o.o" to "plugins/Report/config.yml"
- wf "Patikrinimo permission: report.patrikrinti" to "plugins/Report/config.yml"
- wf "Ištrinimo permission: report.istrinti" to "plugins/Report/config.yml"
- wf "Tekstas1: &creportuotas:" to "plugins/Report/config.yml"
- wf "Tekstas2: &ckartus" to "plugins/Report/config.yml"
- wf "Tekstas3: &ckartą" to "plugins/Report/config.yml"
- wf "Tekstas4: &ckartų" to "plugins/Report/config.yml"
- wf "Tekstas5: &cPriežąstis:" to "plugins/Report/config.yml"
- wf "Tekstas6: &cPriežąstys:" to "plugins/Report/config.yml"
- wf "Ištrinti žaidėjo reportai: &cžaidėjo ištrinti reportų kiekis ir priežąstys" to "plugins/Report/config.yml"
- wf "Žaidėjas nereportuotas: &cžaidėjas nebuvo reportuotas nei karto" to "plugins/Report/config.yml"
- loop 17 times:
- set {_line} to line loop-number + 5 in file "plugins/Report/config.yml"
- set {_liner::*} to {_line} split at ": "
- if loop-number is 1:
- set {pamirstaszaidejonick} to {_liner::2}
- if loop-number is 2:
- set {administratoriupermission} to {_liner::2}
- if loop-number is 3:
- set {zinuteadministratoriams1} to {_liner::2}
- if loop-number is 4:
- set {zinuteadministratoriams2} to {_liner::2}
- if loop-number is 5:
- set {zinutereportuotojui1} to {_liner::2}
- if loop-number is 6:
- set {zaidejasneegzistuoja} to {_liner::2}
- if loop-number is 7:
- set {savesreportavimas} to {_liner::2}
- if loop-number is 8:
- set {patikrinimopermission} to {_liner::2}
- if loop-number is 9:
- set {istrinimopermission} to {_liner::2}
- if loop-number is 10:
- set {tekstas1} to {_liner::2}
- if loop-number is 11:
- set {tekstas2} to {_liner::2}
- if loop-number is 12:
- set {tekstas3} to {_liner::2}
- if loop-number is 13:
- set {tekstas4} to {_liner::2}
- if loop-number is 14:
- set {tekstas5} to {_liner::2}
- if loop-number is 15:
- set {tekstas6} to {_liner::2}
- if loop-number is 16:
- set {istrintizaidejoreportai} to {_liner::2}
- if loop-number is 17:
- set {nereportuotas} to {_liner::2}
- command /report <offlineplayer> [<text>]:
- usage: /report <žaidėjas> [priežąstis]
- aliases: /reportas, /reportuoti
- trigger:
- if arg-1 is not set:
- send "%{pamirstaszaidejonick}%"
- else:
- if arg-1 is not player:
- If arg-1 has played before:
- set {_prisijungusiadministracija} to false
- if arg-2 is not set:
- loop all players:
- if loop-player has permission "%{administratoriupermission}%":
- send "&c&l========&6&lReport&c&l========" to loop-player
- send "%player% %{zinuteadministratoriams1}% %arg-1%" to loop-player
- send "&c&l======================" to loop-player
- set {_prisijungusiadministracija} to true
- if {_prisijungusiadministracija} is false:
- add arg-1 to {offlinereportai::*}
- send "%{zinutereportuotojui1}% %arg-1%" to player
- if {reportuotas.%arg-1%} is not set:
- set {reportuotas.%arg-1%} to 0
- add 1 to {reportuotas.%arg-1%}
- else:
- loop all players:
- loop-player has permission "report.matyti":
- send "&c&l========&6&lReport&c&l========" to loop-player
- send "%player% %{zinuteadministratoriams1}% %arg-1%" to loop-player
- send "%{zinuteadministratoriams2}% %arg-2%" to loop-player
- send "&c&l======================" to loop-player
- set {_prisijungusiadministracija} to true
- send "%{zinutereportuotojui1}% %arg-1% dėl %arg-2%" to player
- if {reportuotas.%arg-1%} is not set:
- set {reportuotas.%arg-1%} to 0
- add 1 to {reportuotas.%arg-1%}
- set {_neideti} to false
- loop {reportuotasp::%arg-1%::*}:
- if arg-2 is loop-value:
- set {_neideti} to true
- {_neideti} is false
- add arg-2 to {reportuotasp::%arg-1%::*}
- if {_prisijungusiadministracija} is false:
- set {_neidetii} to false
- loop {offlinereportai::*}:
- if arg-1 is loop-value:
- set {_neidetii} to true
- {_neidetii} is false
- add arg-1 to {offlinereportai::*}
- else:
- send "%{zaidejasneegzistuoja}% (%arg-1%)"
- else:
- send "%{savesreportavimas}%"
- on join:
- player has permission "%{administratoriupermission}%"
- {offlinereportai::*} is set
- send "Žaidėjai kurie buvo reportuoti kol nebuvo administracijos:"
- send "%{offlinereportai::*}%"
- clear {offlinereportai::*}
- command /patikrinti <offlineplayer>:
- aliases: /patikra
- usage: /patikrinti <žaidėjas>
- trigger:
- if player has permission "%{patikrinimopermission}%":
- if arg-1 is set:
- if arg-1 has played before:
- if {reportuotas.%arg-1%} is greater than 0:
- send "&c&l========&6&lPatikra&c&l========"
- if {reportuotas.%arg-1%} is equal to 1 or 21 or 31 or 41 or 51 or 61 or 71 or 81 or 91:
- send "%arg-1% %{tekstas1}% %{reportuotas.%arg-1%}% %{tekstas3}%"
- else if {reportuotas.%arg-1%} is between 10 and 20:
- send "%arg-1% %{tekstas1}% %{reportuotas.%arg-1%}% %{tekstas4}%"
- else if {reportuotas.%arg-1%} is equal to 30 or 40 or 50 or 60 or 70 or 80 or 90 or 100:
- send "%arg-1% %{tekstas1}% %{reportuotas.%arg-1%}% %{tekstas4}%"
- else:
- send "%arg-1% %{tekstas1}% %{reportuotas.%arg-1%}% %{tekstas2}%"
- if {reportuotasp::%arg-1%::*} is set:
- set {_kiekis} to 0
- loop {reportuotas::%arg-1%::*}:
- add 1 to {_kiekis}
- if {_kiekis} is 1:
- send "%{tekstas5}% %{reportuotasp::%arg-1%::*}%"
- else:
- set {_listas} to "%{reportuotasp::%arg-1%::*}%"
- replace all " and" with "," in {_listas}
- send "%{tekstas6}% %{_listas}%"
- send "&c&l======================"
- else:
- send "%arg-1% %{nereportuotas}%"
- else:
- send "%{zaidejasneegzistuoja}% (%arg-1%)"
- else:
- send "%{pamirstaszaidejonick}%"
- command /istrinti <offlineplayer>:
- usage: /istrinti <žaidėjas>
- trigger:
- if player has permission "%{istrinimopermission}%":
- if arg-1 is set:
- if arg-1 has played before:
- clear {reportuotas.%arg-1%}
- clear {reportuotasp::%arg-1%::*}
- send "%arg-1% %{istrintizaidejoreportai}%"
- else:
- send "%{zaidejasneegzistuoja}% (%arg-1%)"
- else:
- send "%{pamirstaszaidejonick}%"
Advertisement
Add Comment
Please, Sign In to add comment