Aller au contenu
  • 0

Aide sur un temps


Question

Posté(e)

Bonjour. Voici mon erreur.

http://www.noelshack.com/2016-45-1478875852-img-11112016-154627.png

 

Le but étant de voir la date à laquelle le joueur fût banni.

Voici mon code

options:
   BanniKickMsg: "&c&lVous avez été banni d'Eryzia !%nl%%nl%%nl%&7Raison: &c%{ban.reason.%uuid of arg 1%}%.%nl%&7Par: &c%{ban.author.%uuid of arg 1%}%%nl%&7Banni le : &6%{day.ban.%uuid of player%}% / %{month.ban.%uuid of player%}% /%{year.ban.%uuid of player%}% %nl%&7Si vous n'êtes pas d'accord, prenez un screen et allez sur le forum."

command /ban <offlineplayer> <text>:
   permission: mod.ban   
   trigger:
       if arg 1 is not set:
           send "&4[&cEryGuard&4] &cLe joueur n'est pas spécifié!"
       else:
           if {banni.%arg 1%} is set:
               send "{@Préfixe} Le joueur &5%arg 1% &cest déjà banni. :)"
               stop trigger
           if arg 1 have permission "freeze.except":
               send "&4[&cEryGuard&4] &cNice try! Tu ne peux pas bannir ce joueur ;-)"
           else:
               if arg 2 is not set:
                   if command sender is the console:
                       set {_sender} to "La console"
                       kick arg 1 due to {@BanMsg}
                   if command sender is a player:
                       set {_sender} to "%player%"
                       kick arg 1 due to {@BanMsg}
               else:
                   if command sender is the console:
                       set {_sender} to "La console"
                       wait 0.5 tick
                       set {ban.author.%uuid of arg 1%} to "%{_sender}%"
                       set {ban.reason.%uuid of arg 1%} to "%arg 2%"
                       add 1 to {bans.%uuid of player%::*}
                       set {last.ban.%arg 1%} to "Non spécifié"
                       set {banni.%arg 1%} to true
                       set {dateban.%uuid of player%} to now
                       kick arg 1 due to {@BanMsg}
                       broadcast "{@Préfixe} &5%{_sender}% &ca banni &5%arg 1% &cpour : %arg 2%"
                   else:
                       set {_sender} to "%player%"
                       wait 0.5 tick
                       set {ban.author.%uuid of arg 1%} to "%{_sender}%"
                       set {ban.reason.%uuid of arg 1%} to "%arg 2%"
                       add 1 to {bans.%uuid of player%::*}
                       set {last.ban.%arg 1%} to arg 2
                       set {banni.%arg 1%} to true
                       set {day.ban.%uuid of player%} to "%day%"
                       set {month.ban.%uuid of player%} to "%month%"
                       set {year.ban.%uuid of player%} to "%year%"
                       kick arg 1 due to {@BanMsg}
                       broadcast "{@Préfixe} &5%{_sender}% &ca banni &5%arg 1% &cpour : %arg 2%"
on join:
   if {banni.%player%} is true:
       set join message to ""
       wait 1 second
       kick player due to {@BanniKickMsg}
   else:
       set join message to "&6[&a+&6] &f%player%"
on quit:
   if {banni.%player%} is true:
       set quit message to ""
   else:
       set quit message to "&6[&c-&6] &f%player%"

 

Merci pour votre aide.

4 réponses à cette question

Messages recommandés

  • 0
Posté(e)
options:
   BanniKickMsg: "&c&lVous avez été banni d'Eryzia !%nl%%nl%%nl%&7Raison: &c%{ban.reason.%uuid of player%}%.%nl%&7Par: &c%{ban.author.%uuid of player%}%%nl%&7Banni le :  %{dateban.%uuid of player%}%%nl%&7Si vous n'êtes pas d'accord, prenez un screen et allez sur le forum."

command /ban <offlineplayer> <text>:
   permission: mod.ban  
   trigger:
       if arg 1 is not set:
           send "&4[&cEryGuard&4] &cLe joueur n'est pas spécifié!"
       else:
           if {banni.%arg 1%} is set:
               send "{@Préfixe} Le joueur &5%arg 1% &cest déjà banni. :)"
               stop trigger
           if arg 1 have permission "freeze.except":
               send "&4[&cEryGuard&4] &cNice try! Tu ne peux pas bannir ce joueur ;-)"
           else:
               if arg 2 is not set:
                   if command sender is the console:
                       set {_sender} to "La console"
                       kick arg 1 due to {@BanMsg}
                   if command sender is a player:
                       set {_sender} to "%player%"
                       kick arg 1 due to {@BanMsg}
               else:
                   if command sender is the console:
                       set {_sender} to "La console"
                   else:
                           set {_sender} to "%player%"
                   wait 0.5 tick
                   set {ban.author.%uuid of arg 1%} to "%{_sender}%"
                   set {ban.reason.%uuid of arg 1%} to "%arg 2%"
                   add 1 to {bans.%uuid of arg 1%::*}
                   set {last.ban.%uuid of arg 1%} to "Non spécifié"
                   set {banni.%uuid of arg 1%} to true
                   set {dateban.%uuid of arg 1%} to "%now%:%seconds%"
                   kick arg 1 due to {@BanMsg}
                   broadcast "{@Préfixe} &5%{_sender}% &ca banni &5%arg 1% &cpour : %arg 2%"

on join:
   if {banni.%player%} is true:
       set join message to ""
       wait 1 second
       kick player due to {@BanniKickMsg}
   else:
       set join message to "&6[&a+&6] &f%player%"
on quit:
   if {banni.%player%} is true:
       set quit message to ""
   else:
       set quit message to "&6[&c-&6] &f%player%"

  • J'aime 1
×
×
  • 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.