Problem/Bug Problem with command

Discussion in 'Bukkit Help' started by MrWaffleman, Jun 22, 2015.

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

    MrWaffleman

    Here are my pastes...

    Test.java: http://pastebin.com/vPjmDzSv
    plugin.yml: http://pastebin.com/WZYKD5CS

    I'm not really sure what the problem is... the plugin seems to be working fine in the command prompt. It registered the plugin.yml considering there was a bug so I fixed it by looking at the CMD. But when I type in the command for both CMD and in-game it doesn't recognize it. I did this code by memory so there's bound to be errors.
     
  2. Offline

    oceantheskatr

    I think line 29 is supposed to be return false; not return true;

    Not sure if that matters though.

    Edit: Oh, your spacing for the command is wrong for your plugin.yml. On my phone now so I can't check the correct spacing right now as I'm on my phone. Maybe look up an example plugin.yml?
     
  3. Offline

    MrWaffleman

    I did the correct spacing once, but it gave me an error, it wouldn't work until I put absolutely no spacing for some reason.
     
  4. Offline

    Boomer

    With no spacing, you've deformed the structure into what is considered a valid formatted yml file by removing all the relationship-data to key data. But totally uninterpretable to the server loader.
    It must be a valid formatted yml file, passing YAML parsing, with the information you have, with the indentation for relationships. Use an online yaml parser to test the file when you do add the spacing to compare it to examples such as found in: http://wiki.bukkit.org/Plugin_YAML
     
    MrWaffleman likes this.
  5. Offline

    MrWaffleman

    Thanks for the help guys, I figured instead of doing tab I should've done two spaces.
     
  6. Offline

    Boomer

    Yeah, tabs are to YML like Sand is to Fish, like Arsenic is to Soup, like Cyanide is to Tylenol
     
  7. Offline

    oceantheskatr

    Also make sure to refresh the actual project folder (right-click>refresh or F5) after editing the plugin.yml.
     
    MrWaffleman likes this.
Thread Status:
Not open for further replies.

Share This Page