Invalid Plugin.yml error

Discussion in 'Plugin Development' started by pongo1231, Jul 11, 2013.

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

    pongo1231

    Hey,

    I tried to make a plugin who tps you to a coordinate. But after I start the plugin on a local bukkit server, I get following error:
    Code:java
    1.  
    2. D:\Bukkit things\Local Emulator>java -Xmx1024M -jar craftbukkit.jar -o true
    3. 18:31:54 [INFO] Starting minecraft server version 1.6.2
    4. 18:31:54 [INFO] Loading properties
    5. 18:31:54 [INFO] Default game type: SURVIVAL
    6. 18:31:54 [INFO] Generating keypair
    7. 18:31:54 [INFO] Starting Minecraft server on *:25565
    8. 18:31:55 [INFO] This server is running CraftBukkit version git-Bukkit-1.5.2-R1.0
    9. -20-g58c4152-b2810jnks (MC: 1.6.2) (Implementing API version 1.6.2-R0.1-SNAPSHOT
    10. )
    11. 18:31:55 [SEVERE] Could not load 'plugins\7bFun.jar' in folder 'plugins'
    12. org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    13. at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug
    14. inLoader.java:257)
    15. at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    16. .java:132)
    17. at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugins(CraftServer.ja
    18. va:239)
    19. at org.bukkit.craftbukkit.v1_6_R2.CraftServer.<init>(CraftServer.java:21
    20. 7)
    21. at net.minecraft.server.v1_6_R2.PlayerList.<init>(PlayerList.java:56)
    22. at net.minecraft.server.v1_6_R2.DedicatedPlayerList.<init>(SourceFile:11
    23. )
    24. at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.jav
    25. a:106)
    26. at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java
    27. :391)
    28. at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:5
    29. 82)
    30. Caused by: unacceptable character '?' (0xFFFD) special characters are not allowe
    31. d
    32. in "<reader>", position 201
    33. at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.ja
    34. va:98)
    35. at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:191)
    36. at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:63)
    37. at org.yaml.snakeyaml.Yaml.load(Yaml.java:411)
    38. at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.
    39. java:188)
    40. at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug
    41. inLoader.java:252)
    42. ... 8 more


    My Plugin.yml:
    Code:
    name: 7bFunPlugin
    main: io.github.pongo1231.SiebenbPlugin
    version: 1.0
    commands:
        Minen-Base:
            description: Teleportiere dich zur Minen-Base.
            usage: /Minen-Base
     
  2. Offline

    EcMiner

    the: Minen-Base, should only be 2 spaces not 4, and the description and usage should be 4 spaces instead of 8
     
    pongo1231 likes this.
  3. Offline

    pongo1231

    EcMiner
    I putted no space in Minen-Base, and it worked. With 2 spaces I got a new error.
    Well, thank you! :)
     
  4. Offline

    nisovin

    That doesn't actually matter.
     
    xTrollxDudex likes this.
  5. Offline

    xTrollxDudex

    pongo1231
    Post your main class. With package declaration. Your main class is not in the path you have in plugin.yml
     
  6. Offline

    nisovin

    The problem is in the plugin.yml. It seems to think you have an invalid character in there. Are you sure this one you pasted is the one you're actually using?
     
  7. Offline

    EcMiner

    Maybe it doesn't handle the - character?
     
  8. Offline

    ollie10000000

    I'm having the same problem please help:
    This is my error:
    Code:
    21:14:37 [INFO] Default game type: SURVIVAL
    21:14:37 [INFO] Generating keypair
    21:14:48 [INFO] Starting Minecraft server on *:25565
    21:14:51 [INFO] This server is running CraftBukkit version git-Bukkit-1.5.2-R1.0
    -30-g74f60d8-b2818jnks (MC: 1.6.2) (Implementing API version 1.6.2-R0.1-SNAPSHOT
    )
    21:14:52 [SEVERE] Could not load 'plugins\InvesterCraft.jar' in folder 'plugins'
     
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
            at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug
    inLoader.java:257)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:132)
            at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugins(CraftServer.ja
    va:239)
            at org.bukkit.craftbukkit.v1_6_R2.CraftServer.<init>(CraftServer.java:21
    7)
            at net.minecraft.server.v1_6_R2.PlayerList.<init>(PlayerList.java:56)
            at net.minecraft.server.v1_6_R2.DedicatedPlayerList.<init>(SourceFile:11
    )
            at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.jav
    a:106)
            at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java
    :391)
            at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:5
    82)
    Caused by: unacceptable character '?' (0xFFFD) special characters are not allowe
    d
    in "<reader>", position 1035
            at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.ja
    va:98)
            at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:191)
            at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:145)
            at org.yaml.snakeyaml.scanner.ScannerImpl.scanPlainSpaces(ScannerImpl.ja
    va:1639)
            at org.yaml.snakeyaml.scanner.ScannerImpl.scanPlain(ScannerImpl.java:162
    0)
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchPlain(ScannerImpl.java:84
    8)
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
    va:346)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:17
    9)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(P
    arserImpl.java:591)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:133)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    3)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
     
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:121)
            at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:411)
            at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.
    java:188)
            at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug
    inLoader.java:252)
            ... 8 more
    This is my plugin.yml (It's been through a YAML parser so I know it's not a spacing issue) I can't find the problem:
    Code:
    name: InvesterCraft
    main: mainPackage.InvesterCraft.InvesterCraft
    version: 1.0.0
    author: Ollie10000000
    commands:
      viewBalance:
        description: Allows the user to view there (and others, with correct permission) balance.
        usage: /viewbalance <player>
        permission: investercraft.viewbalance
        permission-message: Sorry, You don't have permission to use this command.
      shop:
        description: Allows the user to manage their shops, and also invest in shops.
        usage: /shop <create:invest:accept:decline>
        permission: investercraft.shop.*
        permission-message: Sorry, You don't have permission to use this command.
      invester:
        description: Allows admins to do things. ie. Reload the config.
        usage: /invester <reload>
        permission: investercraft.invester.*
        permission-message: Sorry, You don't have permission to use this command.
      pay:
        description: Allows the user to pay another player a sum of money into his/her/there certain shop(s).
        usage: /pay <player> <shop> <amount of £>
        permission: investercraft.pay
        permission-message: Sorry, You don't have permission to use this command.
    Permissions:
      investercraft.*:
        description: Allows access to all investercraft commands.
        default: op
        children:
          investercraft.shop.invest: true
          investercraft.shop.create: true
          investercraft.shop.list: true
          investercraft.shop.list.other: true
          investercraft.reload: true
          investercraft.pay: true
          investercraft.viewbalance: true
          investercraft.viewbalance.other: true
          investercraft.signshop.create: true
          investercraft.signshop.break: true
          investercraft.signshop.buy: true
          investercraft.signshop.sell: true
      investercraft.invester.*:
        description: Allows admins to do things. ie. Reload the config.
        default: op
        children:
          investercraft.reload: true
      investercraft.shop.*:
        description: Allows the user to manage their shops, and also invest in shops.
        default: true
        children:
          investercraft.shop.invest: true
          investercraft.shop.create: true
          investercraft.shop.list: true
          investercraft.shop.list.other: true
      investercraft.viewbalance:
        description: Allows the player to view their balance.
        default: true
      investercraft.viewbalance.other:
        description: Allows the player to view other's balance.
        default: op
      investercraft.reload:
        description: Allows the player to reload the investercraft config file.
        default: op
      investercraft.shop.create:
        description: Allows the player to create a shop that can be invested into and things bought from, by other players.
        default: true
      investercraft.shop.invest:
        description: Allows the player to invest in a shop for a percentage of what it makes.
        default: true
      investercraft.shop.list:
        description: Allows the player to list there own shops.
        default: true
      investercraft.shop.list.other:
        description: Allows the player to list other people's shops.
        default: op
      investercraft.pay:
        description: allows the player to pay a person
        default: true
      investercraft.signshop.*:
        description: allows the player to all permissions to do with signshops.
        default: op
        children:
          investercraft.signshop.create: true
          investercraft.signshop.break: true
          investercraft.signshop.buy: true
          investercraft.signshop.sell: true
      investercraft.signshop.create:
        description: allows the player to create a signshop (currently not non-admin compatible)
        default: op
      investercraft.signshop.break:
        description: allows the player to break a signshop (currently not non-admin compatible)
        default: op
      investercraft.signshop.buy:
        description: allows the player to buy from a signshop.
        default: true
      investercraft.signshop.sell:
        description: allows the player to sell from a signshop.
        default: true
    And this is my main class:
    Code:
    package mainPackage.InvesterCraft;
     
    import java.util.HashMap;
     
    import org.bukkit.Location;
    import org.bukkit.inventory.ItemStack;
    import org.bukkit.plugin.java.JavaPlugin;
     
    public class InvesterCraft extends JavaPlugin{
       
        @Override
        public void onEnable(){
            getLogger().info("---------------------------------------");
            getLogger().info("InvesterCraft v: 1.0.0 has been enabled");
            this.getServer().getPluginManager().registerEvents(new investerCraftEventListener(this), this);
            getLogger().info("InvesterCraft events, registered.");
            getCommand("invester").setExecutor(new invester(this));
            getCommand("shop").setExecutor(new shop(this));
            getCommand("pay").setExecutor(new pay(this));
            getCommand("balance").setExecutor(new balance(this));
            getLogger().info("InvesterCraft Commands Loaded.");
            this.saveConfig();
            getLogger().info("InvesterCraft Config loaded.");
            getLogger().info("InvesterCraft v: 1.0.0 has been enabled");
            getLogger().info("---------------------------------------");
        }
       
        @Override
        public void onDisable(){
            getLogger().info("InvesterCraft v: 1.0.0 has been disabled");
            this.saveConfig();       
        }
       
        HashMap<String, String> investPlayer = new HashMap<String, String>();
        HashMap<String, String> investMoney = new HashMap<String, String>();
        HashMap<String, String> investPercentage = new HashMap<String, String>();
        HashMap<String, String> investShopName = new HashMap<String, String>();
        HashMap<String, String> investInvestor = new HashMap<String, String>();
        HashMap<Location, Integer> signShopPayment = new HashMap<Location, Integer>();
        HashMap<Location, Integer> signShopAmount = new HashMap<Location, Integer>();
        HashMap<Location, String> signShopSB = new HashMap<Location, String>();
        HashMap<Location, ItemStack> SignShopItem = new HashMap<Location, ItemStack>();
        HashMap<Location, Location> SignShopLocation = new HashMap<Location, Location>();
    }
    I think the main is right (the class is called InvesterCraft.java (obviously the .java doesn't count)

    xTrollxDudex please help

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

    xTrollxDudex

    ollie10000000
    Try adding a description: -no desc- somewhere..
     
  10. Offline

    Tarestudio

    pongo1231
    The description for you plugin is just missing... In wiki its not marked as required, but it seems to be this way. Error is caused by getPluginDescription()
     
  11. Offline

    ollie10000000

    Oh thank's xTrollxDudex and Tarestudio, I added a description (like so):
    Code:
    name: InvesterCraft
    main: mainPackage.InvesterCraft.InvesterCraft
    version: 1.0.0
    author: Ollie10000000
    description: A new economy plugin allowing player's to invest in shops, and buy things from signs at spawn, and each other.
    commands:
      viewBalance:
        description: Allows the user to view there (and others, with correct permission) balance.
        usage: /viewbalance <player>
        permission: investercraft.viewbalance
        permission-message: Sorry, You don't have permission to use this command.
      shop:
        description: Allows the user to manage their shops, and also invest in shops.
        usage: /shop <create:invest:accept:decline>
        permission: investercraft.shop.*
        permission-message: Sorry, You don't have permission to use this command.
      invester:
        description: Allows admins to do things. ie. Reload the config.
        usage: /invester <reload>
        permission: investercraft.invester.*
        permission-message: Sorry, You don't have permission to use this command.
      pay:
        description: Allows the user to pay another player a sum of money into his/her/there certain shop(s).
        usage: /pay <player> <shop> <amount of £>
        permission: investercraft.pay
        permission-message: Sorry, You don't have permission to use this command.
    Permissions:
      investercraft.*:
        description: Allows access to all investercraft commands.
        default: op
        children:
          investercraft.shop.invest: true
          investercraft.shop.create: true
          investercraft.shop.list: true
          investercraft.shop.list.other: true
          investercraft.reload: true
          investercraft.pay: true
          investercraft.viewbalance: true
          investercraft.viewbalance.other: true
          investercraft.signshop.create: true
          investercraft.signshop.break: true
          investercraft.signshop.buy: true
          investercraft.signshop.sell: true
      investercraft.invester.*:
        description: Allows admins to do things. ie. Reload the config.
        default: op
        children:
          investercraft.reload: true
      investercraft.shop.*:
        description: Allows the user to manage their shops, and also invest in shops.
        default: true
        children:
          investercraft.shop.invest: true
          investercraft.shop.create: true
          investercraft.shop.list: true
          investercraft.shop.list.other: true
      investercraft.viewbalance:
        description: Allows the player to view their balance.
        default: true
      investercraft.viewbalance.other:
        description: Allows the player to view other's balance.
        default: op
      investercraft.reload:
        description: Allows the player to reload the investercraft config file.
        default: op
      investercraft.shop.create:
        description: Allows the player to create a shop that can be invested into and things bought from, by other players.
        default: true
      investercraft.shop.invest:
        description: Allows the player to invest in a shop for a percentage of what it makes.
        default: true
      investercraft.shop.list:
        description: Allows the player to list there own shops.
        default: true
      investercraft.shop.list.other:
        description: Allows the player to list other people's shops.
        default: op
      investercraft.pay:
        description: allows the player to pay a person
        default: true
      investercraft.signshop.*:
        description: allows the player to all permissions to do with signshops.
        default: op
        children:
          investercraft.signshop.create: true
          investercraft.signshop.break: true
          investercraft.signshop.buy: true
          investercraft.signshop.sell: true
      investercraft.signshop.create:
        description: allows the player to create a signshop (currently not non-admin compatible)
        default: op
      investercraft.signshop.break:
        description: allows the player to break a signshop (currently not non-admin compatible)
        default: op
      investercraft.signshop.buy:
        description: allows the player to buy from a signshop.
        default: true
      investercraft.signshop.sell:
        description: allows the player to sell from a signshop.
        default: true
    But I still get this error PLEASE HELP!!!
    Code:
    C:\Users\Ollie\Desktop\minecraft\server\testServer>java -Xms256M -Xmx512M -jar c
    raftbukkit.jar -o true
    08:14:47 [INFO] Starting minecraft server version 1.6.2
    08:14:47 [WARNING] To start the server with more ram, launch it as "java -Xmx102
    4M -Xms1024M -jar minecraft_server.jar"
    08:14:47 [INFO] Loading properties
    08:14:47 [INFO] Default game type: SURVIVAL
    08:14:47 [INFO] Generating keypair
    08:14:50 [INFO] Starting Minecraft server on *:25565
    08:14:53 [INFO] This server is running CraftBukkit version git-Bukkit-1.5.2-R1.0
    -30-g74f60d8-b2818jnks (MC: 1.6.2) (Implementing API version 1.6.2-R0.1-SNAPSHOT
    )
    08:14:54 [SEVERE] Could not load 'plugins\InvesterCraft.jar' in folder 'plugins'
     
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
            at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug
    inLoader.java:257)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:132)
            at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugins(CraftServer.ja
    va:239)
            at org.bukkit.craftbukkit.v1_6_R2.CraftServer.<init>(CraftServer.java:21
    7)
            at net.minecraft.server.v1_6_R2.PlayerList.<init>(PlayerList.java:56)
            at net.minecraft.server.v1_6_R2.DedicatedPlayerList.<init>(SourceFile:11
    )
            at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.jav
    a:106)
            at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java
    :391)
            at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:5
    82)
    Caused by: unacceptable character '?' (0xFFFD) special characters are not allowe
    d
    in "<reader>", position 1144
            at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.ja
    va:98)
            at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:191)
            at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:145)
            at org.yaml.snakeyaml.scanner.ScannerImpl.scanPlain(ScannerImpl.java:159
    6)
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchPlain(ScannerImpl.java:84
    8)
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
    va:346)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:17
    9)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(P
    arserImpl.java:591)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:133)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    3)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
     
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:121)
            at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:411)
            at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.
    java:188)
            at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug
    inLoader.java:252)
            ... 8 more
     
  12. Offline

    xTrollxDudex

    ollie10000000
    It found a question mark somewhere, remove it.
     
  13. Offline

    ollie10000000

    xTrollxDudex there's no question mark it would've found it in the parser, I'm not a noob.
     
  14. Offline

    xTrollxDudex

    ollie10000000
    Soz! I was a noob for a sec there... 0xFFFD is an unacceptable character, most likely casued by you file not being writtnen in UTF-8 or ASCII
     
  15. Offline

    ollie10000000

    Ok, so how do I make it written in UTF-8 or ASCII?
     
  16. Offline

    Techy4198

    according to the character map, no character exists with id 0xFFFD. open it in notepad++, it shows things like that.
     
  17. Offline

    xTrollxDudex

  18. Offline

    ollie10000000

    Techy4198 I'm editing the file in eclipse doesn that help atall? P.S: I'm loading it in notepad++ now

    Techy4198 and xTrollxDudex
    I opened the yml file in notepad++ and it didn't come up with any errors, also I looked at the website and, I must say, I don't really get it. I'm alright at coding but I suck a debugging.

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

    psanker

    Use UTF-8 encoding and "LF" line-endings, NOT "CR" nor "CRLF". Convert all tabs to spaces, and verify that the spaces are in powers of 2 (2, 4, 8, etc.). Also, it wouldn't hurt to make sure all the YAML keys are all lowercase. YAML has been known to weird out with upper and lowercase keys.
     
  20. Offline

    ollie10000000

    I went into eclipse and set the encoding to UTF-8, yet it's still not working, i'm on windows.

    xTrollxDudex I tried it again with ASCII, not working. It's not spacing (been through parser) I'm pretty sure all the permission's match. everything is lowercase. PLEASE HELP ME!!!! and psanker how do I change the Line Ending?

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

    psanker

    If you are using Notepad++, go into Edit > EOL Conversion > UNIX.
     
  22. Offline

    ollie10000000

    psanker and xTrollxDudex I opened my plugin.yml in notepad++ and did edit > EOL conversion > UNIX/OSX format (There was no "UNIX") I saved it opened it in eclipse then exported it, as a jar file, to my server and booted the server:
    Code:
    C:\Users\Ollie\Desktop\minecraft\server\testServer>java -Xms256M -Xmx512M -jar c
    raftbukkit.jar -o true
    10:27:11 [INFO] Starting minecraft server version 1.6.2
    10:27:11 [WARNING] To start the server with more ram, launch it as "java -Xmx102
    4M -Xms1024M -jar minecraft_server.jar"
    10:27:11 [INFO] Loading properties
    10:27:11 [INFO] Default game type: SURVIVAL
    10:27:11 [INFO] Generating keypair
    10:27:13 [INFO] Starting Minecraft server on *:25565
    10:27:16 [INFO] This server is running CraftBukkit version git-Bukkit-1.5.2-R1.0
    -30-g74f60d8-b2818jnks (MC: 1.6.2) (Implementing API version 1.6.2-R0.1-SNAPSHOT
    )
    10:27:16 [SEVERE] Could not load 'plugins\InvesterCraft.jar' in folder 'plugins'
     
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
            at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug
    inLoader.java:257)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:132)
            at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugins(CraftServer.ja
    va:239)
            at org.bukkit.craftbukkit.v1_6_R2.CraftServer.<init>(CraftServer.java:21
    7)
            at net.minecraft.server.v1_6_R2.PlayerList.<init>(PlayerList.java:56)
            at net.minecraft.server.v1_6_R2.DedicatedPlayerList.<init>(SourceFile:11
    )
            at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.jav
    a:106)
            at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java
    :391)
            at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:5
    82)
    Caused by: unacceptable character '?' (0xFFFD) special characters are not allowe
    d
    in "<reader>", position 1137
            at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.ja
    va:98)
            at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:191)
            at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:145)
            at org.yaml.snakeyaml.scanner.ScannerImpl.scanPlainSpaces(ScannerImpl.ja
    va:1639)
            at org.yaml.snakeyaml.scanner.ScannerImpl.scanPlain(ScannerImpl.java:162
    0)
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchPlain(ScannerImpl.java:84
    8)
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
    va:346)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:17
    9)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(P
    arserImpl.java:591)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:133)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    3)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
     
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:121)
            at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:411)
            at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.
    java:188)
            at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug
    inLoader.java:252)
            ... 8 more
    10:27:17 [INFO] Preparing level "world"
    10:27:18 [INFO] Preparing start region for level 0 (Seed: 345301075355323184)
    10:27:18 [INFO] ----- Bukkit Auto Updater -----
    10:27:18 [INFO] It appears that you're running a Development Build, when you've
    specified in bukkit.yml that you prefer to run Recommended Builds.
    10:27:19 [INFO] If you would like to be kept informed about new Development Buil
    d releases, it is recommended that you change 'preferred-channel' in your bukkit
    .yml to 'dev'.
    10:27:19 [INFO] With that set, you will be told whenever a new version is availa
    ble for download, so that you can always keep up to date and secure with the lat
    est fixes.
    10:27:19 [INFO] If you would like to disable this warning, simply set 'suggest-c
    hannels' to false in bukkit.yml.
    10:27:19 [INFO] ----- ------------------- -----
    10:27:19 [INFO] Preparing spawn area: 0%
    10:27:20 [INFO] Preparing spawn area: 1%
    10:27:21 [INFO] Preparing spawn area: 7%
    10:27:22 [INFO] Preparing spawn area: 19%
    10:27:23 [INFO] Preparing spawn area: 45%
    10:27:24 [INFO] Preparing spawn area: 70%
    10:27:25 [INFO] Preparing spawn area: 96%
    10:27:26 [INFO] Preparing start region for level 1 (Seed: 345301075355323184)
    10:27:27 [INFO] Preparing spawn area: 2%
    10:27:28 [INFO] Preparing spawn area: 48%
    10:27:29 [INFO] Preparing spawn area: 87%
    10:27:30 [INFO] Preparing start region for level 2 (Seed: 345301075355323184)
    10:27:31 [INFO] Preparing spawn area: 19%
    10:27:32 [INFO] Preparing spawn area: 50%
    10:27:32 [INFO] Server permissions file permissions.yml is empty, ignoring it
    10:27:34 [INFO] Done (16.506s)! For help, type "help" or "?"
    >
    xTrollxDudex Please Help! I've worked really hard on this plugin and I don't know what to do D:

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

    xTrollxDudex

    ollie10000000
    To be honest, this one got me too. I am 99% positive this is an encoding issue on your part.
     
  24. Offline

    ollie10000000

    xTrollxDudex I found the encoding, I'm 100% the encoding is UTF-8, and the LF ending is UNIX, I found some guys having problems with this, same as me no-one can find a fix, It's got to do with snakeYAML, it's happening majority on Linux and I got no idea what's gone wrong. it might be the unstable version of bukkit i'm running... Ima try the stable version, I'll get back to you
     
  25. Offline

    Mattportugalz

    Same with me but i get this:

    19:16:35 [SEVERE] Could not load 'plugins\PwrPlugz.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: main may not be within the org.bu
    kkit namespace
    18:32:01 [SEVERE] Could not ld 'plugins\PwrPlugz.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: me.M
    att.SupporterFiremaded.FiremadePlugin
     
  26. Offline

    ollie10000000

    xTrollxDudex didn't work :(

    @Mattportugalez It sucks doesn't it :(

    xTrollxDudex I tried updating my bukkit docs and it still didn't work :(

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

    xTrollxDudex

    ollie10000000
    Probably erroring on export, try looking inside the jar to see if the main class is in there.
     
  28. Offline

    ollie10000000

    xTrollxDudex there was some weird £ sign that got put in, it didn't show up on parser's (really weird) I found it, deleted it and... It Worked :D
     
  29. Offline

    DatChiefGoonBac

    Soz man but all I can suggest is going to the #bukkitdev in irc.esper.net
     
Thread Status:
Not open for further replies.

Share This Page