Guest User

Untitled

a guest
Aug 21st, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.22 KB | None | 0 0
  1. on load:
  2. if file "plugins/Report/config.yml" doesn't exist:
  3. wait 5 ticks
  4. create file "plugins/Report/config.yml"
  5. wf "##===========##" to "plugins/Report/config.yml"
  6. wf "##Report sistema: 1.0" to "plugins/Report/config.yml"
  7. wf "##Autorius:" to "plugins/Report/config.yml"
  8. wf "##Simuciokas" to "plugins/Report/config.yml"
  9. wf "##===========##" to "plugins/Report/config.yml"
  10. wf "Pamirštas žaidėjo slapyvardis: &cJūs pamiršote parašyti žaidėjo slapyvardi" to "plugins/Report/config.yml"
  11. wf "Administratorių permission: report.matyti" to "plugins/Report/config.yml"
  12. wf "Žinutė administratoriams 1: &creportavo žaidėją slapyvardžiu" to "plugins/Report/config.yml"
  13. wf "Žinutė administratoriams 2: &cPriežąstis:" to "plugins/Report/config.yml"
  14. wf "Žinutė reportuotojui 1: &cAčiū už reportavimą, jūsų žinutė buvo išsiusta administratoriams. Reportuotas: " to "plugins/Report/config.yml"
  15. wf "Žaidėjas neegzistuoja: &cŠis žaidėjas neegzistuoja" to "plugins/Report/config.yml"
  16. wf "Savęs reportavimas: &cKodėl jūs save norite reportuoti? o.o" to "plugins/Report/config.yml"
  17. wf "Patikrinimo permission: report.patrikrinti" to "plugins/Report/config.yml"
  18. wf "Ištrinimo permission: report.istrinti" to "plugins/Report/config.yml"
  19. wf "Tekstas1: &creportuotas:" to "plugins/Report/config.yml"
  20. wf "Tekstas2: &ckartus" to "plugins/Report/config.yml"
  21. wf "Tekstas3: &ckartą" to "plugins/Report/config.yml"
  22. wf "Tekstas4: &ckartų" to "plugins/Report/config.yml"
  23. wf "Tekstas5: &cPriežąstis:" to "plugins/Report/config.yml"
  24. wf "Tekstas6: &cPriežąstys:" to "plugins/Report/config.yml"
  25. wf "Ištrinti žaidėjo reportai: &cžaidėjo ištrinti reportų kiekis ir priežąstys" to "plugins/Report/config.yml"
  26. wf "Žaidėjas nereportuotas: &cžaidėjas nebuvo reportuotas nei karto" to "plugins/Report/config.yml"
  27. loop 17 times:
  28. set {_line} to line loop-number + 5 in file "plugins/Report/config.yml"
  29. set {_liner::*} to {_line} split at ": "
  30. if loop-number is 1:
  31. set {pamirstaszaidejonick} to {_liner::2}
  32. if loop-number is 2:
  33. set {administratoriupermission} to {_liner::2}
  34. if loop-number is 3:
  35. set {zinuteadministratoriams1} to {_liner::2}
  36. if loop-number is 4:
  37. set {zinuteadministratoriams2} to {_liner::2}
  38. if loop-number is 5:
  39. set {zinutereportuotojui1} to {_liner::2}
  40. if loop-number is 6:
  41. set {zaidejasneegzistuoja} to {_liner::2}
  42. if loop-number is 7:
  43. set {savesreportavimas} to {_liner::2}
  44. if loop-number is 8:
  45. set {patikrinimopermission} to {_liner::2}
  46. if loop-number is 9:
  47. set {istrinimopermission} to {_liner::2}
  48. if loop-number is 10:
  49. set {tekstas1} to {_liner::2}
  50. if loop-number is 11:
  51. set {tekstas2} to {_liner::2}
  52. if loop-number is 12:
  53. set {tekstas3} to {_liner::2}
  54. if loop-number is 13:
  55. set {tekstas4} to {_liner::2}
  56. if loop-number is 14:
  57. set {tekstas5} to {_liner::2}
  58. if loop-number is 15:
  59. set {tekstas6} to {_liner::2}
  60. if loop-number is 16:
  61. set {istrintizaidejoreportai} to {_liner::2}
  62. if loop-number is 17:
  63. set {nereportuotas} to {_liner::2}
  64. command /report <offlineplayer> [<text>]:
  65. usage: /report <žaidėjas> [priežąstis]
  66. aliases: /reportas, /reportuoti
  67. trigger:
  68. if arg-1 is not set:
  69. send "%{pamirstaszaidejonick}%"
  70. else:
  71. if arg-1 is not player:
  72. If arg-1 has played before:
  73. set {_prisijungusiadministracija} to false
  74. if arg-2 is not set:
  75. loop all players:
  76. if loop-player has permission "%{administratoriupermission}%":
  77. send "&c&l========&6&lReport&c&l========" to loop-player
  78. send "%player% %{zinuteadministratoriams1}% %arg-1%" to loop-player
  79. send "&c&l======================" to loop-player
  80. set {_prisijungusiadministracija} to true
  81. if {_prisijungusiadministracija} is false:
  82. add arg-1 to {offlinereportai::*}
  83. send "%{zinutereportuotojui1}% %arg-1%" to player
  84. if {reportuotas.%arg-1%} is not set:
  85. set {reportuotas.%arg-1%} to 0
  86. add 1 to {reportuotas.%arg-1%}
  87. else:
  88. loop all players:
  89. loop-player has permission "report.matyti":
  90. send "&c&l========&6&lReport&c&l========" to loop-player
  91. send "%player% %{zinuteadministratoriams1}% %arg-1%" to loop-player
  92. send "%{zinuteadministratoriams2}% %arg-2%" to loop-player
  93. send "&c&l======================" to loop-player
  94. set {_prisijungusiadministracija} to true
  95. send "%{zinutereportuotojui1}% %arg-1% dėl %arg-2%" to player
  96. if {reportuotas.%arg-1%} is not set:
  97. set {reportuotas.%arg-1%} to 0
  98. add 1 to {reportuotas.%arg-1%}
  99. set {_neideti} to false
  100. loop {reportuotasp::%arg-1%::*}:
  101. if arg-2 is loop-value:
  102. set {_neideti} to true
  103. {_neideti} is false
  104. add arg-2 to {reportuotasp::%arg-1%::*}
  105. if {_prisijungusiadministracija} is false:
  106. set {_neidetii} to false
  107. loop {offlinereportai::*}:
  108. if arg-1 is loop-value:
  109. set {_neidetii} to true
  110. {_neidetii} is false
  111. add arg-1 to {offlinereportai::*}
  112. else:
  113. send "%{zaidejasneegzistuoja}% (%arg-1%)"
  114. else:
  115. send "%{savesreportavimas}%"
  116. on join:
  117. player has permission "%{administratoriupermission}%"
  118. {offlinereportai::*} is set
  119. send "Žaidėjai kurie buvo reportuoti kol nebuvo administracijos:"
  120. send "%{offlinereportai::*}%"
  121. clear {offlinereportai::*}
  122. command /patikrinti <offlineplayer>:
  123. aliases: /patikra
  124. usage: /patikrinti <žaidėjas>
  125. trigger:
  126. if player has permission "%{patikrinimopermission}%":
  127. if arg-1 is set:
  128. if arg-1 has played before:
  129. if {reportuotas.%arg-1%} is greater than 0:
  130. send "&c&l========&6&lPatikra&c&l========"
  131. if {reportuotas.%arg-1%} is equal to 1 or 21 or 31 or 41 or 51 or 61 or 71 or 81 or 91:
  132. send "%arg-1% %{tekstas1}% %{reportuotas.%arg-1%}% %{tekstas3}%"
  133. else if {reportuotas.%arg-1%} is between 10 and 20:
  134. send "%arg-1% %{tekstas1}% %{reportuotas.%arg-1%}% %{tekstas4}%"
  135. else if {reportuotas.%arg-1%} is equal to 30 or 40 or 50 or 60 or 70 or 80 or 90 or 100:
  136. send "%arg-1% %{tekstas1}% %{reportuotas.%arg-1%}% %{tekstas4}%"
  137. else:
  138. send "%arg-1% %{tekstas1}% %{reportuotas.%arg-1%}% %{tekstas2}%"
  139. if {reportuotasp::%arg-1%::*} is set:
  140. set {_kiekis} to 0
  141. loop {reportuotas::%arg-1%::*}:
  142. add 1 to {_kiekis}
  143. if {_kiekis} is 1:
  144. send "%{tekstas5}% %{reportuotasp::%arg-1%::*}%"
  145. else:
  146. set {_listas} to "%{reportuotasp::%arg-1%::*}%"
  147. replace all " and" with "," in {_listas}
  148. send "%{tekstas6}% %{_listas}%"
  149. send "&c&l======================"
  150. else:
  151. send "%arg-1% %{nereportuotas}%"
  152. else:
  153. send "%{zaidejasneegzistuoja}% (%arg-1%)"
  154. else:
  155. send "%{pamirstaszaidejonick}%"
  156. command /istrinti <offlineplayer>:
  157. usage: /istrinti <žaidėjas>
  158. trigger:
  159. if player has permission "%{istrinimopermission}%":
  160. if arg-1 is set:
  161. if arg-1 has played before:
  162. clear {reportuotas.%arg-1%}
  163. clear {reportuotasp::%arg-1%::*}
  164. send "%arg-1% %{istrintizaidejoreportai}%"
  165. else:
  166. send "%{zaidejasneegzistuoja}% (%arg-1%)"
  167. else:
  168. send "%{pamirstaszaidejonick}%"
Advertisement
Add Comment
Please, Sign In to add comment