Mike
AAdmincraft
•Created by Mike on 7/16/2023 in #questions
Async tasks causing TPS drops and massive CPU usage
I have a minigame designed to mirror the Minecraft battle minigame from console edition. For each game that I play after it ends the CPU usage increases and never comes back down. Once the usage hits 99% it will start causing TPS drops. I sorta know what's causing this. The method I use to generate random items for the chests around the map uses a lot of logic and random numbers so I run this using Bukkit's runTaskAsynchronously method.
I add the task ID to a list so that when the game is over it can iterate over all the task IDs to cancel them.
Sometimes I get this error (or a few of them) in the console though:
Nag author(s): '[Mike]' of 'DevPlugin v1.0-SNAPSHOT' about the following: This plugin is not properly shutting down its async tasks when it is being shut down. This task may throw errors during the final shutdown logs and might not complete before process dies.I've noticed that rarely the
addRandomItems(chest)
method is never even ran. I'd be happy to provide additional code if needed and I really appreciate any help because I've been stuck on this for a while now. I'm on paperMC 1.20.17 replies
AAdmincraft
•Created by Mike on 6/26/2023 in #questions
Multiverse Core not found
Can someone take a look at this and tell me why it might not be confirming the multiverse plugin as an instance of multiverse. I can't figure it out
I have the 4.3.1 API and MultiverseCore-4.3.1 installed and running on my server yet it still tells me it's not found. Not sure what it is
133 replies
AAdmincraft
•Created by Mike on 6/23/2023 in #questions
Disable default _nether and _the_end worlds?
Is it possible to disable the default nether and end worlds on a paper server? I'm running paper.1.20.1 and my main world is 'Spawn' but using multiverse I have a separate worlds for an SMP, SMP Hardcore, and a Minigames world. I suppose if I can't find a way to disable them I will just link my SMP up to them using Multiverse Netherportals but I would rather just disable them. Thanks for any help.
6 replies