Hi. I need some help with an error I'm getting. Here's the log: Code (Text): [23:12:29] [Server thread/INFO]: Starting minecraft server version 1.12.2 [23:12:29] [Server thread/INFO]: Loading properties [23:12:29] [Server thread/INFO]: Default game type: SURVIVAL [23:12:29] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-2086bb0-8cc5a7e (MC: 1.12.2) (Implementing API version 1.12.2-R0.1-SNAPSHOT) [23:12:30] [Server thread/INFO]: Debug logging is disabled [23:12:30] [Server thread/INFO]: Server Ping Player Sample Count: 12 [23:12:30] [Server thread/INFO]: Using 4 threads for Netty based IO [23:12:30] [Server thread/INFO]: Generating keypair [23:12:30] [Server thread/INFO]: Starting Minecraft server on *:25565 [23:12:30] [Server thread/INFO]: Using default channel type [23:12:30] [Server thread/ERROR]: Could not load 'plugins\VysionCore.jar' in folder 'plugins' org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:162) ~[spigot.jar:git-Spigot-2086bb0-8cc5a7e] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [spigot.jar:git-Spigot-2086bb0-8cc5a7e] at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:305) [spigot.jar:git-Spigot-2086bb0-8cc5a7e] at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:205) [spigot.jar:git-Spigot-2086bb0-8cc5a7e] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545) [spigot.jar:git-Spigot-2086bb0-8cc5a7e] at java.lang.Thread.run(Unknown Source) [?:1.8.0_171] Caused by: org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1 at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:254) ~[spigot.jar:git-Spigot-2086bb0-8cc5a7e] at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:58) ~[spigot.jar:git-Spigot-2086bb0-8cc5a7e] at org.yaml.snakeyaml.Yaml.load(Yaml.java:452) ~[spigot.jar:git-Spigot-2086bb0-8cc5a7e] at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:226) ~[spigot.jar:git-Spigot-2086bb0-8cc5a7e] at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:157) ~[spigot.jar:git-Spigot-2086bb0-8cc5a7e] ... 5 more Caused by: java.nio.charset.MalformedInputException: Input length = 1 at java.nio.charset.CoderResult.throwException(Unknown Source) ~[?:1.8.0_171] at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.8.0_171] at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.8.0_171] at java.io.InputStreamReader.read(Unknown Source) ~[?:1.8.0_171] at org.yaml.snakeyaml.reader.UnicodeReader.read(UnicodeReader.java:125) ~[spigot.jar:git-Spigot-2086bb0-8cc5a7e] at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:223) ~[spigot.jar:git-Spigot-2086bb0-8cc5a7e] at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:58) ~[spigot.jar:git-Spigot-2086bb0-8cc5a7e] at org.yaml.snakeyaml.Yaml.load(Yaml.java:452) ~[spigot.jar:git-Spigot-2086bb0-8cc5a7e] at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:226) ~[spigot.jar:git-Spigot-2086bb0-8cc5a7e] at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:157) ~[spigot.jar:git-Spigot-2086bb0-8cc5a7e] ... 5 more [23:12:30] [Server thread/INFO]: Set PluginClassLoader as parallel capable [23:12:30] [Server thread/INFO]: [VysionHubFly] Loading VysionHubFly v1.0 [23:12:30] [Server thread/INFO]: [ProtocolSupport] Loading ProtocolSupport v4.28 [23:12:30] [Server thread/INFO]: [ProtocolSupport] Detected Spigot server implementation type [23:12:30] [Server thread/INFO]: [ProtocolSupport] Allocator: PooledByteBufAllocator(directByDefault: true), direct: true [23:12:31] [Server thread/INFO]: [ProtocolSupport] Compression level: 3 [23:12:31] [Server thread/INFO]: [ProtocolSupport] Assume 1.5.2 ping delay: 100 [23:12:31] [Server thread/INFO]: [ProtocolSupport] Assume legacy ping delay: 200 [23:12:31] [Server thread/INFO]: [ProtocolSupport] Login threads keep alive time: 60 [23:12:33] [Server thread/INFO]: [ProtocolSupport] Enabling ProtocolSupport v4.28 [23:12:33] [Server thread/INFO]: **** Beginning UUID conversion, this may take A LONG time **** [23:12:33] [Server thread/INFO]: Preparing level "Hub" [23:12:33] [Server thread/INFO]: -------- World Settings For [Hub] -------- [23:12:33] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911 [23:12:33] [Server thread/INFO]: Item Despawn Rate: 6000 [23:12:33] [Server thread/INFO]: Item Merge Radius: 2.5 [23:12:33] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true [23:12:33] [Server thread/INFO]: View Distance: 10 [23:12:33] [Server thread/INFO]: Arrow Despawn Rate: 1200 [23:12:33] [Server thread/INFO]: Zombie Aggressive Towards Villager: true [23:12:33] [Server thread/INFO]: Nerfing mobs spawned from spawners: false [23:12:33] [Server thread/INFO]: Experience Merge Radius: 3.0 [23:12:33] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1 [23:12:33] [Server thread/INFO]: Cactus Growth Modifier: 100% [23:12:33] [Server thread/INFO]: Cane Growth Modifier: 100% [23:12:33] [Server thread/INFO]: Melon Growth Modifier: 100% [23:12:33] [Server thread/INFO]: Mushroom Growth Modifier: 100% [23:12:33] [Server thread/INFO]: Pumpkin Growth Modifier: 100% [23:12:33] [Server thread/INFO]: Sapling Growth Modifier: 100% [23:12:33] [Server thread/INFO]: Wheat Growth Modifier: 100% [23:12:33] [Server thread/INFO]: NetherWart Growth Modifier: 100% [23:12:33] [Server thread/INFO]: Vine Growth Modifier: 100% [23:12:33] [Server thread/INFO]: Cocoa Growth Modifier: 100% [23:12:33] [Server thread/INFO]: Structure Info Saving: true [23:12:33] [Server thread/INFO]: Mob Spawn Range: 4 [23:12:33] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64 [23:12:33] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16 / Tiv true [23:12:33] [Server thread/INFO]: Random Lighting Updates: false [23:12:33] [Server thread/INFO]: Max TNT Explosions: 100 [23:12:33] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms [23:12:33] [Server thread/INFO]: -------- World Settings For [Hub_the_end] -------- [23:12:33] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911 [23:12:33] [Server thread/INFO]: Item Despawn Rate: 6000 [23:12:33] [Server thread/INFO]: Item Merge Radius: 2.5 [23:12:33] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true [23:12:33] [Server thread/INFO]: View Distance: 10 [23:12:33] [Server thread/INFO]: Arrow Despawn Rate: 1200 [23:12:33] [Server thread/INFO]: Zombie Aggressive Towards Villager: true [23:12:33] [Server thread/INFO]: Nerfing mobs spawned from spawners: false [23:12:33] [Server thread/INFO]: Experience Merge Radius: 3.0 [23:12:33] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1 [23:12:33] [Server thread/INFO]: Cactus Growth Modifier: 100% [23:12:33] [Server thread/INFO]: Cane Growth Modifier: 100% [23:12:33] [Server thread/INFO]: Melon Growth Modifier: 100% [23:12:33] [Server thread/INFO]: Mushroom Growth Modifier: 100% [23:12:33] [Server thread/INFO]: Pumpkin Growth Modifier: 100% [23:12:33] [Server thread/INFO]: Sapling Growth Modifier: 100% [23:12:33] [Server thread/INFO]: Wheat Growth Modifier: 100% [23:12:33] [Server thread/INFO]: NetherWart Growth Modifier: 100% [23:12:33] [Server thread/INFO]: Vine Growth Modifier: 100% [23:12:33] [Server thread/INFO]: Cocoa Growth Modifier: 100% [23:12:33] [Server thread/INFO]: Structure Info Saving: true [23:12:33] [Server thread/INFO]: Mob Spawn Range: 4 [23:12:33] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64 [23:12:33] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16 / Tiv true [23:12:33] [Server thread/INFO]: Random Lighting Updates: false [23:12:33] [Server thread/INFO]: Max TNT Explosions: 100 [23:12:33] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms [23:12:33] [Server thread/INFO]: Preparing start region for level 0 (Seed: 5357342307650606608) [23:12:34] [Server thread/INFO]: Preparing spawn area: 36% [23:12:35] [Server thread/INFO]: Preparing spawn area: 99% [23:12:35] [Server thread/INFO]: Preparing start region for level 1 (Seed: 5357342307650606608) [23:12:35] [Server thread/INFO]: [VysionHubFly] Enabling VysionHubFly v1.0 [23:12:35] [Server thread/INFO]: [VysionHubFly] Enabled VysionHubFly [23:12:35] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it [23:12:35] [Server thread/INFO]: Done (2.714s)! For help, type "help" or "?" [23:12:52] [LoginProcessingThread/INFO]: UUID of player ultraMLG1108 is e288d66b-3eb9-4f6d-8caf-363f95cf4ce0 [23:12:52] [LoginProcessingThread/INFO]: UUID of player Bumblebee309 is e08301dc-0e6c-452c-9908-c53eb2149b9e [23:12:53] [Server thread/INFO]: ultraMLG1108[/70.95.129.116:56621] logged in with entity id 373 at ([Hub]-85.45944948932787, 64.7531999805212, 357.61487856305877) [23:12:53] [Server thread/INFO]: Bumblebee309[/107.206.70.17:59020] logged in with entity id 374 at ([Hub]-125.64160049395993, 71.0, 204.4852292088763) [23:12:57] [Server thread/INFO]: Bumblebee309 issued server command: /pl [23:13:02] [Server thread/INFO]: ultraMLG1108 issued server command: /pl [23:13:05] [Server thread/INFO]: ultraMLG1108 issued server command: /hf [23:13:10] [Server thread/INFO]: Bumblebee309 issued server command: /stop [23:13:14] [Server thread/INFO]: Stopping the server [23:13:14] [Server thread/INFO]: Stopping server [23:13:14] [Server thread/INFO]: [ProtocolSupport] Disabling ProtocolSupport v4.28 [23:13:14] [Server thread/INFO]: [VysionHubFly] Disabling VysionHubFly v1.0 [23:13:14] [Server thread/INFO]: [VysionHubFly] Disabled VysionHubFly [23:13:14] [Server thread/INFO]: Saving players [23:13:14] [Server thread/INFO]: ultraMLG1108 lost connection: Server closed [23:13:14] [Server thread/INFO]: ultraMLG1108 left the game [23:13:14] [Server thread/INFO]: Bumblebee309 lost connection: Server closed [23:13:14] [Server thread/INFO]: Bumblebee309 left the game [23:13:14] [Server thread/INFO]: Saving worlds [23:13:14] [Server thread/INFO]: Saving chunks for level 'Hub'/overworld [23:13:15] [Server thread/INFO]: Saving chunks for level 'Hub_the_end'/the_end Here's my plugin.yml: Code (YAML): name: VysionCore author: ultraMLG1108 version: 0.1 main: co.vysion.VysionCore.Main commands: gamemode: description: Changes your gamemode, or another player's. aliases: gm usage: §cSyntax error. Use /gamemode <mode> [player] permission: vysioncore.gamemode permission-message: §cYou don't have permission to use this command. teleport: description: Teleports players. aliases: tp usage: §cSyntax error. Use /tp <player> [otherPlayer] permission: vysioncore.teleport permission-message: §cYou don't have permission to use this command. invsee: description: Shows you the inventory of another player. usage: §cSyntax error. Use /invsee <player> permission: vysioncore.invsee permission-message: §cYou don't have permission to use this command. And here's my Main class, if it's any help: Code (Java): package co.vysion.VysionCore; import org.bukkit.plugin.java.JavaPlugin; import co.vysion.VysionCore.cmds.GamemodeCommand; import co.vysion.VysionCore.cmds.InvSeeCommand; import co.vysion.VysionCore.cmds.TeleportCommand; public class Main extends JavaPlugin { @Override public void onEnable() { getCommand("gamemode").setExecutor(new GamemodeCommand()); getCommand("teleport").setExecutor(new TeleportCommand()); getCommand("invsee").setExecutor(new InvSeeCommand()); getLogger().info("Enabled VysionCore v1.0"); } @Override public void onDisable() { getLogger().info("Disabled VysionCore v1.0"); } } Thanks for any help in advance!
You have single quotes all over that file. If you want to use them, the whole String must be wrapped in double quotes, or use double single quotes at every spot you want. Code (Text): key1: "This ' example" key2: This '' example The section symbol is fine. I wish more people would use them in this file to pretty up the /help menu
Thanks for your help. Unfortunately, that did not do the trick. Know of any other things that might be wrong?
Ensure that you are not using tabs for indentation, use spaces instead. Additionally, you could use a online YAML lint to parse your plugin.yml to find syntax errors.
Only other thing I can think of is you possibly have zero width characters in there throwing a fit. What happens when you pass this through an online yaml parser?
They're spaces, and I tried parsing it online. All good. Would you need to see my command classes? Passed it through a parser, says it's valid YAML. Weird.
Hmm. Delete the file and retype it again (do not copy paste, in case there's some invalid zero width characters in there)
Are you using IntelliJ or Eclipse? If you are using IntelliJ, click File, then Project Structure, then Artifacts. That should bring up the following screen: Click the green plus icon, then click File, then locate your plugin's plugin.yml file.
MalformedInputException usually happens when the InputStreamReader reads a line with a character outside of the encoding used. In short, it found a weird character. The only out of the normal character in your plugin.yml would be the section symbols (§)
You guys were right after all. Does anyone know how I can use color in the plugin.yml permission messages then (without doing permissions in the code)? Edit: Looks like the coding was set to something other than UTF-8. Changed it for the workspace. Thanks @Fizmo !