MostFunGuy

skenitals

Oct 14th, 2013
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.17 KB | None | 0 0
  1. options:
  2. skentialsversion: v1.5
  3. #COMMAND PERMISSIONS
  4.  
  5. adminperm: skentials.admin
  6. modperm: skentials.mod
  7. staffperm: skentials.staff
  8.  
  9. skentialsviewperm: skentials.skentialsview
  10. giveperm: skentials.give
  11. giveothersperm: skentials.give.others
  12. tpposperm: skentials.tppos
  13. tpaperm: skentials.tpa
  14. tpahereperm: skentials.tpahere
  15. tpperm: skentials.tp
  16. tphereperm: skentials.tphere
  17. tpallperm: skentials.tpall
  18. muteperm: skentials.mute
  19. fireballperm: skentials.fireball
  20. broadcastperm: skentials.broadcast
  21. sayperm: skentials.say
  22. kickperm: skentials.kick
  23. kickallperm: skentials.kickall
  24. setjailperm: skentials.setjail
  25. jailperm: skentials.jail
  26. viewjailsperm: skentials.viewjail
  27. banperm: skentials.ban
  28. unbanperm: skentials.unban
  29. banipperm: skentials.ipban
  30. unbanipperm: skentials.unbanip
  31. tempbanperm: skentials.tempban
  32. fullbanperm: skentials.fullban
  33. sunperm: skentials.sun
  34. rainperm: skentials.rain
  35. thunderperm: skentials.thunder
  36. smiteperm: skentials.smite
  37. sudoperm: skentials.sudo
  38. opperm: skentials.op
  39. deopperm: skentials.deop
  40. setstaffperm: skentials.setstaff
  41. reloadperm: skentials.reload
  42. gamemodeperm: skentials.gamemode
  43. gamemodeothersperm: skentials.gamemode.others
  44. godperm: skentials.god
  45. timeperm: skentials.time
  46. afkperm: skentials.afk
  47. coordsperm: skentials.coords
  48. coordsothersperm: skentials.coords.others
  49. ignoreperm: skentials.ignore
  50. listperm: skentials.list
  51. whoperm: skentials.who
  52. meperm: skentials.me
  53. msgperm: skentials.msg
  54. killperm: skentials.kill
  55. nearperm: skentials.near
  56. vanishperm: skentials.vanish
  57. setspawnperm: skentials.setspawn
  58. spawnperm: skentials.spawn
  59. sethomeperm: skentials.sethome
  60. homeperm: skentials.home
  61. delhomeperm: skentials.delhome
  62. setwarpperm: skentials.setwarp
  63. warpperm: skentials.warp
  64. delwarpperm: skentials.delwarp
  65. viewwarpperm: skentials.viewwarps
  66. healperm: skentials.heal
  67. healothersperm: skentials.heal.others
  68. controlchatperm: skentials.controlchat
  69. clearinventoryperm: skentials.clearinventory
  70. clearinventoryothersperm: skentials.clearinventory.others
  71. fakeopperm: skentials.troll.fakeop
  72. fakedeopperm: skentials.troll.fakedeop
  73. spawnmobperm: skentials.spawnmob
  74. viewipperm: skentials.viewip
  75. pingperm: skentials.ping
  76. slapperm: skentials.fun.slap
  77. rocketperm: skentials.fun.rocket
  78. explodeperm: skentials.fun.explode
  79. setcompassperm: skentials.setcompass
  80. invseeperm: skentials.invsee
  81. nametoolperm: skentials.nametool
  82. speedperm: skentials.speed
  83. ride%argument 1%perm: skentials.ride.%argument 1%
  84. rideon%argument 1%perm: skentials.rideon.%argument 1%
  85.  
  86. #COLOURS
  87. maincolour: &6
  88. secondarycolour: &c
  89. msg/tellcolour: &6
  90.  
  91. #Messages
  92.  
  93. smitemessage: &6You have been smitten by &c%player%
  94. tpallmessage: &6You have been teleported to &c%player%
  95. tpmessage: &6You have been teleported to &c%argument 2%&6 by &c%player%
  96. tpheremessage: &6You have been teleported to &c%player%
  97. giveothersmessage: &6Giving &c%argument 1% &6to &c%argument 2%
  98. givemessage: &6Giving %argument 2% &c%argument 1%('s)
  99. clearinventorymessage: &6Your inventory was cleared by &c%player%
  100. slapmessage: &c%argument 1%&6 was slapped by&c %player%
  101. rocketmessage: &c%argument 1%&6 was rocketed into the air by &c%player%
  102. daymessage: &6Time has been changed to &cDay
  103. dayallmessage: &6Time has been changed to &cDay &6in all &cWorlds
  104. nightmessage: &6Time has been changed to &cNight
  105. nightallmessage: &6Time has been changed to &cNight &6in all &cWorlds
  106. midnightmessage: &6Time has been changed to &cMid Night
  107. midnightallmessage: &6Time has been changed to &cMid Night &6in all &cWorlds
  108. listamountmessage: &6There are &c%amount of players%&6 player(s) online
  109. listplayersmessage: &6Players Connected &f%all players%
  110. killmessage: &6Killed &c%argument 1%
  111. tpareceivemessage: &c%player%&6 Would like to teleport to you! Use &c/tpaccept&6 to allow it! Use &c/tpadeny&6 to not allow it!
  112. mutemessage: &c%argument 1%&6 has been muted by &c%player%
  113. unmutemessage: &c%argument 1%&6 has been un-muted by &c%player%
  114. broadcastmessage: &4[&2Broadcast&4]&f
  115. defaultbanmessage: &4The Ban Hammer has Spoken!
  116. banmessage: &c%argument 1%&6 has been banned by &c%player%&6 for &c%argument 2%
  117. unbanmessage: &c%argument 1%&6 has been un-banned by &c%player%
  118. createdwarpmessage: &6Warp &c%argument 1%&6 set
  119. warpunknownmessage: &4Unknown Warp! Use /warp to view available warps!
  120. removewarpmessage: &6Removed the warp &c%argument 1%
  121. createdjailmessage: &6Jail &c%argument 1%&6 set
  122. jailmessage: &c%argument 1%&6 has been jailed for &c%argument 3%&6 by &c%player%
  123. unjailmessage: &c%argument 1%&6has been released from jail by &c%player%
  124. sethomemessage: &6Home Set to %location of player%
  125. delhomemessage: &6Home Removed
  126. viewipmessage: &6The ip of &c%argument 1%&6 is &f%ip of argument 1%
  127. healmessage: &c%argument 1%&6 has been healed by &c%player%
  128. spawnsuccess: &6Spawned &c%argument 2%&6 of %argument 1%
  129. spawnerror: &cError! You can not spawn that many mobs! The maximum is %{maxspawnamount}%
  130. ridemessage: &6You are now riding a &c%argument 1%!
  131.  
  132. startupmessage: &6Skentials has been successfully loaded
  133.  
  134. #Usage Messages
  135. nearusage: &b/near [Radius 1 - 100000000ect (I woudn't recommend going over 100)]
  136.  
  137. #Command Options
  138. receivemessage: true #For a more RPG Feel set this to true, It will make the sent message show with a delay of the below option
  139. receivemessagetime: 1 second
  140. rocketlength: 4 #anything higher than 7 may kick the player for flying
  141. fireballspeed: 2
  142. maxspawnamount: 20
  143.  
  144.  
  145.  
  146. command /skentials [<text = "">]:
  147. permission: {@skentialsviewperm}
  148. trigger:
  149. if argument 1 is "":
  150. message "{@maincolour}Skentials Version {@skentialsversion}"
  151. message "&cBy Funnygatt"
  152. if argument 1 is "reload":
  153. player has permission "{@adminperm}":
  154. message "{@maincolour}Skentials has been Reloaded"
  155. execute console command "/skript disable skentials"
  156. execute console command "/skript enable skentials"
  157. if argument 1 is "changelog" or "change log":
  158. message "&6v1.5 Change Log"
  159. message "&cAdded home related commands"
  160. message "&cAdded Warp related commands"
  161. message "&cAdded /heal"
  162. message "&cAdded /ip"
  163. message "&6v1.0 Change Log"
  164. message "&cFirst Release"
  165.  
  166. on script load:
  167. set {skentials.started} to true
  168. broadcast "{@startupmessage}"
  169.  
  170. #FUN COMMANDS
  171.  
  172. command /ping:
  173. permission: {@pingperm}, {@adminperm}
  174. trigger:
  175. message "{@maincolour}Pong!"
  176. message "{@maincolour}The longer it takes to see this message from the time you used {@secondarycolour}./ping {@maincolour}the more lag you have!"
  177.  
  178. command /fakeop <player>:
  179. permission: {@fakeopperm}, {@adminperm}
  180. trigger:
  181. broadcast "&7&o[CONSOLE: Opped %argument 1%&7&o]"
  182.  
  183. command /fakedeop <player>:
  184. permission: {@fakedeopperm}, {@adminperm}
  185. trigger:
  186. broadcast "&7&o[CONSOLE: De-opped %argument 1%&7&o]"
  187.  
  188. command /fireball:
  189. permission: {@fireballperm}, {@adminperm}
  190. trigger:
  191. shoot a fireball at speed {@fireballspeed}
  192.  
  193. command /slap <player>:
  194. permission: {@slapperm}, {@adminperm}
  195. trigger:
  196. push argument 1 backwards at speed 1
  197. broadcast "{@slapmessage}"
  198.  
  199. command /explode <player>:
  200. permission: {@explodeperm}, skentials.admin
  201. trigger:
  202. create explosion of force 0 at argument 1
  203.  
  204. command /rocket <player>:
  205. permission: {@rocketperm}, {@adminperm}
  206. trigger:
  207. broadcast "{@rocketmessage}"
  208. loop {@rocketlength} times:
  209. wait 5 ticks
  210. create explosion of force 0 at location of argument 1
  211. push argument 1 upwards at speed 3
  212. apply resistance 100 to argument 1 for 1 second
  213. wait 1 second
  214. push argument 1 downwards at speed 10
  215.  
  216. command /me <text>:
  217. permission: {@meperm}, {@adminperm}
  218. trigger:
  219. broadcast "* %player% %argument 1%"
  220.  
  221. command /broadcast <text>:
  222. permission: {@broadcastperm}, {@sayperm}, {@adminperm}
  223. aliases: say
  224. trigger:
  225. broadcast "&4[&3Broadcast&4] %argument 1%"
  226.  
  227. #command /setcompass [<text>]:
  228. permission: {@setcompassperm}, {@adminperm}
  229. trigger:
  230.  
  231. command /nametool [<text = "&c%player%&c's %player's tool%&c of &bKilly Ness">]:
  232. permission: {@nametoolperm}, {@adminperm}
  233. trigger:
  234. set the name of the player's tool to argument 1
  235.  
  236. command /speed <text = "fly"> [<integer = 2>]:
  237. permission: {@speedperm}, {@adminperm}
  238. trigger:
  239. if argument 1 is "fly":
  240. set the player's fly speed to argument 2
  241. if argument 1 is "walk":
  242. set the player's walk speed to argument 2
  243. if argument 1 is "reset":
  244. set the player's walk speed to 1
  245. set the player's fly speed to 1
  246.  
  247. command /ride [<entity type = pig>]:
  248. description: Makes you ride an animal
  249. permission: {@ride%argument 1%perm}, {@adminperm}
  250. trigger:
  251. make the player ride argument 1
  252. message "{@ridemessage}"
  253.  
  254. command /rideon [<entity type = pig>] [<player = %player%>]:
  255. description: Makes a Mob ride YOU
  256. permission: {@rideon%argument 1%perm}, {@adminperm}
  257. trigger:
  258. if argument 1 is ender dragon:
  259. spawn 1 bat at location of the player
  260. make the spawned entity ride argument 2
  261. set {skentials.ridebat1.%player%} to the spawned bat
  262. apply invisibility 10 to the spawned bat for 100 hours
  263.  
  264. wait 2 ticks
  265.  
  266. spawn 1 bat at location of the player
  267. set {skentials.ridebat2.%player%} to the spawned bat
  268. apply invisibility 10 to the spawned bat for 100 hours
  269. make the spawned entity ride {skentials.ridebat1.%player%}
  270.  
  271. wait 2 ticks
  272.  
  273. spawn 1 bat at location of the player
  274. set {skentials.ridebat3.%player%} to the spawned bat
  275. apply invisibility 10 to the spawned bat for 100 hours
  276. make the spawned entity ride {skentials.ridebat2.%player%}
  277.  
  278. wait 2 ticks
  279.  
  280. spawn 1 bat at location of the player
  281. set {skentials.ridebat4.%player%} to the spawned bat
  282. apply invisibility 10 to the spawned bat for 100 hours
  283. make the spawned entity ride {skentials.ridebat3.%player%}
  284.  
  285. wait 2 ticks
  286.  
  287. spawn 1 bat at location of the player
  288. set {skentials.ridebat5.%player%} to the spawned bat
  289. apply invisibility 10 to the spawned bat for 100 hours
  290. make the spawned entity ride {skentials.ridebat4.%player%}
  291.  
  292. wait 2 ticks
  293.  
  294. set {skentials.ridebat5.%player%} to the spawned bat
  295. apply invisibility 10 to the spawned bat for 100 hours
  296. spawn 1 of argument 1 at location of the player
  297. make the spawned entity ride {skentials.ridebat5.%player%}
  298. if argument 1 isn't ender dragon:
  299. spawn 1 bat at location of the player
  300. make the spawned entity ride argument 2
  301. set {riding.%player%} to the spawned bat
  302. apply invisibility 10 to the spawned bat for 100 hours
  303. spawn 1 of argument 1 at location of the player
  304. make the spawned entity ride {riding.%player%}
  305.  
  306.  
  307. #USEFULL COMMANDS
  308. command /sethome:
  309. permission: {@sethomeperm}, {@adminperm}
  310. description: Set your home
  311. trigger:
  312. set {homes.%player%.location} to location of player
  313. message "{@sethomemessage}"
  314.  
  315. command /home:
  316. permission: {@homeperm}, {@adminperm}
  317. description: Teleport yourself to your home
  318. executable by: players
  319. trigger:
  320. if {homes.%player%.location} is not set:
  321. message "You have not set your home yet!"
  322. teleport player to {homes.%player%.location}
  323.  
  324. command /delhome:
  325. permission: {@delhomeperm}, {@adminperm}
  326. trigger:
  327. delete {homes.%player%.location}
  328. message "{@delhomemessage}"
  329.  
  330. command /setwarp <text>:
  331. permission: {@setwarpperm}, {@adminperm}
  332. trigger:
  333. set {skentials.warp.%argument 1%.location} to location of the player
  334. message "{@createdwarpmessage}"
  335. add argument 1 to {skentialswarplist::*}
  336.  
  337. command /delwarp <text>:
  338. permission: {@delwarpperm}, {@adminperm}
  339. trigger:
  340. delete {skentials.warp.%argument 1%.location}
  341. message "{@removewarpmessage}"
  342. remove argument 1 from {skentialswarplist::*}
  343.  
  344. command /warp [<text = "list">]:
  345. permission: {@viewwarpperm}, {@adminperm}
  346. trigger:
  347. if argument 1 is "list":
  348. message "&6Warps;&f %{skentialswarplist::*}%"
  349. if argument 1 isn't "list":
  350. if {skentials.warp.%argument 1%.location} is set:
  351. teleport player to {skentials.warp.%argument 1%.location}
  352. else:
  353. message "{@warpunknownmessage}"
  354.  
  355. command /gm <integer> [<player = %player%>]:
  356. permission: {@gamemodeperm}, {@adminperm}
  357. trigger:
  358. if argument 2 is "%player%":
  359. if argument 1 is 1:
  360. set the gamemode of the player to creative
  361. if argument 1 is 0:
  362. set the gamemode of the player to survival
  363. if argument 1 is 2:
  364. set the gamemode of the player to adventure
  365. else:
  366. player has permission "{@gamemodeothersperm}":
  367. if argument 1 is 1:
  368. set the gamemode of argument 2 to creative
  369. if argument 1 is 0:
  370. set the gamemode of argument 2 to survival
  371. if argument 1 is 2:
  372. set the gamemode of argument 2 to adventure
  373.  
  374. command /kill <player>:
  375. permission: {@killperm}, {@adminperm}
  376. trigger:
  377. set the gamemode of argument 1 to survival
  378. remove resistance from argument 1
  379. kill argument 1
  380. message "{@killmessage}"
  381.  
  382. command /list:
  383. permission:Ê{@listperm}, {@whoperm}, {@adminperm}
  384. trigger:
  385. message "{@listamountmessage}"
  386. message "{@listplayersmessage}"
  387.  
  388. command /time [<text = "">] [<text = "">]:
  389. permission: {@timeperm}, {@adminperm}
  390. trigger:
  391. if argument 1 is "day":
  392. if argument 2 is "":
  393. set time to 7:00
  394. broadcast "{@daymessage}"
  395. if argument 1 is "night":
  396. if argument 2 is "":
  397. set time to 19:00
  398. broadcast "{@nightmessage}"
  399. if argument 1 is "midnight":
  400. if argument 2 is "":
  401. set time to 23:59
  402. broadcast "{@midnightmessage}"
  403. if argument 1 is "":
  404. message "&6The time right now is &c%time of world%"
  405.  
  406. command /clearinventory [<player>]:
  407. permission: {@clearinventoryperm}, {@adminperm}
  408. aliases: ci
  409. trigger:
  410. if argument 1 isn't "":
  411. player has permission "{@clearinventoryothersperm}":
  412. clear the inventory of argument 1
  413. message "{@clearinventorymessage}" to argument 1
  414. else:
  415. clear the inventory of the player
  416. message "{@clearinventorymessage}"
  417.  
  418. command /i <item> [<integer>]:
  419. description: Spawn a item
  420. aliases: item, items, give, get
  421. usage: /i [item] (amount)
  422. permission: utilities.item
  423. trigger:
  424. if argument 2 is not set:
  425. give argument 1 to player
  426. stop
  427. loop argument 2 times:
  428. give argument 1 to player
  429. message "{@givemessage}"
  430.  
  431. command /near [<integer = 10>]:
  432. usage: {@nearusage}, {@adminperm}
  433. trigger:
  434. add player to {skentialsnear::list}
  435. loop players in radius argument 1 of the player:
  436. add loop-player to {skentialsnear::list}
  437. message "&6Players Near You&c %{skentialsnear::list}%"
  438. stop
  439. message "&cThis is Broken ATM"
  440.  
  441. command /tpall:
  442. permission: {@tpallperm}, {@adminperm}
  443. trigger:
  444. teleport all players to the player
  445. broadcast "{@tpallmessage}"
  446.  
  447. command /tp <player> [<player>]:
  448. permission: {@tpperm}, {@adminperm}
  449. trigger:
  450. if argument 2 is "":
  451. teleport player to argument 1
  452. message "{@tpmessage}"
  453. if argument 2 isn't "":
  454. teleport argument 1 to argument 2
  455. message "{@tpmessage}" to argument 1
  456.  
  457. command /tphere <player>:
  458. permission: {@tphereperm}, {@adminperm}
  459. aliases: s
  460. trigger:
  461. teleport argument 1 to the player
  462. message "{@tpheremessage}" to argument 1
  463.  
  464. command /smite [<player>]:
  465. permission: {@smiteperm}, {@adminperm}
  466. trigger:
  467. if argument 1 isn't "":
  468. strike lightning at argument 1
  469. message "{@smitemessage}"
  470. else:
  471. strike lightning at the target block
  472.  
  473. command /msg <player> <text>:
  474. permission: {@msgperm}, {@adminperm}
  475. aliases: tell, message
  476. usage: &c/msg [Player] [Message]
  477. trigger:
  478. if {@receivemessage} is true:
  479. message "{@secondarycolour}%player% {@maincolour}has sent you a message!" to argument 1
  480. wait {@receivemessagetime}
  481. message "{@maincolour}Receiving Message..." to argument 1
  482. wait {@receivemessagetime}
  483. message "{@secondarycolour}[%player%{@secondarycolour} to You] {@msg/tellcolour}%argument 2%" to argument 1
  484. else:
  485. message "{@secondarycolour}[%player%{@secondarycolour} to You] {@msg/tellcolour}%argument 2%" to argument 1
  486.  
  487. command /heal <player> [<text = "">]:
  488. permission: {@healperm}, {@adminperm}
  489. trigger:
  490. if argument 2 is "":
  491. heal argument 1
  492. add 10 to argument 1's hunger bar
  493. broadcast "{@healmessage}"
  494. message "&6You have healed &c%argument 1%"
  495. if argument 2 is "all":
  496. remove resistance, fire resistance, regeneration, poison, wither, water breathing, jump boost, speed, night vision, weakness, slowness, strength, invisibility, haste, mining fatigue, nausea, blindness and hunger from argument 1
  497. heal argument 1
  498. add 10 to argument 1's hunger bar
  499. broadcast "{@healmessage}"
  500. message "&6You have healed &c%argument 1%"
  501.  
  502. #command /spawnmob <entity type> [<integer = 1>] [<player>]:
  503. # permission: {@spawnmobperm}, {@adminperm}
  504. # aliases: mob
  505. # trigger:
  506. # if argument 2 is more than {@maxspawnamount}:
  507. # message "{@spawnerror}"
  508. # stop
  509. # if argument 2 is less than {@maxspawnamount}:
  510. # if argument 3 is "":
  511. # set {skentials.%player%.spawnamount} to argument 2
  512. # wait 1 tick
  513. # spawn {skentials.%player%}.spawnamount} of argument 1 at the target block
  514. # message "{@spawnsuccess}"
  515. # else:
  516. # set {skentials.%player%.spawnamount} to argument 2
  517. # wait 1 tick
  518. # spawn {skentials.%player%.spawnamount} of argument 1 at location of argument 3
  519. # message "{@spawnsuccess}"
  520.  
  521. command /invsee <player>:
  522. permission: {@invseeperm}, {@adminperm}
  523. trigger:
  524. open the argument 1's inventory for the player
  525.  
  526. #Moderation Commands
  527.  
  528. command /mute <player>:
  529. permission: {@muteperm}, {@adminperm}
  530. trigger:
  531. set {skentials.muted.%argument 1%} to true
  532. broadcast "{@mutemessage}"
  533.  
  534. command /unmute <player>:
  535. permission: {@muteperm}, {@adminperm}
  536. trigger:
  537. set {skentials.muted.%argument 1%} to false
  538. broadcast "{@unmutemessage}"
  539.  
  540. command /ban <player> [<text = "{@defaultbanmessage}">]:
  541. permission: {@banperm}, {@adminperm}
  542. trigger:
  543. if argument 1 has permission "{@staffperm}":
  544. message "&cYou can not ban that person"
  545. stop
  546. if argument 1 doesn't have permission "{@staffperm}":
  547. broadcast "{@banmessage}"
  548. ban argument 1
  549.  
  550. command /unban <offline player>:
  551. permission: {@unbanperm}, {@adminperm}
  552. trigger:
  553. unban argument 1
  554. broadcast "{@unbanmessage}"
  555.  
  556. command /setjail <text>:
  557. permission: {@setjailperm}, {@adminperm}
  558. trigger:
  559. set {skentials.jail.%argument 1%.location} to location of the player
  560. message "{@createdjailmessage}"
  561. add argument 1 to {skentialsjaillist::*}
  562.  
  563. command /jail <player> [<text>] [<time>]:
  564. permission: {@jailperm}, {@adminperm}
  565. trigger:
  566. if {skentials.jail.%argument 2%.location} is set:
  567. if {skentials.jailed.%argument 1%} is true:
  568. set {skentials.jailed.%argument 1%} to false
  569. teleport argument 1 to {skentials.%argument 1%.last.location}
  570. broadcast "{@unjailmessage}"
  571. delete {skentials.injail.%argument 1%}
  572. stop
  573. else:
  574. if argument 1 has permission "{@modperm}" or "{@adminperm}" or "{@staffperm}":
  575. stop
  576. if argument 1 doesn't have the permission "{@modperm}" or "{@adminperm}" or "{@staffperm}":
  577. set {skentials.jailed.%argument 1%} to true
  578. set {skentials.%argument 1%.last.location} to location of argument 1
  579. wait 1 tick
  580. teleport argument 1 to {skentials.jail.%argument 2%.location}
  581. broadcast "{@jailmessage}"
  582. add 64 steak to argument 1
  583. set {skentials.injail.%argument 1%} to "%argument 1%"
  584. stop
  585.  
  586. command /kick <player>:
  587. permission: {@kickperm}, {@adminperm}
  588. trigger:
  589. if argument 1 has permission "{@staffperm}":
  590. message "&cYou can not kick that person"
  591. stop
  592. if argument 1 doesn't have permission "{@staffperm}":
  593. kick argument 1
  594.  
  595. command /ip <player>:
  596. permission: {@viewipperm}, {@adminperm}
  597. trigger:
  598. message "{@viewipmessage}"
  599.  
  600. #Tpa Commands
  601. command /tpa <player>:
  602. permission: {@tpaperm}
  603. trigger:
  604. message "{@tpareceivemessage}" to argument 1
  605. message "{@maincolour}Request sent"
  606. set {skentials.tprequest.%player%} to true
  607. set {skentials.tptorequest.%argument 1%} to the player
  608.  
  609. command /tpaccept:
  610. trigger:
  611. if {skentials.tptorequest.%player%} is set:
  612. teleport {skentials.tptorequest.%player%} to the player
  613. message "&6Teleport Request accepted" to {skentials.tptorequest.%player%}
  614. message "&6Teleport Request accepted"
  615. delete {skentials.tprequest.%{skentials.tptorequest.%player%}%}
  616. delete {skentials.tptorequest.%player%}
  617. else:
  618. message "&6You have no Teleport Requests"
  619.  
  620. command /tpadeny:
  621. trigger:
  622. if {skentials.tptorequest.%player%} is set:
  623. message "&6Teleport Request rejected" to {skentials.tptorequest.%player%}
  624. message "&6Teleport Request rejected"
  625. delete {skentials.tprequest.%{skentials.tptorequest.%player%}%}
  626. delete {skentials.tptorequest.%player%}
  627. else:
  628. message "&6You have no Teleport Requests"
  629.  
  630. command /chat <text = "help"> [<text = "help">]:
  631. permission: {@controlchatperm}, {@adminperm}
  632. trigger:
  633. if argument 1 is "help":
  634. send "&cOptions&e; &bGlobalMute&e, &bClear"
  635. if argument 1 is "clear":
  636. loop 98 times:
  637. broadcast ""
  638. wait 1 second
  639. broadcast "&eChat Cleared by %player%"
  640. if argument 1 is "GlobalMute":
  641. if argument 2 is "on":
  642. set {chat.allowed} to false
  643. broadcast "<light red>Chat DISABLED by %player%"
  644. if argument 2 is "off":
  645. set {chat.allowed} to true
  646. broadcast "<light green>Chat ENABLED by %player%"
  647. #TRIGGERS
  648. on chat:
  649. if player has permission "skentials.chat.override" or "dvz.mod" or "dvz.moderator":
  650. stop
  651. else:
  652. if {chat.allowed} is false:
  653. cancel event
  654. send "<light red>Chat is DISABLED" to the player
  655. stop
  656. if {chat.allowed} is true:
  657. stop
  658. if {skentials.muted.%player%} is true:
  659. cancel event
  660.  
  661. #Jail Related Triggers
  662. on respawn:
  663. if {skentials.jailed.%player%} is true:
  664. wait 2 ticks
  665. teleport player to {skentials.jail.%{skentials.injail.%player%}%.location}
  666. clear the inventory of the player
  667. add 64 steak to the player
  668. stop
  669. else:
  670. stop
  671.  
  672. on rightclick:
  673. if {skentials.jailed.%player%} is true:
  674. cancel event
  675.  
  676. on break:
  677. if {skentials.jailed.%player%} is true:
  678. cancel event
  679.  
  680. on place:
  681. if {skentials.jailed.%player%} is true:
  682. cancel event
  683.  
  684. on damage:
  685. if {skentials.jailed.%player%} is true:
  686. cancel event
  687.  
  688. on food bar change:
  689. if {skentials.jailed.%player%} is true:
  690. cancel event
  691.  
  692. on drop:
  693. if {skentials.jailed.%player%} is true:
  694. cancel event
Advertisement
Add Comment
Please, Sign In to add comment