Aller au contenu
  • 0

Bug WildSkript "§"


Question

Posté(e)

Bonjour, j'ai un problème avec WildSkript et les fichiers .yml;

 

quand j'affiche un message venant de l'un de ses fichier j'ai le droit à ceci:

Si4o4QE.png

 

J'ai la dernière version d'umbaska, skript et wildskript.

Merci pour toute aide.

9 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Tu as dû mettre un symbole erroné pour les couleur/styles.

Met çà : &

  • 0
Posté(e)
on load:
   if folder "plugins/MobCannon" doesn't exists:
       send "§a[MobCanon] The folder plugins/MobCannon dont exist " to console
       send "§a[MobCanon] Creation of plugins/MobCannon/" to console
       create folder "plugins/MobCannon"
       send "§a[MobCanon] Folder Create" to console
   if file "plugins/MobCannon/strings.yml" doesn't exists:
       send "§a[MobCanon] The file strings dont exist!" to console
       send "§a[MobCanon] Creation of strings.yml" to console
       create file "plugins/message/config.yml" #Création du fichier
       wf "Prefix: §7[§a§lMobCannon§7]" to "plugins/MobCannon/strings.yml"
       wf "help1: §8§m====================§r §6MobCannon §8§m====================" to "plugins/MobCannon/strings.yml"
       wf "help2: §r - §a/MobCannon §e§n§ogive§r  §e§n§o<player>§r  §e§n§o<Cannon>§r Give a cannon to specific player." to "plugins/MobCannon/strings.yml"
       wf "help3:" to "plugins/MobCannon/strings.yml"
       wf "help4:" to "plugins/MobCannon/strings.yml"
       wf "help5:" to "plugins/MobCannon/strings.yml"
       wait 1 tick
       set {strings.prefix} to value "Prefix" get of "plugins/MobCannon/strings.yml"
       set {strings.help1} to value "help1" get of "plugins/MobCannon/strings.yml"
       set {strings.help2} to value "help2" get of "plugins/MobCannon/strings.yml"
       set {strings.help3} to value "help3" get of "plugins/MobCannon/strings.yml"
       set {strings.help4} to value "help4" get of "plugins/MobCannon/strings.yml"
       set {strings.help5} to value "help5" get of "plugins/MobCannon/strings.yml"
   else:
       set {strings.prefix} to value "Prefix" get of "plugins/MobCannon/strings.yml"
       set {strings.help1} to value "help1" get of "plugins/MobCannon/strings.yml"
       set {strings.help2} to value "help2" get of "plugins/MobCannon/strings.yml"
       set {strings.help3} to value "help3" get of "plugins/MobCannon/strings.yml"
       set {strings.help4} to value "help4" get of "plugins/MobCannon/strings.yml"
       set {strings.help5} to value "help5" get of "plugins/MobCannon/strings.yml"

command /mobcannon [<text>]:
   trigger:
       if player has permission "mobcannon.help":
           if arg 1 is not set:
               send "%{strings.help1}%"
               send "%{strings.help2}%"
               send ""
       else:
           send "{strings.noperm}"

  • 0
Posté(e)
on load:
   if folder "plugins/MobCannon" doesn't exists:
       send "§a[MobCanon] The folder plugins/MobCannon dont exist " to console
       send "§a[MobCanon] Creation of plugins/MobCannon/" to console
       create folder "plugins/MobCannon"
       send "§a[MobCanon] Folder Create" to console
   if file "plugins/MobCannon/strings.yml" doesn't exists:
       send "§a[MobCanon] The file strings dont exist!" to console
       send "§a[MobCanon] Creation of strings.yml" to console
       create file "plugins/message/config.yml" #Création du fichier
       wf "Prefix: §7[§a§lMobCannon§7]" to "plugins/MobCannon/strings.yml"
       wf "help1: §8§m====================§r §6MobCannon §8§m====================" to "plugins/MobCannon/strings.yml"
       wf "help2: §r - §a/MobCannon §e§n§ogive§r  §e§n§o<player>§r  §e§n§o<Cannon>§r Give a cannon to specific player." to "plugins/MobCannon/strings.yml"
       wf "help3:" to "plugins/MobCannon/strings.yml"
       wf "help4:" to "plugins/MobCannon/strings.yml"
       wf "help5:" to "plugins/MobCannon/strings.yml"
       wait 1 tick
       set {strings.prefix} to value "Prefix" get of "plugins/MobCannon/strings.yml"
       set {strings.help1} to value "help1" get of "plugins/MobCannon/strings.yml"
       set {strings.help2} to value "help2" get of "plugins/MobCannon/strings.yml"
       set {strings.help3} to value "help3" get of "plugins/MobCannon/strings.yml"
       set {strings.help4} to value "help4" get of "plugins/MobCannon/strings.yml"
       set {strings.help5} to value "help5" get of "plugins/MobCannon/strings.yml"
   else:
       set {strings.prefix} to value "Prefix" get of "plugins/MobCannon/strings.yml"
       set {strings.help1} to value "help1" get of "plugins/MobCannon/strings.yml"
       set {strings.help2} to value "help2" get of "plugins/MobCannon/strings.yml"
       set {strings.help3} to value "help3" get of "plugins/MobCannon/strings.yml"
       set {strings.help4} to value "help4" get of "plugins/MobCannon/strings.yml"
       set {strings.help5} to value "help5" get of "plugins/MobCannon/strings.yml"

command /mobcannon [<text>]:
   trigger:
       if player has permission "mobcannon.help":
           if arg 1 is not set:
               send "%{strings.help1}%"
               send "%{strings.help2}%"
               send ""
       else:
           send "{strings.noperm}"

 

Voila j'ai corrigé le code essaye comme ça ;) (les symboles pour la couleur était mauvais)

 

on load:
   if folder "plugins/MobCannon" doesn't exists:
       send "&a[MobCanon] The folder plugins/MobCannon dont exist " to console
       send "&a[MobCanon] Creation of plugins/MobCannon/" to console
       create folder "plugins/MobCannon"
       send "&a[MobCanon] Folder Create" to console
   if file "plugins/MobCannon/strings.yml" doesn't exists:
       send "&a[MobCanon] The file strings dont exist!" to console
       send "&a[MobCanon] Creation of strings.yml" to console
       create file "plugins/message/config.yml" #Création du fichier
       wf "Prefix: &7[&a&lMobCannon&7]" to "plugins/MobCannon/strings.yml"
       wf "help1: &8&m====================&r &6MobCannon &8&m====================" to "plugins/MobCannon/strings.yml"
       wf "help2: &r - &a/MobCannon &e&n&ogive&r  &e&n&o<player>&r  &e&n&o<Cannon>&r Give a cannon to specific player." to "plugins/MobCannon/strings.yml"
       wf "help3:" to "plugins/MobCannon/strings.yml"
       wf "help4:" to "plugins/MobCannon/strings.yml"
       wf "help5:" to "plugins/MobCannon/strings.yml"
       wait 1 tick
       set {strings.prefix} to value "Prefix" get of "plugins/MobCannon/strings.yml"
       set {strings.help1} to value "help1" get of "plugins/MobCannon/strings.yml"
       set {strings.help2} to value "help2" get of "plugins/MobCannon/strings.yml"
       set {strings.help3} to value "help3" get of "plugins/MobCannon/strings.yml"
       set {strings.help4} to value "help4" get of "plugins/MobCannon/strings.yml"
       set {strings.help5} to value "help5" get of "plugins/MobCannon/strings.yml"
   else:
       set {strings.prefix} to value "Prefix" get of "plugins/MobCannon/strings.yml"
       set {strings.help1} to value "help1" get of "plugins/MobCannon/strings.yml"
       set {strings.help2} to value "help2" get of "plugins/MobCannon/strings.yml"
       set {strings.help3} to value "help3" get of "plugins/MobCannon/strings.yml"
       set {strings.help4} to value "help4" get of "plugins/MobCannon/strings.yml"
       set {strings.help5} to value "help5" get of "plugins/MobCannon/strings.yml"

command /mobcannon [<text>]:
   trigger:
       if player has permission "mobcannon.help":
           if arg 1 is not set:
               send "%{strings.help1}%"
               send "%{strings.help2}%"
               send ""
       else:
           send "{strings.noperm}"

  • 0
Posté(e)

Le symbole " § " se nomme " section ". C'est le symbole par défaut pour les couleurs de Minecraft. Quand vous tapez un " & " il est automatiquement convertit en " § ". La vraie question et le problème que j'ai également rencontré avec le scoreboard c'est pourquoi le symbole section " § " apparaît au lieu de simplement être convertit en couleur avec son code.

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