Hilfe bei Main CommandExecutor...

Discussion in 'Plugin Development' started by JeykoExample, Jul 23, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    JeykoExample

    Ich habe in meiner Main ein Command hinzugefügt ... aber dieses ist zweiteilig also ("ffa join")...

    der Server nimmt den Befehl nicht ... Keine Error, nix ... :eek:

    PHP:
    this.getCommand("ffa join").setExecutor(new JoinCommand());
     
  2. Offline

    The_Coder

    JeykoExample
    You don't register a sub-command to another command executor... You register a command then check for the sub-command
     
  3. Offline

    CorrieKay

    Commands don't work like that. They need to be a single word. If you want to use a secondary command, you will need to use the string array variable to detect if they've used the secondary command argument.

    ----

    Befehle nicht wie die funktionieren. Sie müssen ein einziges Wort sein. Wenn Sie eine sekundäre Befehl verwenden möchten, müssen Sie den String Array-Variablen verwenden, um festzustellen, ob sie die sekundäre Befehlsargument benutzt habe. Mit Google Translate, so leid, wenn dies nicht viel Sinn ...
     
Thread Status:
Not open for further replies.

Share This Page