Solved plugin.yml is not working

Discussion in 'Plugin Development' started by tovd1234, Jul 18, 2014.

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

    tovd1234

    Hey everyone I've created my own PvP plugin. I have also made a plugin.yml fie. I did everything like I normally would do. I also followed some help on a website. But it isn't working! And because of that I can't use my plugin. Please help: http://puu.sh/agJWS/4827a14edb.yml So I would just like a fixed version of my plugin.yml.
     
  2. Offline

    wesley27

    tovd1234 it looks fine... what's the error? Paste the stack trace from the console when you load the server.
     
    tovd1234 likes this.
  3. Offline

    tovd1234

    The Error:

    18:16:07 [SEVERE] Could not load 'plugins\EnderPvP.jar' in folder 'plugins'
    18:16:07 org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    The whole console text:
    [GUI] Retrieving your current bukkit version...
    [GUI] Je huidige bukkit versie is 1.7.2-R0 (#3024)
    [GUI] Bukkit server starten - min. RAM:0 max. RAM:2950
    [GUI] The server is starting...
    [GUI] Server started...
    18:15:59 Loading libraries, please wait...
    18:16:04 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    18:16:07 [INFO] Starting minecraft server version 1.7.2
    18:16:07 [INFO] Loading properties
    18:16:07 [INFO] Default game type: SURVIVAL
    18:16:07 [INFO] Generating keypair
    18:16:07 [INFO] Starting Minecraft server on *:1928
    18:16:07 [INFO] This server is running CraftBukkit version git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks (MC: 1.7.2) (Implementing API version 1.7.2-R0.4-SNAPSHOT)
    18:16:07 [SEVERE] Could not load 'plugins\EnderPvP.jar' in folder 'plugins'
    18:16:07 org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    18:16:07at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:160) ~[craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:07at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:07at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:350) [craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:07at org.bukkit.craftbukkit.v1_7_R1.CraftServer.<init>(CraftServer.java:312) [craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:07at net.minecraft.server.v1_7_R1.PlayerList.<init>(PlayerList.java:63) [craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:07at net.minecraft.server.v1_7_R1.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:07at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:126) [craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:07at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:424) [craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:07at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:07 Caused by: org.yaml.snakeyaml.scanner.ScannerException: null; mapping values are not allowed here
    18:16:07at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:733) ~[craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:07at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:305) ~[craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:07at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:179) ~[craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:07at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:563) ~[craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:08at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161) ~[craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:08at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146) ~[craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:08at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230) ~[craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:08at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) ~[craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:08at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237) ~[craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:08at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) ~[craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:08at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123) ~[craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:08at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106) ~[craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:08at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121) ~[craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:08at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480) ~[craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:08at org.yaml.snakeyaml.Yaml.load(Yaml.java:411) ~[craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:08at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:189) ~[craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:08at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:155) ~[craftbukkit-1.7.2-R0.4-20140316.221310-4.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    18:16:08... 8 more
    18:16:08 [INFO] ----- Bukkit Auto Updater -----
    18:16:08 [INFO] It appears that you're running a Development Build, when you've specified in bukkit.yml that you prefer to run Recommended Builds.
    18:16:08 [INFO] If you would like to be kept informed about new Development Build releases, it is recommended that you change 'preferred-channel' in your bukkit.yml to 'dev'.
    18:16:08 [INFO] With that set, you will be told whenever a new version is available for download, so that you can always keep up to date and secure with the latest fixes.
    18:16:08 [INFO] If you would like to disable this warning, simply set 'suggest-channels' to false in bukkit.yml.
    18:16:08 [INFO] ----- ------------------- -----
    18:16:08 [INFO] [FakeMessager] Loading FakeMessager v1.6
    18:16:08 [INFO] [GroupManager] Loading GroupManager v2.0 (2.12.1) (Phoenix)
    18:16:08 [INFO] [ChatClear] Loading ChatClear v1.0
    18:16:08 [INFO] [ItemAttributes] Loading ItemAttributes v1.1.0-b50
    18:16:08 [INFO] [WorldEdit] Loading WorldEdit v5.6
    18:16:08 [INFO] [NoCheatPlus] Loading NoCheatPlus v3.10.9-RC-sMD5NET-b673
    18:16:08 [INFO] [MythicDrops] Loading MythicDrops v3.0.1-b346-STABLE
    18:16:08 [INFO] [Soulbound] Loading Soulbound v1.1.9-b71
    18:16:08 [INFO] [NBTEditor] Loading NBTEditor v1.1.1
    18:16:08 [INFO] [ClearLag] Loading ClearLag v2.7.1
    18:16:08 [INFO] [WorldGuard] Loading WorldGuard v5.9
    18:16:08 [INFO] [Essentials] Loading Essentials v2.13.1
    18:16:08 [INFO] [EssentialsProtect] Loading EssentialsProtect v2.13.1
    18:16:08 [INFO] [EssentialsSpawn] Loading EssentialsSpawn v2.13.1
    18:16:08 [INFO] [EssentialsChat] Loading EssentialsChat v2.13.1
    18:16:08 [INFO] [EssentialsAntiBuild] Loading EssentialsAntiBuild v2.13.1
    18:16:08 [INFO] Preparing level "world"
    18:16:08 [INFO] Preparing start region for level 0 (Seed: -7007862659739709476)
    18:16:10 [INFO] Preparing spawn area: 83%
    18:16:10 [INFO] Preparing start region for level 1 (Seed: -7007862659739709476)
    18:16:10 [INFO] Preparing start region for level 2 (Seed: -7007862659739709476)
    18:16:11 [INFO] [FakeMessager] Enabling FakeMessager v1.6
    18:16:11 [INFO] [FakeMessager] Found config.yml!
    18:16:11 [INFO] +---------------------------------------+
    18:16:11 [INFO] | FakeMessager V 1.6 - Enabled |
    18:16:11 [INFO] +---------------------------------------+
    18:16:11 [INFO] [GroupManager] Enabling GroupManager v2.0 (2.12.1) (Phoenix)
    18:16:11 [INFO] GroupManager - INFO - World Found: world
    18:16:11 [INFO] GroupManager - INFO - Superperms support enabled.
    18:16:11 [INFO] GroupManager - INFO - Scheduled Data Saving is set for every 10 minutes!
    18:16:11 [INFO] GroupManager - INFO - Backups will be retained for 24 hours!
    18:16:11 [INFO] GroupManager version 2.0 (2.12.1) (Phoenix) is enabled!
    18:16:11 [INFO] [ChatClear] Enabling ChatClear v1.0
    18:16:11 [INFO] ChatClear activited.
    18:16:11 [INFO] by Humm3lPlays
    18:16:11 [INFO] [ItemAttributes] Enabling ItemAttributes v1.1.0-b50
    18:16:11 [INFO] [WorldEdit] Enabling WorldEdit v5.6
    18:16:11 [INFO] WEPIF: GroupManager detected! Using GroupManager for permissions.
    18:16:11 [INFO] [NoCheatPlus] Enabling NoCheatPlus v3.10.9-RC-sMD5NET-b673
    18:16:12 [INFO] [NoCheatPlus] McAccess set to: 1.7.2 / CB2922-DEV
    18:16:12 [INFO] [NoCheatPlus] Added block-info for Minecraft 1.5 blocks.
    18:16:12 [INFO] [NoCheatPlus] Added block-info for Minecraft 1.6.1 blocks.
    18:16:12 [INFO] [NoCheatPlus] Added block-info for Minecraft 1.7.2 blocks.
    18:16:12 [INFO] [NoCheatPlus] Inventory checks: FastConsume is available, disabled InstantEat.
    18:16:12 [INFO] [NoCheatPlus] Version 3.10.9-RC-sMD5NET-b673 is enabled.
    18:16:12 [INFO] [MythicDrops] Enabling MythicDrops v3.0.1-b346-STABLE
    18:16:13 [INFO] [MythicDrops] Mobs spawning with equipment enabled
    18:16:13 [INFO] [MythicDrops] Repairing enabled
    18:16:13 [INFO] [MythicDrops] Socketting enabled
    18:16:13 [INFO] [MythicDrops] Identifying enabled
    18:16:13 [INFO] [Soulbound] Enabling Soulbound v1.1.9-b71
    18:16:14 [INFO] [NBTEditor] Enabling NBTEditor v1.1.1
    18:16:15 [INFO] [CustomItemsAPI] CustomItemManager initialized.
    18:16:15 [INFO] [NBTEditor] NBTEditor has been enabled.
    18:16:15 [INFO] [ClearLag] Enabling ClearLag v2.7.1
    18:16:15 [INFO] [ClearLag] Loading modules...
    18:16:15 [INFO] [ClearLag] No config updates found...
    18:16:15 [WARNING] [ClearLag] mob-range requires you to use bukkit v1.7_r3
    18:16:15 [INFO] [ClearLag] Modules have been loaded!
    18:16:15 [INFO] [ClearLag] Clearlag is now enabled!
    18:16:15 [INFO] [ClearLag] Searching for updates..
    18:16:15 [INFO] [WorldGuard] Enabling WorldGuard v5.9
    18:16:15 [INFO] [WorldGuard] (world) TNT ignition is PERMITTED.
    18:16:15 [INFO] [WorldGuard] (world) Lighters are PERMITTED.
    18:16:15 [INFO] [WorldGuard] (world) Lava fire is blocked.
    18:16:15 [INFO] [WorldGuard] (world) Fire spread is UNRESTRICTED.
    18:16:15 [INFO] [WorldGuard] Loaded configuration for world 'world'
    18:16:15 [INFO] [WorldGuard] (world_nether) TNT ignition is PERMITTED.
    18:16:15 [INFO] [WorldGuard] (world_nether) Lighters are PERMITTED.
    18:16:15 [INFO] [WorldGuard] (world_nether) Lava fire is blocked.
    18:16:15 [INFO] [WorldGuard] (world_nether) Fire spread is UNRESTRICTED.
    18:16:15 [INFO] [WorldGuard] Loaded configuration for world 'world_nether'
    18:16:15 [INFO] [WorldGuard] (world_the_end) TNT ignition is PERMITTED.
    18:16:15 [INFO] [WorldGuard] (world_the_end) Lighters are PERMITTED.
    18:16:15 [INFO] [WorldGuard] (world_the_end) Lava fire is blocked.
    18:16:15 [INFO] [WorldGuard] (world_the_end) Fire spread is UNRESTRICTED.
    18:16:15 [INFO] [WorldGuard] Loaded configuration for world 'world_the_end'
    18:16:15 [INFO] [WorldGuard] 0 regions loaded for 'world'
    18:16:15 [INFO] [WorldGuard] 0 regions loaded for 'world_nether'
    18:16:15 [INFO] [WorldGuard] 0 regions loaded for 'world_the_end'
    18:16:15 [INFO] [Essentials] Enabling Essentials v2.13.1
    18:16:15 [INFO] Essentials: Using GroupManager based permissions.
    18:16:15 [INFO] [EssentialsProtect] Enabling EssentialsProtect v2.13.1
    18:16:15 [INFO] [EssentialsSpawn] Enabling EssentialsSpawn v2.13.1
    18:16:15 [INFO] [EssentialsChat] Enabling EssentialsChat v2.13.1
    18:16:15 [INFO] [EssentialsAntiBuild] Enabling EssentialsAntiBuild v2.13.1
    18:16:15 [INFO] Server permissions file permissions.yml is empty, ignoring it
    18:16:16 [INFO] Done (7.247s)! For help, type "help" or "?"
    18:16:16 [INFO] [ClearLag] No updates found!
    18:16:16 [INFO] [NoCheatPlus] Post-enable running...
    18:16:16 [INFO] [NoCheatPlus] Post-enable finished.
    18:16:16 [INFO] GroupManager - INFO - Bukkit Permissions Updated!
    I dont think that it matters, but I'm using BukkitGUI
     
  4. Offline

    fireblast709

    tovd1234 that permissions section looks a bit wonky
     
  5. Offline

    tovd1234

    How can I fix that?
     
  6. Offline

    fireblast709

    tovd1234 add a default value to the permissions.
    Code:
    permissions:
      permission.node:
        default: op|true|false (whichever you want)
    (any key-value would work, as long as there is anything there.)
     
  7. Offline

    tovd1234

    And those values probably means who has permission for this by default. Right?
     
  8. Offline

    fireblast709

    tovd1234 in this example, yes. I though I might make the example useful for bukkit.

    op means op have the permission by default, true means everyone, false means no one
     
  9. Offline

    ulsa

    http://wiki.bukkit.org/Plugin_YAML :)
    and also i dont know but i am assuming that the order is first commands come and then the permissions

    there is no op aswell
    reverse of op so everyone except ops can use it
     
  10. Offline

    wesley27

    ulsa as far as I know the order of elements in the plugin.yml doesn't matter.

    tovd1234 your plugin.yml looks fine so I don't know why it would be invalid, but trying what fireblast709 said is a good place to start
     
  11. Offline

    tovd1234

    ulsa fireblast709
    I've done both, but it still won't work and I get the same error (http://puu.sh/agVRU/8444741382.yml)

    I've done that, but I still get those errors, I've also found the Cause some lines under it: Caused by: org.yaml.snakeyaml.scanner.ScannerException: null; mapping values are not allowed here
    I've googled it and it means that you have some characters not on the right place or something like that. I've checked all of that but I still get errors.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  12. Offline

    wesley27

    tovd1234 This is a beginners mistake that you do once and never do again, but I may as well ask since your plugin.yml looks absolutely fine.

    When you wrote the file, did you use tabs or spaces? YML files need to have spaces, they don't work if you hit tab.
     
  13. Offline

    tovd1234

    I've removed all open spacec, and then added them again. But I still get the same error! I'm going to to it again tomorrow and check everything in the file.
     
  14. Offline

    fireblast709

    tovd1234 that last file 'enderpvp.sign.create' and 'enderpvp.resetkit' have invalid yaml like I explained before
     
  15. Offline

    DamnHippo

    Try doing your plugin.yml in java eclipse's editor. I had the same problem and that's what fixed it.
     
  16. Offline

    tovd1234

    I was already doing it in Eclipse's Editor

    fireblast709 wesley27 I've done all of the things yoou told me but I still get exactly the same error (Mapping values are not allowed)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  17. Offline

    wesley27

    tovd1234 I honestly can't think of anything, it's very strange. Is your plugin.yml in the root directory of your plugin? It should be.

    Your file looks fine. I guess you should work on what fireblast709 said about those two perms being invalid, but I'm not sure what he meant by that. He could explain?
     
  18. How many spaces are you putting? And no tabbing?
    4 spaces between each?
     
  19. Offline

    tryy3

    fireblast709 meant that the permission lines
    enderpvp.sign.create
    enderpvp.resetkit
    Doesn't have anything after them.
    But the problem is on line 26
    The permission line for the "Tank" command

    permission enderpvp.tank
    its missing a column for permission.

    I recommand using a online parser next time like
    http://yaml-online-parser.appspot.com/
     
  20. Offline

    fireblast709

    wesley27
     
  21. Offline

    tovd1234

    fireblast709 @@wesley27 tryy3 Thanks to you all! I finnaly found out what was wrong. I used the YAML Parser! (Thanks to tryy3) With that I found all the errors, now the plugin works like a charm and you don't want to know how happy I am with my first plugin ;D.
     
    ZodiacTheories likes this.
Thread Status:
Not open for further replies.

Share This Page