TheRedCraft Posted August 13, 2017 Share Posted August 13, 2017 Hallo ich habe ein plugin programmiert aber es gibt immer ein fehler wisst ihr warum alles führt zu dieser zeile: public static String getRemaingTime(String uuid) { long currend = System.currentTimeMillis(); long end = getEnd(uuid); if(end == -1) { return "§4PERMANENT"; } long milis = end - currend; long sek = 0; long min = 0; long hour = 0; long day = 0; long week = 0; while(milis > 1000) { milis -=1000; -> sek++; } while(sek > 60) { sek -=60; min++; } while(min > 60) { min -=60; hour++; } while(hour > 24) { min -=24; day++; } while(day > 60) { day -=60; week++; } return "§e" + week + " Woche(n) " + day + " Tage " + hour + " Stunde(n) " + sek + " Sekunden also " + milis + " Milisekunden "; } die wo mit den pfeil makiert ist. hier ist der server error [20:57:17] [Spigot Watchdog Thread/ERROR]: The server has stopped responding! [20:57:17] [Spigot Watchdog Thread/ERROR]: Please report this to http://www.spigotmc.org/ [20:57:17] [Spigot Watchdog Thread/ERROR]: Be sure to include ALL relevant console errors and Minecraft crash reports [20:57:17] [Spigot Watchdog Thread/ERROR]: Spigot version: git-Spigot-db6de12-18fbb24 (MC: 1.8.8) [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Server thread dump (Look for plugins here before reporting to Spigot!): [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Current Thread: Server thread [20:57:17] [Spigot Watchdog Thread/ERROR]: PID: 16 | Suspended: false | Native: false | State: RUNNABLE [20:57:17] [Spigot Watchdog Thread/ERROR]: Stack: [20:57:17] [Spigot Watchdog Thread/ERROR]: de.mc.ban.util.BanManager.getRemaingTime(BanManager.java:118) [20:57:17] [Spigot Watchdog Thread/ERROR]: de.mc.ban.util.BanManager.ban(BanManager.java:34) [20:57:17] [Spigot Watchdog Thread/ERROR]: de.mc.ban.commands.Commands.onCommand(Commands.java:26) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.FutureTask.run(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.Thread.run(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Entire Thread Dump: [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Current Thread: Chunk I/O Executor Thread-1 [20:57:17] [Spigot Watchdog Thread/ERROR]: PID: 34 | Suspended: false | Native: false | State: WAITING [20:57:17] [Spigot Watchdog Thread/ERROR]: Stack: [20:57:17] [Spigot Watchdog Thread/ERROR]: sun.misc.Unsafe.park(Native Method) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.locks.LockSupport.park(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.LinkedBlockingQueue.take(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.Thread.run(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Current Thread: Netty Server IO #1 [20:57:17] [Spigot Watchdog Thread/ERROR]: PID: 25 | Suspended: false | Native: true | State: RUNNABLE [20:57:17] [Spigot Watchdog Thread/ERROR]: Thread is waiting on monitor(s): [20:57:17] [Spigot Watchdog Thread/ERROR]: Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: Stack: [20:57:17] [Spigot Watchdog Thread/ERROR]: sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method) [20:57:17] [Spigot Watchdog Thread/ERROR]: sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: sun.nio.ch.SelectorImpl.select(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:622) [20:57:17] [Spigot Watchdog Thread/ERROR]: io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:310) [20:57:17] [Spigot Watchdog Thread/ERROR]: io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.Thread.run(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Current Thread: File IO Thread [20:57:17] [Spigot Watchdog Thread/ERROR]: PID: 30 | Suspended: false | Native: false | State: TIMED_WAITING [20:57:17] [Spigot Watchdog Thread/ERROR]: Stack: [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.Thread.sleep(Native Method) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.FileIOThread.c(FileIOThread.java:52) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.FileIOThread.run(FileIOThread.java:28) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.Thread.run(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Current Thread: Netty Server IO #0 [20:57:17] [Spigot Watchdog Thread/ERROR]: PID: 24 | Suspended: false | Native: true | State: RUNNABLE [20:57:17] [Spigot Watchdog Thread/ERROR]: Thread is waiting on monitor(s): [20:57:17] [Spigot Watchdog Thread/ERROR]: Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: Stack: [20:57:17] [Spigot Watchdog Thread/ERROR]: sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method) [20:57:17] [Spigot Watchdog Thread/ERROR]: sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: sun.nio.ch.SelectorImpl.select(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:622) [20:57:17] [Spigot Watchdog Thread/ERROR]: io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:310) [20:57:17] [Spigot Watchdog Thread/ERROR]: io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.Thread.run(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Current Thread: Spigot Metrics Thread [20:57:17] [Spigot Watchdog Thread/ERROR]: PID: 23 | Suspended: false | Native: false | State: TIMED_WAITING [20:57:17] [Spigot Watchdog Thread/ERROR]: Stack: [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.Object.wait(Native Method) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.util.TimerThread.mainLoop(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.util.TimerThread.run(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Current Thread: Spigot Watchdog Thread [20:57:17] [Spigot Watchdog Thread/ERROR]: PID: 22 | Suspended: false | Native: false | State: RUNNABLE [20:57:17] [Spigot Watchdog Thread/ERROR]: Stack: [20:57:17] [Spigot Watchdog Thread/ERROR]: sun.management.ThreadImpl.dumpThreads0(Native Method) [20:57:17] [Spigot Watchdog Thread/ERROR]: sun.management.ThreadImpl.dumpAllThreads(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.spigotmc.WatchdogThread.run(WatchdogThread.java:76) [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Current Thread: Server console handler [20:57:17] [Spigot Watchdog Thread/ERROR]: PID: 19 | Suspended: false | Native: true | State: RUNNABLE [20:57:17] [Spigot Watchdog Thread/ERROR]: Thread is waiting on monitor(s): [20:57:17] [Spigot Watchdog Thread/ERROR]: Locked on:org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:169) [20:57:17] [Spigot Watchdog Thread/ERROR]: Locked on:org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:261) [20:57:17] [Spigot Watchdog Thread/ERROR]: Locked on:org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:198) [20:57:17] [Spigot Watchdog Thread/ERROR]: Stack: [20:57:17] [Spigot Watchdog Thread/ERROR]: org.fusesource.jansi.internal.Kernel32.ReadConsoleInputW(Native Method) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.fusesource.jansi.internal.Kernel32.readConsoleInputHelper(Kernel32.java:761) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.fusesource.jansi.internal.Kernel32.readConsoleKeyInput(Kernel32.java:794) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.fusesource.jansi.internal.WindowsSupport.readConsoleInput(WindowsSupport.java:97) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.libs.jline.WindowsTerminal.readConsoleInput(WindowsTerminal.java:215) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.libs.jline.WindowsTerminal.access$000(WindowsTerminal.java:55) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.libs.jline.WindowsTerminal$1.read(WindowsTerminal.java:157) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:169) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:137) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:246) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:261) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:198) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readCharacter(ConsoleReader.java:2145) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:2349) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.DedicatedServer$2.run(DedicatedServer.java:79) [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Current Thread: Thread-5 [20:57:17] [Spigot Watchdog Thread/ERROR]: PID: 20 | Suspended: false | Native: false | State: RUNNABLE [20:57:17] [Spigot Watchdog Thread/ERROR]: Thread is waiting on monitor(s): [20:57:17] [Spigot Watchdog Thread/ERROR]: Locked on:java.io.BufferedOutputStream.flush(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: Locked on:java.io.PrintStream.write(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: Locked on:java.io.PrintStream.write(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: Stack: [20:57:17] [Spigot Watchdog Thread/ERROR]: java.io.FileOutputStream.writeBytes(Native Method) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.io.FileOutputStream.write(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.io.BufferedOutputStream.flushBuffer(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.io.BufferedOutputStream.flush(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.io.PrintStream.write(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.fusesource.jansi.AnsiOutputStream.write(AnsiOutputStream.java:82) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.io.FilterOutputStream.write(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.io.PrintStream.write(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.io.FilterOutputStream.write(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.v1_8_R3.util.TerminalConsoleWriterThread.run(TerminalConsoleWriterThread.java:34) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.Thread.run(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Current Thread: DestroyJavaVM [20:57:17] [Spigot Watchdog Thread/ERROR]: PID: 18 | Suspended: false | Native: false | State: RUNNABLE [20:57:17] [Spigot Watchdog Thread/ERROR]: Stack: [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Current Thread: Server thread [20:57:17] [Spigot Watchdog Thread/ERROR]: PID: 16 | Suspended: false | Native: false | State: RUNNABLE [20:57:17] [Spigot Watchdog Thread/ERROR]: Stack: [20:57:17] [Spigot Watchdog Thread/ERROR]: de.mc.ban.util.BanManager.getRemaingTime(BanManager.java:118) [20:57:17] [Spigot Watchdog Thread/ERROR]: de.mc.ban.util.BanManager.ban(BanManager.java:34) [20:57:17] [Spigot Watchdog Thread/ERROR]: de.mc.ban.commands.Commands.onCommand(Commands.java:26) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.util.concurrent.FutureTask.run(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.Thread.run(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Current Thread: Server Infinisleeper [20:57:17] [Spigot Watchdog Thread/ERROR]: PID: 17 | Suspended: false | Native: false | State: TIMED_WAITING [20:57:17] [Spigot Watchdog Thread/ERROR]: Stack: [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.Thread.sleep(Native Method) [20:57:17] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.DedicatedServer$1.run(DedicatedServer.java:54) [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Current Thread: NonBlockingInputStreamThread [20:57:17] [Spigot Watchdog Thread/ERROR]: PID: 14 | Suspended: false | Native: false | State: WAITING [20:57:17] [Spigot Watchdog Thread/ERROR]: Stack: [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.Object.wait(Native Method) [20:57:17] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.run(NonBlockingInputStream.java:278) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.Thread.run(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Current Thread: Snooper Timer [20:57:17] [Spigot Watchdog Thread/ERROR]: PID: 12 | Suspended: false | Native: false | State: TIMED_WAITING [20:57:17] [Spigot Watchdog Thread/ERROR]: Stack: [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.Object.wait(Native Method) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.util.TimerThread.mainLoop(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.util.TimerThread.run(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Current Thread: Attach Listener [20:57:17] [Spigot Watchdog Thread/ERROR]: PID: 5 | Suspended: false | Native: false | State: RUNNABLE [20:57:17] [Spigot Watchdog Thread/ERROR]: Stack: [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Current Thread: Signal Dispatcher [20:57:17] [Spigot Watchdog Thread/ERROR]: PID: 4 | Suspended: false | Native: false | State: RUNNABLE [20:57:17] [Spigot Watchdog Thread/ERROR]: Stack: [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Current Thread: Finalizer [20:57:17] [Spigot Watchdog Thread/ERROR]: PID: 3 | Suspended: false | Native: false | State: WAITING [20:57:17] [Spigot Watchdog Thread/ERROR]: Stack: [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.Object.wait(Native Method) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.ref.ReferenceQueue.remove(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.ref.ReferenceQueue.remove(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/ERROR]: Current Thread: Reference Handler [20:57:17] [Spigot Watchdog Thread/ERROR]: PID: 2 | Suspended: false | Native: false | State: WAITING [20:57:17] [Spigot Watchdog Thread/ERROR]: Stack: [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.Object.wait(Native Method) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.Object.wait(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.ref.Reference.tryHandlePending(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: java.lang.ref.Reference$ReferenceHandler.run(Unknown Source) [20:57:17] [Spigot Watchdog Thread/ERROR]: ------------------------------ [20:57:17] [Spigot Watchdog Thread/INFO]: Startup script './start.sh' does not exist! Stopping server. [20:57:17] [Thread-4/INFO]: Stopping server könnt ihr mir helfen? Link to comment Share on other sites More sharing options...
SuchtyTV Posted August 16, 2017 Share Posted August 16, 2017 (edited) Ich vermute das liegt an der letzen While-Schleife: du scheinst da aus deinem System auszuweichen... Rechne doch die Millis direkt in Tage, Stunden etc um... Du rechnest während des Bannens am besten schon die Zeit aus, die er gebannt ist. Dann nimmst du ZeitPunktWennerNichtMehrGebanntIst = System.currentTimeMillis() und rechnest um... Edited August 16, 2017 by SuchtyTV Link to comment Share on other sites More sharing options...
TheRedCraft Posted August 16, 2017 Author Share Posted August 16, 2017 vor 37 Minuten schrieb SuchtyTV: Ich vermute das liegt an der letzen While-Schleife: du scheinst da aus deinem System auszuweichen... Rechne doch die Millis direkt in Tage, Stunden etc um... Du rechnest während des Bannens am besten schon die Zeit aus, die er gebannt ist. Dann nimmst du ZeitPunktWennerNichtMehrGebanntIst = System.currentTimeMillis() und rechnest um... ok und wie mache ich das ich habe da nicht so viel ahnung Link to comment Share on other sites More sharing options...
SuchtyTV Posted August 16, 2017 Share Posted August 16, 2017 (edited) vor 4 Minuten schrieb TheRedCraft: ok und wie mache ich das ich habe da nicht so viel ahnung Wenn du programmieren lernen willst: Java lernen, wenn du Java kannst, ist Bukkit mega einfach... Umrechnen --> siehe Tafelwerk Wenn du das Plugin brauchst: Entwickeln lassen... z.B von mir... Edited August 16, 2017 by SuchtyTV Link to comment Share on other sites More sharing options...
TheRedCraft Posted August 16, 2017 Author Share Posted August 16, 2017 vor 8 Minuten schrieb SuchtyTV: Wenn du programmieren lernen willst: Java lernen, wenn du Java kannst, ist Bukkit mega einfach... Umrechnen --> siehe Tafelwerk Wenn du das Plugin brauchst: Entwickeln lassen... z.B von mir... ok kannst du mir aber nicht nen bischen code oder so schicken Link to comment Share on other sites More sharing options...
SuchtyTV Posted August 16, 2017 Share Posted August 16, 2017 Wenn du mir Code vorgibst... Dann bastel ich ihn dir so das er passt... Link to comment Share on other sites More sharing options...
TheRedCraft Posted August 16, 2017 Author Share Posted August 16, 2017 (edited) gelöst Edited August 19, 2017 by TheRedCraft Link to comment Share on other sites More sharing options...
SuchtyTV Posted August 16, 2017 Share Posted August 16, 2017 (edited) Mal eine Frage, was ist Zeile 118 (der Klasse BanManager) Eine Vermutung von mir ist das deine Zeitdifferenz in Millis zu groß ist und du eine Art Lockdown erhälst... 1000000 Millis wären ja nur 1000 Sekunden ... wenn du jemanden für 3 Tage bannst, könnte der Server zu lange rechnen.... Versuch mal diese Methode in einem neuen Thread zu erstellen... Edited August 17, 2017 by SuchtyTV Link to comment Share on other sites More sharing options...
TheRedCraft Posted August 18, 2017 Author Share Posted August 18, 2017 Am 16.8.2017 um 21:19 schrieb SuchtyTV: Mal eine Frage, was ist Zeile 118 (der Klasse BanManager) Eine Vermutung von mir ist das deine Zeitdifferenz in Millis zu groß ist und du eine Art Lockdown erhälst... 1000000 Millis wären ja nur 1000 Sekunden ... wenn du jemanden für 3 Tage bannst, könnte der Server zu lange rechnen.... Versuch mal diese Methode in einem neuen Thread zu erstellen... ok aber wie 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