Solved Can't Load!!!?!?!

Discussion in 'Plugin Development' started by DominicGamesHD, Jan 30, 2016.

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

    DominicGamesHD

    I am not sure this is the right place to post this but tell me if I am wrong!

    -----------------------------------------------------------------------------------------------------------------------------------
    Hello I am new to programming 'Bukkit' and m console says this:
    Code:
    30.01 19:31:29 [Multicraft] ItsDominicGames ran command Message of the Day
    30.01 19:31:29 [Connect] User ItsDominicGames, IP 109.149.42.63
    30.01 19:31:29 [Server] INFO UUID of player ItsDominicGames is 0ea2de8d-3497-4163-8870-ff86cd79ca33
    30.01 19:31:07 [Server] Startup Done (1.227s)! For help, type "help" or "?"
    30.01 19:31:07 [Server] INFO Server permissions file permissions.yml is empty, ignoring it
    30.01 19:31:07 [Server] INFO Preparing start region for level 2 (Seed: -7467133591554154381)
    30.01 19:31:07 [Server] INFO Preparing start region for level 1 (Seed: -7467133591554154381)
    30.01 19:31:06 [Server] INFO Preparing start region for level 0 (Seed: -7467133591554154381)
    30.01 19:31:06 [Server] INFO Preparing level "world"
    30.01 19:31:06 [Server] INFO ... 8 more
    30.01 19:31:06 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:157) ~[craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:232) ~[craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at org.yaml.snakeyaml.Yaml.load(Yaml.java:381) ~[craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:450) ~[craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120) ~[craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105) ~[craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122) ~[craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:229) ~[craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:132) ~[craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:143) ~[craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) ~[craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(ParserImpl.java:586) ~[craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:226) ~[craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:420) ~[craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO ^
    30.01 19:31:06 [Server] INFO hello:
    30.01 19:31:06 [Server] INFO in 'reader', line 10, column 1:
    30.01 19:31:06 [Server] INFO found character      '\t(TAB)' that cannot start any token. (Do not use \t(TAB) for indentation)
    30.01 19:31:06 [Server] INFO Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token
    30.01 19:31:06 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]
    30.01 19:31:06 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:504) [craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:179) [craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerList.<init>(PlayerList.java:69) [craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.CraftServer.<init>(CraftServer.java:251) [craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:289) [craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:162) ~[craftbukkit-1.8.8.jar:git-Bukkit-07c3001]
    30.01 19:31:06 [Server] INFO org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    30.01 19:31:06 [Server] ERROR Could not load 'plugins/BComs.jar' in folder 'plugins'
    30.01 19:31:06 [Server] INFO This server is running CraftBukkit version git-Bukkit-07c3001 (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)
    30.01 19:31:06 [Server] INFO Using epoll channel type
    30.01 19:31:06 [Server] INFO Starting Minecraft server on 51.254.182.10:25565
    30.01 19:31:06 [Server] INFO Generating keypair
    30.01 19:31:06 [Server] INFO Default game type: SURVIVAL
    30.01 19:31:06 [Server] INFO Loading properties
    30.01 19:31:06 [Server] WARN To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
    30.01 19:31:06 [Server] INFO Starting minecraft server version 1.8.8
    30.01 19:31:02 [Server] INFO Loading libraries, please wait...
    30.01 19:31:02 [Server] INFO Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    30.01 19:31:02 [Multicraft] Loaded config for "CraftBukkit 1.8.8"
    30.01 19:31:02 [Multicraft] Starting server!
    30.01 19:31:02 [Multicraft] Loading server properties
    30.01 19:30:59 [Multicraft] Server stopped
    30.01 19:30:59 [Multicraft] Server shut down (stopping)
    30.01 19:30:59 [Server] INFO Saving chunks for level 'world_the_end'/The End
    30.01 19:30:59 [Server] INFO Saving chunks for level 'world_nether'/Nether
    30.01 19:30:59 [Multicraft] Received restart command
    And then this is my eclipse file main class
    Code:
    package com.DGTBP.bcom;
    
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.plugin.java.JavaPlugin;
    
    public class Main extends JavaPlugin{
        public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
            if(cmd.getName().equalsIgnoreCase("hello")){
                sender.sendMessage("world!");
            }
           
            return false;
        }
    
    }
    
    And at last the 'plugin.yml'
    Code:
    name: BasicCommands   
    version: 0.1
    description: Basic and Essential Commands.
    author: DominicGamesTheBukkitProgrammer
    website: www.clasteen.com
    
    main: com.DGTBP.bcom.Main
    
    commands:
        hello:
            description: Command 1
    All Help will be good :)
     
  2. Online

    timtower Administrator Administrator Moderator

    @DominicGamesHD
    Code:
    INFO found character      '\t(TAB)' that cannot start any token. (Do not use \t(TAB) for indentation)
    Replace the tabs with spaces
     
  3. Offline

    DominicGamesHD

    In the plugins.yml ?
     
  4. Offline

    Xerox262

    To add on, when I started I was having this problem, even though I was not pressing tab for the spacing, you should try to avoid ALT + Tab to change window, otherwise you should look into your text editor and see if it has a tab to space feature.
     
  5. Offline

    DominicGamesHD

    I use eclipse :)
     
  6. Online

    timtower Administrator Administrator Moderator

    Every yaml file that you will ever use
     
  7. Offline

    DominicGamesHD

Thread Status:
Not open for further replies.

Share This Page