Aller au contenu

[Totem] - Totem


Messages recommandés

Posté(e)

Bonjour,

 

Version : Spigot 1.7.10

Titre : [Totem] - Totem

 

Ma demande est ->

 

Je demande un totem qui est 3 bloques qui spawn est que quand on les casses on ggne des points.Cette partie est déjà faite.

 

Donc ma véritable demande.

 

/totem join : Rejoindre la partie ( si on fait ça on est tp au warp strowtotem et on peut faire aucunes commande.)

/totem setinv : Set l'inventaire

 

/totem start : Start le totem , quand le totem et start on est tp au warp totem et ça nous donne le steuf qui à été save ou /totem setinv.

 

/totem leave : Le joeur execute la commande /leave et peut a nouveaux faire des commandes.

 

/totem stop : Stop le totem, téléporte tout les joueurs dans le totem au /spawn.

 

Amicalement,

ItsKox

Posté(e)
command /totem <text>:
   trigger:
       if arg 1 is "join":
           run player command "/warp strowtotem" as op
           set {any.commands.%player%} to true
       else if arg 1 is "setinv":
           loop integers between 0 and 40:
               set {inv.%player%.%loop-integer%} to slot loop-integer of player's inventory
       else if arg 1 is "start":
           run player command "/warp totem" as op
           loop integers between 0 and 40:
               set slot loop-integer of player's inventory to {inv.%player%.%loop-integer%}
       else if arg 1 is "leave":
           make player execute command "/leave"
           set {any.commands.%player%} to false
       else if arg 1 is "stop":
           loop all players:
               make loop-player execute command "/spawn"

on command:
   if {any.commands.%player%} is true:
       if command is not "totem":
           cancel event

Posté(e)
command /totem <text>:
   trigger:
       if arg 1 is "join":
           run player command "/warp strowtotem" as op
           set {any.commands.%player%} to true
       else if arg 1 is "setinv":
           loop integers between 0 and 40:
               set {inv.%player%.%loop-integer%} to slot loop-integer of player's inventory
       else if arg 1 is "start":
           run player command "/warp totem" as op
           loop integers between 0 and 40:
               set slot loop-integer of player's inventory to {inv.%player%.%loop-integer%}
       else if arg 1 is "leave":
           make player execute command "/leave"
           set {any.commands.%player%} to false
       else if arg 1 is "stop":
           loop all players:
               make loop-player execute command "/spawn"

on command:
   if {any.commands.%player%} is true:
       if command is not "totem":
           cancel event

Bonjour,

 

Alors aucunes erreurs seulement ;

 

Quand on join le totem et qu'on veut faire /totem leave ça marche pas".

Et j'aimerais que si un joueur est OP il puisse faire des commandes.$

 

Amicalement,

ItsKox

Posté(e)

C'est bon :

 

command /totem <text>:
   trigger:
       if arg 1 is "join":
           run player command "/warp strowtotem" as op
           set {any.commands.%player%} to true
       else if arg 1 is "setinv":
           loop integers between 0 and 40:
               set {inv.%player%.%loop-integer%} to slot loop-integer of player's inventory
       else if arg 1 is "start":
           run player command "/warp totem" as op
           loop integers between 0 and 40:
               set slot loop-integer of player's inventory to {inv.%player%.%loop-integer%}
       else if arg 1 is "leave":
           set {any.commands.%player%} to false
           wait a tick
           make player execute command "/leave"
       else if arg 1 is "stop":
           loop all players:
               make loop-player execute command "/spawn"

on command:
   if {any.commands.%player%} is true:
       if command is not "totem":
           if player is not op:
               cancel event

Posté(e)
C'est bon :

 

command /totem <text>:
   trigger:
       if arg 1 is "join":
           run player command "/warp strowtotem" as op
           set {any.commands.%player%} to true
       else if arg 1 is "setinv":
           loop integers between 0 and 40:
               set {inv.%player%.%loop-integer%} to slot loop-integer of player's inventory
       else if arg 1 is "start":
           run player command "/warp totem" as op
           loop integers between 0 and 40:
               set slot loop-integer of player's inventory to {inv.%player%.%loop-integer%}
       else if arg 1 is "leave":
           set {any.commands.%player%} to false
           wait a tick
           make player execute command "/leave"
       else if arg 1 is "stop":
           loop all players:
               make loop-player execute command "/spawn"

on command:
   if {any.commands.%player%} is true:
       if command is not "totem":
           if player is not op:
               cancel event

Bonjour,

 

Quand je fais /totem start , même ceux qui ont pas /totem join sont tp en gros tout les joueurs sont téléportés.

 

Amicalement,

ItsKox

Posté(e)
Bonjour,

 

Quand je fais /totem start , même ceux qui ont pas /totem join sont tp en gros tout les joueurs sont téléportés.

 

Amicalement,

ItsKox

Ouai mais ça tu l'as pas précisé XD, moi je fais exactement ce que tu demandes, la prochaine fois précise s'il te plaît, tu vois que préciser sa demande est important car moi quand je lis ça :

 

téléporte tout les joueurs

C'est "téléporte tous les joueurs" et non "le joueur"...

  • J'aime 1
Posté(e)
Ouai mais ça tu l'as pas précisé XD, moi je fais exactement ce que tu demandes, la prochaine fois précise s'il te plaît, tu vois que préciser sa demande est important car moi quand je lis ça :

 

 

C'est "téléporte tous les joueurs" et non "le joueur"...

Bonjour,

 

Je veux que quand on fasse /totem start ça tp tout les joueurs qui sont en /totem join et que ça leur donne le steuf du /totem setinv

 

Amicalement,

ItsKox

Posté(e)

Bah faillait le préciser -_- :

 

command /totem <text>:
   trigger:
       if arg 1 is "join":
           add player to {totem.players::*}
           run player command "/warp strowtotem" as op
           set {any.commands.%player%} to true
       else if arg 1 is "setinv":
           loop integers between 0 and 40:
               set {inv.%player%.%loop-integer%} to slot loop-integer of player's inventory
       else if arg 1 is "start":
           loop {totem.players::*}:
               run loop-value command "/warp totem" as op
               loop integers between 0 and 40:
                   set slot loop-integer of loop-value's inventory to {inv.%loop-value%.%loop-integer%}
       else if arg 1 is "leave":
           set {any.commands.%player%} to false
           wait a tick
           make player execute command "/leave"
       else if arg 1 is "stop":
           loop all players:
               remove loop-player from {totem.players::*}
               make loop-player execute command "/spawn"

on command:
   if {any.commands.%player%} is true:
       if command is not "totem":
           if player is not op:
               cancel event

Posté(e)
Bah faillait le préciser -_- :

 

command /totem <text>:
   trigger:
       if arg 1 is "join":
           add player to {totem.players::*}
           run player command "/warp strowtotem" as op
           set {any.commands.%player%} to true
       else if arg 1 is "setinv":
           loop integers between 0 and 40:
               set {inv.%player%.%loop-integer%} to slot loop-integer of player's inventory
       else if arg 1 is "start":
           loop {totem.players::*}:
               run loop-value command "/warp totem" as op
               loop integers between 0 and 40:
                   set slot loop-integer of loop-value's inventory to {inv.%loop-value%.%loop-integer%}
       else if arg 1 is "leave":
           set {any.commands.%player%} to false
           wait a tick
           make player execute command "/leave"
       else if arg 1 is "stop":
           loop all players:
               remove loop-player from {totem.players::*}
               make loop-player execute command "/spawn"

on command:
   if {any.commands.%player%} is true:
       if command is not "totem":
           if player is not op:
               cancel event

[/quote

 

Bonsoir,

 

Du coup je voudrais que quand on fasse /totem stop ça tp au spawn que les joeurs qui soient dans le totem !

 

Amicalement,

ItsKox

Posté(e)

Faut préciser la prochaine fois, je te fais pas de cadeau et je signale ton sujet !

 

command /totem <text>:
   trigger:
       if arg 1 is "join":
           add player to {totem.players::*}
           run player command "/warp strowtotem" as op
           set {any.commands.%player%} to true
       else if arg 1 is "setinv":
           loop integers between 0 and 40:
               set {inv.%player%.%loop-integer%} to slot loop-integer of player's inventory
       else if arg 1 is "start":
           loop {totem.players::*}:
               run loop-value command "/warp totem" as op
               loop integers between 0 and 40:
                   set slot loop-integer of loop-value's inventory to {inv.%loop-value%.%loop-integer%}
       else if arg 1 is "leave":
           set {any.commands.%player%} to false
           wait a tick
           make player execute command "/leave"
       else if arg 1 is "stop":
           loop all players:
               loop {totem.players::*}:
                   make loop-value execute command "/spawn"
                   remove loop-value from {totem.players::*}

on command:
   if {any.commands.%player%} is true:
       if command is not "totem":
           if player is not op:
               cancel event

Posté(e)
Faut préciser la prochaine fois, je te fais pas de cadeau et je signale ton sujet !

 

command /totem <text>:
   trigger:
       if arg 1 is "join":
           add player to {totem.players::*}
           run player command "/warp strowtotem" as op
           set {any.commands.%player%} to true
       else if arg 1 is "setinv":
           loop integers between 0 and 40:
               set {inv.%player%.%loop-integer%} to slot loop-integer of player's inventory
       else if arg 1 is "start":
           loop {totem.players::*}:
               run loop-value command "/warp totem" as op
               loop integers between 0 and 40:
                   set slot loop-integer of loop-value's inventory to {inv.%loop-value%.%loop-integer%}
       else if arg 1 is "leave":
           set {any.commands.%player%} to false
           wait a tick
           make player execute command "/leave"
       else if arg 1 is "stop":
           loop all players:
               loop {totem.players::*}:
                   make loop-value execute command "/spawn"
                   remove loop-value from {totem.players::*}

on command:
   if {any.commands.%player%} is true:
       if command is not "totem":
           if player is not op:
               cancel event

Bonjour,

 

Ca marche , je passe le poste en résolu.

 

Amicalement,

ItsKox

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