Advertisement
Guest User

Untitled

a guest
May 27th, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.61 KB | None | 0 0
  1. options:
  2. Prefix: §f[§7SpecInfo§f]§r
  3. Prefix.Short: §f[§9S§f]§r
  4.  
  5. PermissionDeny: No permission!
  6.  
  7. Gold: §7%player%§r:§6GOLD §r[V:§6%{_Count}%§r] [T:§6%({SpecInfo.Mined.Gold::%player%})%§r]
  8. Diamond: §7%player%§r:§3DIAMOND §r[V:§3%{_Count}%§r] [T:§3%({SpecInfo.Mined.Diamond::%player%})%§r]
  9.  
  10. PvP.Bow: §4PvP§r:§a%attacker%§r-B>§c%victim% §r[§a%health of attacker%§r:§c%health of victim%§r] [§6%{_Damage}%§r]
  11. PvP.Melee: §4PvP§r:§a%attacker%§r-M>§c%victim% §r[§a%health of attacker%§r:§c%health of victim%§r] [§6%{_Damage}%§r]
  12. PvP.ProjectileUnknown: §4PvP§r:§a%attacker%§r-?P>§c%victim% §r[§a%health of attacker%§r:§c%health of victim%§r] [§6%{_Damage}%§r]
  13. PvP.Unknown: §4PvP§r:§a%attacker%§r-?>§c%victim% §r[§a%health of attacker%§r:§c%health of victim%§r] [§6%{_Damage}%§r]
  14.  
  15. PvE.NS.Fall: §5PvE§r:§c%victim%§r<-§dFall §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  16. PvE.NS.Lava: §5PvE§r:§c%victim%§r<-§dLava §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  17. PvE.NS.Fire: §5PvE§r:§c%victim%§r<-§dFire §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  18. PvE.NS.Burning: §5PvE§r:§c%victim%§r<-§dBurn §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  19. PvE.NS.Drowning: §5PvE§r:§c%victim%§r<-§dDrown §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  20. PvE.NS.Poison: §5PvE§r:§c%victim%§r<-§dPoison §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  21. PvE.NS.Wither: §5PvE§r:§c%victim%§r<-§dWither §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  22. PvE.NS.Starvation: §5PvE§r:§c%victim%§r<-§dStarv. §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  23. PvE.NS.Suffocation: §5PvE§r:§c%victim%§r<-§dSuffoc. §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  24. PvE.NS.Anvil: §5PvE§r:§c%victim%§r<-§dAnvil §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  25. PvE.NS: §5PvE§r:§c%victim%§r<-§d??? §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  26.  
  27. PvE.Zombie: §5PvE§r:§c%victim%§r<-§dZombie §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  28. PvE.Skeleton: §5PvE§r:§c%victim%§r<-§dSkeleton §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  29. PvE.Spider: §5PvE§r:§c%victim%§r<-§dSpider §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  30. PvE.Creeper: §5PvE§r:§c%victim%§r<-§dCreeper §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  31. PvE.Enderman: §5PvE§r:§c%victim%§r<-§dEnderman §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  32. PvE.Silverfish: §5PvE§r:§c%victim%§r<-§dSilverfish §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  33. PvE.Slime: §5PvE§r:§c%victim%§r<-§dSlime §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  34. PvE.Witch: §5PvE§r:§c%victim%§r<-§dWitch §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  35. PvE.Ghast: §5PvE§r:§c%victim%§r<-§dGhast §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  36. PvE.Blaze: §5PvE§r:§c%victim%§r<-§dBlaze §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  37. PvE.MCube: §5PvE§r:§c%victim%§r<-§dMCube §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  38. PvE.Pigman: §5PvE§r:§c%victim%§r<-§dPigman §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  39.  
  40. PvE: §5PvE§r:§c%victim%§r<-§d?%attacker% §r[§c%health of victim%§r] [§6%{_Damage}%§r]
  41.  
  42. ConsoleDeny: You cannot execute this as the console!
  43.  
  44. On.Already: Your §6SpecInfo §ris already §aon§r!
  45. On.ToSender: Your §6SpecInfo §ris now §aon§r!
  46. On.Notify: §c%command sender% §aenabled §rhis §6SpecInfo§r!
  47.  
  48. Off.Already: Your §6SpecInfo §ris already §coff§r!
  49. Off.ToSender: Your §6SpecInfo §ris now §coff§r!
  50. Off.Notify: §c%command sender% §cdisabled §rhis §6SpecInfo§r!
  51.  
  52. Reset.ToSender: You reset the §6SpecInfo§r!
  53. Reset.Notify: §c%command sender% §rreset the §6SpecInfo§r!
  54.  
  55. Help.Help: §e/specinfo help §9- §7This help page
  56. Help.On: §e/specinfo on §9- §7Turn your SpecInfo on
  57. Help.Off: §e/specinfo off §9- §7Turn your SpecInfo off
  58. Help.Reset: §e/specinfo reset §9- §7Reset the SpecInfo
  59.  
  60. ate.gapple: &2Ate&r:&c%event-player%&r<-&6Healing
  61. crafted.gapple: &eCraft&r:&3%event-player%&r<-&6Healing
  62. crafted.brewing: &eCraft&r:&3%event-player%&r<-&6&o&lBrewing Stand
  63. crafted.enchant: &eCraft&r:&3%event-player%&r<-&a&l&oEnchant Table
  64. crafted.diamondboots: &aCraft&r:&3%event-player%&r<-&bDiamond Boots
  65. crafted.diamondchest: &aCraft&r:&3%event-player%&r<-&bDiamond Chestplate
  66. crafted.diamondpants: &aCraft&r:&3%event-player%&r<-&bDiamond Pants
  67. crafted.diamondhelm: &aCraft&r:&3%event-player%&r<-&bDiamond Helmet
  68.  
  69.  
  70. # variables
  71.  
  72. # {SpecInfo.Mined.Gold::%player%} - integer
  73. # {SpecInfo.Mined.Diamond::%player%} - integer
  74. # {SpecInfo.TrackedBlock::%x%x%y%x%z%} - true/null
  75. # {SpecInfo.LastDamage::%player%} - system time
  76. # {SpecInfo.Enabled::%player%} - player has specinfo on
  77.  
  78.  
  79. command /specinfo [<text>]:
  80. description: Specinfo command
  81. trigger:
  82. if arg 1 is not set:
  83. command sender command "/specinfo help"
  84.  
  85. else if arg 1 is equal to "help":
  86. if command sender does not have the permission "skript.specinfo.help":
  87. message "{@PermissionDeny}"
  88. else:
  89. message "{@Help.Help}"
  90. message "{@Help.On}"
  91. message "{@Help.Off}"
  92. message "{@Help.Reset}"
  93.  
  94. else if arg 1 is equal to "on":
  95. #code for on
  96. if command sender does not have the permission "skript.specinfo.on":
  97. message "{@PermissionDeny}"
  98. else if command sender is console:
  99. message "{@ConsoleDeny}"
  100. else if {SpecInfo.Enabled::%player%} is true:
  101. message "{@Prefix} {@On.Already}"
  102. else:
  103. set {SpecInfo.Enabled::%player%} to true
  104. message "{@Prefix} {@On.ToSender}"
  105. loop all players:
  106. loop-player has the permission "skript.specinfo.notify"
  107. loop-player is not command sender
  108. message "{@Prefix} {@On.Notify}" to loop-player
  109.  
  110. else if arg 1 is equal to "off":
  111. #code for off
  112. if command sender does not have the permission "skript.specinfo.off":
  113. message "{@PermissionDeny}"
  114. else if command sender is console:
  115. message "{@ConsoleDeny}"
  116. else if {SpecInfo.Enabled::%player%} is not set:
  117. message "{@Prefix} {@Off.Already}"
  118. else:
  119. delete {SpecInfo.Enabled::%player%}
  120. message "{@Prefix} {@Off.ToSender}"
  121. loop all players:
  122. loop-player has the permission "skript.specinfo.notify"
  123. loop-player is not command sender
  124. message "{@Prefix} {@Off.Notify}" to loop-player
  125.  
  126.  
  127. else if arg 1 is equal to "reset":
  128. #code for reset
  129. if command sender does not have the permission "skript.specinfo.reset":
  130. message "{@PermissionDeny}"
  131. else:
  132. delete {SpecInfo.Mined.Gold::*}
  133. delete {SpecInfo.Mined.Diamond::*}
  134. delete {SpecInfo.TrackedBlock::*}
  135. delete {SpecInfo.LastDamage::*}
  136. delete {SpecInfo.Enabled::*}
  137. message "{@Prefix} {@Reset.ToSender}"
  138. loop all players:
  139. loop-player has the permission "skript.specinfo.notify"
  140. loop-player is not command sender
  141. message "{@Prefix} {@Reset.Notify}" to loop-player
  142.  
  143. else:
  144. command sender command "/specinfo help"
  145.  
  146.  
  147.  
  148. on mine of gold ore:
  149. {SpecInfo.TrackedBlock::%x-coordinate of event-block%x%y-coordinate of event-block%x%z-coordinate of event-block%} is not set
  150. set {_Count} to 0
  151. loop blocks in radius 2 around event-block:
  152. loop-block is equal to gold ore
  153. increase {_Count} by 1
  154. set {SpecInfo.TrackedBlock::%x-coordinate of loop-block%x%y-coordinate of loop-block%x%z-coordinate of loop-block%} to true
  155. if {SpecInfo.Mined.Gold::%player%} is not set:
  156. set {SpecInfo.Mined.Gold::%player%} to {_Count}
  157. else:
  158. increase {SpecInfo.Mined.Gold::%player%} by {_Count}
  159. loop all players:
  160. {SpecInfo.Enabled::%loop-player%} is true
  161. message "{@Prefix.Short} {@Gold}" to loop-player
  162.  
  163. on mine of diamond ore:
  164. {SpecInfo.TrackedBlock::%x-coordinate of event-block%x%y-coordinate of event-block%x%z-coordinate of event-block%} is not set
  165. set {_Count} to 0
  166. loop blocks in radius 2 around event-block:
  167. loop-block is equal to diamond ore
  168. increase {_Count} by 1
  169. set {SpecInfo.TrackedBlock::%x-coordinate of loop-block%x%y-coordinate of loop-block%x%z-coordinate of loop-block%} to true
  170. if {SpecInfo.Mined.Diamond::%player%} is not set:
  171. set {SpecInfo.Mined.Diamond::%player%} to {_Count}
  172. else:
  173. increase {SpecInfo.Mined.Diamond::%player%} by {_Count}
  174. loop all players:
  175. {SpecInfo.Enabled::%loop-player%} is true
  176. message "{@Prefix.Short} {@Diamond}" to loop-player
  177.  
  178.  
  179. on damage of player:
  180. victim's gamemode is not creative
  181.  
  182. if {SpecInfo.LastDamage::%victim%} is set:
  183. if {SpecInfo.LastDamage::%victim%} was less than 0.15 seconds ago:
  184. stop
  185.  
  186. set {SpecInfo.LastDamage::%victim%} to now
  187. set {_Damage} to (health of victim)
  188. wait 1 tick
  189. set {_Damage} to {_Damage}-(health of victim)
  190. if {_Damage} is equal to 0:
  191. stop
  192.  
  193.  
  194. if attacker is a player:
  195. if damage was caused by projectile:
  196. if projectile is an arrow:
  197. loop all players:
  198. {SpecInfo.Enabled::%loop-player%} is true
  199. message "{@Prefix.Short} {@PvP.Bow}" to loop-player
  200. else:
  201. loop all players:
  202. {SpecInfo.Enabled::%loop-player%} is true
  203. message "{@Prefix.Short} {@PvP.ProjectileUnknown}" to loop-player
  204. else:
  205. if damage was caused by attack:
  206. loop all players:
  207. {SpecInfo.Enabled::%loop-player%} is true
  208. message "{@Prefix.Short} {@PvP.Melee}" to loop-player
  209. else:
  210. loop all players:
  211. {SpecInfo.Enabled::%loop-player%} is true
  212. message "{@Prefix.Short} {@PvP.Unknown}" to loop-player
  213.  
  214.  
  215. else if attacker is not set:
  216. if damage was caused by fall:
  217. loop all players:
  218. {SpecInfo.Enabled::%loop-player%} is true
  219. message "{@Prefix.Short} {@PvE.NS.Fall}" to loop-player
  220. else if damage was caused by lava:
  221. loop all players:
  222. {SpecInfo.Enabled::%loop-player%} is true
  223. message "{@Prefix.Short} {@PvE.NS.Lava}" to loop-player
  224. else if damage was caused by fire:
  225. loop all players:
  226. {SpecInfo.Enabled::%loop-player%} is true
  227. message "{@Prefix.Short} {@PvE.NS.Fire}" to loop-player
  228. else if damage was caused by burning:
  229. loop all players:
  230. {SpecInfo.Enabled::%loop-player%} is true
  231. message "{@Prefix.Short} {@PvE.NS.Burning}" to loop-player
  232. else if damage was caused by drowning:
  233. loop all players:
  234. {SpecInfo.Enabled::%loop-player%} is true
  235. message "{@Prefix.Short} {@PvE.NS.Drowning}" to loop-player
  236. else if damage was caused by poison:
  237. loop all players:
  238. {SpecInfo.Enabled::%loop-player%} is true
  239. message "{@Prefix.Short} {@PvE.NS.Poison}" to loop-player
  240. else if damage was caused by wither:
  241. loop all players:
  242. {SpecInfo.Enabled::%loop-player%} is true
  243. message "{@Prefix.Short} {@PvE.NS.Wither}" to loop-player
  244. else if damage was caused by starvation:
  245. loop all players:
  246. {SpecInfo.Enabled::%loop-player%} is true
  247. message "{@Prefix.Short} {@PvE.NS.Starvation}" to loop-player
  248. else if damage was caused by suffocation:
  249. loop all players:
  250. {SpecInfo.Enabled::%loop-player%} is true
  251. message "{@Prefix.Short} {@PvE.NS.Suffocation}" to loop-player
  252. else if damage was caused by falling block:
  253. loop all players:
  254. {SpecInfo.Enabled::%loop-player%} is true
  255. message "{@Prefix.Short} {@PvE.NS.Anvil}" to loop-player
  256. else:
  257. loop all players:
  258. {SpecInfo.Enabled::%loop-player%} is true
  259. message "{@Prefix.Short} {@PvE.NS}" to loop-player
  260.  
  261. else:
  262. if attacker is a zombie:
  263. loop all players:
  264. {SpecInfo.Enabled::%loop-player%} is true
  265. message "{@Prefix.Short} {@PvE.Zombie}" to loop-player
  266. else if attacker is a skeleton:
  267. loop all players:
  268. {SpecInfo.Enabled::%loop-player%} is true
  269. message "{@Prefix.Short} {@PvE.Skeleton}" to loop-player
  270. else if attacker is a spider:
  271. loop all players:
  272. {SpecInfo.Enabled::%loop-player%} is true
  273. message "{@Prefix.Short} {@PvE.Spider}" to loop-player
  274. else if attacker is a creeper:
  275. loop all players:
  276. {SpecInfo.Enabled::%loop-player%} is true
  277. message "{@Prefix.Short} {@PvE.Creeper}" to loop-player
  278. else if attacker is a enderman:
  279. loop all players:
  280. {SpecInfo.Enabled::%loop-player%} is true
  281. message "{@Prefix.Short} {@PvE.Enderman}" to loop-player
  282. else if attacker is a silverfish:
  283. loop all players:
  284. {SpecInfo.Enabled::%loop-player%} is true
  285. message "{@Prefix.Short} {@PvE.Silverfish}" to loop-player
  286. else if attacker is a slime:
  287. loop all players:
  288. {SpecInfo.Enabled::%loop-player%} is true
  289. message "{@Prefix.Short} {@PvE.Slime}" to loop-player
  290. else if attacker is a witch:
  291. loop all players:
  292. {SpecInfo.Enabled::%loop-player%} is true
  293. message "{@Prefix.Short} {@PvE.Witch}" to loop-player
  294. else if attacker is a ghast:
  295. loop all players:
  296. {SpecInfo.Enabled::%loop-player%} is true
  297. message "{@Prefix.Short} {@PvE.Ghast}" to loop-player
  298. else if attacker is a blaze:
  299. loop all players:
  300. {SpecInfo.Enabled::%loop-player%} is true
  301. message "{@Prefix.Short} {@PvE.Blaze}" to loop-player
  302. else if attacker is a magma cube:
  303. loop all players:
  304. {SpecInfo.Enabled::%loop-player%} is true
  305. message "{@Prefix.Short} {@PvE.MCube}" to loop-player
  306. else if attacker is a zombie pigman:
  307. loop all players:
  308. {SpecInfo.Enabled::%loop-player%} is true
  309. message "{@Prefix.Short} {@PvE.Pigman}" to loop-player
  310. else:
  311. loop all players:
  312. {SpecInfo.Enabled::%loop-player%} is true
  313. message "{@Prefix.Short} {@PvE}" to loop-player
  314.  
  315. on consume of golden apple:
  316. loop all players:
  317. {SpecInfo.Enabled::%loop-player%} is true
  318. message "{@Prefix.Short} {@ate.gapple}" to loop-player
  319.  
  320.  
  321. on craft of 322:
  322. loop all players:
  323. {SpecInfo.Enabled::%loop-player%} is true
  324. message "{@Prefix.Short} {@crafted.gapple}" to loop-player
  325.  
  326. on craft of diamond helmet:
  327. loop all players:
  328. {SpecInfo.Enabled::%loop-player%} is true
  329. message "{@Prefix.Short} {@crafted.diamondhelm}" to loop-player
  330.  
  331. on craft of diamond chestplate:
  332. loop all players:
  333. {SpecInfo.Enabled::%loop-player%} is true
  334. message "{@Prefix.Short} {@crafted.diamondchest}" to loop-player
  335.  
  336. on craft of diamond leggings:
  337. loop all players:
  338. {SpecInfo.Enabled::%loop-player%} is true
  339. message "{@Prefix.Short} {@crafted.diamondpants}" to loop-player
  340.  
  341. on craft of diamond boots:
  342. loop all players:
  343. {SpecInfo.Enabled::%loop-player%} is true
  344. message "{@Prefix.Short} {@crafted.diamondboots}" to loop-player
  345.  
  346. on craft of brewing stand:
  347. loop all players:
  348. {SpecInfo.Enabled::%loop-player%} is true
  349. message "{@Prefix.Short} {@crafted.brewing}" to loop-player
  350.  
  351. on craft of enchantment table:
  352. loop all players:
  353. {SpecInfo.Enabled::%loop-player%} is true
  354. message "{@Prefix.Short} {@crafted.enchant}" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement