Solved Creating A Plugin

Discussion in 'Spigot Plugin Development' started by CreepersGamingMc, Jun 2, 2017.

  1. I've watched many videos yet none of them work. I'm trying to code a bedwars plugin I don't know how.
     
    • Funny Funny x 1
  2. Why don't learn first java?
     
    • Like Like x 1
  3. Any basic tutorials? Or links to tutorials?
     
    • Agree Agree x 1
  4. *Doesn't know how to code and goes straight into coding a highly skilled minigame that requires 2 years of Java expertise* lol
     
    • Agree Agree x 3
    • Like Like x 2
  5. No need to be rude, I want to get into coding
     
  6. @CreepersGamingMc
    Trust me you need to get into java coding first. You can't simply make a bedwars plugin without any experience.
    Every coder on spigot knows he even wouldn't be able to make a spawn plugin, when he started with bukkit without java experience.
    It can sound boring to learn java and the bukkit api, but you need some experience. I'm sure others can confirm this.
     
    • Agree Agree x 4
  7. it is not rude, it is life. Making a minigame is more then just coding a plugin. Jus start with something simple like all great developers started with. Make something easy to learn the api. I know it is not that fun creating stupid plugins, but it is the best way to learn.
     
  8. You have to take the time to learn the basics first, as with all things in life. If you just dive in head first you're going to have a rough time and swallow a lot of water before you learn to swim. And with programming, most people just give up after swallowing some water.
     
    • Agree Agree x 1
  9. Yeah, but right now you are doing advanced calculus as a person who doesn't even know what 2+2 is. You need to start with something more realistic and simpler, but still fun and enjoyable projects.

    Teaching you how to make a minigam right now is an impossible task for any of us.
     
  10. I suggest watching PogoStick29Dev's youtube tutorials.
     
    • Agree Agree x 2
    • Funny Funny x 2
  11. I'll look thanks
     
  12. Yay I made a basic plugin
     
  13. I'm getting this error, any help or explanations?
    C:\Users\Wyatt Reed\Desktop\Test Server>JAVA -Xmx1024M -Xms1024M -jar spigot-1.11.2.jar
    *** Error, this build is outdated ***
    *** Please download a new build as per instructions from https://www.spigotmc.org/ ***
    *** Server will start in 15 seconds ***
    Loading libraries, please wait...
    [01:06:18 INFO]: Starting minecraft server version 1.11.2
    [01:06:19 INFO]: Loading properties
    [01:06:19 INFO]: Default game type: SURVIVAL
    [01:06:20 INFO]: This server is running CraftBukkit version git-Spigot-3fb9445-fecf4b4 (MC: 1.11.2) (Implementing API version 1.11.2-R0.1-SNAPSHOT)
    [01:06:21 INFO]: Debug logging is disabled
    [01:06:21 INFO]: Using 4 threads for Netty based IO
    [01:06:21 INFO]: Server Ping Player Sample Count: 12
    [01:06:21 INFO]: Generating keypair
    [01:06:21 INFO]: Starting Minecraft server on *:25565
    [01:06:22 INFO]: Using default channel type
    [01:06:23 ERROR]: Could not load 'plugins\Test.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:162) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at org.bukkit.craftbukkit.v1_11_R1.CraftServer.loadPlugins(CraftServer.java:301) [spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at net.minecraft.server.v1_11_R1.DedicatedServer.init(DedicatedServer.java:204) [spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:544) [spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]
    Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning a simple key
    in 'reader', line 7, column 1:
    commands
    ^
    could not find expected ':'
    in 'reader', line 8, column 1:
    test:
    ^

    at org.yaml.snakeyaml.scanner.ScannerImpl.stalePossibleSimpleKeys(ScannerImpl.java:465) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at org.yaml.snakeyaml.scanner.ScannerImpl.needMoreTokens(ScannerImpl.java:280) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:225) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:557) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:157) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:147) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:224) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:450) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:381) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:232) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:157) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    ... 5 more
    [01:06:23 INFO]: **** Beginning UUID conversion, this may take A LONG time ****
    [01:06:23 INFO]: Preparing level "world"
    [01:06:23 INFO]: -------- World Settings For [world] --------
    [01:06:23 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    [01:06:23 INFO]: Mob Spawn Range: 4
    [01:06:23 INFO]: Item Merge Radius: 2.5
    [01:06:23 INFO]: Item Despawn Rate: 6000
    [01:06:23 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    [01:06:23 INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1
    [01:06:23 INFO]: Arrow Despawn Rate: 1200
    [01:06:23 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    [01:06:23 INFO]: Zombie Aggressive Towards Villager: true
    [01:06:23 INFO]: View Distance: 10
    [01:06:23 INFO]: Cactus Growth Modifier: 100%
    [01:06:23 INFO]: Cane Growth Modifier: 100%
    [01:06:23 INFO]: Melon Growth Modifier: 100%
    [01:06:23 INFO]: Mushroom Growth Modifier: 100%
    [01:06:23 INFO]: Pumpkin Growth Modifier: 100%
    [01:06:23 INFO]: Sapling Growth Modifier: 100%
    [01:06:23 INFO]: Wheat Growth Modifier: 100%
    [01:06:23 INFO]: NetherWart Growth Modifier: 100%
    [01:06:23 INFO]: Vine Growth Modifier: 100%
    [01:06:23 INFO]: Cocoa Growth Modifier: 100%
    [01:06:23 INFO]: Experience Merge Radius: 3.0
    [01:06:23 INFO]: Nerfing mobs spawned from spawners: false
    [01:06:23 INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911
    [01:06:23 INFO]: Structure Info Saving: true
    [01:06:23 INFO]: Max TNT Explosions: 100
    [01:06:23 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
    [01:06:23 INFO]: Random Lighting Updates: false
    [01:06:24 INFO]: -------- World Settings For [world_nether] --------
    [01:06:24 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    [01:06:24 INFO]: Mob Spawn Range: 4
    [01:06:24 INFO]: Item Merge Radius: 2.5
    [01:06:24 INFO]: Item Despawn Rate: 6000
    [01:06:24 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    [01:06:24 INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1
    [01:06:24 INFO]: Arrow Despawn Rate: 1200
    [01:06:24 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    [01:06:24 INFO]: Zombie Aggressive Towards Villager: true
    [01:06:24 INFO]: View Distance: 10
    [01:06:24 INFO]: Cactus Growth Modifier: 100%
    [01:06:24 INFO]: Cane Growth Modifier: 100%
    [01:06:24 INFO]: Melon Growth Modifier: 100%
    [01:06:24 INFO]: Mushroom Growth Modifier: 100%
    [01:06:24 INFO]: Pumpkin Growth Modifier: 100%
    [01:06:24 INFO]: Sapling Growth Modifier: 100%
    [01:06:24 INFO]: Wheat Growth Modifier: 100%
    [01:06:24 INFO]: NetherWart Growth Modifier: 100%
    [01:06:24 INFO]: Vine Growth Modifier: 100%
    [01:06:24 INFO]: Cocoa Growth Modifier: 100%
    [01:06:24 INFO]: Experience Merge Radius: 3.0
    [01:06:24 INFO]: Nerfing mobs spawned from spawners: false
    [01:06:24 INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911
    [01:06:24 INFO]: Structure Info Saving: true
    [01:06:24 INFO]: Max TNT Explosions: 100
    [01:06:24 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
    [01:06:24 INFO]: Random Lighting Updates: false
    [01:06:24 INFO]: -------- World Settings For [world_the_end] --------
    [01:06:24 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    [01:06:24 INFO]: Mob Spawn Range: 4
    [01:06:24 INFO]: Item Merge Radius: 2.5
    [01:06:24 INFO]: Item Despawn Rate: 6000
    [01:06:24 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    [01:06:24 INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1
    [01:06:24 INFO]: Arrow Despawn Rate: 1200
    [01:06:24 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    [01:06:24 INFO]: Zombie Aggressive Towards Villager: true
    [01:06:24 INFO]: View Distance: 10
    [01:06:24 INFO]: Cactus Growth Modifier: 100%
    [01:06:24 INFO]: Cane Growth Modifier: 100%
    [01:06:24 INFO]: Melon Growth Modifier: 100%
    [01:06:24 INFO]: Mushroom Growth Modifier: 100%
    [01:06:24 INFO]: Pumpkin Growth Modifier: 100%
    [01:06:24 INFO]: Sapling Growth Modifier: 100%
    [01:06:24 INFO]: Wheat Growth Modifier: 100%
    [01:06:24 INFO]: NetherWart Growth Modifier: 100%
    [01:06:24 INFO]: Vine Growth Modifier: 100%
    [01:06:24 INFO]: Cocoa Growth Modifier: 100%
    [01:06:24 INFO]: Experience Merge Radius: 3.0
    [01:06:24 INFO]: Nerfing mobs spawned from spawners: false
    [01:06:24 INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911
    [01:06:24 INFO]: Structure Info Saving: true
    [01:06:24 INFO]: Max TNT Explosions: 100
    [01:06:24 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
    [01:06:24 INFO]: Random Lighting Updates: false
    [01:06:25 INFO]: Preparing start region for level 0 (Seed: -7666648734197214137)
    [01:06:26 INFO]: Preparing spawn area: 0%
    [01:06:27 INFO]: Preparing spawn area: 4%
    [01:06:28 INFO]: Preparing spawn area: 28%
    [01:06:29 INFO]: Preparing spawn area: 50%
    [01:06:30 INFO]: Preparing spawn area: 79%
    [01:06:31 INFO]: Preparing start region for level 1 (Seed: -7666648734197214137)
    [01:06:32 INFO]: Preparing spawn area: 28%
    [01:06:33 INFO]: Preparing spawn area: 58%
    [01:06:34 INFO]: Preparing spawn area: 94%
    [01:06:34 INFO]: Preparing start region for level 2 (Seed: -7666648734197214137)
    [01:06:35 INFO]: Server permissions file permissions.yml is empty, ignoring it
    [01:06:35 INFO]: Done (12.244s)! For help, type "help" or "?"
    >pl
    [01:07:24 INFO]: Plugins (0):
     
  14. You have to get more experience, to code a bigger plugin or use custom
     
    • Like Like x 1
  15. If you still need help, post your plugin.yml.
     
  16. could not find expected ':'
    missing a ":"
     
    • Like Like x 1
  17. "org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml"

    Post your plugin.yml
     
  18. Here it is

    name: Test
    version: 1.0
    main: me.CreepersGamingMc.Test.Test
    author: CreepersGamingMc
    description: A test plugin!

    commands
    test:
    usage: /<command>
    description: A test command
     
    • Funny Funny x 1
  19. [01:06:23 ERROR]: Could not load 'plugins\Test.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml

    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:162) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at org.bukkit.craftbukkit.v1_11_R1.CraftServer.loadPlugins(CraftServer.java:301) [spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at net.minecraft.server.v1_11_R1.DedicatedServer.init(DedicatedServer.java:204) [spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:544) [spigot-1.11.2.jar:git-Spigot-3fb9445-fecf4b4]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]
    Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning a simple key
    in 'reader', line 7, column 1:
    commands
    ^
    could not find expected ':'

    in 'reader', line 8, column 1:
    test:
    ^


    If you cant even read a stack trace then you're not ready for this.. It literally tells you in plain English whats wrong and where.
     
    • Agree Agree x 4