Jump to content

Minecraft Plugin.yml funktioniert nicht.


cool_brick24
 Share

Recommended Posts

Hallo liebe Leser,

ich programmiere derzeit ein Plugin für einen kleinen Server. Doch meine Plugin.yml funktioniert nicht. Der Fehlercode ist folgender:
 

[23:51:06] [Server thread/ERROR]: Could not load 'plugins\MistoryCity.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
	at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:160) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:296) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.craftbukkit.v1_12_R1.CraftServer.reload(CraftServer.java:720) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.Bukkit.reload(Bukkit.java:534) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:621) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchServerCommand(CraftServer.java:607) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at net.minecraft.server.v1_12_R1.DedicatedServer.aP(DedicatedServer.java:407) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:371) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:650) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:554) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]
Caused by: org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1
	at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:254) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:58) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.yaml.snakeyaml.Yaml.load(Yaml.java:436) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:226) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:155) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	... 13 more
Caused by: java.nio.charset.MalformedInputException: Input length = 1
	at java.nio.charset.CoderResult.throwException(Unknown Source) ~[?:1.8.0_131]
	at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.8.0_131]
	at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.8.0_131]
	at java.io.InputStreamReader.read(Unknown Source) ~[?:1.8.0_131]
	at org.yaml.snakeyaml.reader.UnicodeReader.read(UnicodeReader.java:125) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:223) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:58) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.yaml.snakeyaml.Yaml.load(Yaml.java:436) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:226) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:155) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	... 13 more
[23:51:06] [Server thread/ERROR]: Could not load 'plugins\MistoryMoney.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
	at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:150) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:296) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.craftbukkit.v1_12_R1.CraftServer.reload(CraftServer.java:720) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.Bukkit.reload(Bukkit.java:534) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:621) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchServerCommand(CraftServer.java:607) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at net.minecraft.server.v1_12_R1.DedicatedServer.aP(DedicatedServer.java:407) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:371) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:650) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:554) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
	... 14 more

Meine Plugin.yml ist hier zu finden:

https://pastebin.com/4NujA0sK

Ich hoffe ihr könnt mir weiterhelfen. Ich habe schon oft versucht, mit den Zeilen Abstand rum zu probieren.
 

Mfg:

cool_brick24

Link to comment
Share on other sites

  • 3 weeks later...

Hey, hier ist mein Log, mit dem Serverneustart!

[16:06:33] [Server thread/ERROR]: Could not load 'plugins\MistoryCity.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
	at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:160) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:296) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:188) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:521) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]
Caused by: org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1
	at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:254) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:58) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.yaml.snakeyaml.Yaml.load(Yaml.java:436) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:226) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:155) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	... 5 more
Caused by: java.nio.charset.MalformedInputException: Input length = 1
	at java.nio.charset.CoderResult.throwException(Unknown Source) ~[?:1.8.0_131]
	at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.8.0_131]
	at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.8.0_131]
	at java.io.InputStreamReader.read(Unknown Source) ~[?:1.8.0_131]
	at org.yaml.snakeyaml.reader.UnicodeReader.read(UnicodeReader.java:125) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:223) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:58) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.yaml.snakeyaml.Yaml.load(Yaml.java:436) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:226) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:155) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	... 5 more

tut mir leid, dass es länger gedauert hatte, ich war ja in den Ferien :D

Mfg

Ari

Link to comment
Share on other sites

Ich kann die Datei nicht einfügen, deswegen mach ich das als Code-Tag. Wieso kann ich die nicht einfügen: Da steht: You dont have any existing attachments. Plugin.yml:
 

name: MistoryCityPlugin
version: 1.0
author: cool_brick24
main: de.coolbrick.main.Main
commands:
   ts:
    description: Zeigt dir die TS Ip an
    usage: /<command>
   teamspeak:
    description: Zeigt dir dei TS Ip an
    usage: /<command>
   gm1:
    description: Gibt dir den Gamemode kreativ
    usage: /<command>
   gm0:
    description: Gibt dir den Gamemode überleben
    usage: /<command>
   gm3:
    description: Gibt dir den Gamemode Zuschauer
    usage: /<command>
   hilfe:
     description: Zeigt dir die Übersicht aller Commands dieses Plugin an
     usage: /<command>
   chatclear:
     description: Leert den Chat
     usage: /<command>
   clearchat:
     description: Leert den Chat
     usage: /<command>
   cc:
     description: Leert den Chat
     usage: /<command>
   bc:
     description: Zeigt eine Broadcastmessage an
     usage: /<command>
   broadcast:
     description: Zeigt eine Broadcastmessage an
     usage: /<command>
    

Mfg
Ari

Link to comment
Share on other sites

Hi,

es wäre halt leider besser gewesen, wenn die Datei angehängt gewesen wäre, da man so nicht nachvollziehen kann, ob vielleicht ein Charset Fehler vorliegt oder irgendwo ein ungültiges Zeichen vorhanden ist. Da ist das Original halt wichtig.

Es kann eben passieren, wenn das Charset der Datei ungünstig ist also z.B. kein UTF8, dann können Fehler auftreten, oder halt wenn bei der Formatierung irgendwo ein TAB anstatt Leerzeichen verwendet wurden.

Es gibt Online YAML-Validatoren, im Notfall da mal probieren und die Datei hochladen, die meckern dann auch ganz schnell, wenn wo etwas nicht stimmt.

 

-Yuki

Link to comment
Share on other sites

Danke! Es funktioniert einwandfrei, ich hab die Umlaute in "ue" geändert. Vielen Dank an alle Kommentar schreiber! Eine kleine Sache noch: Bei mir funktioniert zwar das Plugin, aber beim Serverstart kommt ein Error: 

[11:34:51] [Server thread/ERROR]: Error occurred while enabling MistoryCityPlugin v1.0 (Is it up to date?)
java.lang.IllegalArgumentException: Plugin already initialized!
	at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:98) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:60) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at de.coolbrick.main.InventoryListener.<init>(InventoryListener.java:11) ~[?:?]
	at de.coolbrick.main.Main.onEnable(Main.java:51) ~[?:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:329) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:401) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:360) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:321) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:411) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:372) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:327) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:248) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:521) [craftbukkit.jar:git-Bukkit-9a1fc1e]
	at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]
Caused by: java.lang.IllegalStateException: Initial initialization
	at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:101) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:60) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at de.coolbrick.main.Main.<init>(Main.java:15) ~[?:?]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_131]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_131]
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_131]
	at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_131]
	at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_131]
	at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:52) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:127) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:325) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:248) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:296) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]
	at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:188) ~[craftbukkit.jar:git-Bukkit-9a1fc1e]

Plugin wurde angeblich schon initsialisiert. 
Ich habe über diesen Fehler keine Kentnisse!
MFG
Ari

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...
B
B