[SPIGOT-7250] Error in Console Created: 31/Jan/23  Updated: 25/Dec/24  Resolved: 31/Jan/23

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Gonzalo Villa Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: plugin.yml
Environment:

 Could not load 'plugins/TheVillasPlugin.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: commands are of wrong type
        at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:1061) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:259) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:183) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:155) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_19_R1.CraftServer.loadPlugins(CraftServer.java:423) ~[paper-1.19.2.jar:git-Paper-307]
        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:278) ~[paper-1.19.2.jar:git-Paper-307]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1100) ~[paper-1.19.2.jar:git-Paper-307]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-307]
        at java.lang.Thread.run(Thread.java:857) ~[?:?]
Caused by: java.lang.ClassCastException: java.lang.String incompatible with java.util.Map
        at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:1043) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        ... 8 more


Version: 1.19.2
Guidelines Read: Yes

 Description   

#file: noinspection YAMLSchemaValidation
name: TheVillas
version: '${project.version}'
main: thevilla.core.Main
api-version: 1.19
commands:
description: testing
usage: /<command>
aliases:

  • info
  • informacion


 Comments   
Comment by Black Hole [ 31/Jan/23 ]

I assume that you're trying to write a plugin and not using a plugin from another developer.

The error message is "Caused by: java.lang.ClassCastException: java.lang.String incompatible with java.util.Map
        at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:1043)"

PluginDescriptionFile is referring to the plugin.yml file. Please read how that is structured at https://www.spigotmc.org/wiki/plugin-yml/

Please also read how the YAML format works in general and if you still can't find where you made errors with spaces and tabs use an online YAML parser to validate your file.

Generated at Tue Apr 22 05:09:37 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.