"If" doesn't work properly

Discussion in 'Plugin Development' started by Krischon, Nov 8, 2015.

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

    Krischon

    Hello Bukkit,
    I am programming a group plugin. The problem with it is, that even though, when a player is in a certain group, the plugin doesn't realize that. I wrote some methods in the main class, that check, what group the player is in, which get called in "GroupCommand.java". I assume it is a small mistake, that ruins the last hours of my weekend! :)
    Hope, that Bukkit can help. (Sorry for my bad english.)

    Stym.java (main class): http://hastebin.com/adifaxaraf.coffee
    GroupCommand.java (command-executing class): http://hastebin.com/ozaduviwun.avrasm

    plugin.yml:

    name: Stym
    main: Stym
    version: 1.3.3.7
    commands:
    group:​

    config.yml:

    groups:
    iron:
    - Player
    - Another_Player
    diamond:
    - Rich_Player​
     
  2. Offline

    AppleBabies

    Your plugin.yml is formatted incorrectly. It should be:
    Code:
    main:me.Stym.Stym
    title:Stym
    version:1.3.3.7
    commands:
    group:
         description: Description
         usage: /group <args>
     
  3. Offline

    Scimiguy

  4. Offline

    Krischon

  5. Offline

    AppleBabies

    Did you try mine? Your plugin.yml looks horrible.
     
  6. Offline

    Krischon

    That is not true. It is correct too. I do it like this everytime and it works.

    Yes, I tried yours, just to be sure. As I said: The problem isn't caused by the plugin.yml.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 8, 2015
  7. Offline

    mcdorli

    No it isn't correct, every space matteds in yml files
     
Thread Status:
Not open for further replies.

Share This Page