Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: &8[&3SERVER&8]&r
- noperm: &cUzgunum, Yetkiniz yok!
- # Kit Ayarlama Yeri Ayarlari Ayarlamalari Yukaridan ve Bu Kisimdan Yapabilirsin Diger Yerlere Bilgin Yoksa Dokunmani Onermem.
- jointogive: true
- deathtogive: true
- sword.slot: 0
- fns.slot: 1
- fishingrod.slot: 2
- bow.slot: 3
- helmet.mat: chain
- chestplate.mat: iron
- leggings.mat: iron
- boots.mat: iron
- sword.mat: iron
- sword.name: &7Katil Kilici
- sword.lorename: &6Git ve birilerini oldur!
- fns.name: &cYa&6ni&eci
- fns.lorename: &6Lutfen kendini yakma
- fishingrod.name: &9Dusman kovucu
- fishingrod.lorename: &6Kendini itmeye calis
- bow.name: &4AWP | Dragon Lore
- bow.lorename: &6360 no scope
- arrow.number: 15
- arrow.number.save: 16
- arrow.slot: 8
- arrow.name: &2Green Arrow
- arrow.lorename: &6Hacker yok edici
- on rightclick on sign:
- line 3 of the clicked block is "&8[&eKit Ayarla&8]":
- make player execute command "/starterkit save"
- stop
- line 3 of the clicked block is "&8[&eKit Sıfırla&8]":
- make player execute command "/starterkit unsave"
- stop
- line 3 of the clicked block is "&8[&eKit Al&8]":
- execute console command "/strtdsjfsdfs %player%"
- stop
- on join:
- if {@jointogive} is true:
- wait 1 seconds
- if {starterkit.saved.%player%} is not set:
- set slot {@sword.slot} of player to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
- set slot {@fns.slot} of player to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
- set slot {@fishingrod.slot} of player to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
- set slot {@bow.slot} of player to bow named "{@bow.name}" with lore "{@bow.lorename}"
- set slot {@arrow.slot} of player to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
- equip player with {@helmet.mat} helmet
- equip player with {@chestplate.mat} chestplate
- equip player with {@leggings.mat} leggings
- equip player with {@boots.mat} boots
- stop
- else if {starterkit.saved.%player%} is true:
- equip player with {@helmet.mat} helmet
- equip player with {@chestplate.mat} chestplate
- equip player with {@leggings.mat} leggings
- equip player with {@boots.mat} boots
- set {_slot} to 0
- loop 36 times:
- set slot {_slot} of player to {kitinv.%{_slot}%.%player%}
- add 1 to {_slot}
- set slot 0 of player to {kitinv.slotzero.%player%}
- stop
- else:
- wait 5 tick
- clear the player's inventory
- heal the player
- stop
- on death of player:
- if {@deathtogive} is true:
- clear the victim's inventory
- wait 5 tick seconds
- heal the victim
- if {starterkit.saved.%victim%} is not set:
- set slot {@sword.slot} of victim to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
- set slot {@fns.slot} of victim to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
- set slot {@fishingrod.slot} of victim to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
- set slot {@bow.slot} of victim to bow named "{@bow.name}" with lore "{@bow.lorename}"
- set slot {@arrow.slot} of victim to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
- equip victim with {@helmet.mat} helmet
- equip victim with {@chestplate.mat} chestplate
- equip victim with {@leggings.mat} leggings
- equip victim with {@boots.mat} boots
- stop
- else if {starterkit.saved.%victim%} is set:
- equip victim with {@helmet.mat} helmet
- equip victim with {@chestplate.mat} chestplate
- equip victim with {@leggings.mat} leggings
- equip victim with {@boots.mat} boots
- set {_slot} to 0
- loop 36 times:
- set slot {_slot} of player to {kitinv.%{_slot}%.%victim%}
- add 1 to {_slot}
- set slot 0 of victim to {kitinv.slotzero.%victim%}
- stop
- else if {@deathtogive} is false:
- wait 5 tick
- clear the victim's inventory
- heal the victim
- stop
- command /starterkit [<text>] [<player>]:
- trigger:
- if arg 1 is not "load" or "save" or "unsave" or "unsaveall":
- send "{@prefix} &cYou did something wrong&8."
- stop
- if arg 1 is not set:
- send "{@prefix} &6Starterkit Commands"
- if player has the permission "starterkit.give":
- send "{@prefix} &7/starterkit load &8(&7<player>&8)"
- send "{@prefix} &7/starterkit unsaveall"
- send "{@prefix} &7/starterkit save"
- send "{@prefix} &7/starterkit unsave"
- stop
- if arg 1 is "load":
- if player has the permission "starterkit.give":
- if arg 2 is not set:
- if {kitinv.saved.%player%} is not set:
- clear the player's inventory
- message "{@prefix} &2Your starter kit succesfully loaded&8." to player
- set slot {@sword.slot} of player to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
- set slot {@fns.slot} of player to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
- set slot {@fishingrod.slot} of player to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
- set slot {@bow.slot} of player to bow named "{@bow.name}" with lore "{@bow.lorename}"
- set slot {@arrow.slot} of player to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
- equip player with {@helmet.mat} helmet
- equip player with {@chestplate.mat} chestplate
- equip player with {@leggings.mat} leggings
- equip player with {@boots.mat} boots
- stop
- else if {kitinv.saved.%player%} is set:
- message "{@prefix} &2Your starter kit succesfully loaded&8." to player
- clear the player's inventory
- equip player with {@helmet.mat} helmet
- equip player with {@chestplate.mat} chestplate
- equip player with {@leggings.mat} leggings
- equip player with {@boots.mat} boots
- set {_slot} to 0
- loop 36 times:
- set slot {_slot} of player to {kitinv.%{_slot}%.%player%}
- add 1 to {_slot}
- set slot 0 of player to {kitinv.slotzero.%player%}
- stop
- if arg 2 is set:
- if {kitinv.saved.%arg 2%} is not set:
- clear the arg 2's inventory
- message "{@prefix} &2%arg 2%'s starter kit succesfully loaded&8." to player
- message "{@prefix} &2Your starter kit succesfully loaded&8." to arg 2
- set slot {@sword.slot} of arg 2 to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
- set slot {@fns.slot} of arg 2 to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
- set slot {@fishingrod.slot} of arg 2 to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
- set slot {@bow.slot} of arg 2 to bow named "{@bow.name}" with lore "{@bow.lorename}"
- set slot {@arrow.slot} of arg 2 to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
- equip arg 2 with {@helmet.mat} helmet
- equip arg 2 with {@chestplate.mat} chestplate
- equip arg 2 with {@leggings.mat} leggings
- equip arg 2 with {@boots.mat} boots
- stop
- else if {kitinv.saved.%arg 2%} is true:
- message "{@prefix} &2%arg 2%'s starter kit succesfully loaded&8." to player
- message "{@prefix} &2Your starter kit succesfully loaded&8." to arg 2
- clear the arg 2's inventory
- equip arg 2 with {@helmet.mat} helmet
- equip arg 2 with {@chestplate.mat} chestplate
- equip arg 2 with {@leggings.mat} leggings
- equip arg 2 with {@boots.mat} boots
- set {_slot} to 0
- loop 36 times:
- set slot {_slot} of arg 2 to {kitinv.%{_slot}%.%arg 2%}
- add 1 to {_slot}
- set slot 0 of arg 2 to {kitinv.slotzero.%arg 2%}
- stop
- else:
- send "{@prefix} {@noperm}"
- if arg 1 is "save":
- if arg 2 is not set:
- if {save.available.%player%} is true:
- if player has 1 {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}":
- if player has 1 flint and steel named "{@fns.name}" with lore "{@fns.lorename}":
- if player has 1 bow named "{@bow.name}" with lore "{@bow.lorename}":
- if player has {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}":
- set {_kitinvslot} to 0
- loop 36 times:
- set {kitinv.%{_slot}%.%player%} to slot {_slot} of player
- add 1 to {_slot}
- set {kitinv.saved.%player%} to true
- set {kitinv.slotzero.%player%} to slot 0 of player
- wait 5 ticks
- send "{@prefix} &cLoading..."
- wait 10 ticks
- send "{@prefix} &eYou've successfully saved your inventory!"
- stop
- else:
- send "{@prefix} &cYou cannot save your inventory with unlisted items!"
- else:
- send "{@prefix} &cYou cannot save your inventory with unlisted items!"
- else:
- send "{@prefix} &cYou cannot save your inventory with unlisted items!"
- else:
- send "{@prefix} &cYou cannot save your inventory with unlisted items!"
- else:
- send "{@prefix} &cYou cannot save your inventory in unavailable!"
- if arg 1 is "unsave":
- delete {kitinv.saved.%player%}
- wait 5 ticks
- send "{@prefix} &cLoading..."
- wait 10 ticks
- clear the player's inventory
- set slot {@sword.slot} of player to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
- set slot {@fns.slot} of player to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
- set slot {@fishingrod.slot} of player to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
- set slot {@bow.slot} of player to bow named "{@bow.name}" with lore "{@bow.lorename}"
- set slot {@arrow.slot} of player to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
- equip player with {@helmet.mat} helmet
- equip player with {@chestplate.mat} chestplate
- equip player with {@leggings.mat} leggings
- equip player with {@boots.mat} boots
- send "{@prefix} &eYou've successfully unsaved your inventory!"
- stop
- if arg 1 is "unsaveall":
- if player has the permission "strtrkt.give":
- loop all players:
- delete {kitinv.saved.%loop-player%}
- wait 5 ticks
- send "{@prefix} &cLoading..."
- wait 10 ticks
- loop all players:
- clear the loop-player's inventory
- set slot {@sword.slot} of loop-player to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
- set slot {@fns.slot} of loop-player to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
- set slot {@fishingrod.slot} of loop-player to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
- set slot {@bow.slot} of loop-player to bow named "{@bow.name}" with lore "{@bow.lorename}"
- set slot {@arrow.slot} of loop-player to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
- equip loop-player with {@helmet.mat} helmet
- equip loop-player with {@chestplate.mat} chestplate
- equip loop-player with {@leggings.mat} leggings
- equip loop-player with {@boots.mat} boots
- send "{@prefix} &eYou've successfully unsaved your inventory!"
- stop
- else:
- send "{@prefix} {@noperm}"
- command /strtdsjfsdfs [<player>]:
- permission: console.yetki
- executable by: console
- trigger:
- if {kitinv.saved.%arg 1%} is not set:
- clear the arg 1's inventory
- message "{@prefix} &2%arg 1%'s starter kit succesfully loaded&8." to player
- message "{@prefix} &2Your starter kit succesfully loaded&8." to arg 1
- set slot {@sword.slot} of arg 1 to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
- set slot {@fns.slot} of arg 1 to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
- set slot {@fishingrod.slot} of arg 1 to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
- set slot {@bow.slot} of arg 1 to bow named "{@bow.name}" with lore "{@bow.lorename}"
- set slot {@arrow.slot} of arg 1 to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
- equip arg 1 with {@helmet.mat} helmet
- equip arg 1 with {@chestplate.mat} chestplate
- equip arg 1 with {@leggings.mat} leggings
- equip arg 1 with {@boots.mat} boots
- stop
- else if {kitinv.saved.%arg 1%} is true:
- message "{@prefix} &2Your starter kit succesfully loaded&8." to arg 1
- clear the arg 1's inventory
- equip arg 1 with {@helmet.mat} helmet
- equip arg 1 with {@chestplate.mat} chestplate
- equip arg 1 with {@leggings.mat} leggings
- equip arg 1 with {@boots.mat} boots
- set {_slot} to 0
- loop 36 times:
- set slot {_slot} of arg 1 to {kitinv.%{_slot}%.%arg 1%}
- add 1 to {_slot}
- set slot 0 of arg 1 to {kitinv.slotzero.%arg 1%}
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement