Solved Plugin Doesn't Want to Load (1.7.2)

Discussion in 'Plugin Development' started by FabeGabeMC, Dec 8, 2013.

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

    FabeGabeMC

    Hey guys. I have recently finished trying to fix my plugin's features, or testing them, apparently.
    Here's the problem:
    Code:
    [16:12:25] [Server thread/ERROR]: Could not load 'plugins\GeoHG.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:257) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:255) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at org.bukkit.craftbukkit.v1_7_R1.CraftServer.<init>(CraftServer.java:233) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at net.minecraft.server.v1_7_R1.PlayerList.<init>(PlayerList.java:63) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at net.minecraft.server.v1_7_R1.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:126) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:420) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
    Caused by: org.yaml.snakeyaml.scanner.ScannerException: null; mapping values are not allowed here
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:733) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:305) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:179) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:563) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:411) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:188) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:252) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-23-ge8eb325-b2941jnks]
        ... 8 more
    [16:12:25] [Server thread/INFO]: [YoutubePlugin] Loading YoutubePlugin v1.0
    That is the most recent log.

    Here is my plugin configuration:

    Code:java
    1. package me.FabeGabe.GeoHG;
    2.  
    3. import org.bukkit.Bukkit;
    4. import org.bukkit.ChatColor;
    5. import org.bukkit.Color;
    6. import org.bukkit.FireworkEffect;
    7. import org.bukkit.FireworkEffect.Type;
    8. import org.bukkit.GameMode;
    9. import org.bukkit.Sound;
    10. import org.bukkit.command.Command;
    11. import org.bukkit.command.CommandSender;
    12. import org.bukkit.entity.Firework;
    13. import org.bukkit.entity.Player;
    14. import org.bukkit.event.EventHandler;
    15. import org.bukkit.event.Listener;
    16. import org.bukkit.event.player.PlayerJoinEvent;
    17. import org.bukkit.inventory.meta.FireworkMeta;
    18. import org.bukkit.plugin.java.JavaPlugin;
    19. import org.bukkit.potion.PotionEffectType;
    20.  
    21. public class GeoHG extends JavaPlugin implements Listener{
    22. static long LIMIT = 3000L;
    23.  
    24. public void onEnable(){
    25. Bukkit.getServer().getPluginManager().registerEvents(this, this);
    26. }
    27.  
    28. public void onDisable(){
    29.  
    30. }
    31.  
    32. public static GeoHG plugin;
    33.  
    34. public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
    35. Player p = (Player) sender;
    36. if(cmd.getName().equalsIgnoreCase("quit")) {
    37. p.setGameMode(GameMode.ADVENTURE);
    38. p.setFlying(true);
    39. p.hasPotionEffect(PotionEffectType.INVISIBILITY);
    40. p.playSound(p.getLocation(), Sound.ENDERMAN_TELEPORT, (float)LIMIT, (float)LIMIT);
    41. Bukkit.broadcastMessage(ChatColor.GREEN + "[GeoSG] " + ChatColor.AQUA + "Tribute " + ChatColor.GOLD + p.getName() + ChatColor.AQUA + "has forfeited!");
    42. p.getInventory().clear();
    43. }
    44. if(p.isDead()){
    45. p.setGameMode(GameMode.ADVENTURE);
    46. p.setAllowFlight(true);
    47. p.setFlying(true);
    48. p.hasPotionEffect(PotionEffectType.INVISIBILITY);
    49. p.playSound(p.getLocation(), Sound.ENDERMAN_TELEPORT, (float)LIMIT, (float)LIMIT);
    50. Bukkit.broadcastMessage(ChatColor.GREEN + "[GeoSG] " + ChatColor.AQUA + "Tribute " + ChatColor.GOLD + p.getName() + ChatColor.AQUA + "has fallen.");
    51. p.getInventory().clear();
    52. }
    53. return false;
    54. }
    55.  
    56. @EventHandler
    57. public void onPlayerJoin(final PlayerJoinEvent Event){
    58. Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable(){
    59. public void run(){
    60. Player player = Event.getPlayer();
    61. Bukkit.broadcastMessage(ChatColor.GREEN + "[GeoSG] " + ChatColor.AQUA + "Tribute " + ChatColor.GOLD + player.getName() + ChatColor.AQUA + " has joined lobby " + ChatColor.RED + Bukkit.getServerName() + ChatColor.AQUA + ".");
    62. player.playSound(player.getLocation(), Sound.LEVEL_UP, (float)LIMIT, (float)LIMIT);
    63. Firework f = (Firework) Event.getPlayer().getWorld().spawn(Event.getPlayer().getLocation(), Firework.class);
    64.  
    65. FireworkMeta fm = f.getFireworkMeta();
    66. fm.addEffect(FireworkEffect.builder()
    67. .flicker(false)
    68. .trail(true)
    69. .with(Type.BALL)
    70. .with(Type.BALL_LARGE)
    71. .with(Type.STAR)
    72. .withColor(Color.ORANGE)
    73. .withColor(Color.YELLOW)
    74. .withFade(Color.PURPLE)
    75. .withFade(Color.RED)
    76. .build());
    77. fm.setPower(2);
    78. f.setFireworkMeta(fm);
    79.  
    80. }
    81. }, 10);
    82. }
    83. }


    And here is my config.yml:

    Code:java
    1. name: GeoHG
    2. main: me.FabeGabe.GeoHG.GeoHG
    3. version: 0.1
    4. author: FabeGabe
    5. quit:
    6. description: Forfeit the Hunger Games!


    Thanks,

    FabeGabe
     
  2. Offline

    JOPHESTUS

    Should be:
    Code:yml
    1.  
    2. name: GeoHG
    3. main: me.FabeGabe.GeoHG.GeoHG
    4. version: 0.1
    5. author: FabeGabe
    6. commands:
    7. quit:
    8. description: Forfeit the Hunger Games!
    9.  

    You left out the commands thing
     
Thread Status:
Not open for further replies.

Share This Page