Jump to content

Recommended Posts

Posted

i play on my server without any mods on it and only some plugins and it keep crashing, its a 1.9 server and i use these 5 plugins: Essentials, EssentialsGeoIP, EssentialsX-2.0.1,

EssentialsXGeoIP-2.0.1 and PermissionsEX.

and thats the crash report:

---- Minecraft Crash Report ----

// Oops.

 

Time: 14:16 21/05/16

Description: Watching Server

 

java.lang.Error

at net.minecraft.server.v1_9_R1.Chunk.getBlockData(Chunk.java:389)

at net.minecraft.server.v1_9_R1.ChunkCache.getType(SourceFile:142)

at net.minecraft.server.v1_9_R1.PathfinderNormal.a(SourceFile:320)

at net.minecraft.server.v1_9_R1.PathfinderNormal.a(SourceFile:245)

at net.minecraft.server.v1_9_R1.PathfinderNormal.a(SourceFile:310)

at net.minecraft.server.v1_9_R1.PathfinderNormal.a(SourceFile:169)

at net.minecraft.server.v1_9_R1.PathfinderNormal.a(SourceFile:108)

at net.minecraft.server.v1_9_R1.Pathfinder.a(SourceFile:82)

at net.minecraft.server.v1_9_R1.Pathfinder.a(SourceFile:40)

at net.minecraft.server.v1_9_R1.Pathfinder.a(SourceFile:30)

at net.minecraft.server.v1_9_R1.NavigationAbstract.a(SourceFile:111)

at net.minecraft.server.v1_9_R1.Navigation.a(SourceFile:66)

at net.minecraft.server.v1_9_R1.NavigationAbstract.a(SourceFile:90)

at net.minecraft.server.v1_9_R1.NavigationAbstract.a(SourceFile:140)

at net.minecraft.server.v1_9_R1.PathfinderGoalRandomStroll.c(SourceFile:56)

at net.minecraft.server.v1_9_R1.PathfinderGoalSelector.a(SourceFile:102)

at net.minecraft.server.v1_9_R1.EntityInsentient.doTick(EntityInsentient.java:636)

at net.minecraft.server.v1_9_R1.EntityLiving.n(EntityLiving.java:1888)

at net.minecraft.server.v1_9_R1.EntityInsentient.n(EntityInsentient.java:487)

at net.minecraft.server.v1_9_R1.EntityAgeable.n(EntityAgeable.java:121)

at net.minecraft.server.v1_9_R1.EntityAnimal.n(EntityAnimal.java:23)

at net.minecraft.server.v1_9_R1.EntityHorse.n(EntityHorse.java:682)

at net.minecraft.server.v1_9_R1.EntityLiving.m(EntityLiving.java:1747)

at net.minecraft.server.v1_9_R1.EntityInsentient.m(EntityInsentient.java:243)

at net.minecraft.server.v1_9_R1.EntityHorse.m(EntityHorse.java:713)

at net.minecraft.server.v1_9_R1.World.entityJoinedWorld(World.java:1456)

at net.minecraft.server.v1_9_R1.World.g(World.java:1434)

at net.minecraft.server.v1_9_R1.World.tickEntities(World.java:1302)

at net.minecraft.server.v1_9_R1.WorldServer.tickEntities(WorldServer.java:610)

at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:728)

at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:361)

at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:630)

at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:534)

at java.lang.Thread.run(Unknown Source)

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at net.minecraft.server.v1_9_R1.Chunk.getBlockData(Chunk.java:389)

at net.minecraft.server.v1_9_R1.ChunkCache.getType(SourceFile:142)

at net.minecraft.server.v1_9_R1.PathfinderNormal.a(SourceFile:320)

at net.minecraft.server.v1_9_R1.PathfinderNormal.a(SourceFile:245)

at net.minecraft.server.v1_9_R1.PathfinderNormal.a(SourceFile:310)

at net.minecraft.server.v1_9_R1.PathfinderNormal.a(SourceFile:169)

at net.minecraft.server.v1_9_R1.PathfinderNormal.a(SourceFile:108)

at net.minecraft.server.v1_9_R1.Pathfinder.a(SourceFile:82)

at net.minecraft.server.v1_9_R1.Pathfinder.a(SourceFile:40)

at net.minecraft.server.v1_9_R1.Pathfinder.a(SourceFile:30)

at net.minecraft.server.v1_9_R1.NavigationAbstract.a(SourceFile:111)

at net.minecraft.server.v1_9_R1.Navigation.a(SourceFile:66)

at net.minecraft.server.v1_9_R1.NavigationAbstract.a(SourceFile:90)

at net.minecraft.server.v1_9_R1.NavigationAbstract.a(SourceFile:140)

at net.minecraft.server.v1_9_R1.PathfinderGoalRandomStroll.c(SourceFile:56)

at net.minecraft.server.v1_9_R1.PathfinderGoalSelector.a(SourceFile:102)

at net.minecraft.server.v1_9_R1.EntityInsentient.doTick(EntityInsentient.java:636)

at net.minecraft.server.v1_9_R1.EntityLiving.n(EntityLiving.java:1888)

at net.minecraft.server.v1_9_R1.EntityInsentient.n(EntityInsentient.java:487)

at net.minecraft.server.v1_9_R1.EntityAgeable.n(EntityAgeable.java:121)

at net.minecraft.server.v1_9_R1.EntityAnimal.n(EntityAnimal.java:23)

at net.minecraft.server.v1_9_R1.EntityHorse.n(EntityHorse.java:682)

at net.minecraft.server.v1_9_R1.EntityLiving.m(EntityLiving.java:1747)

at net.minecraft.server.v1_9_R1.EntityInsentient.m(EntityInsentient.java:243)

at net.minecraft.server.v1_9_R1.EntityHorse.m(EntityHorse.java:713)

at net.minecraft.server.v1_9_R1.World.entityJoinedWorld(World.java:1456)

at net.minecraft.server.v1_9_R1.World.g(World.java:1434)

at net.minecraft.server.v1_9_R1.World.tickEntities(World.java:1302)

at net.minecraft.server.v1_9_R1.WorldServer.tickEntities(WorldServer.java:610)

at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:728)

at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:361)

at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:630)

 

-- Thread Dump --

Details:

Threads: "pool-7-thread-1" Id=46 WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@7cf0e502

at sun.misc.Unsafe.park(Native Method)

-  waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@7cf0e502

at java.util.concurrent.locks.LockSupport.park(Unknown Source)

at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)

at java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

 

 

"Chunk I/O Executor Thread-1" Id=45 WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@723704ec

at sun.misc.Unsafe.park(Native Method)

-  waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@723704ec

at java.util.concurrent.locks.LockSupport.park(Unknown Source)

at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)

at java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

 

 

"Netty Server IO #3" Id=25 RUNNABLE

at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)

at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)

at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)

at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)

at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)

-  locked io.netty.channel.nio.SelectedSelectionKeySet@76088e72

-  locked java.util.Collections$UnmodifiableSet@330a0ed7

-  locked sun.nio.ch.WindowsSelectorImpl@48a92541

at sun.nio.ch.SelectorImpl.select(Unknown Source)

at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:622)

at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:310)

...

 

 

"Netty Server IO #2" Id=24 RUNNABLE (in native)

at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)

at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)

at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)

at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)

at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)

-  locked io.netty.channel.nio.SelectedSelectionKeySet@27358dc

-  locked java.util.Collections$UnmodifiableSet@303a2dfe

-  locked sun.nio.ch.WindowsSelectorImpl@5325f198

at sun.nio.ch.SelectorImpl.select(Unknown Source)

at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:622)

at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:310)

...

 

 

"Netty Server IO #1" Id=23 RUNNABLE (in native)

at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)

at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)

at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)

at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)

at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)

-  locked io.netty.channel.nio.SelectedSelectionKeySet@52a74590

-  locked java.util.Collections$UnmodifiableSet@4a0a52a0

-  locked sun.nio.ch.WindowsSelectorImpl@2b3ec3c2

at sun.nio.ch.SelectorImpl.select(Unknown Source)

at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:622)

at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:310)

...

 

 

"File IO Thread" Id=40 TIMED_WAITING

at java.lang.Thread.sleep(Native Method)

at net.minecraft.server.v1_9_R1.FileIOThread.c(SourceFile:51)

at net.minecraft.server.v1_9_R1.FileIOThread.run(SourceFile:30)

at java.lang.Thread.run(Unknown Source)

 

 

"Server Watchdog" Id=33 RUNNABLE

at sun.management.ThreadImpl.dumpThreads0(Native Method)

at sun.management.ThreadImpl.dumpAllThreads(Unknown Source)

at net.minecraft.server.v1_9_R1.ThreadWatchdog.run(SourceFile:43)

at java.lang.Thread.run(Unknown Source)

 

 

"pool-8-thread-1" Id=32 TIMED_WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@576b4e0c

at sun.misc.Unsafe.park(Native Method)

-  waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@576b4e0c

at java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)

at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source)

at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)

at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

...

 

 

"Netty Server IO #0" Id=22 RUNNABLE (in native)

at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)

at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)

at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)

at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)

at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)

-  locked io.netty.channel.nio.SelectedSelectionKeySet@3f080ab4

-  locked java.util.Collections$UnmodifiableSet@270fd0a7

-  locked sun.nio.ch.WindowsSelectorImpl@7a722757

at sun.nio.ch.SelectorImpl.select(Unknown Source)

at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:622)

at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:310)

...

 

 

"Server console handler" Id=19 RUNNABLE (in native)

at org.fusesource.jansi.internal.Kernel32.ReadConsoleInputW(Native Method)

at org.fusesource.jansi.internal.Kernel32.readConsoleInputHelper(Kernel32.java:761)

at org.fusesource.jansi.internal.Kernel32.readConsoleKeyInput(Kernel32.java:794)

at org.fusesource.jansi.internal.WindowsSupport.readConsoleInput(WindowsSupport.java:97)

at org.bukkit.craftbukkit.libs.jline.WindowsTerminal.readConsoleInput(WindowsTerminal.java:215)

at org.bukkit.craftbukkit.libs.jline.WindowsTerminal.access$000(WindowsTerminal.java:55)

at org.bukkit.craftbukkit.libs.jline.WindowsTerminal$1.read(WindowsTerminal.java:157)

at org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:169)

-  locked org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream@77641d3b

...

 

 

"Thread-5" Id=20 RUNNABLE

at java.io.FileOutputStream.writeBytes(Native Method)

at java.io.FileOutputStream.write(Unknown Source)

at java.io.BufferedOutputStream.flushBuffer(Unknown Source)

at java.io.BufferedOutputStream.flush(Unknown Source)

-  locked java.io.BufferedOutputStream@8c6e4c9

at java.io.PrintStream.write(Unknown Source)

-  locked java.io.PrintStream@5115979e

at org.fusesource.jansi.AnsiOutputStream.write(AnsiOutputStream.java:82)

at java.io.FilterOutputStream.write(Unknown Source)

at java.io.PrintStream.write(Unknown Source)

-  locked java.io.PrintStream@3ab65a74

...

 

 

"DestroyJavaVM" Id=18 RUNNABLE

 

 

"Server thread" Id=16 RUNNABLE

at net.minecraft.server.v1_9_R1.Chunk.getBlockData(Chunk.java:389)

at net.minecraft.server.v1_9_R1.ChunkCache.getType(SourceFile:142)

at net.minecraft.server.v1_9_R1.PathfinderNormal.a(SourceFile:320)

at net.minecraft.server.v1_9_R1.PathfinderNormal.a(SourceFile:245)

at net.minecraft.server.v1_9_R1.PathfinderNormal.a(SourceFile:310)

at net.minecraft.server.v1_9_R1.PathfinderNormal.a(SourceFile:169)

at net.minecraft.server.v1_9_R1.PathfinderNormal.a(SourceFile:108)

at net.minecraft.server.v1_9_R1.Pathfinder.a(SourceFile:82)

...

 

 

"Server Infinisleeper" Id=17 TIMED_WAITING

at java.lang.Thread.sleep(Native Method)

at net.minecraft.server.v1_9_R1.DedicatedServer$1.run(DedicatedServer.java:56)

 

 

"NonBlockingInputStreamThread" Id=14 WAITING on org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream@77641d3b owned by "Server console handler" Id=19

at java.lang.Object.wait(Native Method)

-  waiting on org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream@77641d3b

at org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.run(NonBlockingInputStream.java:278)

at java.lang.Thread.run(Unknown Source)

 

 

"Snooper Timer" Id=12 TIMED_WAITING on java.util.TaskQueue@6d6c15dc

at java.lang.Object.wait(Native Method)

-  waiting on java.util.TaskQueue@6d6c15dc

at java.util.TimerThread.mainLoop(Unknown Source)

at java.util.TimerThread.run(Unknown Source)

 

 

"Attach Listener" Id=5 RUNNABLE

 

 

"Signal Dispatcher" Id=4 RUNNABLE

 

 

"Finalizer" Id=3 WAITING on java.lang.ref.ReferenceQueue$Lock@52335414

at java.lang.Object.wait(Native Method)

-  waiting on java.lang.ref.ReferenceQueue$Lock@52335414

at java.lang.ref.ReferenceQueue.remove(Unknown Source)

at java.lang.ref.ReferenceQueue.remove(Unknown Source)

at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)

 

 

"Reference Handler" Id=2 WAITING on java.lang.ref.Reference$Lock@2fe780ab

at java.lang.Object.wait(Native Method)

-  waiting on java.lang.ref.Reference$Lock@2fe780ab

at java.lang.Object.wait(Unknown Source)

at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)

 

 

 

Stacktrace:

at net.minecraft.server.v1_9_R1.ThreadWatchdog.run(SourceFile:59)

at java.lang.Thread.run(Unknown Source)

 

-- System Details --

Details:

Minecraft Version: 1.9

Operating System: Windows 8.1 (amd64) version 6.3

Java Version: 1.8.0_45, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 419466816 bytes (400 MB) / 684195840 bytes (652 MB) up to 954728448 bytes (910 MB)

JVM Flags: 1 total; -Xmx1024M

IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94

CraftBukkit Information:

  Running: CraftBukkit version git-Bukkit-c194444 (MC: 1.9) (Implementing API version 1.9-SNAPSHOT) true

  Plugins: { PermissionsEx v1.23.4 ru.tehkode.permissions.bukkit.PermissionsEx [[t3hk0d3, zml]], Essentials v2.0.1-b342 com.earth2me.essentials.Essentials [Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans, Xeology, KHobbits, md_5, Iaccidentally, drtshock, vemacs], EssentialsGeoIP v2.0.1-b342 com.earth2me.essentials.geoip.EssentialsGeoIP [Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans, Xeology],}

  Warnings: DEFAULT

  Reload Count: 0

  Threads: { WAITING NonBlockingInputStreamThread: [java.lang.Object.wait(Native Method), org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.run(NonBlockingInputStream.java:278), java.lang.Thread.run(Unknown Source)], RUNNABLE Netty Server IO #0: [sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method), sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source), sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source), sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source), sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source), sun.nio.ch.SelectorImpl.select(Unknown Source), io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:622), io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:310), io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116), java.lang.Thread.run(Unknown Source)], WAITING pool-7-thread-1: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(Unknown Source), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source), java.util.concurrent.LinkedBlockingQueue.take(Unknown Source), java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source), java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source), java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source), java.lang.Thread.run(Unknown Source)], WAITING Reference Handler: [java.lang.Object.wait(Native Method), java.lang.Object.wait(Unknown Source), java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)], TIMED_WAITING pool-8-thread-1: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source), java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source), java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source), java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source), java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source), java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source), java.lang.Thread.run(Unknown Source)], RUNNABLE Netty Server IO #2: [sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method), sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source), sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source), sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source), sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source), sun.nio.ch.SelectorImpl.select(Unknown Source), io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:622), io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:310), io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116), java.lang.Thread.run(Unknown Source)], RUNNABLE Netty Server IO #3: [sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method), sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source), sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source), sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source), sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source), sun.nio.ch.SelectorImpl.select(Unknown Source), io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:622), io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:310), io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116), java.lang.Thread.run(Unknown Source)], WAITING Chunk I/O Executor Thread-1: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(Unknown Source), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source), java.util.concurrent.LinkedBlockingQueue.take(Unknown Source), java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source), java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source), java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source), java.lang.Thread.run(Unknown Source)], RUNNABLE Server console handler: [org.fusesource.jansi.internal.Kernel32.ReadConsoleInputW(Native Method), org.fusesource.jansi.internal.Kernel32.readConsoleInputHelper(Kernel32.java:761), org.fusesource.jansi.internal.Kernel32.readConsoleKeyInput(Kernel32.java:794), org.fusesource.jansi.internal.WindowsSupport.readConsoleInput(WindowsSupport.java:97), org.bukkit.craftbukkit.libs.jline.WindowsTerminal.readConsoleInput(WindowsTerminal.java:215), org.bukkit.craftbukkit.libs.jline.WindowsTerminal.access$000(WindowsTerminal.java:55), org.bukkit.craftbukkit.libs.jline.WindowsTerminal$1.read(WindowsTerminal.java:157), org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:169), org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:137), org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:246), org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:261), org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:198), org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readCharacter(ConsoleReader.java:2145), org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:2349), net.minecraft.server.v1_9_R1.DedicatedServer$2.run(DedicatedServer.java:81)], TIMED_WAITING Snooper Timer: [java.lang.Object.wait(Native Method), java.util.TimerThread.mainLoop(Unknown Source), java.util.TimerThread.run(Unknown Source)], WAITING Finalizer: [java.lang.Object.wait(Native Method), java.lang.ref.ReferenceQueue.remove(Unknown Source), java.lang.ref.ReferenceQueue.remove(Unknown Source), java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)], TIMED_WAITING Server Infinisleeper: [java.lang.Thread.sleep(Native Method), net.minecraft.server.v1_9_R1.DedicatedServer$1.run(DedicatedServer.java:56)], RUNNABLE Signal Dispatcher: [], WAITING Thread-5: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(Unknown Source), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source), java.util.concurrent.LinkedBlockingQueue.take(Unknown Source), com.mojang.util.QueueLogAppender.getNextLogEvent(QueueLogAppender.java:77), org.bukkit.craftbukkit.v1_9_R1.util.TerminalConsoleWriterThread.run(TerminalConsoleWriterThread.java:25), java.lang.Thread.run(Unknown Source)], RUNNABLE Netty Server IO #1: [sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method), sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source), sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source), sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source), sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source), sun.nio.ch.SelectorImpl.select(Unknown Source), io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:622), io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:310), io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116), java.lang.Thread.run(Unknown Source)], RUNNABLE Attach Listener: [], RUNNABLE DestroyJavaVM: [], RUNNABLE Server thread: [net.minecraft.server.v1_9_R1.IEntitySelector$8.apply(SourceFile:103), com.google.common.base.Predicates$AndPredicate.apply(Predicates.java:359), net.minecraft.server.v1_9_R1.Chunk.a(Chunk.java:774), net.minecraft.server.v1_9_R1.World.a(World.java:2284), net.minecraft.server.v1_9_R1.EntityLiving.cn(EntityLiving.java:1947), net.minecraft.server.v1_9_R1.EntityLiving.n(EntityLiving.java:1916), net.minecraft.server.v1_9_R1.EntityInsentient.n(EntityInsentient.java:487), net.minecraft.server.v1_9_R1.EntityAgeable.n(EntityAgeable.java:121), net.minecraft.server.v1_9_R1.EntityAnimal.n(EntityAnimal.java:23), net.minecraft.server.v1_9_R1.EntityChicken.n(EntityChicken.java:51), net.minecraft.server.v1_9_R1.EntityLiving.m(EntityLiving.java:1747), net.minecraft.server.v1_9_R1.EntityInsentient.m(EntityInsentient.java:243), net.minecraft.server.v1_9_R1.World.entityJoinedWorld(World.java:1456), net.minecraft.server.v1_9_R1.World.g(World.java:1434), net.minecraft.server.v1_9_R1.World.tickEntities(World.java:1302), net.minecraft.server.v1_9_R1.WorldServer.tickEntities(WorldServer.java:610), net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:728), net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:361), net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:630), net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:534), java.lang.Thread.run(Unknown Source)], RUNNABLE Server Watchdog: [java.lang.Thread.dumpThreads(Native Method), java.lang.Thread.getAllStackTraces(Unknown Source), org.bukkit.craftbukkit.v1_9_R1.CraftCrashReport.call(CraftCrashReport.java:29), net.minecraft.server.v1_9_R1.CrashReportSystemDetails.a(SourceFile:79), net.minecraft.server.v1_9_R1.CrashReport.h(CrashReport.java:127), net.minecraft.server.v1_9_R1.CrashReport.<init>(CrashReport.java:34), net.minecraft.server.v1_9_R1.ThreadWatchdog.run(SourceFile:57), java.lang.Thread.run(Unknown Source)], TIMED_WAITING File IO Thread: [java.lang.Thread.sleep(Native Method), net.minecraft.server.v1_9_R1.FileIOThread.c(SourceFile:51), net.minecraft.server.v1_9_R1.FileIOThread.run(SourceFile:30), java.lang.Thread.run(Unknown Source)],}

  Recent tasks from 831-861{Essentials:com.earth2me.essentials.geoip.EssentialsGeoIPPlayerListener$1@55,}

Profiler Position: N/A (disabled)

Player Count: 1 / 20; [EntityPlayer['KarshE68'/752, l='world', x=-6328.30, y=66.00, z=-191.70](KarshE68 at -6328.300000011921,66.0,-191.69999998807907)]

Is Modded: Definitely; Server brand changed to 'CraftBukkit'

Type: Dedicated Server (map_server.txt)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • It is 1.12.2 - I have no idea if there is a 1.12 pack
    • Okay, but does the modpack works with 1.12 or just with 1.12.2, because I need the Forge client specifically for Minecraft 1.12, not 1.12.2
    • Version 1.19 - Forge 41.0.63 I want to create a wolf entity that I can ride, so far it seems to be working, but the problem is that when I get on the wolf, I can’t control it. I then discovered that the issue is that the server doesn’t detect that I’m riding the wolf, so I’m struggling with synchronization. However, it seems to not be working properly. As I understand it, the server receives the packet but doesn’t register it correctly. I’m a bit new to Java, and I’ll try to provide all the relevant code and prints *The comments and prints are translated by chatgpt since they were originally in Spanish* Thank you very much in advance No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. MountableWolfEntity package com.vals.valscraft.entity; import com.vals.valscraft.network.MountSyncPacket; import com.vals.valscraft.network.NetworkHandler; import net.minecraft.client.Minecraft; import net.minecraft.network.syncher.EntityDataAccessor; import net.minecraft.network.syncher.EntityDataSerializers; import net.minecraft.network.syncher.SynchedEntityData; import net.minecraft.server.MinecraftServer; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.Mob; import net.minecraft.world.entity.ai.attributes.AttributeSupplier; import net.minecraft.world.entity.ai.attributes.Attributes; import net.minecraft.world.entity.animal.Wolf; import net.minecraft.world.entity.player.Player; import net.minecraft.world.entity.Entity; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResult; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.level.Level; import net.minecraft.world.phys.Vec3; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.network.PacketDistributor; public class MountableWolfEntity extends Wolf { private boolean hasSaddle; private static final EntityDataAccessor<Byte> DATA_ID_FLAGS = SynchedEntityData.defineId(MountableWolfEntity.class, EntityDataSerializers.BYTE); public MountableWolfEntity(EntityType<? extends Wolf> type, Level level) { super(type, level); this.hasSaddle = false; } @Override protected void defineSynchedData() { super.defineSynchedData(); this.entityData.define(DATA_ID_FLAGS, (byte)0); } public static AttributeSupplier.Builder createAttributes() { return Wolf.createAttributes() .add(Attributes.MAX_HEALTH, 20.0) .add(Attributes.MOVEMENT_SPEED, 0.3); } @Override public InteractionResult mobInteract(Player player, InteractionHand hand) { ItemStack itemstack = player.getItemInHand(hand); if (itemstack.getItem() == Items.SADDLE && !this.hasSaddle()) { if (!player.isCreative()) { itemstack.shrink(1); } this.setSaddle(true); return InteractionResult.SUCCESS; } else if (!level.isClientSide && this.hasSaddle()) { player.startRiding(this); MountSyncPacket packet = new MountSyncPacket(true); // 'true' means the player is mounted NetworkHandler.CHANNEL.sendToServer(packet); // Ensure the server handles the packet return InteractionResult.SUCCESS; } return InteractionResult.PASS; } @Override public void travel(Vec3 travelVector) { if (this.isVehicle() && this.getControllingPassenger() instanceof Player) { System.out.println("The wolf has a passenger."); System.out.println("The passenger is a player."); Player player = (Player) this.getControllingPassenger(); // Ensure the player is the controller this.setYRot(player.getYRot()); this.yRotO = this.getYRot(); this.setXRot(player.getXRot() * 0.5F); this.setRot(this.getYRot(), this.getXRot()); this.yBodyRot = this.getYRot(); this.yHeadRot = this.yBodyRot; float forward = player.zza; float strafe = player.xxa; if (forward <= 0.0F) { forward *= 0.25F; } this.flyingSpeed = this.getSpeed() * 0.1F; this.setSpeed((float) this.getAttributeValue(Attributes.MOVEMENT_SPEED) * 1.5F); this.setDeltaMovement(new Vec3(strafe, travelVector.y, forward).scale(this.getSpeed())); this.calculateEntityAnimation(this, false); } else { // The wolf does not have a passenger or the passenger is not a player System.out.println("No player is mounted, or the passenger is not a player."); super.travel(travelVector); } } public boolean hasSaddle() { return this.hasSaddle; } public void setSaddle(boolean hasSaddle) { this.hasSaddle = hasSaddle; } @Override protected void dropEquipment() { super.dropEquipment(); if (this.hasSaddle()) { this.spawnAtLocation(Items.SADDLE); this.setSaddle(false); } } @SubscribeEvent public static void onServerTick(TickEvent.ServerTickEvent event) { if (event.phase == TickEvent.Phase.START) { MinecraftServer server = net.minecraftforge.server.ServerLifecycleHooks.getCurrentServer(); if (server != null) { for (ServerPlayer player : server.getPlayerList().getPlayers()) { if (player.isPassenger() && player.getVehicle() instanceof MountableWolfEntity) { MountableWolfEntity wolf = (MountableWolfEntity) player.getVehicle(); System.out.println("Tick: " + player.getName().getString() + " is correctly mounted on " + wolf); } } } } } private boolean lastMountedState = false; @Override public void tick() { super.tick(); if (!this.level.isClientSide) { // Only on the server boolean isMounted = this.isVehicle() && this.getControllingPassenger() instanceof Player; // Only print if the state changed if (isMounted != lastMountedState) { if (isMounted) { Player player = (Player) this.getControllingPassenger(); // Verify the passenger is a player System.out.println("Server: Player " + player.getName().getString() + " is now mounted."); } else { System.out.println("Server: The wolf no longer has a passenger."); } lastMountedState = isMounted; } } } @Override public void addPassenger(Entity passenger) { super.addPassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(true)); } } } @Override public void removePassenger(Entity passenger) { super.removePassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is no longer mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(false)); } } } @Override public boolean isControlledByLocalInstance() { Entity entity = this.getControllingPassenger(); return entity instanceof Player; } @Override public void positionRider(Entity passenger) { if (this.hasPassenger(passenger)) { double xOffset = Math.cos(Math.toRadians(this.getYRot() + 90)) * 0.4; double zOffset = Math.sin(Math.toRadians(this.getYRot() + 90)) * 0.4; passenger.setPos(this.getX() + xOffset, this.getY() + this.getPassengersRidingOffset() + passenger.getMyRidingOffset(), this.getZ() + zOffset); } } } MountSyncPacket package com.vals.valscraft.network; import com.vals.valscraft.entity.MountableWolfEntity; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.server.level.ServerLevel; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.player.Player; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class MountSyncPacket { private final boolean isMounted; public MountSyncPacket(boolean isMounted) { this.isMounted = isMounted; } public void encode(FriendlyByteBuf buffer) { buffer.writeBoolean(isMounted); } public static MountSyncPacket decode(FriendlyByteBuf buffer) { return new MountSyncPacket(buffer.readBoolean()); } public void handle(NetworkEvent.Context context) { context.enqueueWork(() -> { ServerPlayer player = context.getSender(); // Get the player from the context if (player != null) { // Verifies if the player has dismounted if (!isMounted) { Entity vehicle = player.getVehicle(); if (vehicle instanceof MountableWolfEntity wolf) { // Logic to remove the player as a passenger wolf.removePassenger(player); System.out.println("Server: Player " + player.getName().getString() + " is no longer mounted."); } } } }); context.setPacketHandled(true); // Marks the packet as handled } } networkHandler package com.vals.valscraft.network; import com.vals.valscraft.valscraft; import net.minecraft.resources.ResourceLocation; import net.minecraftforge.network.NetworkRegistry; import net.minecraftforge.network.simple.SimpleChannel; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class NetworkHandler { private static final String PROTOCOL_VERSION = "1"; public static final SimpleChannel CHANNEL = NetworkRegistry.newSimpleChannel( new ResourceLocation(valscraft.MODID, "main"), () -> PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals ); public static void init() { int packetId = 0; // Register the mount synchronization packet CHANNEL.registerMessage( packetId++, MountSyncPacket.class, MountSyncPacket::encode, MountSyncPacket::decode, (msg, context) -> msg.handle(context.get()) // Get the context with context.get() ); } }  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.