Advertisement
Cool_Colton

Essentials Skript

Oct 16th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.01 KB | None | 0 0
  1. #
  2. # The Essentials of Essentials - made by Lupusor, Austin/Mesyl2 and TheMandalorian HEAVILY EDITED by BeanyDoesStuff_/ztimhirsch
  3. # It was garbage and now is better - ztimhirsch
  4. #
  5.  
  6.  
  7.  
  8. options:
  9. notify: true #Notify people with the permission to get the notification (notify.command)
  10. colour1: §7
  11. colour2: §8
  12. colour3: &3
  13. server: &3&lTEST
  14. announcetime: 8 # For timed announcements! Delete if you dont use timed announcements!
  15.  
  16. command /heal [<player>]:
  17. permission: skript.heal
  18. permission message: &cInsufficient permissions!
  19. trigger:
  20. arg-1 is set:
  21. heal the player-argument ? player
  22. feed the player-argument ? player
  23. send "{@colour1}You have been healed." to the player-argument ? player
  24. send "{@colour3}%player%{@colour1} has done a command! {@colour2}/heal %arg-1 ? player%" to all players where [input has permission "notify.heal"] if {@notify} is true
  25.  
  26. command /feed [<player>]:
  27. permission: skript.feed
  28. permission message: &cInsufficient permissions!
  29. trigger:
  30. feed the player-argument ? player
  31. send "{@colour1}Your appetite was sated." to the player-argument ? player
  32. send "{@colour3}%player%{@colour1} has done a command! {@colour2}/feed %arg-1 ? player%" to all players where [input has permission "notify.feed"] if {@notify} is true
  33.  
  34. command /killall <text = all>:
  35. permission: skript.killall
  36. permission message: &cInsufficient permissions!
  37. trigger:
  38. if arg-1 is "mobs" or "Mobs":
  39. kill all mobs
  40. send "{@colour1}Killed all mobs."
  41. else if arg-1 is "players" or "Players":
  42. kill all players
  43. send "{@colour1}Killed all players."
  44. else if arg-1 is "all" or "All":
  45. kill all entities
  46. send "{@colour1}Killed all players and mobs."
  47. send "{@colour3}%player%{@colour1} has done a command! {@colour2}/killall %arg-1%" to all players where [input has permission "notify.killall"] if {@notify} is true
  48.  
  49. # Homes
  50.  
  51. on join:
  52. set {maximum::homes::%player's uuid%} to 2
  53.  
  54. command /sethome <text = home>:
  55. permission: skript.sethome
  56. description: Set your home
  57. usage: /sethome [Name]
  58. trigger:
  59. {maximum::homes::%player's uuid%} > (size of {homes::%player's uuid%::*}):
  60. set {home::%player's uuid%::%argument%} to block at location of player
  61. message "{@colour1}Home set!"
  62. else:
  63. send "{@colour1}You have the maximum amount of homes set"
  64.  
  65. command /home <text> [<player>]:
  66. permission: skript.home
  67. description: Teleport yourself to your home
  68. usage: /home [Name]
  69. trigger:
  70. if arg-2 is player:
  71. if {home::%player's uuid%::%arg-1%} is not set:
  72. message "&cError: You have no homes set with this name!"
  73. else:
  74. teleport player to {home::%player's uuid%::%argument-1%}
  75. else if arg-2 is not set:
  76. if {home::%player's uuid%::%arg-1%} is not set:
  77. message "&cError: You have no homes set with this name!"
  78. else:
  79. teleport player to {home::%player's uuid%::%argument-1%}
  80. else:
  81. player has permission "skript.homes.others":
  82. if {home::%arg-2's uuid%::%arg-1%} is set:
  83. teleport player to {home::%arg-2's uuid%::%arg-1%}
  84. send "{@colour3}%player%{@colour1} has done a command! {@colour2}/home %arg-1%{@colour2} %arg-2%" to all players where [input has permission "notify.home"] if {@notify} is true
  85. else:
  86. message "&cError: %arg-2% &chas no homes set with this name!"
  87. else:
  88. send "&cError: You do not have permission to teleport to other people's home."
  89.  
  90. command /homes [<player>]:
  91. permission: skript.homes
  92. description: View your homes
  93. usage: /homes [player]
  94. trigger:
  95. if arg-1 is player:
  96. send "{@colour1}Homes of {@colour3}%player%"
  97. loop {home::%player's uuid%::*}:
  98. send "{@colour2}%loop-index%"
  99. else if arg-1 is not set:
  100. send "{@colour1}Homes of {@colour3}%player%"
  101. loop {home::%player's uuid%::*}:
  102. send "{@colour2}%loop-index%"
  103. else if player has permission "skript.homes.others":
  104. send "{@colour1}Homes of {@colour3}%arg-1%"
  105. loop {home::%arg-1's uuid%::*}:
  106. send "{@colour2}%loop-index%"
  107.  
  108. command /tp <text> [to] [<text>] [<text>]:
  109. description: Teleports you to a player.
  110. usage: /tp <target player>.
  111. permission: skript.tp
  112. trigger:
  113. if arg-2 is not set:
  114. if arg-1 parsed as a player is set:
  115. teleport player to (arg-1 parsed as a player)'s location
  116. message "{@colour1}Teleported to {@colour2}%arg-1%"
  117. else if arg-1 parsed as a offline player is set:
  118. send "&cUse /otp <player> to teleport to an offline player!"
  119. else:
  120. if arg-2 parsed as a player is set:
  121. teleport (arg-1 parsed as a player) to (arg-2 parsed as a player)'s location
  122. send "{@colour1}Teleported {@colour2}%arg-1% {@colour1}to {@colour3}%arg-2%" to player
  123. send "{@colour1}You have been teleported to {@colour2}%arg-2% {@colour1}by {@colour3}%player%" to arg-1 parsed as a player
  124. else if arg-3 is set:
  125. execute console command "/minecraft:teleport %player% %arg-1% %arg-2% %arg-3%"
  126. send "{@colour1}You have teleported to {@colour2}%arg-1%, {@colour2}%arg-2%, {@colour2}%arg-3%"
  127. send "{@colour3}%player%{@colour1} has done a command! {@colour2}/teleport %arg-1%{@colour2} %arg-2%{@colour2} %arg-3%" to all players where [input has permission "notify.teleport"] if {@notify} is true
  128.  
  129. command /teleport <text> [to] [<text>] [<text>]:
  130. description: Teleports you to a player.
  131. usage: /tp <target player>.
  132. permission: skript.tp
  133. trigger:
  134. arg-2 is not set:
  135. arg-1 parsed as a player is set:
  136. teleport player to (arg-1 parsed as a player)'s location
  137. message "{@colour1}Teleported to {@colour2}%arg-1%"
  138. else if arg-1 parsed as a offline player is set:
  139. send "&cUse /otp <player> to teleport to an offline player!"
  140. else:
  141. arg-2 parsed as a player is set:
  142. teleport (arg-1 parsed as a player) to (arg-2 parsed as a player)'s location
  143. send "{@colour1}Teleported {@colour2}%arg-1% {@colour1}to {@colour3}%arg-2%" to player
  144. send "{@colour1}You have been teleported to {@colour2}%arg-2% {@colour1}by {@colour3}%player%" to arg-1 parsed as a player
  145. else if arg-3 is set:
  146. execute console command "/minecraft:teleport %player% %arg-1% %arg-2% %arg-3%"
  147. send "{@colour1}You have teleported to {@colour2}%arg-1%, {@colour2}%arg-2%, {@colour2}%arg-3%"
  148. send "{@colour3}%player%{@colour1} has done a command! {@colour2}/teleport %arg-1%{@colour2} %arg-2%{@colour2} %arg-3%" to all players where [input has permission "notify.teleport"] if {@notify} is true
  149.  
  150. command /tphere <player>:
  151. description: Teleport a player to you
  152. usage: /tphere <target player>
  153. permission: skript.tphere
  154. trigger:
  155. message "{@colour1}Teleported {@colour2}%argument% {@colour1}to you"
  156. teleport argument to player's location
  157. send "{@colour3}%player%{@colour1} has done a command! {@colour2}/teleporthere %arg-1%" to all players where [input has permission "notify.teleport"] if {@notify} is true
  158.  
  159. command /teleporthere <player>:
  160. description: Teleport a player to you
  161. usage: /tphere <target player>
  162. permission: skript.tphere
  163. trigger:
  164. message "{@colour1}Teleported {@colour2}%argument% {@colour1}to you"
  165. teleport argument to player's location
  166. send "{@colour3}%player%{@colour1} has done a command! {@colour2}/teleporthere %arg-1%" to all players where [input has permission "notify.teleport"] if {@notify} is true
  167.  
  168. command /tpa <player>:
  169. permission: skript.tpa
  170. description: Teleport to an player
  171. trigger:
  172. set {skript::tpa::%argument 1%} to "%player%|%now%"
  173. send "{@colour2}%player% {@colour1}wants teleport to you. &7Use /tpaccept to accept" to argument 1
  174. message "{@colour1}Teleport request sent."
  175. send "{@colour3}%player%{@colour1} has done a command! {@colour2}/tpa %arg-1%" to all players where [input has permission "notify.teleportrequest"] if {@notify} is true
  176.  
  177. command /tpahere <player>:
  178. permission: skript.tpahere
  179. description: Teleport an player to you
  180. trigger:
  181. set {skript::tpahere::%argument 1%} to "%player%|%now%"
  182. send "{@colour2}%player% {@colour1}wants you to teleport to them." to argument 1
  183. message "{@colour2}Teleport request sent."
  184. send "{@colour3}%player%{@colour1} has done a command! {@colour2}/tpahere %arg-1%" to all players where [input has permission "notify.teleportrequest"] if {@notify} is true
  185.  
  186. command /tpaccept:
  187. permission: skript.tpaccept
  188. trigger:
  189. if {skript::tpa::%player%} is set:
  190. set {_d::*} to split {skript::tpa::%player%} at "|"
  191. if {_d::2} was less than 30 seconds ago:
  192. teleport {skript::tpa::%player%} to location of player
  193. send "{@colour1}You were teleported to %player%!" to {skript::tpa::%player%}
  194. send "{@colour1}%{skript::tpa::%player%}%{@colour1} was teleported to you!" to player
  195. else:
  196. send "{@colour1}Your last teleport request was sent more than 30 seconds ago."
  197. else if {skript::tpahere::%player%} is set:
  198. set {_d::*} to split {skript::tpahere::%player%} at "|"
  199. if {_d::2} was less than 30 seconds ago:
  200. teleport player to location of {skript::tpahere::%player%}
  201. send "{@colour1}You were teleported to %player%" to player
  202. send "{@colour1}%{skript.tpahere.%player%}% {@colour2}was teleported to you" to {skript::tpahere::%player%}
  203. else:
  204. send "{@colour1}Your last teleport request was sent more than 30 seconds ago."
  205. else:
  206. message "&cThere aren't any teleport requests"
  207.  
  208. command /broadcast [<string>]:
  209. permission: bc.use
  210. permission message: {@server} &8| &7Insufficient Permissions!
  211. trigger:
  212. if arg-1 is not set:
  213. send "{@server} &8| &7Please write something!"
  214. if arg-1 is set:
  215. broadcast "{@server} &8| {@colour2}%coloured arg-1%"
  216.  
  217. command /bc [<string>]:
  218. permission: bc.use
  219. trigger:
  220. if arg-1 is not set:
  221. send "{@server} &8| &7Please write something!"
  222. if arg-1 is set:
  223. broadcast "{@server} &8| {@colour2}%coloured arg-1%"
  224.  
  225. command /gamemode <text>:
  226. permission: gamemode.sk
  227. trigger:
  228. make player execute "/gm%arg-1%"
  229.  
  230. command /gmc:
  231. permission: gmc.sk
  232. trigger:
  233. set player's gamemode to creative
  234. send "{@colour1}Your gamemode is now set to {@colour2}creative!"
  235.  
  236. command /gms:
  237. permission: gms.sk
  238. trigger:
  239. set player's gamemode to survival
  240. send "{@colour1}Your gamemode is now set to {@colour2}survival!"
  241.  
  242. command /gmsp:
  243. permission: gmsp.sk
  244. trigger:
  245. set player's gamemode to spectator
  246. send "{@colour1}Your gamemode is now set to {@colour2}spectator!"
  247.  
  248. command /gma:
  249. permission: gma.sk
  250. trigger:
  251. set player's gamemode to adventure
  252. send "{@colour1}Your gamemode is now set to {@colour2}adventure!"
  253.  
  254. command /day:
  255. permission: sk.day
  256. trigger:
  257. set time to day
  258. send "{@colour1}Time set to {@colour2}day."
  259.  
  260. command /night:
  261. permission: sk.night
  262. trigger:
  263. set time to night
  264. send "{@colour1}Time set to {@colour2}night."
  265.  
  266. command /rain:
  267. permission: sk.rain
  268. trigger:
  269. set weather to rain
  270. send "{@colour1}Weather set to {@colour2}rain."
  271.  
  272. command /wclear:
  273. permission: sk.sun
  274. trigger:
  275. set weather to clear
  276. send "{@colour1}Weather set to {@colour2}sun."
  277.  
  278. command /sun:
  279. permission: sk.sun
  280. trigger:
  281. set weather to clear
  282. send "{@colour1}Weather set to {@colour2}sun."
  283.  
  284. command /suicide:
  285. permission: sk.suicide
  286. trigger:
  287. kill player
  288.  
  289. #Kill All Items
  290.  
  291. command /deldrops:
  292. trigger:
  293. kill all dropped items
  294.  
  295. every {@announcetime} minutes:
  296. broadcast ""
  297. broadcast "&c&lEDIT THIS IN THE SKRIPT CONFIG!"
  298. broadcast ""
  299.  
  300. command /motd:
  301. trigger:
  302. message " "
  303. message "&a&lEDIT MOTD IN THE SKRIPT CONFIG!"
  304. message " "
  305.  
  306. command /skull:
  307. trigger:
  308. give player player's head
  309.  
  310. command /clearchat:
  311. permission: cc.use
  312. aliases: cc
  313. trigger:
  314. loop all players:
  315. loop 10 times:
  316. broadcast "%loop-player%- Your anti-clearchat will not work on this."
  317. loop 300 times:
  318. broadcast ""
  319. broadcast "{@server} &8| {@colour2}%player% {@colour1}has cleared the chat!"
  320.  
  321. command /ssudo <player> <text>:
  322. permission: s.sudo
  323. trigger:
  324. if arg-1 is set:
  325. if arg-2 is set:
  326. make arg-1 say arg-2
  327.  
  328. command /allsudo <text>:
  329. permission: s.sudo
  330. trigger:
  331. if arg-1 is set:
  332. loop all players:
  333. make loop-player say arg-1
  334.  
  335. #
  336. # Essentials Kits (made by Austin collaborating with Lupusor)
  337. #
  338.  
  339. # Known Bug
  340. # when using the /createkit there is a bug ever so often where it sends "An internal error occurred"
  341. # it's an issue with timespam mainly just add/remove the (s) in the cooldown part (this issue can also be seen for [1 minute and 5 seconds]
  342. # EX: /createkit example 1 minute
  343. # EX: /createkit example 1 minutes
  344. #
  345. # PERMISSIONS:
  346. # easykits.createkit
  347. # easykits.deletekit
  348. # easykits.kit.(kit)
  349. # easykits.createkit
  350. # easykits.createsigns
  351. #
  352. # COMMANDS:
  353. # /previewkit (kit) | preview a kit on the server | no permission needed
  354. # /kit (kit) | select a kit you own | no permission needed
  355. # /kits | list all kits you own with an unlimited page gui | no permission needed
  356. # /deletekit (kit) | delete a kit you don't want from the server | easykits.deletekit
  357. # /createkit (kit) (timespan) | create a kit you for the server | easykits.createkit
  358. # EX: /createkit example 1 second
  359. # EX: /createkit example 0 seconds
  360. # EX: /createkit example 5 minutes and 5 seconds
  361. #
  362. # SIGNS:
  363. # on any sign put [PREVIEW KIT] or [SELECT KIT] on line 1
  364. # and on line 2 put the kit you'd like to preview/select
  365. # these usages are great for people who own a kit pvp server
  366.  
  367.  
  368.  
  369. #
  370. # Functions (Do not edit without knowing how)
  371. #
  372.  
  373. options:
  374. drop_when_full: true # true or false | yes or no
  375.  
  376.  
  377. function previewKit(p: player, kit: text):
  378. {EasyKits::*} contains {_kit}
  379. set metadata value "gui" of {_p} to "kitpreview"
  380. set {_inv} to chest inventory with 5 rows named "Previewing Kit | %{_kit}%"
  381. loop {EasyKits::%{_kit}%::items::*}:
  382. set {_id} to (((loop-index) parsed as integer)-1)
  383. {_id} < 36
  384. set {_slot} to {_id}+27 if {_id} < 9 else {_id}-9
  385. set slot {_slot} of {_inv} to loop-value
  386. set slot (integers from 36 to 44) of {_inv} to black stained glass pane
  387. set slot 40 of {_inv} to paper named "&3Inventory View Information" with lore "&7Line 1", "&7Line 2", "&7Line 3" and "&bHot-Bar"
  388. open {_inv} to {_p}
  389.  
  390. function listKits(p: player, page: number):
  391. set metadata value "gui" of {_p} to "kitlist"
  392. set metadata value "guidata" of {_p} to {_page}
  393. set {_kits::*} to {EasyKits::*} where [{_p} has permission "easykits.kit.%input%"]
  394. set {_inv} to chest inventory with 6 rows named "Kits | Total: %size of {_kits::*}% | Page: %({_page})+1%"
  395. set {_startPoint} to {_page}*36
  396. set {_slot} to 9
  397. loop {_kits::*}:
  398. ((loop-index) parsed as integer) > {_startPoint}
  399. set slot {_slot} of {_inv} to paper named "&e%loop-value%" with lore "&7Cooldown: &f%{EasyKits::%loop-value%::cooldown}%" and "&7Permission: &fEasyKits.kit.%loop-value%", "" and "&7&l| &fRight Click to Preview"
  400. add 1 to {_slot}
  401. {_slot} = 45
  402. exit loop
  403. if (size of {_kits::*}) > (({_startPoint})+36):
  404. set slot 53 of {_inv} to arrow named "&eNext Page"
  405. if {_page} > 0:
  406. set slot 45 of {_inv} to arrow named "&ePrevious Page"
  407. open {_inv} to {_p}
  408.  
  409. function selectKit(p: player, kit: text):
  410. {EasyKits::*} contains {_kit}
  411. {_p} has permission "easykits.kit.%{_kit}%"
  412. set {_uuid} to uuid of {_p}
  413. set {_now} to now
  414. set {_lastUsed} to {KitData::%{_uuid}%::%{_kit}%} otherwise now
  415. set {_cooldown} to {EasyKits::%{_kit}%::cooldown}
  416. send "&cYou still need to wait &4%difference between {_lastUsed} and {_now}%" to {_p} where [{_now} < {_lastUsed}]
  417. {_now} >= {_lastUsed}
  418. set {KitData::%{_uuid}%} to {_uuid}
  419. set {KitData::%{_uuid}%::%{_kit}%} to {_cooldown} from now
  420. loop {EasyKits::%{_kit}%::items::*}:
  421. loop-value is not air
  422. add loop-value to {_p}'s inventory where [{_p} can hold loop-value]
  423. {@drop_when_full} is true or yes
  424. drop loop-value above {_p}'s location where [{_p} can't hold loop-value]
  425. send "&aYou've used the kit &2%{_kit}%" to {_p}
  426.  
  427.  
  428. #
  429. # Message Options
  430. #
  431.  
  432. options:
  433. usage: &c/createkit (name) (cooldown)
  434. noItems: &cYou don't have any items if your inventory
  435. inUse: &cThis kit name already exist
  436. lengthLimit: &cThere is a minimum of 3 characters and a maximum of 8 characters!
  437.  
  438.  
  439. #
  440. # Command Options
  441. #
  442.  
  443. options:
  444. permission: easykits.createkit
  445. permission_message: {@server} &8&l| &cYou don't have the required permission node
  446. cooldown: 0 seconds # when set to 0 this will allow it to be spammed
  447. cooldown_message: {@server} &8&l| &cThis command is currently still on a %remaining time% cooldown
  448. cooldown_bypass: skript.admin
  449.  
  450. command /createkit [<text>] [<timespan>]:
  451. permission: {@permission}
  452. permission message: {@permission_message}
  453. cooldown: {@cooldown}
  454. cooldown message: {@cooldown_message}
  455. cooldown bypass: {@cooldown_bypass}
  456. executable by: players
  457. trigger:
  458. if arg 1 or arg 2 is not set:
  459. send "{@usage}"
  460. cancel cooldown
  461. else if (amount of items in player's inventory) = 0:
  462. send "{@noItems}"
  463. cancel cooldown
  464. else if {EasyKits::*} contains arg-1:
  465. send "{@inUse}"
  466. cancel cooldown
  467. else if length of arg-1 > 10:
  468. send "{@lengthLimit}"
  469. cancel cooldown
  470. else if length of arg-1 < 3:
  471. send "{@lengthLimit}"
  472. cancel cooldown
  473. else:
  474. set {EasyKits::%arg-1%} to arg-1
  475. set {EasyKits::%arg-1%::cooldown} to arg-2
  476. loop 36 times:
  477. set {EasyKits::%arg-1%::items::%loop-value%} to slot ((loop-value)-1) of player's inventory
  478. send "&cYou've created the new kit &4%arg-1% &cwith a cooldown of &4%arg-2%"
  479.  
  480. command /previewkit [<text>]:
  481. executable by: players
  482. trigger:
  483. send "&cYou need to define a kit" to player where [arg-1 is not set]
  484. arg-1 is set
  485. send "&4%arg-1% &cdoesn't seem to be a kit" to player where [{EasyKits::*} doesn't contain arg-1]
  486. {EasyKits::*} contains arg-1
  487. previewKit(player, arg-1)
  488.  
  489. command /kit [<text>]:
  490. executable by: players
  491. trigger:
  492. send "&cYou need to define a kit" to player where [arg-1 is not set]
  493. arg-1 is set
  494. send "&4%arg-1% &cdoesn't seem to be a kit" to player where [{EasyKits::*} doesn't contain arg-1]
  495. {EasyKits::*} contains arg-1
  496. send "&cYou don't have the required permission node" to player where [player doesn't have permission "easykits.kit.%arg-1%"]
  497. player has permission "easykits.kit.%arg-1%"
  498. selectKit(player, arg-1)
  499.  
  500. command /kits [<text>]:
  501. executable by: players
  502. trigger:
  503. listKits(player, 0)
  504.  
  505. options:
  506. permission: easykits.deletekit
  507. permission_message: &8&l| &cYou don't have the required permission node
  508. cooldown: 0 seconds # when set to 0 this will allow it to be spammed
  509. cooldown_message: &8&l| &cThis command is currently still on a %remaining time% cooldown
  510. cooldown_bypass: skript.admin
  511.  
  512. command /deletekit [<text>]:
  513. permission: {@permission}
  514. permission message: {@permission_message}
  515. cooldown: {@cooldown}
  516. cooldown message: {@cooldown_message}
  517. cooldown bypass: {@cooldown_bypass}
  518. executable by: players
  519. trigger:
  520. if {EasyKits::*} doesn't contain arg-1:
  521. send "&cThere doesn't seem to be any kit by that name"
  522. else:
  523. delete {EasyKits::%arg-1%::items::*}
  524. delete {EasyKits::%arg-1%::*}
  525. delete {EasyKits::%arg-1%}
  526. send "&cYou've deleted the kit &4%arg-1%"
  527.  
  528. #
  529. # Inventory Management
  530. #
  531.  
  532. on inventory close:
  533. if metadata value "gui" of player is set:
  534. clear metadata "gui" of player
  535. if metadata value "guidata" of player is set:
  536. clear metadata "guidata" of player
  537.  
  538. on quit:
  539. if metadata value "gui" of player is set:
  540. clear metadata "gui" of player
  541. if metadata value "guidata" of player is set:
  542. clear metadata "guidata" of player
  543.  
  544. on inventory click:
  545. if metadata value "gui" of player is "kitpreview":
  546. cancel event
  547. else if metadata value "gui" of player is "kitlist":
  548. cancel event
  549. set {_page} to "%metadata value ""guidata"" of player%" parsed as number
  550. if event-item is a paper:
  551. click type is right mouse button or right mouse button with shift
  552. close player's inventory
  553. previewKit(player, uncolored name of event-item)
  554. else if event-item is a arrow named "&eNext Page":
  555. close player's inventory
  556. listKits(player, {_page}+1)
  557. else if event-item is a arrow named "&ePrevious Page":
  558. close player's inventory
  559. listKits(player, {_page}-1)
  560.  
  561. #
  562. # Sign Stuff
  563. #
  564.  
  565.  
  566. on sign edit:
  567. player has permission "easykits.createsigns"
  568. if uncolored line 1 is "[PREVIEW KIT]":
  569. if line 2 is empty:
  570. set line 1 to "&c[PREVIEW KIT]"
  571. set line 2 to "&4(kit name)"
  572. else if {EasyKits::*} doesn't contain uncolored line 2:
  573. set line 1 to "&c[PREVIEW KIT]"
  574. set line 2 to "&4(kit name)"
  575. else:
  576. set line 1 to "&1[PREVIEW KIT]"
  577. set line 2 to uncolored line 2
  578. else if uncolored line 1 is "[SELECT KIT]":
  579. if line 2 is empty:
  580. set line 1 to "&c[SELECT KIT]"
  581. set line 2 to "&4(kit name)"
  582. else if {EasyKits::*} doesn't contain uncolored line 2:
  583. set line 1 to "&c[SELECT KIT]"
  584. set line 2 to "&4(kit name)"
  585. else:
  586. set line 1 to "&1[SELECT KIT]"
  587. set line 2 to uncolored line 2
  588.  
  589. on right click on any sign:
  590. if colored line 1 of event-block is "&1[PREVIEW KIT]":
  591. previewKit(player, uncolored line 2 of event-block)
  592. else if colored line 1 of event-block is "&1[SELECT KIT]":
  593. selectKit(player, uncolored line 2 of event-block)
  594.  
  595. command /give <item types> <integer = 1> [to] [<player>]:
  596. permission: skript.give
  597. trigger:
  598. send "{@colour1}Giving %arg-2% {@colour2}%argument 1% {@colour1}to {@colour3}%argument 3 ? player%" to player
  599. give arg-2 of arg-1 to player-argument if arg-3 is set
  600. give arg-2 of arg-1 to player if arg-3 is not set
  601. send "{@colour1}You have recieved some {@colour2}%arg-1% {@colour1}from {@colour3}%player%" to argument 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement