Problème avec CustomCommand

ShE3py

Enbogueuse
Support
26 Septembre 2015
4 139
163
464
247
21
Mìlhüsa
Okay my bad, le pourcent sert juste dans l'aide de la commande.

Essaye avec :
Code:
points pay {arg:1} {arg:2}
 

Elaebi

Architecte en herbe
7 Août 2019
31
0
67
26
Okay my bad, le pourcent sert juste dans l'aide de la commande.

Essaye avec :
Code:
points pay {arg:1} {arg:2}
C'est pire grosse erreur dans la console:
 

Fichiers joints

  • 2023-05-03_20.49.26.png
    2023-05-03_20.49.26.png
    844.5 KB · Affichages: 36
  • console.png
    console.png
    39.5 KB · Affichages: 39

ShE3py

Enbogueuse
Support
26 Septembre 2015
4 139
163
464
247
21
Mìlhüsa
Peux-tu renvoyer ton fichier de configuration entre triples accents graves ?
Code:
```yaml
Écrit trois accents graves suivis de « yaml », retour à la ligne, copie-colle le contenu du fichier, puis réécrit trois accents graves.
```
 

Elaebi

Architecte en herbe
7 Août 2019
31
0
67
26
Peux-tu renvoyer ton fichier de configuration entre triples accents graves ?
Code:
```yaml
Écrit trois accents graves suivis de « yaml », retour à la ligne, copie-colle le contenu du fichier, puis réécrit trois accents graves.
```

Code:
aliases: [dracoins]

patterns:
  - pattern: pay [player-online]%player [integer]%amount
    description: todo
    actions:
      - type: EXECUTE_COMMANDS
        commands:
          - 'points pay {player} {amount}'
          - 'say {player} {amount}'
          - 'points pay {arg:1} {args:2}'
          - 'points pay {player} {arg:1}'
        as_player: true
        on_toggle_on: false
        target: '{player}'

J'ai pas compris mais j'ai trouvé le truc code
 

Elaebi

Architecte en herbe
7 Août 2019
31
0
67
26
arg doit être au singulier, et enlève les lignes target et on_toggle_on.
J'ai fais comme tu m'as dit sa change rien

Code:
aliases: [dracoins]

patterns:
  - pattern: pay [player-online]%player [integer]%amount
    description: todo
    actions:
      - type: EXECUTE_COMMANDS
        commands:
          - 'points pay {player} {amount}'
          - 'say {player} {amount}'
          - 'points pay {arg:1} {args:2}'
          - 'points pay {player} {arg:1}'
        as_player: true
        on_toggle_on: false
 

ShE3py

Enbogueuse
Support
26 Septembre 2015
4 139
163
464
247
21
Mìlhüsa
{args:2} est au pluriel, et la ligne on_toggle_on est toujours présente.
Sinon envoie les logs du serveur (démarrage inclus).
 

Elaebi

Architecte en herbe
7 Août 2019
31
0
67
26
on_toggle_on je peux pas l'enlever sois je met false ou true sinon sa fais erreur :/ et arg1
je vous ai pas transmis le bon c'est l'ancien ^^''

YAML:
aliases: [dracoins]

patterns:
  - pattern: pay [player-online]%player [integer]%amount
    description: todo
    actions:
      - type: EXECUTE_COMMANDS
        commands:
          - 'points pay {player} {amount}'
          - 'say {player} {amount}'
          - 'points pay {arg:1} {args:2}'
          - 'points pay {player} {arg:1}'
          - 'points pay {arg:1} {arg:2}'
        on_toggle_on: false
        as_player: true
 

Fichiers joints

  • console2.png
    console2.png
    70.6 KB · Affichages: 35

Elaebi

Architecte en herbe
7 Août 2019
31
0
67
26
{args:2} est au pluriel, et la ligne on_toggle_on est toujours présente.
Sinon envoie les logs du serveur (démarrage inclus).
Je pense avoir trouvé le problèmes c'est bien ce plugin à des logs implémenté:
J'ai placeholderAPI

YAML:
[30/04 17:59:14] [info] Disabled integration for PlaceholderAPI
[30/04 18:00:48] [info] Disabled integration for PlaceholderAPI
[30/04 18:04:31] [info] Disabled integration for PlaceholderAPI
[30/04 19:19:26] [info] Disabled integration for PlaceholderAPI
[30/04 19:42:55] [info] Disabled integration for PlaceholderAPI
[30/04 21:47:31] [info] Disabled integration for PlaceholderAPI
[01/05 03:43:37] [info] Disabled integration for PlaceholderAPI
[01/05 08:02:20] [info] Disabled integration for PlaceholderAPI
[01/05 08:17:31] [info] Disabled integration for PlaceholderAPI
[01/05 23:54:47] [info] Disabled integration for PlaceholderAPI
[02/05 09:26:32] [info] Disabled integration for PlaceholderAPI
[02/05 09:59:32] [info] Disabled integration for PlaceholderAPI
[02/05 10:38:57] [info] Disabled integration for PlaceholderAPI
[02/05 10:46:59] [info] Disabled integration for PlaceholderAPI
[02/05 10:51:33] [info] Disabled integration for PlaceholderAPI
[02/05 10:53:53] [info] Disabled integration for PlaceholderAPI
[02/05 11:04:15] [info] Disabled integration for PlaceholderAPI
[02/05 11:07:01] [info] Disabled integration for PlaceholderAPI
[02/05 13:58:57] [ERROR] Couldn't find player '{amount}' to execute action a of command p
[03/05 04:07:57] [info] Disabled integration for PlaceholderAPI
[03/05 20:57:44] [info] Disabled integration for PlaceholderAPI
[03/05 21:01:14] [info] Disabled integration for PlaceholderAPI
[03/05 22:19:31] [info] Disabled integration for PlaceholderAPI
 

ShE3py

Enbogueuse
Support
26 Septembre 2015
4 139
163
464
247
21
Mìlhüsa
Il semblerait que le 1er argument soit le nom de la commande, essaye avec points pay {arg:2} {arg:3}.
 
  • J'adore
Reactions: Elaebi