Advertisement
moeycvbn12

Untitled

Dec 2nd, 2017
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.76 KB | None | 0 0
  1. options:
  2. #DO NOT CHANGE THE VERSION IT CAN & WILL GLICH
  3. version: 4.0-pre2
  4.  
  5. on load:
  6. if folder "plugins/EZStaff/" doesn't exists:
  7. create folder "plugins/EZStaff/"
  8. if folder "plugins/EZStaff/IP-List/" does not exists:
  9. create folder "plugins/EZStaff/IP-List"
  10. if file "plugins/EZStaff/config.yml" does not exists:
  11. create file "plugins/EZStaff/config.yml"
  12. send "[EZStaff] Config file not found, creating.." to console
  13. wf "##EZStaff by EazyFTW" to "plugins/EZStaff/config.yml"
  14. wf "##Config File" to "plugins/EZStaff/messages.yml"
  15. wf "" to "plugins/EZStaff/config.yml"
  16. wf "##Permissions" to "plugins/EZStaff/config.yml"
  17. wf "" to "plugins/EZStaff/config.yml"
  18. wf "##Give a player this permission and they would be able to reload the plugin. (they also need the rl skript perm)" to "plugins/EZStaff/config.yml"
  19. wf "reload-perm: ezstaff.reload" to "plugins/EZStaff/config.yml"
  20. wf "" to "plugins/EZStaff/config.yml"
  21. wf "##Give a player this permission and they will get notifications on join if a update is out." to "plugins/EZStaff/config.yml"
  22. wf "update-notify-perm: ezstaff.nupdate" to "plugins/EZStaff/config.yml"
  23. wf "" to "plugins/EZStaff/config.yml"
  24. wf "##Give a player this permission if you want them to be able to update the plugin!" to "plugins/EZStaff/config.yml"
  25. wf "update-perm: ezstaff.update" to "plugins/EZStaff/config.yml"
  26. wf "" to "plugins/EZStaff/config.yml"
  27. wf "##Other" to "plugins/EZStaff/config.yml"
  28. wf "" to "plugins/EZStaff/config.yml"
  29. wf "##Set this to true to send a message if there is a update on join." to "plugins/EZStaff/config.yml"
  30. wf "update-join: true" to "plugins/EZStaff/config.yml"
  31. wf "" to "plugins/EZStaff/config.yml"
  32. wf "##This is the end of the config file!" to "plugins/EZStaff/config.yml"
  33. if file "plugins/EZStaff/messages.yml" does not exists:
  34. create file "plugins/EZStaff/messages.yml"
  35. send "[EZStaff] Messages file not found, creating.." to console
  36. wf "##EZStaff by EazyFTW" to "plugins/EZStaff/messages.yml"
  37. wf "##Messages File" to "plugins/EZStaff/messages.yml"
  38. wf "" to "plugins/EZStaff/messages.yml"
  39. wf "##Prefixes" to "plugins/EZStaff/messages.yml"
  40. wf "" to "plugins/EZStaff/messages.yml"
  41. wf "Prefix: &b&lEZStaff &f&l»" to "plugins/EZStaff/messages.yml"
  42. wf "" to "plugins/EZStaff/messages.yml"
  43. wf "##This is the end to the messages file!" to "plugins/EZStaff/messages.yml"
  44. wait 5 ticks
  45. set {ezstaff.prefix} to single value "Prefix" get of "plugins/EZStaff/messages.yml"
  46. set {ezstaff.nperm} to single value "update-notify-perm" get of "plugins/EZStaff/config.yml"
  47. set {ezstaff.uperm} to single value "update-perm" get of "plugins/EZStaff/config.yml"
  48. set {ezstaff.rperm} to single value "reload-perm" get of "plugins/EZStaff/config.yml"
  49. set {ezstaff.ujperm} to single value "update-join" get of "plugins/EZStaff/config.yml" parsed as a boolean
  50.  
  51. options:
  52. prefix: %{ezstaff.prefix}%
  53. update-notify-perm: %{ezstaff.nperm}%
  54. reload-permission: %{ezstaff.rperm}%
  55. update-permission: %{ezstaff.uperm}%
  56.  
  57. on quit:
  58. set {_joinTime} to single value "JOIN-TIME" get of "plugins/EZStaff/IP-List/%player%.yml"
  59. delete file "plugins/EZStaff/IP-List/%player%.yml"
  60. create file "plugins/EZStaff/IP-List/%player%.yml"
  61. wf "PLAYER: %player%" to "plugins/EZStaff/IP-List/%player%.yml"
  62. wf "IP: %ip of player%" to "plugins/EZStaff/IP-List/%player%.yml"
  63. wf "JOIN-TIME: %{_joinTime}%" to "plugins/EZStaff/IP-List/%player%.yml"
  64. wf "QUIT-TIME: %now% MTD" to "plugins/EZStaff/IP-List/%player%.yml"
  65. send "[EZStaff] Updated %player%'s IP!" to console
  66.  
  67. on join:
  68. if file "plugins/EZStaff/IP-List/%player%.yml" does not exists:
  69. create file "plugins/EZStaff/IP-List/%player%.yml"
  70. wf "PLAYER: %player%" to "plugins/EZStaff/IP-List/%player%.yml"
  71. wf "IP: %ip of player%" to "plugins/EZStaff/IP-List/%player%.yml"
  72. wf "JOIN-TIME: %now% MTD" to "plugins/EZStaff/IP-List/%player%.yml"
  73. wf "QUIT-TIME: NONE" to "plugins/EZStaff/IP-List/%player%.yml"
  74. send "[EZStaff] Player file not found!" to console
  75. send "[EZStaff] Creating file %player%.yml in the directory 'plugins/EZStaff/IP-List/'!" to console
  76. else:
  77. set {_quitTime} to single value "QUIT-TIME" get of "plugins/EZStaff/IP-List/%player%.yml"
  78. delete file "plugins/EZStaff/IP-List/%player%.yml"
  79. create file "plugins/EZStaff/IP-List/%player%.yml"
  80. wf "PLAYER: %player%" to "plugins/EZStaff/IP-List/%player%.yml"
  81. wf "IP: %ip of player%" to "plugins/EZStaff/IP-List/%player%.yml"
  82. wf "JOIN-TIME: %now% UTC" to "plugins/EZStaff/IP-List/%player%.yml"
  83. wf "QUIT-TIME: %{_quitTime}%" to "plugins/EZStaff/IP-List/%player%.yml"
  84. send "[EZStaff] Updated %player%'s IP!" to console
  85. if {ezstaff.set.loop.%player%} is not set:
  86. add "%player%" to {pinfolist::*}
  87. wait 10 ticks
  88. set {ezstaff.set.loop.%player%} to true
  89. {ezstaff.ujperm} is true
  90. wait 30 ticks
  91. player has permission "{@update-permission}"
  92. player has permission "{@update-notify-perm}"
  93. if text from "http://eazyftw.com/ezstaff/version.txt" is not "{@version}":
  94. message "{@prefix} &c&oYour version of &b&lEZStaff &c&ois out of date! Use /ezstaff update download to download it!" to player
  95.  
  96. function giveItem(p: player, arg2: player, item: item):
  97. set {_am} to {ezstaff.give.amount.%{_p}%}
  98. give {_arg2} {_am} of {_item}
  99. message "&8&l» &7You have been given %{_am}% %{_item}% from %{_p}%." to {_arg2}
  100. close {_p}'s inventory
  101. message "&8&l» &7You have given %{_arg2}% %{_am}% %{_item}%." to {_p}
  102.  
  103. function giveSet(p: player, action: text):
  104. set {_number} to {ezstaff.give.amount.%{_p}%}
  105. if {_action} is "down1":
  106. remove 1 from {_number}
  107. if {_action} is "up1":
  108. add 1 to {_number}
  109. if {_action} is "down10":
  110. remove 10 from {_number}
  111. if {_action} is "up10":
  112. add 10 to {_number}
  113. if {_action} is "set64":
  114. set {_number} to 64
  115. if {_action} is "set1":
  116. set {_number} to 1
  117. if {_number} is less than 1:
  118. set {_number} to 1
  119. if {_number} is greater than 64:
  120. set {_number} to 64
  121. set name of slot 10 of {_p}'s current inventory to "&b&l%{_number}%"
  122. set {ezstaff.give.amount.%{_p}%} to {_number}
  123.  
  124. on chat:
  125. if {ezstaff.give.chat.%player%} is true:
  126. cancel event
  127. if message is "cancel":
  128. set {ezstaff.give.chat.%player%} to false
  129. message "&8&l» Canceled!"
  130. stop
  131. set {_item} to message parsed as a item
  132. if {_item} is a item:
  133. set {_arg2} to {ezstaff.give.player.%player%}
  134. set {ezstaff.give.chat.%player%} to false
  135. delete {ezstaff.give.player.%player%}
  136. set {_number} to 1
  137. set {ezstaff.give.amount.%player%} to 1
  138. open virtual chest inventory with size 3 named "&8&l» &7Give Item" to player
  139. wait 1 tick
  140. format gui slot 10 of player with {_item} named "&b&l%{_number}%" with lore "&7Giving &b%{_arg2}% &7a(n) &b%message%&7!||||&eLeft Click to Increase By 1||&eRight Click to Decrease By 1||&eShift Left Click to Increase by 10||&eShift Right Click to Decrease by 10||&eDrop Key to Set to 64||&eDouble Click to Set to 1" to run function giveSet(player, "up1") with "left" click
  141. format gui slot 10 of player with {_item} named "&b&l%{_number}%" with lore "&7Giving &b%{_arg2}% &7a(n) &b%message%&7!||||&eLeft Click to Increase By 1||&eRight Click to Decrease By 1||&eShift Left Click to Increase by 10||&eShift Right Click to Decrease by 10||&eDrop Key to Set to 64||&eDouble Click to Set to 1" to run function giveSet(player, "down1") with "right" click
  142. format gui slot 10 of player with {_item} named "&b&l%{_number}%" with lore "&7Giving &b%{_arg2}% &7a(n) &b%message%&7!||||&eLeft Click to Increase By 1||&eRight Click to Decrease By 1||&eShift Left Click to Increase by 10||&eShift Right Click to Decrease by 10||&eDrop Key to Set to 64||&eDouble Click to Set to 1" to run function giveSet(player, "up10") with "shift left" click
  143. format gui slot 10 of player with {_item} named "&b&l%{_number}%" with lore "&7Giving &b%{_arg2}% &7a(n) &b%message%&7!||||&eLeft Click to Increase By 1||&eRight Click to Decrease By 1||&eShift Left Click to Increase by 10||&eShift Right Click to Decrease by 10||&eDrop Key to Set to 64||&eDouble Click to Set to 1" to run function giveSet(player, "down10") with "shift right" click
  144. format gui slot 10 of player with {_item} named "&b&l%{_number}%" with lore "&7Giving &b%{_arg2}% &7a(n) &b%message%&7!||||&eLeft Click to Increase By 1||&eRight Click to Decrease By 1||&eShift Left Click to Increase by 10||&eShift Right Click to Decrease by 10||&eDrop Key to Set to 64||&eDouble Click to Set to 1" to run function giveSet(player, "set1") with "double click" click
  145. format gui slot 10 of player with {_item} named "&b&l%{_number}%" with lore "&7Giving &b%{_arg2}% &7a(n) &b%message%&7!||||&eLeft Click to Increase By 1||&eRight Click to Decrease By 1||&eShift Left Click to Increase by 10||&eShift Right Click to Decrease by 10||&eDrop Key to Set to 64||&eDouble Click to Set to 1" to run function giveSet(player, "set64") with "drop key" click
  146. format gui slot 16 of player with emerald block named "&aGive %{_item}%." with lore "&7Click to Give" to run function giveItem(player, {_arg2}, {_item})
  147. else:
  148. message "&8&l» &7Try again, %message% is not a item!"
  149.  
  150. function give(p: player, arg2: offline player):
  151. if {_arg2} is a player:
  152. set {ezstaff.give.chat.%{_p}%} to true
  153. message "&8&l» &7Type in a item to give to %{_arg2}%." to {_p}
  154. message "&8&l» &7Type in &ccancel&7 to cancel!" to {_p}
  155. set {ezstaff.give.player.%{_p}%} to {_arg2}
  156. close {_p}'s inventory
  157. else:
  158. message "&8&l» &7%{_arg2}% is not online!" to {_p}
  159.  
  160. function INFO(p: offline player, action: text, arg2: offline player):
  161. remove the gui slot 22 of {_p}
  162. set {_joinTime} to single value "JOIN-TIME" get of "plugins/EZStaff/IP-List/%{player.pinfo.%{_p}%}%.yml"
  163. set {_quitTime} to single value "QUIT-TIME" get of "plugins/EZStaff/IP-List/%{player.pinfo.%{_p}%}%.yml"
  164. if {_action} is "+":
  165. add 1 to {number.info.%{_p}%}
  166. if {_action} is "++":
  167. remove 1 from {number.info.%{_p}%}
  168. if {number.info.%{_p}%} is 0:
  169. set {number.info.%{_p}%} to 2
  170. if {number.info.%{_p}%} is 3:
  171. set {number.info.%{_p}%} to 1
  172. if {number.info.%{_p}%} is 1:
  173. format gui slot 22 of {_p} with paper named "&b&lINFO &7(%{number.info.%{_p}%}%/2)" with lore "&7Below is %{_arg2}%'s &bLast Join Time&7!||||&7%{_joinTime}%||||&eShift-Click Left to See %{_arg2}%'s Last Quit Time||&eShift-Click Right to See %{_arg2}%'s Last Quit Time" to run function INFO({_p}, "+", {_arg2}) with "shift left" click
  174. format gui slot 22 of {_p} with paper named "&b&lINFO &7(%{number.info.%{_p}%}%/2)" with lore "&7Below is %{_arg2}%'s &bLast Join Time&7!||||&7%{_joinTime}%||||&eShift-Click Left to See %{_arg2}%'s Last Quit Time||&eShift-Click Right to See %{_arg2}%'s Last Quit Time" to run function INFO({_p}, "++", {_arg2}) with "shift right" click
  175. if {number.info.%{_p}%} is 2:
  176. format gui slot 22 of {_p} with paper named "&b&lINFO &7(%{number.info.%{_p}%}%/2)" with lore "&7Below is %{_arg2}%'s &bLast Quit Time&7!||||&7%{_quitTime}%||||&eShift-Click Left to See %{_arg2}%'s Last Join Time||&eShift-Click Right to See %{_arg2}%'s Last Join Time" to run function INFO({_p}, "+", {_arg2}) with "shift left" click
  177. format gui slot 22 of {_p} with paper named "&b&lINFO &7(%{number.info.%{_p}%}%/2)" with lore "&7Below is %{_arg2}%'s &bLast Quit Time&7!||||&7%{_quitTime}%||||&eShift-Click Left to See %{_arg2}%'s Last Join Time||&eShift-Click Right to See %{_arg2}%'s Last Join Time" to run function INFO({_p}, "++", {_arg2}) with "shift right" click
  178.  
  179. function GEOIP(p: offline player, action: text, arg2: offline player):
  180. remove the gui slot 19 of {_p}
  181. set {_ip} to single value "IP" get of "plugins/EZStaff/IP-List/%{_arg2}%.yml"
  182. set {_country} to text from "http://ip-api.com/line/%{_ip}%?fields=country"
  183. set {_regionName} to text from "http://ip-api.com/line/%{_ip}%?fields=regionName"
  184. set {_city} to text from "http://ip-api.com/line/%{_ip}%?fields=city"
  185. set {_zip} to text from "http://ip-api.com/line/%{_ip}%?fields=zip"
  186. set {_time} to text from "http://ip-api.com/line/%{_ip}%?fields=timezone"
  187. set {_isp} to text from "http://ip-api.com/line/%{_ip}%?fields=isp"
  188. if {_arg2} is not a player:
  189. set {_arg2} to single value "PLAYER" get of "plugins/EZStaff/IP-List/%{player.pinfo.%{_p}%}%.yml" parsed as player
  190. if {_action} is "+":
  191. add 1 to {number.geoip.%{_p}%}
  192. if {_action} is "++":
  193. remove 1 from {number.geoip.%{_p}%}
  194. if {number.geoip.%{_p}%} is 0:
  195. set {number.geoip.%{_p}%} to 7
  196. if {number.geoip.%{_p}%} is 8:
  197. set {number.geoip.%{_p}%} to 1
  198. if {number.geoip.%{_p}%} is 1:
  199. format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bIP&7!||||&7%{_ip}%||||&eShift-Click Left to See %{_arg2}%'s Country||&eShift-Click Right to See %{_arg2}%'s ISP" to run function GEOIP({_p}, "+", {_arg2}) with "shift left" click
  200. format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bIP&7!||||&7%{_ip}%||||&eShift-Click Left to See %{_arg2}%'s Country||&eShift-Click Right to See %{_arg2}%'s ISP" to run function GEOIP({_p}, "++", {_arg2}) with "shift right" click
  201. if {number.geoip.%{_p}%} is 2:
  202. format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bCountry&7!||||&7%{_country}%||||&eShift-Click Left to See %{_arg2}%'s State||&eShift-Click Right to See %{_arg2}%'s IP" to run function GEOIP({_p}, "+", {_arg2}) with "shift left" click
  203. format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bCountry&7!||||&7%{_country}%||||&eShift-Click Left to See %{_arg2}%'s State||&eShift-Click Right to See %{_arg2}%'s IP" to run function GEOIP({_p}, "++", {_arg2}) with "shift right" click
  204. if {number.geoip.%{_p}%} is 3:
  205. format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bState&7!||||&7%{_regionName}%||||&eShift-Click Left to See %{_arg2}%'s City||&eShift-Click Right to See %{_arg2}%'s Country" to run function GEOIP({_p}, "+", {_arg2}) with "shift left" click
  206. format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bState&7!||||&7%{_regionName}%||||&eShift-Click Left to See %{_arg2}%'s City||&eShift-Click Right to See %{_arg2}%'s Country" to run function GEOIP({_p}, "++", {_arg2}) with "shift right" click
  207. if {number.geoip.%{_p}%} is 4:
  208. format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bCity&7!||||&7%{_city}%||||&eShift-Click Left to See %{_arg2}%'s Zipcode||&eShift-Click Right to See %{_arg2}%'s State" to run function GEOIP({_p}, "+", {_arg2}) with "shift left" click
  209. format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bCity&7!||||&7%{_city}%||||&eShift-Click Left to See %{_arg2}%'s Zipcode||&eShift-Click Right to See %{_arg2}%'s State" to run function GEOIP({_p}, "++", {_arg2}) with "shift right" click
  210. if {number.geoip.%{_p}%} is 5:
  211. format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bZipcode&7!||||&7%{_zip}%||||&eShift-Click Left to See %{_arg2}%'s Timezone||&eShift-Click Right to See %{_arg2}%'s City" to run function GEOIP({_p}, "+", {_arg2}) with "shift left" click
  212. format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bZipcode&7!||||&7%{_zip}%||||&eShift-Click Left to See %{_arg2}%'s Timezone||&eShift-Click Right to See %{_arg2}%'s City" to run function GEOIP({_p}, "++", {_arg2}) with "shift right" click
  213. if {number.geoip.%{_p}%} is 6:
  214. format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bTimezone&7!||||&7%{_time}%||||&eShift-Click Left to See %{_arg2}%'s ISP||&eShift-Click Right to See %{_arg2}%'s Zipcode" to run function GEOIP({_p}, "+", {_arg2}) with "shift left" click
  215. format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bTimezone&7!||||&7%{_time}%||||&eShift-Click Left to See %{_arg2}%'s ISP||&eShift-Click Right to See %{_arg2}%'s Zipcode" to run function GEOIP({_p}, "++", {_arg2}) with "shift right" click
  216. if {number.geoip.%{_p}%} is 7:
  217. format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bISP&7!||||&7%{_isp}%||||&eShift-Click Left to See %{_arg2}%'s IP||&eShift-Click Right to See %{_arg2}%'s Timezone" to run function GEOIP({_p}, "+", {_arg2}) with "shift left" click
  218. format gui slot 19 of {_p} with map named "&b&lGEOIP &7(%{number.geoip.%{_p}%}%/7)" with lore "&7Below is %{_arg2}%'s &bISP&7!||||&7%{_isp}%||||&eShift-Click Left to See %{_arg2}%'s IP||&eShift-Click Right to See %{_arg2}%'s Timezone" to run function GEOIP({_p}, "++", {_arg2}) with "shift right" click
  219.  
  220. command /ezstaff [<text>] [<text>]:
  221. trigger:
  222. if arg 1 is not set:
  223. make player execute command "ezstaff help"
  224. if arg 1 is set:
  225. if arg 1 is not "help" or "update" or "reload" or "panel":
  226. make player execute command "ezstaff help"
  227. wait 10 ticks
  228. message ""
  229. if arg 1 is "help":
  230. loop 6 times:
  231. message " "
  232. message " &8&m+--------------------------------------------------+"
  233. message ""
  234. message " &8&l» &b&lEZStaff &fCommands"
  235. message ""
  236. message " &2[] &f= optional arguments."
  237. message " &6<> &f= required arguments."
  238. message ""
  239. message " &b/ezstaff &7- Shows this message!"
  240. message " &b/ezstaff help &7- Shows the help menu (this menu)!"
  241. message " &b/ezstaff panel &2[player] &7- Opens the panel!"
  242. message " &b/ezstaff update &6<check:download> &7- Install a new version or check for a update!"
  243. message " &b/ezstaff reload &7- Reloads the script!"
  244. message ""
  245. message " &8&l» &7You are running version {@version} of EZStaff!"
  246. message ""
  247. message " &8&m+--------------------------------------------------+"
  248. if arg 1 is "update":
  249. if player has permission "{@update-permission}":
  250. if arg 2 is not set:
  251. loop 11 times:
  252. message " "
  253. message " &8&m+--------------------------------------------------+"
  254. message ""
  255. message " &8&l» &b&lEZStaff &8(&7v{@version}) &fUpdate Commands"
  256. message ""
  257. message "&7- &b/ezstaff update check &7- Checks for a update!"
  258. message "&7- &b/ezstaff update download &7- Downloads the latest version of this script!"
  259. message ""
  260. message " &8&m+--------------------------------------------------+"
  261. if arg 1 is set:
  262. if arg 2 is not "check" or "changes" or "download":
  263. make player execute command "ezstaff update"
  264. else:
  265. if arg 2 is "check":
  266. wait 5 ticks
  267. message "{@prefix} &5&oChecking for updates..."
  268. wait 30 ticks
  269. if text from "http://eazyftw.com/ezstaff/version.txt" is not "{@version}":
  270. message "{@prefix} &c&oYour version of &b&lEZStaff &c&ois out of date! Use /ezstaff update download to download it!"
  271. else:
  272. message "{@prefix} &a&oThere are no new updates."
  273. if arg 2 is "download":
  274. if text from "http://eazyftw.com/ezstaff/version.txt" is not "{@version}":
  275. download from "http://eazyftw.com/ezstaff/latest-ver.txt" to "plugins/Skript/scripts/EZStaff.sk"
  276. message "{@prefix} &a&oDownloading v%text from ""http://eazyftw.com/ezstaff/version.txt""% of &b&lEZStaff&a&o!"
  277. make console execute command "sk reload %script%.sk"
  278. message "{@prefix} &a&oReloading the script!"
  279. wait 15 ticks
  280. message "{@prefix} &a&oReloaded Successfully!"
  281. message "{@prefix} &a&oYou are now running &b&lEZStaff&a&o version %text from ""http://eazyftw.com/ezstaff/version.txt""%!"
  282. else:
  283. message "{@prefix} &a&oThere are no new updates."
  284. if arg 1 is "reload":
  285. if player has permission "{@reload-permission}":
  286. make player execute command "sk reload %script%"
  287. if arg 1 is "panel":
  288. if arg 2 is set:
  289. if file "plugins/EZStaff/IP-List/%arg-2%.yml" exists:
  290. wait 10 ticks
  291. set {player.pinfo.%player%} to "%arg-2%"
  292. set {_ip} to single value "IP" get of "plugins/EZStaff/IP-List/%arg-2%.yml"
  293. set {_arg2} to arg 2 parsed as a offline player
  294. open virtual chest inventory with size 6 named "&8&l» &7%{_arg2}%'s Info" to player
  295. wait 1 tick
  296. set {_n} to 0
  297. loop 9 times:
  298. format gui slot {_n} of player with gray stained glass pane named "&8" to do nothing
  299. add 1 to {_n}
  300. set {_n} to 45
  301. loop 9 times:
  302. format gui slot {_n} of player with gray stained glass pane named "&8" to do nothing
  303. add 1 to {_n}
  304. format gui slot 4 of player with {_arg2}'s skull named "&b%{_arg2}%" to do nothing
  305. format gui slot 49 of player with arrow named "&eClose" with lore "||&eShift Click to Close!" to close with "shift left" click
  306. format gui slot 49 of player with arrow named "&cClose" with lore "||&eShift Click to Close!" to close with "shift left" click
  307. format gui slot 49 of player with arrow named "&cClose" with lore "||&eShift Click to Close!" to close with "shift right" click
  308. set {_country} to text from "http://ip-api.com/line/%{_ip}%?fields=country"
  309. set {_regionName} to text from "http://ip-api.com/line/%{_ip}%?fields=regionName"
  310. set {_city} to text from "http://ip-api.com/line/%{_ip}%?fields=city"
  311. set {_zip} to text from "http://ip-api.com/line/%{_ip}%?fields=zip"
  312. set {_time} to text from "http://ip-api.com/line/%{_ip}%?fields=timezone"
  313. set {_isp} to text from "http://ip-api.com/line/%{_ip}%?fields=isp"
  314. set {_joinTime} to single value "JOIN-TIME" get of "plugins/EZStaff/IP-List/%{player.pinfo.%player%}%.yml"
  315. set {_quitTime} to single value "QUIT-TIME" get of "plugins/EZStaff/IP-List/%{player.pinfo.%player%}%.yml"
  316. set {number.geoip.%player%} to 1
  317. set {number.info.%player%} to 1
  318. format gui slot 19 of player with map named "&b&lGEOIP &7(%{number.geoip.%player%}%/7)" with lore "&7Below is %{_arg2}%'s &bIP&7!||||&7%{_ip}%||||&eShift-Click Left to See %{_arg2}%'s Country||&eShift-Click Right to See %{_arg2}%'s ISP" to run function GEOIP(player, "+", {_arg2}) with "shift left" click
  319. format gui slot 19 of player with map named "&b&lGEOIP &7(%{number.geoip.%player%}%/7)" with lore "&7Below is %{_arg2}%'s &bIP&7!||||&7%{_ip}%||||&eShift-Click Left to See %{_arg2}%'s Country||&eShift-Click Right to See %{_arg2}%'s ISP" to run function GEOIP(player, "++", {_arg2}) with "shift right" click
  320. format gui slot 22 of player with paper named "&b&lINFO &7(%{number.info.%player%}%/2)" with lore "&7Below is %{_arg2}%'s &bLast Join Time&7!||||&7%{_joinTime}%||||&eShift-Click Left to See %{_arg2}%'s Last Quit Time||&eShift-Click Right to See %{_arg2}%'s Last Quit Time" to run function INFO(player, "+", {_arg2}) with "shift left" click
  321. format gui slot 22 of player with paper named "&b&lINFO &7(%{number.info.%player%}%/2)" with lore "&7Below is %{_arg2}%'s &bLast Join Time&7!||||&7%{_joinTime}%||||&eShift-Click Left to See %{_arg2}%'s Last Quit Time||&eShift-Click Right to See %{_arg2}%'s Last Quit Time" to run function INFO(player, "++", {_arg2}) with "shift right" click
  322. format gui slot 25 of player with diamond named "&b&lGIVE" with lore "&7Give items.||||&eClick to Give %{_arg2}% a Item!||||&4&lWARNING:||&f%{_arg2}% has to be online for||&fthis to work!" to run function give(player, {_arg2})
  323. else:
  324. message "{@prefix} &c%arg-2% is not a player!"
  325. else:
  326. open virtual chest inventory with size 6 named "&8&l» &7Pick a Player" to player
  327. set {_n} to 0
  328. loop {pinfolist::*}:
  329. set {_lv.%loop-value%} to loop-value parsed as a offline player
  330. format gui slot {_n} of player with {_lv.%loop-value%}'s skull named "&b%loop-value%" to close then run player command "ezstaff panel %loop-value%"
  331. add 1 to {_n}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement