Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #|----------------------------------------------------------------------|
- #| _ ______ ____ __ __ __ _____ ___ |
- #| (_) / ____/ _____ ____ _ / __/ / /_ / //_/ / ___/ / ||
- #| / / / / / ___/ / __ `/ / /_ / __/ / ,< \__ \ / /| ||
- #| / / / /___ / / / /_/ / / __/ / /_ / /| | ___/ / / ___ ||
- #|/_/ \____/ /_/ \__,_/ /_/ \__/ /_/ |_| /____/ /_/ |_||
- #| Skript Made By iCraftKSA - Skype: craftksa.0503 |
- #| I'll make custom skripts for you, if you contact me :) |
- #|----------------------------------------------------------------------|
- #===========================================================================================#
- # {You Can copy any part of the skript but add my credits to it pls :3} #
- #===========================================================================================#
- on load:
- send "&b[&eiCraftKSA-%script%&b] &ahas been &a&lENABLED" to console
- send "&b[&eiCraftKSA-%script%&b] &aCreated by iCraftKSA" to console
- send "&b[&eiCraftKSA-%script%&b] &aSkype: &acraftksa.0503" to console
- on unload:
- send "&b[&eiCraftKSA-%script%&b] &ahas been &c&lDISABLED" to console
- # ========= Config HERE ========= #
- Options:
- SkriptPrefix: &7[&5DeathLocker&7]&f # Prefix #
- Message_On_Respawn: &7Wait until Items are loaded # Message #
- Message_Warning: &7If you open the locker and closed it all the items inside will be lost forever! # Message #
- Message_NoPerm: &7You got no permission # Message #
- ItemOnRespawn: chest # What kinda of items #
- ItemOnRespawnName: &b&lLocker # Item Name on respawn. #
- GUINameOnOpen: &b&lLocker %player% # GUI Name #
- NotSet: &7Something went wrong, use command /DeathLocker True or False # Message #
- SetTrue: &7You have enabled &5DeathLocker &7Now on death of player it will drop only enchanted items # Message #
- SetFalse: &7You have disabled &5DeathLocker, now everything will be dropped # Message #
- Permission: Death.locker # Permission to keep inventory #
- Permission.admin: death.locker.admin # Keep %player% don't remove it otherwise it will break the skript #
- ItemToKeepInventory: false # It's Disabled, you can enable it from here #
- # ========= Config Ends HERE ========= #
- #===========================================================================================#
- # {You Can copy any part of the skript but add my credits to it pls :3} #
- #===========================================================================================#
- on death of a player:
- loop drops:
- set {chargeback.%uuid of victim%::*} to drops
- if player has permission "{@Permission}":
- clear drops
- set {chargeback.enabled.%uuid of victim%} to true
- stop
- if {ClearNoneEnchantedItems} is true:
- if loop-item is not enchanted:
- remove loop-item from drops
- command /Deathlocker [<text>]:
- permission: {@Permission.admin}
- trigger:
- if arg-1 is "true":
- set {ClearNoneEnchantedItems} to true
- message "{@SkriptPrefix}: {@SetTrue}"
- stop
- if arg-1 is "false":
- set {ClearNoneEnchantedItems} to false
- message "{@SkriptPrefix}: {@SetFalse}"
- stop
- if arg-1 isn't set:
- message "{@SkriptPrefix}: {@NotSet}"
- if arg-1 is "reload":
- make console execute command "/sk reload %script%"
- #===========================================================================================#
- # {You Can copy any part of the skript but add my credits to it pls :3} #
- #===========================================================================================#
- on respawn:
- if player has permission "{@Permission}":
- message "{@SkriptPrefix}: {@Message_On_Respawn}"
- add {chargeback.%uuid of player%::*} to {chestlocker.%uuid of player%::*}
- wait 50 tick
- give {@ItemOnRespawn} named "{@ItemOnRespawnName}" to player
- wait 20 tick
- delete {chargeback.%uuid of player%::*}
- message "{@SkriptPrefix}: {@Message_Warning}"
- set {chargeback.enabled.%uuid of player%} to false
- delete {skipthisdeath.%uuid of player%}
- #===========================================================================================#
- # {You Can copy any part of the skript but add my credits to it pls :3} #
- #===========================================================================================#
- on right click:
- if player's tool is {@ItemOnRespawn} named "{@ItemOnRespawnName}":
- cancel event
- if player has permission "{@Permission}":
- open chest with 6 row named "{@GUINameOnOpen}" to player
- wait 5 ticks
- while inventory name of player's current inventory is "{@GUINameOnOpen}":
- add {chestlocker.%uuid of player%::*} to player's current inventory
- wait 1 tick
- remove 1 of {@ItemOnRespawn} named "{@ItemOnRespawnName}" from player
- delete {chestlocker.%uuid of player%::*}
- else:
- message "{@SkriptPrefix}: {@Message_NoPerm}"
- remove 1 of {@ItemOnRespawn} named "{@ItemOnRespawnName}" from player
- #===========================================================================================#
- # If you need help editing this skript contact me and i'll do it for free #
- #===========================================================================================#
Add Comment
Please, Sign In to add comment