Zrips / CMI

111 stars 98 forks source link

Error from console when simultaneous players rtp #8788

Closed JericNisperos closed 1 month ago

JericNisperos commented 1 month ago

Description of Issue

I created a portal which has the command to random teleport the player using the cmi rt command.

But for some reason, if 2 players simoultaneously enter the portal, it shows an error message from the console and the rt no longer works until restart.

Version Information

CMI: 9.7.2.12
CMILib: 1.4.7.14
MC Server: Paper 1.20.6

Errors

[Tue 10:27:26 WARN] java.lang.InterruptedException
[Tue 10:27:26 WARN]     at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:386)
[Tue 10:27:26 WARN]     at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
[Tue 10:27:26 WARN]     at CMI-9.7.2.12.jar//com.Zrips.CMI.Modules.Teleportations.RandomTeleportationManager.lambda$14(RandomTeleportationManager.java:510)
[Tue 10:27:26 WARN]     at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
[Tue 10:27:26 WARN]     at java.base/java.lang.Thread.run(Thread.java:1583)
[Tue 10:27:26 INFO] Could not find correct teleport location, please wait 10 min  and try again.

Relevant Config Sections

N/A

Relevant Plugins

N/A

Agreements

Zrips commented 1 month ago

Should be resolved with next update