Aller au contenu
  • 0

[Problème] système de team


Question

Posté(e)

Version de minecraft / skript : 1.8

Type du skript : Team pour Mini-Jeux automatique

Description du script : C'est un script qui permet de faire un mini jeux "cache cache" automatique : système de kit, team, ...

Commandes éventuelles avec les permissions : /start - /team - /menu [Pas de permission

Autres précisions (bout de skript déjà fait, systèmes actuellement utilisés, etc) :

 

command /start:
   trigger:
       execute console command "fill 207 120 196 159 110 137 stone"
       execute console command "fill 207 120 196 159 110 137 bedrock 0 outline"
       execute console command "fill 206 120 195 160 120 138 air"


command /finish:
   trigger:
       execute console command "fill 160 119 138 206 111 195 wool 2 replace air "
       execute console command "fill 160 119 138 206 111 195 air 0 replace stone"

on join:
   set slot 4 of player to compass named "&8» &6Choix de la team &8«"
   wait 3 second
   if {team.%player%.1} is set:
       execute console command "/kit 1 {team.1}"
   if {team.%player%.2} is set:
       execute console command "/kit 2 {team.2}"

on rightclick with compass:
   if name of tool of player is "&8» &6Choix de la team &8«":
       execute player command "/menu"

command /menu:
   trigger:
       wait 2 ticks
       open chest with 1 rows named "Choisis ton equipe" to player
       wait 1 ticks
       format slot 5 of player with diamond sword named "&1Tu cherche" to close then run [make player execute command "/team 1"]
       format slot 3 of player with diamond pickaxe named "&1Tu te cache" to close then run [make player execute command "/team 2"]
       format slot 8 of player with diamond pickaxe named "&1Tu te cache" to close then run [make player execute command "/team leave"]




command /team [<text>]:
   description: La base de toute les commande
   usage: /team <text>
   trigger:

           if arg-1 is "1":
               broadcast "&4[&7Cubix&4] &6%player% &2est devenue &6Chercheur"
               set {team.1} to player

           if arg-1 is "2":
               broadcast "&4[&7Cubix&4] &6%player% &2doit se &6Cacher"
               set {team.2} to player

       if arg-1 is "leave":
           if {team.1} is set:
               remove player from {team.1}
               send "&4[&7Team&4] &cTu vient de quitter les chercheurs" to player
           if {team.2} is set:
               remove player from {team.2}
               send "&4[&7Team&4] &cTu vient de quitter ton equipe" to player

       if arg-1 is "start":
           if {team.1} is set:
               execute player command "/kit 1"

           if {team.2} is set:
               execute player command "/kit 2 "  

 

J'utilise skript sans addon

 

Voici l'erreur :

[03:09:26] [server thread/ERROR]: #!#!
[03:09:26] [server thread/ERROR]: #!#! [skript] Severe Error:
[03:09:26] [server thread/ERROR]: #!#!
[03:09:26] [server thread/ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[03:09:26] [server thread/ERROR]: #!#! If you're a server admin however please go to http://dev.bukkit.org/server-mods/skript/tickets/
[03:09:26] [server thread/ERROR]: #!#! and check whether this error has already been reported.
[03:09:26] [server thread/ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it,
[03:09:26] [server thread/ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[03:09:26] [server thread/ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[03:09:26] [server thread/ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[03:09:26] [server thread/ERROR]: #!#!
[03:09:26] [server thread/ERROR]: #!#! Stack trace:
[03:09:26] [server thread/ERROR]: #!#! java.lang.NullPointerException
[03:09:26] [server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.inventory.CraftInventory.removeItem(CraftInventory.java:337)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.classes.data.DefaultChangers$1.change(DefaultChangers.java:102)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.classes.data.DefaultChangers$1.change(DefaultChangers.java:1)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.classes.data.DefaultChangers$2.change(DefaultChangers.java:135)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.classes.data.DefaultChangers$2.change(DefaultChangers.java:1)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.classes.Changer$ChangerUtils.change(Changer.java:72)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.lang.Variable.change(Variable.java:482)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.effects.EffChange.execute(EffChange.java:273)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:50)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:63)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:91)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand$1.call(ScriptCommand.java:220)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand$1.call(ScriptCommand.java:1)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.util.Task.callSync(Task.java:139)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:193)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:260)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:155)
[03:09:26] [server thread/ERROR]: #!#!     at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
[03:09:26] [server thread/ERROR]: #!#!     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[03:09:26] [server thread/ERROR]: #!#!     at java.lang.reflect.Method.invoke(Method.java:498)
[03:09:26] [server thread/ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[03:09:26] [server thread/ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[03:09:26] [server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[03:09:26] [server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.Skript.dispatchCommand(Skript.java:935)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.effects.EffCommand.execute(EffCommand.java:86)
[03:09:26] [server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:50)
[03:09:26] [server thread/ERROR]: #!#!     at com.w00tmast3r.skquery.skript.LambdaEffect.walk(LambdaEffect.java:35)
[03:09:26] [server thread/ERROR]: #!#!     at com.w00tmast3r.skquery.util.custom.menus.v2_.SlotRule.run(SlotRule.java:30)
[03:09:26] [server thread/ERROR]: #!#!     at com.w00tmast3r.skquery.util.custom.menus.v2_.FormattedSlotManager.onClick(FormattedSlotManager.java:66)
[03:09:26] [server thread/ERROR]: #!#!     at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
[03:09:26] [server thread/ERROR]: #!#!     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[03:09:26] [server thread/ERROR]: #!#!     at java.lang.reflect.Method.invoke(Method.java:498)
[03:09:26] [server thread/ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[03:09:26] [server thread/ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[03:09:26] [server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[03:09:26] [server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[03:09:26] [server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1630)
[03:09:26] [server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInWindowClick.a(SourceFile:31)
[03:09:26] [server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInWindowClick.a(SourceFile:9)
[03:09:26] [server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[03:09:26] [server thread/ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[03:09:26] [server thread/ERROR]: #!#!     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[03:09:26] [server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[03:09:26] [server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
[03:09:26] [server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[03:09:26] [server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[03:09:26] [server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[03:09:26] [server thread/ERROR]: #!#!     at java.lang.Thread.run(Thread.java:745)
[03:09:26] [server thread/ERROR]: #!#!
[03:09:26] [server thread/ERROR]: #!#! Version Information:
[03:09:26] [server thread/ERROR]: #!#!   Skript: 2.1.2
[03:09:26] [server thread/ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[03:09:26] [server thread/ERROR]: #!#!   Minecraft: 1.8.8
[03:09:26] [server thread/ERROR]: #!#!   Java: 1.8.0_111
[03:09:26] [server thread/ERROR]: #!#!
[03:09:26] [server thread/ERROR]: #!#! Running CraftBukkit: false
[03:09:26] [server thread/ERROR]: #!#!
[03:09:26] [server thread/ERROR]: #!#! Current node: null
[03:09:26] [server thread/ERROR]: #!#! Current item: remove the player from {team.1}(as java.lang.Object)
[03:09:26] [server thread/ERROR]: #!#!
[03:09:26] [server thread/ERROR]: #!#! Thread: Server thread
[03:09:26] [server thread/ERROR]: #!#!
[03:09:26] [server thread/ERROR]: #!#! End of Error.
[03:09:26] [server thread/ERROR]: #!#! 

 

Je n'arrive pas a leave une team, pouvez-vous m'aidez ?

11 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Il te manque des add-ons, télécharge si c'est pas déja fais :

 

- SkQuery

- SkRayFall

- SkUtilities

- Unbaska

- Wildskript

 

Si t'es débutant et que tu copie-colle des skripts, ces add-ons sont les plus souvents utilisé, ils ne te serviront pas tous mais tu n'auras plus de problème de ce genre, moi c'est ce que je fais perso.

  • 0
Posté(e)
Il te manque des add-ons, télécharge si c'est pas déja fais :

 

- SkQuery

- SkRayFall

- SkUtilities

- Unbaska

- Wildskript

 

Si t'es débutant et que tu copie-colle des skripts, ces add-ons sont les plus souvents utilisé, ils ne te serviront pas tous mais tu n'auras plus de problème de ce genre, moi c'est ce que je fais perso.

Merci, je vais essayer

  • 0
Posté(e)
command /start:
   trigger:
       execute console command "fill 207 120 196 159 110 137 stone"
       execute console command "fill 207 120 196 159 110 137 bedrock 0 outline"
       execute console command "fill 206 120 195 160 120 138 air"


command /finish:
   trigger:
       execute console command "fill 160 119 138 206 111 195 wool 2 replace air "
       execute console command "fill 160 119 138 206 111 195 air 0 replace stone"

on join:
   set slot 4 of player to compass named "&8» &6Choix de la team &8«"
   wait 3 second
   if {team.%player%.1} is set:
       execute console command "/kit 1 {team.1}"
   if {team.%player%.2} is set:
       execute console command "/kit 2 {team.2}"

on rightclick with compass:
   if name of tool of player is "&8» &6Choix de la team &8«":
       execute player command "/menu"

command /menu:
   trigger:
       wait 2 ticks
       open chest with 1 rows named "Choisis ton equipe" to player
       wait 1 ticks
       format slot 5 of player with diamond sword named "&1Tu cherche" to close then run [make player execute command "/team 1"]
       format slot 3 of player with diamond pickaxe named "&1Tu te cache" to close then run [make player execute command "/team 2"]
       format slot 8 of player with diamond pickaxe named "&1Tu te cache" to close then run [make player execute command "/team leave"]




command /team [<text>]:
   description: La base de toute les commande
   usage: /team <text>
   trigger:

           if arg-1 is "1":
               broadcast "&4[&7Cubix&4] &6%player% &2est devenue &6Chercheur"
               add player to {team.1::*}

           if arg-1 is "2":
               broadcast "&4[&7Cubix&4] &6%player% &2doit se &6Cacher"
               add player to {team.2::*}

       if arg-1 is "leave":
           if {team.1::*} contain player:
               remove player from {team.1::*}
               send "&4[&7Team&4] &cTu vient de quitter les chercheurs" to player
           if {team.2::*} contain player:
               remove player from {team.2::*}
               send "&4[&7Team&4] &cTu vient de quitter ton equipe" to player

       if arg-1 is "start":
           if {team.1} is set:
               execute player command "/kit 1"

           if {team.2} is set:
               execute player command "/kit 2 "

  • 0
Posté(e)

Cela ne fonctionne pas, plus aucun message ne s'affiche, cela me give toujours les deux "kit" je voudrais juste faire en sorte que quand on est dans une des team on ai le bon kit.

  • 0
Posté(e)
command /finish:
   trigger:
       execute console command "fill 160 119 138 206 111 195 wool 2 replace air "
       execute console command "fill 160 119 138 206 111 195 air 0 replace stone"

on join:
   set slot 4 of player to compass named "&8» &6Choix de la team &8«"

on rightclick with compass:
   if name of tool of player is "&8» &6Choix de la team &8«":
       execute player command "/menu"

command /menu:
   trigger:
       wait 2 ticks
       open chest with 1 rows named "Choisis ton equipe" to player
       wait 1 ticks
       format slot 5 of player with diamond sword named "&1Tu cherche" to close then run [make player execute command "/team 1"]
       format slot 3 of player with diamond pickaxe named "&1Tu te cache" to close then run [make player execute command "/team 2"]
       format slot 8 of player with diamond pickaxe named "&1Tu te cache" to close then run [make player execute command "/team leave"]


command /team [<text>]:
   description: La base de toute les commande
   usage: /team <text>
   trigger:
       if arg-1 is "1":
           broadcast "&4[&7Cubix&4] &6%player% &2est devenue &6Chercheur"
           add player to {team.1::*}
       if arg-1 is "2":
           broadcast "&4[&7Cubix&4] &6%player% &2doit se &6Cacher"
           add player to {team.2::*}
       if arg-1 is "leave":
           if {team.1::*} contain player:
               remove player from {team.1::*}
               send "&4[&7Team&4] &cTu vient de quitter les chercheurs" to player
           if {team.2::*} contain player:
               remove player from {team.2::*}
               send "&4[&7Team&4] &cTu vient de quitter ton equipe" to player
       if arg-1 is "start":
           if {team.1::*} contain player:
               execute player command "/kit 1"
           if {team.2::*} contain player:
               execute player command "/kit 2 "

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