Aller au contenu

Messages recommandés

Posté(e)

Voilà j'ai créer un skript pour le kit mais je n'arrive pas à mettre les permissions sur chaque kit pour ensuite mettre les permissions à un grade précis du serveur Minecraft. Merci de m'aider

 

Mon Skript:

 

options:

name: &9[&cKit&9]

cooldown: 30 seconds

guerrier: &4[Kit Guerrier]

archer: &9[Kit Archer]

on drop:

cancel event

message "&c&oVous ne pouvez pas drop d'items ici..." to player

on death:

if victim is a player:

clear drops

command /kit [<text>]:

trigger:

if arg 1 is not set:

message "{@name} &bKits disponibles (&c2&b) : &a&oGuerrier, Archer."

if arg 1 is "guerrier":

set {_wait} to difference between {kit.%player%.lastused} and now

if {_wait} is less than {@cooldown}:

message "{@name} &4Vous devez attendre avant d'utilisé un kit (&c&o%{_wait}%/30 secondes&4)"

else:

message "{@name} &bReçu : &a&oKit Guerrier"

clear player's inventory

set slot 0 of player's inventory to a diamond sword named "{@guerrier}"

enchant the player's slot 0 with sharpness 2

set slot 8 of player's inventory to 16 steak named "{@guerrier}"

set slot 36 of player's inventory to iron boots named "{@guerrier}"

set slot 37 of player's inventory to iron leggings named "{@guerrier}"

set slot 38 of player's inventory to iron chestplate named "{@guerrier}"

enchant the player's slot 38 with protection 1

set slot 39 of player's inventory to iron helmet named "{@guerrier}"

set {kit.%player%.lastused} to now

if arg 1 is "archer":

set {_wait} to difference between {kit.%player%.lastused} and now

if {_wait} is less than {@cooldown}:

message "{@name} &4Vous devez attendre avant d'utilisé ce kit (&c&o%{_wait}%/30 secondes&4)"

else:

message "{@name} &bReçu : &a&oKit Archer"

clear player's inventory

set slot 0 of player's inventory to a bow named "{@archer}"

enchant the player's slot 0 with power 2

set slot 1 of player's inventory to stone sword named "{@archer}"

enchant the player's slot 1 with knockback 2

set slot 7 of player's inventory to 32 arrow named "{@archer}"

set slot 8 of player's inventory to 16 steak named "{@archer}"

set slot 36 of player's inventory to iron boots named "{@archer}"

set slot 37 of player's inventory to iron leggings named "{@archer}"

set slot 38 of player's inventory to golden chestplate named "{@archer}"

enchant the player's slot 38 with protection 1

set slot 39 of player's inventory to iron helmet named "{@archer}"

set {kit.%player%.lastused} to now

Posté(e)

tu rajoutes la condition "if player have permission "nomdelapermission" "

exemple:

 

command /exemple [<text>]:
       trigger:
               if arg 1 is "test":
                       if player have permission "exemple.sk":
                            send ":)" to player

#Tu peux aussi regarder si il a plusieurs permissions

command /exemple [<text>]:
       trigger:
               if arg 1 is "test":
                       if player have permission "exemple.sk" or "exemple2":
                           send ":)" to player

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.