#help-development

1 messages ยท Page 55 of 1

rough drift
#

but you can send a message

#

in chat

tall dragon
#

which was said here

tardy delta
#

try this lol

#

lemme test actually

rough drift
#

that wouldn't work

tall dragon
#

bruh it will try to do that on the servers machine..

rough drift
#

it opens on the server

drowsy helm
#

just re-wrote my damage manager and it's even worse than before

#

time to sleep

tall dragon
#

lmfao

rough drift
#

nice

tall dragon
#

good work!

rough drift
#

I tried to rewrite a part of my plugin

tardy delta
#

works lol

rough drift
#

went fuck it and didn't touch it

tardy delta
#

not sure about ingame

rough drift
#

It's so precarious

drowsy helm
rough drift
#

the logic is so flawed

#

fuckin BLOOM ai can't even understand tf this means

#

(it's trained on a couple hundred B parameters)

drowsy helm
#

eek

#

the worst ones are where you have intertwined your classes into other systems

#

so have to backtrack EVERYTHING

rough drift
#
Player player = event.getPlayer();
World world = player.getWorld();

if(!MainConfig.Elimination.isWorldAllowed(world))
    return;

if(event.hasKiller() && event.getKiller() instanceof Player killer) {
    HealthUtils.SetResult result =
            HealthUtils.increaseIfUnder(
                    MainConfig.Elimination.environmentHealthScale * 2,
                    MainConfig.Elimination.getMax(),
                    killer,
                    true
            );

    if (result.hasUsedDefault()) {
        // The player is at max

    }
}
else if (!MainConfig.Elimination.environmentStealsHearts)
    return;

HealthUtils.decreaseIfOver(MainConfig.Elimination.environmentHealthScale * 2, MainConfig.Elimination.getMin(), player, true);

if(HealthUtils.get(player) <= 0)
    eliminate(player);

(Updating a part for a new feature), you do see that this is unreadable right?

#

that's what I gotta touch

drowsy helm
#

its not that bad lol

#

just a bit unreadable

rough drift
#

The thing is, I am scared to since each time I touched it the plugin just magically went to fuck itself

#

like sometimes some things would work

drowsy helm
#

yeah that seems to happen with most things lol

rough drift
#

sometimes others wouldn't

drowsy helm
#

just put aside a day for it

#

maybe a few hours for crying

rough drift
#

and now its almost stable

rough drift
#

and it ain't fully workin

drowsy helm
#

what is your coding to crying ratio?

#

might be too low

rough drift
#

99% coding, the rest is for burnouts and crying

drowsy helm
#

should be 80:20

#

minimum

rough drift
#

haven't had burnout affect me for the past 13 months

drowsy helm
#

yeah i feel refactoring can be the most tiring part of coding

#

especially if you coded a pile of shit beforehand

rough drift
#

I take a simpler route

#

this is the 3rd time I rewrite and soon my rewrite count will be 4

#

like the entire plugin

tall dragon
drowsy helm
flint coyote
drowsy helm
#

keep piling on features

rough drift
#

Plus I am also rewriting for the 3rd time the engine behind the plugin

#

so yeah

tall dragon
#

you just need to plan your design

#

think about the features you want to add

#

and how you are gonna do it

#

beforehand

rough drift
#

Dude I planned my design around "jesus christ please let this shit run stably enough, amen"

drowsy helm
#

tbh if i think about it too long it ends up being fucked

#

i think longterm i save time writing shit then refactoring it

rough drift
#

If I think about it, it gets fucked

#

that's my problem

rough drift
#

WEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

e

I ran out of breath

zealous osprey
#

Oh you read it, was confused for a sec

rough drift
#

yes

zealous osprey
#

yes. Good

tardy delta
#

rewrote my plugin twice now

zealous osprey
#

And, happy with it now?

torn shuttle
#

anyone have any idea of what the default ghast fireball radius is?

zealous osprey
#

Spawn one and use /data get entity? Dunno, might work

torn shuttle
#

eh

#

too lazy, found a lazier way to do it

tardy delta
#

mwoa best thing i wrote until now but it still sucks

wide robin
#

hello! How can I modify my config.yml in a event listener?

lost matrix
wide robin
wet breach
#

keep it in memory, modify the config in memory, commit changes in memory every so many minutes

#

in this manner you are not using too much disk I/O just for a config file lol

wide robin
#

but the memory resets if the server is shutting down

#

I need the data for the next session

wet breach
#

hence saving it every so often, and in the onDisable() put a save method for your config

#

so it saves before shutting down

#

alternatively you could go with memory mapped files and not really worry about the saving as the OS will take care of it

wide robin
#

so thats the only option for a database on the disk?

wet breach
#

flat file storage, pretty much

wide robin
#

using the config file?

wet breach
#

if you want a proper DB, then you go with things like sqlite or mysql

wide robin
wet breach
#

scoreboard is the only thing I could think of where you could probably have something similar

tall dragon
#

i guess you could use the bossbar as progress bar

#

or well cooldown meter in this case

wet breach
#

well I suppose boss bar would work too

wet breach
wide robin
lost matrix
#

Your question is: Is there anything alike in the vanilla minecraft client.
The answer is: Bossbar, Actionbar, Scoreboard, Tablist, Title

You can display bars there as well. And with a bit of work and a resourcepack you can also mimic some more

wet breach
tall dragon
#

probably with pathfindergoals

wet breach
#

or make them target something far away

tardy delta
#

hmm yes intellij refuses to open

wide robin
#

how can I remove a property from the config?

glossy venture
#

did you do ui with custom font glyphs?

tardy delta
vestal matrix
#

how long does it take for a premium resource to get accepted? all forums ive found are 4 yrs old and its been over a week since i submitted my plugin

terse lake
#

is there a way reload minecraft plugin in development without restarting the server?

#

or just to use /reload?

#

but many says its a very bad practice

tardy delta
#

idk if i understand correctly, but if you create a folder /plugins/update and place your plugin in there, when reloading it will be loaded instead of having to place your plugin in manually and restarting server

worldly ingot
#

You can /reload in a development environment. That's fine. We only really discourage it in a live setting

#

I do it all the time

terse lake
#

oh thanks!

worldly ingot
#

Just bear in mind that some plugins don't play nicely with it. So long as you know what all is on your server you're fine

proud basin
#

How does plugman do it?

tardy delta
#

/reload breaks my vanish plugin so hard lol

worldly ingot
worldly ingot
#

I tried to write a fix for it because it's relatively trivial, but it's just not at all worth the effort. The cases where that situation would happen are slim to none

tardy delta
#

suddenly my bossbar gets duplicated lol

worldly ingot
#

Are you removing people from the boss bar on disable?

#

Should be an easy fix ๐Ÿ‘€

worldly ingot
#

A lot of the time, supporting a /reload is not at all difficult. Developers are just partly lazy

tardy delta
#

uhh i should look into that lol

tardy delta
#

too lazy now actually ._.

#

and i really overcomplicated my stuff

#

going to rewrite it anyways

worldly ingot
tardy delta
#

right

#

lmfao

#

playin some shit game

rough drift
#

that seems difficult as shit

tardy delta
#

also wth ij isnt even opened

glass mauve
#

go into task manager

zealous osprey
tardy delta
#

mye seems to have fixed it

rough drift
zealous osprey
#

Well the timing indicators are probably custom fonts, usinf a resourcepack, and then iterating through them. Tab, dunno, don't have much experience with those

rough drift
#

probs custom fonts as well

zealous osprey
#

The tab, well some of it, like thr title, but I think most can be done "easily"

zealous osprey
rough drift
#

Yeah I don't need it, just wanted to know how it worked

#

it seems like a pain in the ass

#

thing is that does not have source, so yeah I don't think looking at decompiled is best

zealous osprey
#

There's something callwd "tabbed" didn't look into it, but it got a repo. Also you can send custom packages for the tab if need be

quasi sundial
#

Does anybody know how to make the "full" invisibility like on hypixel bedwars, where no armor is shown?

rough drift
#

I love people

rough drift
quasi sundial
#

player isnt damagagble

#

already tried

rough drift
#

packets then

tall dragon
rough drift
#

send a packet that they don't have armor

quasi sundial
#

and how do i do that

rough drift
#

ProtocolLib

#

or NMS

quasi sundial
#

or does a plugin like that already exist?

rough drift
#

no clue

quasi sundial
#

lemme google

#

hmm "better invisibility" its for 1.16 tho

#

thats never gonna work on 1.18 is it

#

ill try it

#

big error

#

great

wide robin
#

how can I set a list (array) property in FileConfiguration#set

tardy delta
#

config.set(list)

wide robin
#

I can put brackets in .yml files but I get an error when I do it in the second parameter

eternal oxide
#

[arg, arg, arg]

quasi sundial
eternal oxide
#

magic

rough drift
#

^

#

I got no clue tbh

ancient plank
#

love magic

quasi sundial
#

is anybody here smart enough to show me how it works or to just make it for me uwu

quaint mantle
#

hey, I'm changing some blocks with my plugin using Block#setType(), but the walls are not automatically getting connected to blocks around them when placed. Is there some way to update those blocks so they connect?

eternal oxide
#

You first need to decide if you actually need packets

tardy delta
#

does anyone know the pom tags that make i can use {project.version} or smth in my plugin.yml?

quasi sundial
#

looked at the source code its just jibberish

eternal oxide
#

is that for hiding players or items?

quasi sundial
#

it does just what i want

#

its makes invisibility work like it does in hypixel bedwars

#

its 1.16 and doesnt come close to working on 1.18 where i need it

eternal oxide
#

you are wanting to insert into yrou plugin,yml for the version?

quasi sundial
tardy delta
#

yes

eternal oxide
#

quite simple... sec

#
        <resources>
            <!-- Include all resources -->
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
                <includes>
                    <include>*.yml</include>
                    <include>*.txt</include>
                    <include>*.json</include>
                    <include>*.properties</include>
                </includes>
            </resource>
        </resources>``````yaml
name: ${project.name}
main: ${project.groupId}.${project.artifactId}.${project.name}
version: ${project.version}
api-version: ${project.bukkitAPIVersion}```
#

its teh filtering that does it

tardy delta
#

and include tells maven where to look for tags?

eternal oxide
#

no, thats just saying, only include files of this type

tardy delta
#

oh

quasi sundial
ancient plank
#

I've never met someone named anyone

quasi sundial
#

๐Ÿ˜‘

#

i rly need it

fossil rose
#

hey. IntelliJ is warning me that PersistentDataContainer#get(NamespacedKey, PersistentDataType) might produce a NPE.
JavaDocs suggest that it throws a NPE when NamespacedKey is null, and when PersistentDataType is null.
However, if I try to return if the key or datatype are null, it still warns me about NPE.

#

What's the correct way of getting data from PersistentDataContainer without getting warned about NPE?

eternal night
#

well get also obviously can return null

#

If that data isn't present

#

Can you post the line in question

#

Presumably you auto unbox

fossil rose
#
        NamespacedKey key = new NamespacedKey(plugin, "id");
        if (key == null || PersistentDataType.INTEGER == null) {
            return;
        }
        int id = data.get(key, PersistentDataType.INTEGER);```
#

data.get still warns about NPE

eternal night
#

Yea you autounbox

fossil rose
#

Autounbox?

ancient plank
#

PersistentDataType.INTEGER == null

#

what is this

eternal night
#

Well basically PDT.INTEGER means you get an Integer not an int

fossil rose
eternal night
#

One is a primitive type the other an object

fossil rose
#

well that was very dumb

ancient plank
#
String string = pdc.get(key, PersistentDataType.STRING);
if(string != null) {
    doStuff();
}
eternal night
#

So when you assign it to an int

#

It calls .intValue or smth in the background

#

Which would throw an NPE

fossil rose
#

yap, got it.

#

Thanks!

tardy delta
#

getOrDefault ๐Ÿคค

gleaming grove
#

Why when I;m on Creative mode and click on the item in inventory I'm getting CREATIVE ClickType instead or RIGHT?

tardy delta
#

isnt most stuff in creative handled clientside?

ancient plank
#

aye

#

creative mode makes me cry

gleaming grove
#

so how do I suppose to know if player click with right click on the slot?

fossil rose
ancient plank
#

which is why when I do stuff that involves inventories, I just disable it from working in creative mode (most of the time)

gleaming grove
#

omg but chest GUI works fine on creative

#

so you player Inventory has different event payload

#

nice

fossil rose
gleaming grove
zealous osprey
#

Still I'm waiting for the day where I can use Optionals in a meaningful way

river oracle
#

Optional don't belong in Java it's just a slow null check

#

It's around 2 to 3x slower

dry forum
#

i couldnt find an answer online but i have a few questions about nms, 1 if i want to make a plugin support 1.18-1.19 do i need to install every version of buildtools? like 1.18.1 and 1.18.2? and how can i import the right spigot version in maven depending on the server version?

river oracle
#

Just do 1.18.2

dry forum
river oracle
#

Put it simply

dry forum
#

well id still kind of need to support it then

tardy delta
#

me using 1.17.1 ๐Ÿ’€

river oracle
dry forum
#

what

river oracle
#

So run build tools

#

For 1.18.2 1.19 and 1.19.2

#

Than abstract the nms through interfaces in your project

dry forum
#

uhhh what,..

#

do you have an example or smthn i dont understand

ancient plank
#

:3

river oracle
#

If you don't know what an interface is

dry forum
#

i do

river oracle
#

?learnjava

undone axleBOT
ancient plank
#

do u know da wae

dry forum
#

i have no idea how this has anything to do with an interface

river oracle
#

I'm telling you how to do multi version support

dry forum
#

ik how to do that

river oracle
#

Do you not know what abstraction is

dry forum
#

i just dont know how to make it automatically get the right version in the maven

#

and what versions i need to install

river oracle
#

The versions you want to support

#

The same way you did for your first version

dry forum
#

id need to make a dependency for each one?

#

but then if the server loads on 1.18.2 for example the 1.19 dependency wouldnt be recognized

river oracle
#

Yep or you could use reflection

ancient plank
#

pain and despair

quaint mantle
#

update block?

quiet ice
dry forum
#

so if i wanted to support 1.18-1.19 i would need to run buildtools for EVERY version in between those 2? so id need to install 1.18, 1.18.1, 1.18.2, and 1.19?

quiet ice
#

myes

dry forum
#

๐Ÿ˜ข

quiet ice
#

Though usually you'd not support anything but the latest minor release of each major version

dry forum
#

ok thanks

viral marten
dry forum
#

if i supported those versions what dependency of spigot would i use?

viral marten
#

I'm not really too sure atm

#

simply because it's not often that I have to code a plugin

#

I'm working on one right now however

dry forum
#

ah ok

eternal oxide
#

Multi NMS version requires the use of Modules

#

and updating for every version that releases

dry forum
#

each version needs its own module?

eternal oxide
#

yes due to obfuscation

dry forum
eternal oxide
#

random link is random

hasty fog
#

Reflection

eternal oxide
#

Spigot already has an action bar api

dry forum
#

i looked it up and it says with multi module projects theres a jar for each module though?

eternal oxide
#

no, they are combined into one

#

well yes it makes a jar per module, but it combines them all into teh final jar

dry forum
#

so i wouldnt need to have different jars for each version or anytihng?

eternal oxide
#

no

dry forum
#

ok ty

eternal oxide
#

but you have to update for every version that changes

#

nms requires a far higher maintenance

near night
#

hey i have a gui that use setCancelled so players cant take items out but players can still put items in how to i prevent this?

near night
river oracle
#

thats so much copy pasted code I'm not even going to bother going through it

#

use methods

#

don't copy paste

near night
#

wdym methods?

river oracle
#

?learnjava

undone axleBOT
river oracle
#

don't code with spigot api until you learn java

near night
#

i have ๐Ÿ™„

river oracle
#

no you haven't

#

no point in lying

near night
#

i have bean using java for 3 years i made a hole game init

river oracle
#
              if (e.getWhoClicked().hasPermission("skins.cake")) {
                    if (e.getSlot() == 10) {
                        ((Player) e.getWhoClicked()).sendRawMessage("MultiTool Skinned");
                        ItemMeta meta = e.getClickedInventory().getItem(40).getItemMeta();
                        meta.setCustomModelData(10);
                        e.getClickedInventory().getItem(40).setItemMeta(meta);
                    }
                }``` why are you copy pasting this 10+ times instead of making a method
near night
#

oh yeah thats a good point

iron glade
#

ngl that code's terrible

near night
#

its 2am here lol

river oracle
iron glade
near night
#

i know i'll fix it now

flint coyote
#

Looks good to me. Just like writing a thesis the moment you are out of content to write about. "Just create as much text (or in this case code) as possible".

There's still managers that think "developer wrote more lines of code = (s)he's more productive"

marsh vigil
#

Would it be sane to use the jni in a plugin and thus write most of the plugin using c++?

ornate mantle
#

where do i get nms from

#

i ran buildtools

#

it just generated a bunch of projects

ornate mantle
#

where do i find the nms thing

#

lovely

river oracle
marsh vigil
river oracle
#

I rather just use mojang

marsh vigil
#

If I was to use mappings. I'd prefer yarn over the official. Just, cuz I recall the licensing of the Mojang official was weird.

#

But, its quicker to not have mappings.

river oracle
iron glade
#

did bukkit really reject my icu project? "This doesn't seem to be an appropriate project" lmfao

river oracle
iron glade
#

at least that side has a reward program, making something off free plugins :d

marsh vigil
#

Im pretty sure curseforge does something similar. Not too sure on spigots hosting of your plugin though.

iron glade
#

uploading it to spigot was no problem

#

at least for now

river oracle
iron glade
marsh vigil
#

"Inappropriate. You may not possess people like a ghost."

river oracle
#

I'm assuming that would be ok right?

iron glade
river oracle
#

doesn't have to

near night
river oracle
iron glade
#

Also I think this should use || instead of &&

            if (!(e.getSlot() == 40)&&!(e.getSlot() == 14)) {
                e.setCancelled(true);
            }```
tardy delta
#

i dont think an event should throw an interruptedexception

river oracle
ornate mantle
#

why is every nms EntityPlayer method named a ๐Ÿ’€

#

oh obfuscation nvm

golden turret
#

how could I transfer all data from a PersistentDataContainer to another?

dry forum
#

if i had multiple modules for each version (using nms) would using the modules be the same/similar as just using classes? ex using an interface or? how would this be done

torn shuttle
#

well fun, I have accidentally made a straight up code riddle for myself

#

this is textbook riddle stuff

oblique geyser
#

how can I disable tnt dmg and grief?

ivory sleet
dry forum
#

ok and the only way to support multiple nms versions is multi-moduler?

vast kelp
#

or reflection, but modules are generally preferred

ivory sleet
#

Yeah reflection, or method handles preferably

#

A third way would be to delegate nms dependent stuff to some well maintained library

#

Presupposing the library provides what you need

dry forum
#

when i create a new module it makes a new plugin.yml, pom and everything, im assuming thats normal? but i found https://github.com/mbax/AbstractionExamplePlugin which seems to be a good example and in each version module theres only a file and pom no plugin.yml

ivory sleet
#

Oh i donโ€™t know I dont use maven but

#

Thats what I refer to when assisting with this

dry forum
#

it creates a new plugin.yml and everything but these examples dont have that just a pom

wise mesa
civic wind
#

Best way of doing a vanish command? Having troubles hooking into an API.. Just doesn't work :/

civic wind
#

just player?

#

so for me, (p)

tardy delta
#

?jd-s

undone axleBOT
weary cobalt
#

If someone could help me with this, or point me in the right direction, it would be greatly appreciated ๐Ÿ™‚

dry forum
#

why is <dependency> <groupId>org.spigotmc</groupId> <artifactId>spigot</artifactId> <version>1.19.2-R0.1-SNAPSHOT</version> </dependency> saying Could not find artifact org.spigotmc:spigot:pom:1.19.2-R0.1-SNAPSHOT in spigotmc-repo (https://hub.spigotmc.org/nexus/content/repositories/snapshots/) Could not find artifact org.spigotmc:spigot:pom:1.19.2-R0.1-SNAPSHOT in spigotmc-repo (https://hub.spigotmc.org/nexus/content/repositories/snapshots/) yes i have 1.19.2 buildtools thingy installed

civic wind
full perch
#

doesn't say on java doc

agile anvil
#

Actually what it does is:

  • send destroy entity packet to others
  • do not send entity updates to others
full perch
#

ah ok good, I remember a while back, I knew some vanish plugins that just gave you invis lmao

#

good that there is a native method that doesn't do any of that and makes it so the client believes the vanished person doesn't exist/died

agile anvil
#

My gosh, good old school stuff lmao

#

But yeah, the fact of hidding is really like removing the player

civic wind
#

p.hideplayer(p) does nothing for me

#

I'm also having problems getting this to perform the command:

oblique geyser
#

How can I chang ethe name above player?

civic wind
quaint mantle
#

Hello can someone help me? I have upload the plugin excellent crates and I have version 1.18.1 but plugin is not working can someone explain me why

quaint mantle
#

ok give me 1 sec

#

i cant upload image

#

[13:11:53 ERROR]: Could not load 'plugins/ExcellentCrates-4.0.4.1.jar' in folder 'plugins'

#

this can help you?

civic wind
#

no

#

I need the full error

quaint mantle
#

org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: su/nexmedia/engine/api/data/UserDataHolder
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:157) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:415) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:323) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_18_R1.CraftServer.loadPlugins(CraftServer.java:420) ~[paper-1.18.1.jar:git-Paper-216]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:285) ~[paper-1.18.1.jar:git-Paper-216]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1211) ~[paper-1.18.1.jar:git-Paper-216]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.18.1.jar:git-Paper-216]
at java.lang.Thread.run(Thread.java:833) ~[?:?]

#

this?

cosmic fjord
#

how do I send players between bungeecord server with bukkit?

cosmic fjord
#

thx

quaint mantle
#

me?

#

?paste

undone axleBOT
tardy delta
#

i guess you have to shade your stuff

quaint mantle
#

and now?

#

i paste the error in the blue thing?

#

i am new sorry

#

ok

zealous osprey
quaint mantle
#

if someone can help me i will make him god

zealous osprey
frosty tinsel
#

some people like it

quaint mantle
#

i am trying so many days and nothing

frosty tinsel
#

doesn't really change anything

#

And serves its purpose

full perch
# quaint mantle if someone can help me i will make him god

think Morice answered your question, the dependency is not included in the jar but is expecting it to be there so you either need to put the dependency in the plugin jar (shading) or if the api is a plugin, put the plugin in the plugins folder so the plugin can access the classes

frosty tinsel
quaint mantle
#

sorry

civic wind
#

So not sure entirely

dry forum
#

anyone know the 1.19.2 version of ((CraftPlayer)player).getHandle().sendMessage(component); .sendMessage isnt recognized

slate delta
#

How update this to 1.19.2 ?

#

thanks

#

that ?

quaint mantle
zealous osprey
quaint mantle
#

thanks bro

slate delta
#

why "snapchot" ? this is for the In dev ? or global

tender shard
#

spigot 1.19.2 was released like an hour after vanilla was released

tender shard
#

the correct version is 1.19.2-R0.1-SNAPSHOT

zealous osprey
quaint mantle
#

how can i put dependency in a plugin

tardy delta
#

with sqlite, should i work with a drivermanager based connection?

tender shard
civic wind
full perch
golden turret
#

how can I transfer all data from a PersistentDataContainer to another?

tender shard
tardy delta
#

cant you iterate over all the entries?

tardy delta
#

or reflections ๐Ÿคค

golden turret
#

something like pdc#copyTo(otherPDC)

tender shard
#

you have to do that manually

civic wind
#

Anyone help me with my issue?

tender shard
civic wind
#

Can't get the command to perform

tender shard
tardy delta
#

lets not expose that STAFF collection

civic wind
#

ahhhhhhh

tardy delta
#

ye have a Set<UUID> instead and dont expose it to other classes, write dedicated methods for it

undone axleBOT
civic wind
#

I have arraylist for uuid idk why i checked for player

dry forum
civic wind
#

Still doesn't work though

dry forum
tardy delta
#

myes lol

civic wind
#

Yeah fair enough but it still should work right?

#

and tbh that Pdc looks a head blag.... I'm new to java and bukkit so trying to take it one step at a time

river oracle
civic wind
#

and yep

tender shard
civic wind
#

and it doesn't perform command

civic wind
dry forum
#

also ClientboundChatPacket still doesnt work

tender shard
civic wind
#

I have multiple other listeners that are working, just the perform command ones that aren't

tender shard
tardy delta
quaint mantle
#

i cant make it ):

rapid sable
#

Hi. Does anyone know why "proxiedplayer.connect(ServerInfo)" causes me to see a void instead of the world itself?

I could find out it can have to do with Geyser, but that plugin is not on my server. Could not find anything else..

#

Whenever I send a player via Spigot to another server, this does not occur.

ornate mantle
#

how do i get the version of nms where everything isnt obfuscated

rapid sable
quaint mantle
#

the dependency is not included in the jar but is expecting it to be there so you either need to put the dependency in the plugin jar (shading) or if the api is a plugin, put the plugin in the plugins folder so the plugin can access the classes

ornate mantle
#

yeah i did

quaint mantle
#

i dont understand

ornate mantle
#

i have the dependency

#

zeldaboy

dry forum
#

is there a reason why ClientboundChatPacket isnt working on 1.19.2?

ornate mantle
#

its just all a and b and c

quaint mantle
#

can someaone help me?

river oracle
full perch
quaint mantle
#

aaa

#

ok

#

thanks

rapid sable
tardy delta
#

smh

river oracle
full perch
#

oh no, poor @ NotNull guy

ornate mantle
#
        <dependency>
            <groupId>org.spigotmc</groupId>
            <artifactId>spigot</artifactId>
            <version>1.19-R0.1-SNAPSHOT</version>
            <scope>provided</scope>
            <classifier>remapped-mojang</classifier>
        </dependency>```
tardy delta
#

does it insert Validate.notNull? or smth related

rapid sable
#

Well, in some way or another I got it to work. So cannot quite help you out as I don't have a lot of knowledge about the pom.xml..

river oracle
tardy delta
#

ah fun

river oracle
#

it also warns your ide if you pass in null

#

given you have the lombok extension

quaint mantle
#

@full perch i made it! thanks

full perch
#

*google SearX ๐Ÿ˜Ž

ornate mantle
#

why is every class changed

#

WorldServer changed to ServerLevel

tardy delta
#

this the correct way?

full perch
# rapid sable Bump?

I am unsure of why, could you show the example in practice (i.e show the code) and do you have a void world in any of your servers and when in that void, can you check what world it says you are in (Not sure if you can without making or having certain plugins though)?

rapid sable
#

Well.. The confusing this is that I am literally only calling "proxiedplayer.connect(ServerInfo)"

This results in me being sent to the server I put in there, but the server just appears as a void (just like myself when in f5-mode). Unfortunately I cannot attach any files..

I can see someone else breaking blocks if they do so. When I re-log I do see everything again.

river oracle
full perch
tardy delta
#

here i'm again lol, anyways do you mean that i need a connection field which is opened permanently and use that instead of establishing a new connection every time?

echo basalt
#

I use a funny connection system

#

ignore the dynamictable map, it's some fancy auto-adjusting table system

tardy delta
full perch
tardy delta
#

connection opened permanently?

echo basalt
#

yeah type thing

#

we check for timeouts on each request

wet breach
tardy delta
#

i think thats what frostalf tried to tell me

rapid sable
tardy delta
#

singleton.. uhh for what then? the db or the connection?

wet breach
#

with a lazy loading singleton, anytime the singleton object is accessed it will always check if the instance is valid, if not it will make it valid ๐Ÿ™‚

#

the connection

echo basalt
#

yeah mine is basically that

tardy delta
#

ah i get it

dry forum
#

if i have a multi modular project what module would i package to get the jar

echo basalt
#

except it's an abstract method on the sql driver class thing I use

wet breach
boreal sparrow
#

How would I add a player to a team

echo basalt
#

I use it both for mysql and sqlite

#

mongo is a permanent connection iirc so I don't need it there

civic wind
#

Anyone help me??

wet breach
#

well, sqlite is a permanent connection until you lose the instance XD

echo basalt
#

oh huh

#

well even then

#

if it ain't valid

tardy delta
#

liek thos?

wet breach
#

yep

echo basalt
#

you gotta check for validity

#

connection.isValid(timeoutMs)

#

would be cool

#

throws an exception if invalid,

civic wind
echo basalt
#

maybe?

tardy delta
echo basalt
#

ah

#

stupid shit

tardy delta
#

i guess it wont

wet breach
#

to see where it stops

echo basalt
civic wind
echo basalt
#

anti-nesting pattern, yet still nests

wet breach
#

I have a feeling it stops right at the top or you are not registering your listener

echo basalt
#

calls getter, assigns it a local value, continues to use getter

civic wind
#

I've registered it

echo basalt
#

I'd say uhh

echo basalt
#

either the item check

#

or the staff check

wet breach
#

I am going with the staff check

civic wind
#

Why?

golden turret
weary cobalt
#

Iโ€™m currently learning how to create a BungeeCord plugin (I already have plenty of experience with Spigot plugins) and am struggling to understand PluginMessaging between Spigot and Bungee. Iโ€™d like to create a โ€œgetterโ€, so that the Spigot server can request data, and the BungeeCord server will return it. Could anyone please help me or point me in the right direction? I havenโ€™t found anything helpful online. Thanks ๐Ÿ™‚

civic wind
#

yeah think its staff check i sent a message and didn't receive it

tardy delta
#

also, i just checked with the connection thing and my plugins keeps just disabling after not fully being initialized :/

echo basalt
#

longer timeout

tardy delta
#

might have a stacktrace but my stupid exception handling not printing it

echo basalt
#

100ms is quite short

tardy delta
#

checked with drivermanager configuration and same result

wet breach
#

I love it when people DM me

tardy delta
#

lets wait 2 secs lol

echo basalt
#

my skyblock core got quite big (I'm taking a similar approach to you, and making 20 types of databases and handlers)

#

and I made an exception handler

#

that logs stuff to files

tardy delta
#

ah me just using Plugin#getLogger

echo basalt
#

it might not even be thread-safe but

wet breach
#

or are you saying it will have the ability to use 20 different types?

compact haven
#

Why not just stderr illusion

echo basalt
tardy delta
#

wait its in seconds

echo basalt
#

type thing

echo basalt
tardy delta
#

100 seconds??

#

lmfao

wet breach
#

Ah, make sure you use an Enum ๐Ÿ™‚

echo basalt
#

I do

tardy delta
#

10000 seconds maybe a little too much ๐Ÿค”

chrome beacon
echo basalt
ornate mantle
#

when using nms do you guys use the obfuscated one or the non-obfuscated one

chrome beacon
#

non-obfuscated

#

Why would you use the obfuscated one???

echo basalt
ornate mantle
#

because i cant find a proper tutorial for the non-obfuscated one ๐Ÿ’€

#

the non-obfuscated one has changed stuff

#

EntityPlayer becomes ServerEntity

#

and a lot more

chrome beacon
#

Well it's NMS you're going to have to figure things out yourself

ornate mantle
#

pain

#

aight cool

wet breach
#

@civic wind go bug someone else

echo basalt
#

don't you love it

#

when you're commenting about something

#

and the people asking for help on stupid stuff start dm'ing you

wet breach
#

its very impolite to come to a discord ask people for help, and then assume its alright to DM and continue to ask for help one on one

tardy delta
#

npe is cuz my userrepo isnt instantiated, meaning onEnable hasnt been completed

#

lets see why im not getting a stacktrace

tardy delta
#

basically my usercache

#

i can show the code on gh

civic wind
dry forum
wet breach
echo basalt
#

smh my head

#

frostalf is a regular here

civic wind
echo basalt
#

that's because you're not a regular here

#

You shouldn't expect to find bill gates here

tardy delta
#

ah why didnt i see this

civic wind
echo basalt
#

No need to call people "cringey" just because they called you out on trying to be pretentious and obtain personalized support for your stupid problem, after giving up on the first attempt

tardy delta
#

i think i- i made some stupid mistake

civic wind
#

You lot got egos its minecraft mate

#

Don't act famous you need to go the see sun light

ornate mantle
#

lmao

echo basalt
#

๐Ÿคก

echo basalt
#

we're all adults here, pretty sure

civic wind
#

If you're not a kid you should be ashamed of yourself

wet breach
#

for what?

echo basalt
#

for having a job and making a living out of video games?

civic wind
#

At least if you were, you would have an excuse for being a childish attention seeker

compact haven
#

Ashamed at what lmao

tardy delta
#

fixed it thanks anyways lmfao

echo basalt
#

I'm new here, say hi!

wet breach
civic wind
#

All you had to do was saying "I don't want to help" not beg your existence in this chat

wet breach
#

I did say that

#

I said go bug someone else

civic wind
#

Read what I put properly

wet breach
#

seems your upset because I told you in a public setting instead of the DM

civic wind
#

Yes, I'm just displaying maturity levels.

ornate mantle
#

what does the ProfilePublicKey do and can i null it

compact haven
#

Itโ€™s just annoying when you help someone in a chat and they start dming you, when you DM you expect personalized help & give pings every time you send a message

echo basalt
compact haven
#

itโ€™s unnecessary and annoying to people

wet breach
#

What I did is mature because it expresses being displeased in you assuming I want to hold a private conversation with you

#

it would be no different if you approached me in public

#

I would tell you get lost in front of everyone

#

not step aside and do it

civic wind
#

You're not famous though. All you have to do is reply saying I don't want to help... I wasn't asking for your debit card details lmfao... Just say the 5 simple words and thats the end of it. Instead you have spent 5 minutes arguing about it LMAO

compact haven
#

bro what

wet breach
civic wind
#

And your minecraft mates are replying with you, not sure if they've noticed i'm not talking to them?

echo basalt
#

Okay so if drake told you to get loss publically you'd respect, but because it's frostalf you don't?

civic wind
compact haven
#

Get a life lmao, what does being famous have anything to do with this

echo basalt
#

Cloutchaser

civic wind
#

You guys can code but you sure as hell lack social skills

echo basalt
#

being famous just means people can be a nuisance to you and you should magically be fine

river oracle
echo basalt
#

ยฏ_(ใƒ„)_/ยฏ

compact haven
#

his time is worth just as much as yours, personalized help because he was kind enough to offer it in a channel is not guaranteed

compact haven
#

You arenโ€™t paying him, are you?

echo basalt
#

imma get back to work

wet breach
#

so, that is one for you

echo basalt
#

weird flex yeah

wet breach
#

Anyways, still have yet to know what exactly I should be ashamed of

echo basalt
#

we aren't multi-millionaire elon musk clones here

wet breach
echo basalt
#

but we sure as hell aren't living a sad life rambling about dm'ing people for help

compact haven
#

the only thing I want cloned from Elon musk is his bank account

#

he can keep everything else

wet breach
#

lol

tardy delta
#

ignore chat

echo basalt
#

what about his shape

tardy delta
#

smh my internet go brr

echo basalt
#

he built different

civic wind
grim ice
#

this sounds fun

#

is there an argument here

#

pls fill me in

civic wind
#

If you're "mature" you would see it from my pov

wet breach
echo basalt
#

man shut yo bitch ass up and move on jfc

grim ice
#

@wet breach explain

#

pls

compact haven
#

honestly kilocodes you might not realize it but it happens a lot, it was just a comment on his end to the other people who experience is equally as much

civic wind
civic wind
compact haven
#

welp thatโ€™s all it was

echo basalt
grim ice
#

Lmfao

wet breach
# grim ice <@227800863022907393> explain

kilocodes is upset because they DM'ed me for help, and instead of me replying in DM, I replied in public chat area telling them to go bug someone else. Their feelings are now hurt, and I should be ashamed as well as I am now magically a kid again

grim ice
#

"famous enough"

river oracle
#

Okay question regarding spawning items in the center of a block
I have 4 block locations like this. I have no clue in what order they are in
Now I originally modified the position of the spawn item like so

location.clone().add(0.5, 0, 0.5)

No obviously this doesn't work because I am automatically assuming every block is offset by that amount which it isn't necessarily true. Is there any way I can always get an item to spawn in the center regardless of the direction the block was placed at relative to the location

grim ice
#

frostalf is a very patient person

#

if you're getting in an argument with him

#

you must be real stupid

wet breach
#

I play the long game

grim ice
#

i remember once he spent an hour explaining how bits worked to me

civic wind
grim ice
#

not sure if "random" is the correct word

river oracle
grim ice
#

the green clover at the end of your name says much

civic wind
wet breach
#

everyone else here right now, are regulars

civic wind
compact haven
#

why is that even being used as an insult; like so what if theyโ€™re a kid doesnโ€™t mean they canโ€™t be smarter than you xd

grim ice
#

All of us have been here for around a year here

echo basalt
# river oracle Okay question regarding spawning items in the center of a block I have 4 block l...
private static Location average(Location[] locations) {
    double x = 0;
    double y = 0;
    double z = 0;
    World world = null;

    for (Location location : locations) {
        if (world == null)
            world = location.getWorld();

        x += location.getBlockX() + 0.5;
        y += location.getBlockY() + 0.5;
        z += location.getBlockZ() + 0.5;
    }

    return new Location(world, x / locations.length, y / locations.length, z / locations.length);
}

is probably your solution

compact haven
#

random to you maybe

wet breach
#

have to be old to be wise

civic wind
compact haven
#

perhaps not, but

#

what the fuck man

wet breach
#

lol

grim ice
civic wind
#

Smart on the keyboard doesnt always mean common sense smart folks!! anyways cya ๐Ÿ˜„

compact haven
#

whatโ€™s common sense

civic wind
#

grass is green btw

compact haven
#

You clearly have none

grim ice
#

indeed

#

you have an anime pfp btw

wet breach
#

well there goes the fun

compact haven
#

yes I just got back from a bike ride, thanks for telling me the color of grass

grim ice
#

not sure if you're in the position to talk about that

echo basalt
#

aw man the circus is gone

grim ice
#

damn i came late here

compact haven
#

it was a pointless argument

wet breach
compact haven
#

entitled and wanted to defend himself when there wasnโ€™t even a problem

river oracle
wet breach
#

as I said, they were upset because I responded in public and not in private

civic wind
echo basalt
river oracle
#

okay hold up

river oracle
#

I'm just going to move it up

compact haven
#

bro what

echo basalt
#

another solution is

origin.add(furthestOffset.clone.divide(2))

grim ice
#

a bricklayer surely has some guts insulting people with them being students

wet breach
wet breach
#

And what does you having a job have to do with anything?

grim ice
#

I'm pretty sure average students would be more educated than you if you ended up a bricklayer

glossy lily
#

need an easy, non laggy way to check if a block is surrounded by 8 non-passable blocks

compact haven
#

kilo youโ€™re actually dumb if you think you can just pull insults out of your ass

wet breach
#

awesome you have a job, but are you saying those without a job are lesser then you?

wet breach
#

yes

compact haven
#

no one here that I know of โ€œhas it madeโ€ lol

grim ice
#

Sure

echo basalt
#

oh no he's a working class citizen

grim ice
#

Oh noo

echo basalt
#

who cares

river oracle
#

๐Ÿ˜จ

civic wind
grim ice
#

he has a job that i wouldnt get even if i was begged to

glossy lily
grim ice
#

im so sad

civic wind
#

You can graft thats why

grim ice
#

im in tears rn

echo basalt
#

background shouldn't matter in this argument

civic wind
#

ur a soft x generation non binary pussy

compact haven
#

these people donโ€™t need to build a house because they have other skills, like development

grim ice
civic wind
#

u all probs think you can be a girl boy

grim ice
#

yeah sure

civic wind
#

weird ass kids

grim ice
#

and what are you?

civic wind
#

none of u get poony either ahhahaha

wet breach
civic wind
#

TOUCH GRASS FREAKSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS

grim ice
#

a bulky black man with a mustache and a huge beard that can destroy earth with a single punch?

echo basalt
#

my uncle is the prime minister of an ex-soviet-union country - it doesn't make me better than any of you mfs

#

kilo needs humbling and maybe therapy

grim ice
#

you need therapy kid

#

especially that you have a kaneki pfp, that's even worse than me

wet breach
#

I like how at the end, they started calling people names

grim ice
#

Lol he left

echo basalt
#

you lower my expectations when you can recognize the anime character

#

lmao he left

grim ice
#

the circus just lost an employee

#

rip

echo basalt
#

he was the whole circus

#

now just the low-tier clowns remain

#

:/

river oracle
#

can he get banned for that shit at the end lol he doesn't deserve to ever come back

wet breach
grim ice
#

yeah hes homophobic

echo basalt
#

nah what if he comes back to apologize

grim ice
#

apologize? never

river oracle
echo basalt
#

like in a couple years

#

when the house he's building collapses

grim ice
#

hes a traumatized 13 years old who had to become a bricklayer and thinks univeristy students are bad because he never got to middle school

wet breach
grim ice
#

and thinks homophobia is a good idea

glossy lily
grim ice
#

the definition of garbage in society, if you ask me

echo basalt
#

didn't know kids could work at construction

glossy lily
#

and help me out

dry forum
#

when i package my multi modular project it creates a jar in ever module.. how do i just get the compiled jar for everything

grim ice
grim ice
#

impossible

wet breach
echo basalt
#

I mean

#

I've been making plugins since before it was legal to work

#

and monetizing them

#

but construction is dangerous

wet breach
#

so is mining

#

but kids still do it

echo basalt
#

o shit I forgo

river oracle
echo basalt
#

and change the names

river oracle
#

genius

echo basalt
#

I just happened to have a location[]

river oracle
#

just making sure I'm not doing something stupid lol

echo basalt
#

because I was doing some stuff with double chests

glossy lily
#

?

echo basalt
#

for(x = -1, x <= 1, x++

#

y = -1, y <= 1, y++

#

whatev

#

if(x == 0 && y == 0 && z == 0) continue

#

Material blockType

#

!blockType.isOccludable

#

low effort

dry forum
#

when i package my multi modular project

wet breach
#

2 if they don't care about the y

echo basalt
#

I did hint it with the z check

#

changing that would cause the arrow to skip

shy rock
#

Anyone knows the method to config a mob's drops?

echo basalt
#

if you want a smooth effect, you'd need to call that method in increments on a repeating task type deal

echo basalt
#

starts at 0

#

brewing is usually 10 seconds iirc

#

I can't bother grabbing my Minecraft Blockpedia Book and fact-checking

boreal sparrow
#

How do I add/remove a player from a team?

echo basalt
#

addEntry

boreal sparrow
#

thanks

echo basalt
#

takes a string

#

for players, it should be their username

boreal sparrow
#

can you add a player to multiple teams

echo basalt
#

iirc

boreal sparrow
#

yea like
whatver.addEntry(player.getName());

#

but can you add a player to multiple teams tho?

river oracle
boreal sparrow
#

is there a way to check which team/s a player has been assigned to?

shy rock
# echo basalt EntityDeathEvent should have a mutable drop list
                public void onMobDeath(EntityDeathEvent event){
                    if(event.getEntity(ironfish).getKiller() instanceof Player){
                            event.getDrops().add(new ItemStack(Material.IRON_ORE, 1));```
```getDrops()``` error: Cannot resolve method 'getDrops' in 'EntityDamageByEntityEvent'
#

any idea?

grizzled pollen
#

if there really is no such method here, then you should manually spawn item with World#dropItemNaturally

sullen wharf
#

๐Ÿค”

echo basalt
#

EntityDeathEvent and EntityDamageByEntity are 2 completely different things

#

setBrewingTime(getBrewingTime - howeverManyTicksIWantToSkip)

grizzled pollen
shy rock
# grizzled pollen if needed
                             public void onMobDeath(EntityDeathEvent event){
                               if((Silverfish) event.getEntity().getKiller() instanceof Player){
                                     event.getDrops().add(new ItemStack(Material.IRON_ORE, 1));```
there are no errors, the custom mob I created is called, "ironfish"
#

but it still wont work

chrome beacon
#

Why are you casting getKiller to a silver fish and then doing an instace of check on it

#

getKiller will always be a player

shy rock
#

my bad

chrome beacon
#

So that's always going to throw an error

shy rock
#

It didn't actually

#

but ill fix it

chrome beacon
#

Did you forget to register the listener?

shy rock
shy rock
#

I also tried "ironfish" which was a other name I used but didn't work

terse panther
#

theres a guide to create skills?

#

I want to create mob skills, but not for one mob on specific, I mean, a reusable skills

river oracle
#

Okay I'm going to take another crack at asking this. I have a Set of 4 locations Set<Location>. On each of the red blocks I need an item to spawn in the center of the red block. The white area isn't supposed to have items on it. The issue I'm running into is I have no way to predict how to center the entity on the block is there any way to snap it into the center position? and no adding .5 to x or z won't work as it could be offset an amount that would move it to the wrong block

shy rock
#

no idea tbh

#

first time making a mob also like third day on java spigot

#

well i already made it (with help)

#

all i need now is the drops when its killed

gleaming grove
#

why does this code not removes item from cursor?

shy rock
onyx fjord
#

does spigot ship json-simple

gleaming grove
#

what do you mean by lock?

slate delta
#

Why do I get this, when >= 25?

boreal sparrow
#

does someone have some ways to easily create a team, and add player to it?

quaint mantle
#

hi

ornate mantle
#

guys how do i find out if an entity is in render distance of a player

boreal sparrow
#

can somebody just tell me how to add players to teams

chrome beacon
#

Team#addEntry

boreal sparrow
#

yea but how to create the team in the first place

chrome beacon
#

Scoreboard#registerNewTeam

#

Have you tried using the Javadocs?

#

?jd-s

undone axleBOT
boreal sparrow
#

yea and i did exactly that

#

the thing is

#

how would i check which team a player is on

chrome beacon
#

Scoreboard#getEntryTeam

boreal sparrow
#

damn

#

thanks

ornate mantle
#

lmao

#

does Bukkit.getServer().getViewDistance() give you the blocks of render distance or chunks

boreal sparrow
#
Player player = (Player) sender;

 ScoreboardManager sm = Bukkit.getScoreboardManager();

 Scoreboard scoreboard = sm.getNewScoreboard();

  Team DinoMine = scoreboard.registerNewTeam("Map1");

   //ADD PLAYER TO TEAM
   player.setScoreboard(scoreboard);

   DinoMine.addEntry(player.getName());
Player player = event.getPlayer();

        if(player.getScoreboard().getEntryTeam(player.getName()).equals("Map1")){

            player.sendMessage(ChatColor.GREEN + "YOU ARE ON TEAM MAP1");
        }

This is my code for adding a player to a team, and then checking if the player is on said team when moving, why doesnt this work?

shy rock
#

I made a custom plugin that works, the thing is that whenever it does its thing which is to spawn a mob when a certain block breaks, it fills my console with it

ornate mantle
#

OH MY GOD I FUCKING HATE NMS

ornate mantle
#

send the entire file not snippets

#

you could also use custom teams

#

create a new yaml file which stores stuff

boreal sparrow
#

ill use that instead

ornate mantle
#

lovely

shy rock
#

2 files

shy rock
ornate mantle
#

i can barely make my own code work

shy rock
#

oh lol

grim ice
#

ngl

#

i kinda wanna take programming as a career

#

partially to throw a middle finger at my parents who think french > english and that i should stop learning english because its useless and that whatever i do (e.g coding) will not help me in the future

fiery prairie
#

or they are witchcraft...

odd sentinel
#

are there any other blocks besides sweet berry bushes that trigger PlayerHarvestBlockEvent currently (and maybe beehives/nests)

quaint mantle
#

Hey, Ive been working on this plugin that uses the Bungeecord messaging channel , and it seems to send the message, but the other servers do not seem to recieve this message. Ive looked at the wiki on it, and used this method before, yet it isnt working this time

iron glade
glossy venture
#

from the spigot and bungee plugins

#

and some context like when its called

quaint mantle
#

Yeah sure, I mean its only a spigot plugin since iirc you dont need a bungeecord plugin to use the messaging channel

#

Well its not called in the playerjoinevent

glossy venture
#

oh ok

quaint mantle
#

It literally is just the same as the wiki says

#

have no idea why it doesnt work, i even modified my code so its literally just the same as the wiki, but it doesnt work

slate delta
#

"Unable to obtain Instant from TemporalAccessor: 2023-05-11T22:27:20.108168480 of type java.time.LocalDateTime"