Console not reading end of line?

Discussion in 'Plugin Development' started by Tecno_Wizard, Nov 5, 2016.

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

    Tecno_Wizard

    I've seen some weird stuff from the console, but this is a new one.

    I created a test command and tried to run it from the console, but the end of line is never read after I enter the command. It's so strange. Only once I type something else will the line stop reading. The command is registered in the yml and assigned an executor in the onEnable.
    Code:
    [18:25:54 INFO]: Unknown command. Type "/help" for help.
    >duck
    [18:27:27 INFO]: Unknown command. Type "/help" for help.
    >cow
    [18:27:29 INFO]: Unknown command. Type "/help" for help.
    >weather
    [18:27:33 INFO]: Usage: /weather <clear|rain|thunder> [duration in seconds]
    >makecommand
    >
    >
    >
    >cow
    [18:27:43 INFO]: Unknown command. Type "/help" for help.
    >
    
    Someone has to know what's causing this.
     
  2. Offline

    Gosintary

    I'm not sure what you mean?
    I think you mean the command is not working.
    In that case I would need to see you plugin.yml and your source code to find the error
     
  3. Offline

    ZP18

    That truly is weird... Does it only happen with that command? And does it still occur if you give the command an argument?

    EDIT: Oh wait, there likely isn't anything wrong, the command just doesn't output anything, can't believe I didn't realise that at first *facepalm*
     
  4. Offline

    Tecno_Wizard

    @ZP18, I had the same realization 48 hours later.

    You'd think it would log that something is wrong with the command.
     
Thread Status:
Not open for further replies.

Share This Page