EarthCow
AAdmincraft
•Created by EarthCow on 7/31/2024 in #questions
How to parse curly braces ({}) from a Pebble string?
I want to make a string variable that contains curly braces as it has nested PAPI variables but pebble is taking some of the braces out.
Here's what I'm trying to parse:
When I use the string as a variable elsewhere it is parsed as
placeholder#math_0:0_statistic_mine_block:COAL_ORE}+{statistic_mine_block:DEEPSLATE_COAL_ORE}
missing the first {
. I tried escaping the curly braces by using two instead of one but then I get the error: [18:39:46 WARN]: com.mitchellbosecke.pebble.error.ParserException: Unexpected character [&]
for some reason. Maybe because pebble for some reason html encodes the curly brace?
I've been trying for a long time now and would really appreciate guidance. Thanks in advance.4 replies
AAdmincraft
•Created by EarthCow on 6/19/2024 in #questions
Resource pack custom sounds not working for other players
I have a resource pack that contains custom sound effects and music for my minigames from the original console edition minigames. It took a while to get working but I eventually made the sound effects show up and play with /playsound and then I implemented them into my minigames. It worked great for me and made the games a lot more interesting to play, but they don't work at all for my friend. I even had him download the pack off the server, open it in a new local world with cheats, and try /playsound, but they don't even show up for him. We're both on 1.20.4 and so is my paper server. I'm really at a loss why the identical pack works for me and not him.
Here's the link for it: [removed]
I really appreciate any help or any explanation as to why it might work for me and not him. Thank you
11 replies
AAdmincraft
•Created by EarthCow 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 EarthCow 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 EarthCow 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