Unhandled exception executing command Gründe nicht bekannt?

Hallo Community, ich habe ein /sethome Plugin Programmiert, welches mir, wenn ich /sethome ohne weiteres Argument mache, eine Fehlermeldung ausgibt, anstatt die Nachricht, die ich festgelegt habe

issued server command: /sethome
[17:37:05 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'sethome' in plugin Freebuild v1.6
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.8.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.8.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[spigot-1.8.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [spigot-1.8.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot-1.8.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot-1.8.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot-1.8.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.8.jar:git-Spigot-db6de12-18fbb24]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_172]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_172]
        at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot-1.8.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot-1.8.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot-1.8.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot-1.8.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot-1.8.jar:git-Spigot-db6de12-18fbb24]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
        at commands.SetHomeCommand.onCommand(SetHomeCommand.java:29) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.8.jar:git-Spigot-db6de12-18fbb24]
        ... 15 more

In der Fehlermeldung steht ja, "Caused by SetHomeCommand, Zeile 29.

In dieser Zeile, definiere ich das File "file"

    File file = new File("plugins/MeckSauer-Freebuild/players/home/" + p.getUniqueId(), "Home-" + args[0] + ".yml");

Mir ist nicht ersichtlich, warum dies nicht funktioniert.

Ich bitte um schnelle Hilfe

Java, Minecraft, Eclipse, Plug-in, Bukkit, craftbukkit, unhandled exception, minecraft 1.8.9, Eclipse Java Mars
1 Antwort

Meistgelesene Fragen zum Thema Plug-in

Autotune in Teamspeak 3

1 Antwort

WWie kann ich eine leere Welt erstellen die PlotSquared hat?

1 Antwort

Pex Sternchen * Rechte geben?

2 Antworten

Dorfbewohner Farmer spawnen

3 Antworten

MInecraft mit "&" farbig schreiben

3 Antworten

Minecraft Server Befehl Fliegen!?!

7 Antworten

aternos-server worldedit

2 Antworten

FL Studio XP Dance Orchestra Expansion download?

1 Antwort

Blöcke setzen mit Bukkit Plugin (Programmieren)

4 Antworten

Plug-in - Neue und gute Antworten