Aller au contenu
  • 0

Skript Commande/op


Question

Posté(e)

Bonjour, j'ai fait un skript pour que les personnes étant op pour vent avoir accès au commande mais si la personne n'est pas op, ça lui return un message

voila le code:

on command "plugins":

if player is op:

execute command

else:

cancel event

send "&a&l<&c&lWolf_Crew&a&l> &f&lT'es trop curieux toi !"

 

on command "plugin":

cancel event

send "&a&l<&c&lWolf_Crew&a&l> &f&lT'es trop curieux toi !"

 

on command "pl":

if player is op:

execute command

else:

cancel event

send "&a&l<&c&lWolf_Crew&a&l> &f&lT'es trop curieux toi !"

 

Le code marche, si je suis op j'ai accès au commandes et si je ne le suis pas non mais j'ai un message d'erreur:

Voir image

3 réponses à cette question

Messages recommandés

  • 0
Posté(e)
on command:
   command is "pl" or "plugin" or "plugins" or "?" or "about" or "bukkit:plugins" or "bukkit:pl" or "bukkit:about" or "bukkit:?":
       if player is op:
           stop
       else:
           cancel event
           send "&a&l<&c&lWolf_Crew&a&l> &f&lT'es trop curieux toi !"

  • J'aime 1
  • 0
Posté(e)
on command:
   command is "pl" or "plugin" or "plugins" or "?" or "about" or "bukkit:plugins" or "bukkit:pl" or "bukkit:about" or "bukkit:?":
       if player is op:
           stop
       else:
           cancel event
           send "&a&l<&c&lWolf_Crew&a&l> &f&lT'es trop curieux toi !"

Merci, Ton code faite la même chose mais lui il n'as pas d'erreur ;)

  • 0
Posté(e)

Tu peux encore le simplifier si tu le souhaites :

 

command /pl:
   aliases : #toutes le commandes que tu veux bloquer
   trigger:
       if player is not op:
          cancel event
          send "Mes plugins ne te regardent pas ! :D"

×
×
  • 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.