Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Config
- options:
- #%{pontos.%player%}% é a variavel dos pontos, caso for adicionar na
- #scoreboard use %{pontos.%loop-player%}% caso for a scoreboard com loop se não for use %{pontos.%player%}%
- #True = Ativado / False = Desativado
- category01: true
- category02: false
- category03: false
- category04: false
- category05: false
- category06: false
- category07: false
- category08: false
- category09: false
- category10: false
- #Mensagem ao tentar entrar em uma categoria desativada
- Menssagem-Category: &cCategoria não feita ainda, aguarde...
- #Menu Title
- menu-title: &8MineKibedShop
- #Shop Name/Lore/Item
- points-shop-name: &6Seus Pontos
- points-shop-lore: &f%{pontos.%player%}% &fPontos
- points-shop-item: gold nugget
- points-shop-slot: 4
- #Category Name/Lore/Item
- category01-name: &aBlocos
- category01-lore: &7Compre Blocos
- category01-item: grass
- category01-slot: 20
- category02-name: &c-//-
- category02-lore: &cCategoria Não Disponivel
- category02-item: iron bars
- category02-slot: 21
- category03-name: &c-//-
- category03-lore: &cCategoria Não Disponivel
- category03-item: iron bars
- category03-slot: 22
- category04-name: &c-//-
- category04-lore: &cCategoria Não Disponivel
- category04-item: iron bars
- category04-slot: 23
- category05-name: &c-//-
- category05-lore: &cCategoria Não Disponivel
- category05-item: iron bars
- category05-slot: 24
- category06-name: &c-//-
- category06-lore: &cCategoria Não Disponivel
- category06-item: iron bars
- category06-slot: 29
- category07-name: &c-//-
- category07-lore: &cCategoria Não Disponivel
- category07-item: iron bars
- category07-slot: 30
- category08-name: &c-//-
- category08-lore: &cCategoria Não Disponivel
- category08-item: iron bars
- category08-slot: 31
- category09-name: &c-//-
- category09-lore: &cCategoria Não Disponivel
- category09-item: iron bars
- category09-slot: 32
- category10-name: &c-//-
- category10-lore: &cCategoria Não Disponivel
- category10-item: iron bars
- category10-slot: 33
- #Functions
- function CheckPluginVersion(https: text) :: boolean:
- if text from url "https://pastebin.com/raw/7pjekYRn" is not "0.3":
- return false
- else:
- return true
- #Não Mexer
- variables:
- {pontos.%player%} = 0
- command /pontos [<text>] [<player>] [<integer>]:
- trigger:
- if player has permission "admin.cash":
- if arg 1 is not set:
- if arg 2 is not set:
- send "&6Você tem &f%{pontos.%player%}% &6pontos"
- if arg 1 is "enviar":
- if arg 2 is set:
- add arg 3 to {pontos.%arg-2%}
- send "&6Você enviou &f%arg-3% pontos para &f%arg-2%"
- send "&6Voce recebeu &f%arg-3% pontos de &f%player%" to arg 2
- else:
- send "&cUse /pontos enviar <nick> <quantidade>"
- if arg 1 is "remover":
- if arg 2 is set:
- remove arg 3 from {pontos.%arg-2%}
- send "&cVocê remove &f%arg-3% pontos de &f%arg-2%"
- else:
- send "&cUse /pontos remover <nick> <quantidade>"
- else:
- send "&6Você tem &f%{pontos.%player%}% &6pontos"
- #Pode Mexer
- command /shop:
- trigger:
- open chest with 6 rows named "{@menu-title}" to player
- wait 1 tick
- format slot {@points-shop-slot} of player with {@points-shop-item} named "{@points-shop-name}" with lore "{@points-shop-lore}" to be unstealable
- format slot {@category01-slot} of player with {@category01-item} named "{@category01-name}" with lore "{@category01-lore}" to close then run [execute player command "/category 01"]
- format slot {@category02-slot} of player with {@category02-item} named "{@category02-name}" with lore "{@category02-lore}" to close then run [execute player command "/category 02"]
- format slot {@category03-slot} of player with {@category03-item} named "{@category03-name}" with lore "{@category03-lore}" to close then run [execute player command "/category 03"]
- format slot {@category04-slot} of player with {@category04-item} named "{@category04-name}" with lore "{@category04-lore}" to close then run [execute player command "/category 04"]
- format slot {@category05-slot} of player with {@category05-item} named "{@category05-name}" with lore "{@category05-lore}" to close then run [execute player command "/category 05"]
- format slot {@category06-slot} of player with {@category06-item} named "{@category06-name}" with lore "{@category06-lore}" to close then run [execute player command "/category 06"]
- format slot {@category07-slot} of player with {@category07-item} named "{@category07-name}" with lore "{@category07-lore}" to close then run [execute player command "/category 07"]
- format slot {@category08-slot} of player with {@category08-item} named "{@category08-name}" with lore "{@category08-lore}" to close then run [execute player command "/category 08"]
- format slot {@category09-slot} of player with {@category09-item} named "{@category09-name}" with lore "{@category09-lore}" to close then run [execute player command "/category 09"]
- format slot {@category10-slot} of player with {@category10-item} named "{@category10-name}" with lore "{@category10-lore}" to close then run [execute player command "/category 10"]
- command /comprar [<text>]:
- trigger:
- if arg 1 is "bloco01":
- if {pontos.%player%} >= 3:
- remove 3 from {pontos.%player%}
- execute console command "/give %player% grass 64"
- send "&6Você comprou &aBloco de Grama &8x64 &6por 3 pontos"
- else:
- send "&cVocê não tem pontos suficientes!"
- #Acceptcommand
- command /category [<integer>]:
- trigger:
- if arg 1 is 01:
- if {@category01} is true:
- invoke "category01" from player
- else:
- send "{@Menssagem-Category}"
- if arg 1 is 02:
- if {@category02} is true:
- invoke "category02" from player
- else:
- send "{@Menssagem-Category}"
- if arg 1 is 03:
- if {@category03} is true:
- invoke "category03" from player
- else:
- send "{@Menssagem-Category}"
- if arg 1 is 04:
- if {@category04} is true:
- invoke "category04" from player
- else:
- send "{@Menssagem-Category}"
- if arg 1 is 05:
- if {@category05} is true:
- invoke "category05" from player
- else:
- send "{@Menssagem-Category}"
- if arg 1 is 06:
- if {@category06} is true:
- invoke "category06" from player
- else:
- send "{@Menssagem-Category}"
- if arg 1 is 07:
- if {@category07} is true:
- invoke "category07" from player
- else:
- send "{@Menssagem-Category}"
- if arg 1 is 08:
- if {@category08} is true:
- invoke "category08" from player
- else:
- send "{@Menssagem-Category}"
- if arg 1 is 09:
- if {@category09} is true:
- invoke "category09" from player
- else:
- send "{@Menssagem-Category}"
- if arg 1 is 10:
- if {@category10} is true:
- invoke "category10" from player
- else:
- send "{@Menssagem-Category}"
- on load:
- if file "plugins/MineShop/info.yml" doesn't exists:
- create file "plugins/MineShop/info.yml"
- send "&8[&6MineShop&8] &cPasta MineShop ainda não criada, criando..." to console
- wait 2 seconds
- send "&8[&6MineShop&8] &aPasta MineShop criada!" to console
- send "&8[&6MineShop&8] &aDiretorio &6plugins/MineShop/info.txt" to console
- set "Info.Name" to "SKMineShop" in yaml file "plugins/MineShop/info.yml"
- set "Info.Version" to "0.2" in yaml file "plugins/MineShop/info.yml"
- set "Info.Author" to "MrBrun0_ // Brun0MasterBR" in yaml file "plugins/MineShop/info.yml"
- set "Info.Description" to "Skript/Plugin in shop gui" in yaml file "plugins/MineShop/info.yml"
- set "Info.Versione" to "Skript in fase Beta" in yaml file "plugins/MineShop/info.yml"
- set "Info.Diretory" to "plugins/Skript/scripts/Cash.sk" in yaml file "plugins/MineShop/info.yml"
- set "Info.Suport" to " " in yaml file "plugins/MineShop/info.yml"
- set "Info.Email" to "Email: [email protected]" in yaml file "plugins/MineShop/info.yml"
- set "Info.Skype" to "Skype: [email protected]" in yaml file "plugins/MineShop/info.yml"
- else:
- send "&8[&6MineShop&8] &cPasta MineShop encontrada..." to console
- on load:
- set {_ver} to CheckPluginVersion("HTTPS")
- if {_ver} is true:
- send "&8[&6MineShop&8] &aSeu Plugin esta Atualizado. Versão atual: 0.3" to console
- else:
- send "&8[&6MineShop&8] &cSeu Plugin esta Desatualizado. Acesse www.youtube.com/brun0masterbr" to console
- on join:
- set {_ver} to CheckPluginVersion("HTTPS")
- if {_ver} is false:
- if player has permission "admin.server":
- send "&8[&6MineShop&8] &cSeu Plugin esta Desatualizado. Acesse www.youtube.com/brun0masterbr" to player
- send "&8[&6MineShop&8] &cSeu Plugin esta Desatualizado. Acesse www.youtube.com/brun0masterbr" to console
Advertisement
Add Comment
Please, Sign In to add comment