sora200507

Untitled

Feb 2nd, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.14 KB | None | 0 0
  1. #|----------------------------------------------------------------------|
  2. #| _ ______ ____ __ __ __ _____ ___ |
  3. #| (_) / ____/ _____ ____ _ / __/ / /_ / //_/ / ___/ / ||
  4. #| / / / / / ___/ / __ `/ / /_ / __/ / ,< \__ \ / /| ||
  5. #| / / / /___ / / / /_/ / / __/ / /_ / /| | ___/ / / ___ ||
  6. #|/_/ \____/ /_/ \__,_/ /_/ \__/ /_/ |_| /____/ /_/ |_||
  7. #| Skript Made By iCraftKSA - Skype: craftksa.0503 |
  8. #| I'll make custom skripts for you, if you contact me :) |
  9. #|----------------------------------------------------------------------|
  10. #===========================================================================================#
  11. # {You Can copy any part of the skript but add my credits to it pls :3} #
  12. #===========================================================================================#
  13. on load:
  14. send "&b[&eiCraftKSA-%script%&b] &ahas been &a&lENABLED" to console
  15. send "&b[&eiCraftKSA-%script%&b] &aCreated by iCraftKSA" to console
  16. send "&b[&eiCraftKSA-%script%&b] &aSkype: &acraftksa.0503" to console
  17. on unload:
  18. send "&b[&eiCraftKSA-%script%&b] &ahas been &c&lDISABLED" to console
  19. # ========= Config HERE ========= #
  20. Options:
  21. SkriptPrefix: &7[&5DeathLocker&7]&f # Prefix #
  22. Message_On_Respawn: &7Wait until Items are loaded # Message #
  23. Message_Warning: &7If you open the locker and closed it all the items inside will be lost forever! # Message #
  24. Message_NoPerm: &7You got no permission # Message #
  25. ItemOnRespawn: chest # What kinda of items #
  26. ItemOnRespawnName: &b&lLocker # Item Name on respawn. #
  27. GUINameOnOpen: &b&lLocker %player% # GUI Name #
  28. NotSet: &7Something went wrong, use command /DeathLocker True or False # Message #
  29. SetTrue: &7You have enabled &5DeathLocker &7Now on death of player it will drop only enchanted items # Message #
  30. SetFalse: &7You have disabled &5DeathLocker, now everything will be dropped # Message #
  31. Permission: Death.locker # Permission to keep inventory #
  32. Permission.admin: death.locker.admin # Keep %player% don't remove it otherwise it will break the skript #
  33. ItemToKeepInventory: false # It's Disabled, you can enable it from here #
  34. # ========= Config Ends HERE ========= #
  35. #===========================================================================================#
  36. # {You Can copy any part of the skript but add my credits to it pls :3} #
  37. #===========================================================================================#
  38. on death of a player:
  39. loop drops:
  40. set {chargeback.%uuid of victim%::*} to drops
  41. if player has permission "{@Permission}":
  42. clear drops
  43. set {chargeback.enabled.%uuid of victim%} to true
  44. stop
  45. if {ClearNoneEnchantedItems} is true:
  46. if loop-item is not enchanted:
  47. remove loop-item from drops
  48. command /Deathlocker [<text>]:
  49. permission: {@Permission.admin}
  50. trigger:
  51. if arg-1 is "true":
  52. set {ClearNoneEnchantedItems} to true
  53. message "{@SkriptPrefix}: {@SetTrue}"
  54. stop
  55. if arg-1 is "false":
  56. set {ClearNoneEnchantedItems} to false
  57. message "{@SkriptPrefix}: {@SetFalse}"
  58. stop
  59. if arg-1 isn't set:
  60. message "{@SkriptPrefix}: {@NotSet}"
  61. if arg-1 is "reload":
  62. make console execute command "/sk reload %script%"
  63. #===========================================================================================#
  64. # {You Can copy any part of the skript but add my credits to it pls :3} #
  65. #===========================================================================================#
  66. on respawn:
  67. if player has permission "{@Permission}":
  68. message "{@SkriptPrefix}: {@Message_On_Respawn}"
  69. add {chargeback.%uuid of player%::*} to {chestlocker.%uuid of player%::*}
  70. wait 50 tick
  71. give {@ItemOnRespawn} named "{@ItemOnRespawnName}" to player
  72. wait 20 tick
  73. delete {chargeback.%uuid of player%::*}
  74. message "{@SkriptPrefix}: {@Message_Warning}"
  75. set {chargeback.enabled.%uuid of player%} to false
  76. delete {skipthisdeath.%uuid of player%}
  77. #===========================================================================================#
  78. # {You Can copy any part of the skript but add my credits to it pls :3} #
  79. #===========================================================================================#
  80. on right click:
  81. if player's tool is {@ItemOnRespawn} named "{@ItemOnRespawnName}":
  82. cancel event
  83. if player has permission "{@Permission}":
  84. open chest with 6 row named "{@GUINameOnOpen}" to player
  85. wait 5 ticks
  86. while inventory name of player's current inventory is "{@GUINameOnOpen}":
  87. add {chestlocker.%uuid of player%::*} to player's current inventory
  88. wait 1 tick
  89. remove 1 of {@ItemOnRespawn} named "{@ItemOnRespawnName}" from player
  90. delete {chestlocker.%uuid of player%::*}
  91. else:
  92. message "{@SkriptPrefix}: {@Message_NoPerm}"
  93. remove 1 of {@ItemOnRespawn} named "{@ItemOnRespawnName}" from player
  94. #===========================================================================================#
  95. # If you need help editing this skript contact me and i'll do it for free #
  96. #===========================================================================================#
Add Comment
Please, Sign In to add comment