eleminaiter Posted August 9, 2016 Share Posted August 9, 2016 Heii, ich wollte das Plugin TeleportSigns von der 1.8 auf die 1.10 updaten. Mein Problem ist nur eine Fehlermeldung in der Cmd, die ich nicht gefixed bekomme. Errorcode: Zitat [02:23:41 WARN]: Exception in thread "Craft Scheduler Thread - 3" [02:23:41 WARN]: org.apache.commons.lang.UnhandledException: Plugin TeleportSigns v1.3.2-b80 generated an exception while executing task 13 at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.Error: Unresolved compilation problem: Unreachable code at de.zh32.teleportsigns.UpdateUtil.run(UpdateUtil.java:52) at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftTask.run(CraftTask.java:71) at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) ... 3 more Meine UpdateUtil.java , wo die Fehlermeldung herkommt, sieht wie folgt aus. package de.zh32.teleportsigns; import de.zh32.teleportsigns.ping.ServerInfo; import de.zh32.teleportsigns.ping.ServerListPing; import java.util.Queue; import java.util.concurrent.LinkedTransferQueue; import org.bukkit.Location; import org.bukkit.block.Block; import org.bukkit.block.Sign; public class UpdateUtil implements Runnable { private final Queue<TeleportSign> queue; private final TeleportSigns plugin; private final ServerListPing mcping; private boolean firstRun; public UpdateUtil(TeleportSigns plugin) { this.plugin = plugin; this.queue = new LinkedTransferQueue(); this.mcping = new ServerListPing(plugin); this.firstRun = true; } public void update() { throw new Error("Unresolved compilation problem: \n\tDuplicate local variable sign\n"); } void updateSign(TeleportSign sign, SignLayout layout, ServerInfo server) { Location location = sign.getLocation(); if (location.getWorld().getChunkAt(location).isLoaded()) { Block b = location.getBlock(); if ((b.getState() instanceof Sign)) { Sign s = (Sign)b.getState(); String[] lines = layout.parseLayout(server); for (int i = 0; i < lines.length; i++) { s.setLine(i, lines[i]); } s.update(); } } } public void run() { throw new Error("Unresolved compilation problem: \n\tUnreachable code\n"); } } Hoffe mir kann einer helfen. Komme einfach nicht weiter. Bin neu in Java, hoffe ich kann daraus lernen Gruß Fabian Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now