#dev-general

1 messages Β· Page 629 of 1

oblique heath
#

try oracle

#

for the money it's pretty good

sly sonnet
#

novonode or sparked host

oblique heath
#

$0 for 4 cores and 16gb of arm compute

sly sonnet
#

yeah, and living on the risk of it all being deleted at some point πŸ™‚

oblique heath
#

well that's why you take backups 😎

quiet depot
#

yes

#

auto backup to other oracle server on other account

quiet depot
pastel imp
#

yes, I am aware. but if you disable ai, etc. The impact is minimal I would assume

pastel imp
cobalt marlin
#

yes and no, requires to hook up to chunk packets for players or doing distance based calculations

#

its easy to spawn etc for a player, but a static one becomes a bit more complex

oblique heath
obtuse gale
brittle leaf
#

how could i inprove this?

rotund egret
#

Test is a bad gang name

#

In a more real sense. What's the use of co-owner?

distant sun
#

Could apply a &m on those lines

rotund egret
#

Oh yeah those arrows are hard to see

distant sun
#

And if possible, I'd suggest to hide the roles if there's no member with that role

obtuse gale
#

&m ugh

brittle leaf
#

i didnt do &m because it doesnt look right when using -

#

thats why imma change it to unicode horizontal line

distant sun
distant sun
brittle leaf
#

huh

#

i never knew that

brittle leaf
dense dew
rotund egret
brittle leaf
#

the [] is intensional

rotund egret
#

Looking much better

oblique heath
#

what is this for

rotund egret
#

Ur butt

ruby dew
weary epoch
#

what is placeholder api?

last nacelle
#

why doesnt world.spawnParticle work? is there an extra param that I need to show the particle?

obtuse gale
#

it sure does work

#

make sure you're spawning a visible count/size and you have particles enabled in your client

last nacelle
#
Particle.DustTransition dustTransition = new Particle.DustTransition(Color.BLUE, Color.AQUA, 5.0F);
World world = p.getWorld();                        world.spawnParticle(Particle.DUST_COLOR_TRANSITION, EntityLoc, 20, dustTransition);
obtuse gale
#

do other particle types work?

last nacelle
#

ill try rq

#

unfortunately didn't work, just tried with flame particle.

#

strangely, works with player.spawnParticle for me though.

weary epoch
#

what is placeholder api used for

obtuse gale
#

placeholder replacement

#

in strings to be specific

last nacelle
#

bleh how come when other people use the things it works for them but when i use the things the world turns upside down

weary epoch
#

u have to understand fundamentals so you know how to apply what when

last nacelle
weary epoch
#

read documentation to know how to use stuff

last nacelle
#

god i want to skin you alive.

weary epoch
#

whats the error

last nacelle
#

there is none. The code works with fine with player.spawnParticle, and not with world.spawnParticle. I want it to work with world.spawnParticle so its replicated to everyone.

weary epoch
#

maybe do player.spawnParticle and apply it to all the players?

last nacelle
#

thats what I have originally with getNearbyPlayers, but I hate to have that solution knowing theres a perfectly good world.spawnParticle

#

save the extra loop and what not

weary epoch
#

dont need to loop just select all players

#

you dont need to loop it

last nacelle
#

thats still a loop though? for(Player p : Bukkit.getOnlinePlayers())

weary epoch
#

Player[] players = Bukkit.getServer().getOnlinePlayers();

#

you dont need a loop for this

#

and i think you should be able to use that variable for the location im actually not sure though

last nacelle
#

😭

weary epoch
#

btw trying to learn kotlin how tf do i use getString

#

im assuming i need to import something but idk what to import

distant sun
#

getString ?

weary epoch
#

it has an error

#

Unresolved reference: getString

#

reading the error im asuming i need to import something to make it work

#

cause rn i have 0 imports

hot hull
#

You trynna use getString on what exactly?

static zealot
#

on your pp. and then using #length on it to see how big it is

hot hull
#

Blitz, you got mcm premium?

weary epoch
#

im just learning kotlin rn

hot hull
#

:what:

#

Show the code

static zealot
weary epoch
#

val text: String = getString("Text: ")

static zealot
#

someone bought me the upgrade

#

they also bought me a month of the temporary rank as well

#

but that expired long time ago

hot hull
weary epoch
#

Intelli J recommended to import import javax.swing.UIManager.getString

weary epoch
hot hull
#

Same thing as java then

#

Get an io stream or whatever the fuck it's called, and go from there

weary epoch
#

kk

hot hull
static zealot
#

lmao. why did you join the giveaway? :)))

hot hull
#

I usually don't have luck, so just to screw others over

weary epoch
static zealot
hot hull
static zealot
#

Frosty. Why did you answer as well? My answer is better!!

weary epoch
hot hull
#

That'll be 5€

weary epoch
#

k whats ur paypal

static zealot
static zealot
#

idk what you're talking about

weary epoch
#

WHY DID NO ONE TELL ME I CAN USE readln()

#

omfg

#

literally exactly what i was looking for

static zealot
#

because you didn't ask

#

you should've asked "can I use readln()?" and maybe you would've gotten an answer saying yes

weary epoch
#

i didnt know that readln is a thing

#

im a C programmer

#

I use get_string and scanf

distant sun
#

"How do I read from console" would be a better question than "how do I use getString"

prisma wave
#

yeah i thought you meant from the config lmao

#

rather than just inventing some function just describe what you want

cinder flare
#

but BM, how do I use create()?

half harness
prisma wave
#

bro pinged just to apologise for a ping

#

@half harness sorry for the ping

half harness
#

πŸ₯²

#

used to be an actual message

brittle leaf
nova warren
#

hey anyone used spotify api before

#

in javascript mainly

dense dew
#

no but just ask the question

nova warren
weary epoch
#

Program in C

#

exact same thing in kotlin

#

I never knew this level of happiness was achievable i dont think ill ever use C again

ocean quartz
#

I mean you'd use C and Kotlin for different things

humble silo
#

*Kotlin native

#

No one should ever use any other programming language, kotlin does it all

prisma wave
#

wrong

humble silo
prisma wave
#

someone's defaced it with a big red arrow

humble silo
#

ya i hate it when they do that, super annoying

#

super hard to parse too

prisma wave
#

that does seem like it would be complicated

humble silo
#

think jackson databind has a new red arrow api tho

humble silo
frail glade
#

Install locally

humble silo
#

and its just because they made a stupid mistake in their xml, i dont even know how u would do that

humble silo
frail glade
#

I fixed it by minimizing that section of the pom

#

Problem solved

humble silo
#

out of sight, out of mind

#

genius

pure arrow
# weary epoch exact same thing in kotlin

the same thing, but you don't have those functions in C?
Also can't compare something that is being contributed on constantly on the daily by the community and the developers with something that had it's latest release back in 2018

cinder flare
static zealot
#

🀣

sly sonnet
#

*it was*

half harness
#

It isn't gson's fault
when I read the file directly after saving, it gives the correct result

but I print this in my save() function which is the only way that I write to the file... πŸ€”
hmm

#

paper ftw

static zealot
#

yes

#

but spigot

#

is best

#

and paper breaks plugins

#

smh

#

xD

half harness
#

they did the same with waterfall

#

patch = known for incompatibilities

ruby dew
rotund egret
#

Yikes

static zealot
#

please put an /s at the end

#

you forgot it

rotund egret
#

Imagine using paper for your ass smh

#

Bidets πŸ’©

static zealot
#

lmao

ruby dew
#

amber turd 2.0's fork

sly sonnet
#

Imagine having to wipe after pooping skullclownskullclown

ruby dew
#

imagine having to poop

weary epoch
pure arrow
#

So, sponge (i think) would be the second most popular Minecraft server software

#

Or if Paper would go separate ways from Spigot, that would be the most popular server software

obtuse gale
#

someone should create a timeline of spigot forks

#

like the one on linux's wikipedia

static zealot
#

there was one. its outdated. well not a timeline but a tree showing what everything is a fork of

obtuse gale
#

could you send me it please

#

I want to see it

static zealot
#

I Don't have it unfortunately. it was sent in this server a few times but idk how to search for it

pastel imp
#

uhm, maybe stupid question but does /restart actually do it's job? lol

distant sun
pastel imp
half harness
#

what problems?

#

never used it but doesn't it just run a script?

#

well, besides probably messing up server panels

sly sonnet
half harness
#

./restart stops the server and calls a configurable script

#

or something like that

#

different from /reload

sly sonnet
#

ah, I misread it as /reload

half harness
#

ah

#

yea /reload = πŸ’©

distant sun
#

Lol same

half harness
#

oh πŸ’€

distant sun
#

Nah /restart should run that script, as dkim said

#

But you have to create it, probably thats why it doesnt work

pastel imp
#

ye, I mean, most people probably don't even know about it xd

lavish notch
#

Anyone know of a way to get the duration of Sound?

obtuse gale
#

can't

lavish notch
#

Lovely.

#

So I'm guessing I gotta make some dictionary type shit?

obtuse gale
#

if you want an extremely hard-coded list of that yeah

lavish notch
#

πŸ˜”

obtuse gale
#

but the actual duration will depend on the pitch and whatever actual sound they're using (version and resource pack dependent)

lavish notch
sick belfry
glacial junco
#

hi

#

how i can create a slash command with arguments?

#

in JDA

hot hull
#

There's an example for that on their page iirc

glacial junco
hot hull
#

See there's this thing called google, and when you type jda github into it, it takes you to their github which has examples for everything

rotund egret
#

So true

glacial junco
#

the thing is, I want to make a command like, "/announce embed title:"title" desc:"desc"", but I don't know how to add the options that come after the first

hot hull
#

Arguments

echo talon
#

Just wondering if it was possible to have DeluxeTags as physical items. I want to be able to put them in crates with keys or let players auction tags away. Hopefully someone has done it πŸ™‚

hot hull
#

Use a vouchers plugin

echo talon
hot hull
#

How smart would it be to void my 3d printer warranty and modify the software, cause this shit garbage

inner umbra
#

Not aware of it voiding warranty to use another.

hot hull
#

I mean I have the entire file access if I just connect to it with a usb c

#

Are we talking about the same thing tho, I mean the actual program which runs on the printer, not the slicer

inner umbra
#

What ever runs the gcode on your printer.

hot hull
#

yeye, I would assume that would void the warranty since you modify the machine itself

inner umbra
#

I mean you can Google search it but you can always reinstall the software.

hot hull
#

Fair enough to be honest

distant sun
#

Reason to add? @obtuse gale

compact perchBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.

distant sun
#

Ok now use the right channel

distant sun
#

I only see Reset Token

inner umbra
distant sun
#

ah

rotund egret
#

It'll show you a second time if you're cute enough

last nacelle
#

its true, it only showed me once 😭

prisma wave
#

bye

obtuse gale
#

hellllloooooo i need help to make a server

#

me too :/

prisma wave
#

who is interested in a new minecraft hosting dm me if u are

static zealot
prisma wave
#

πŸ€“

distant sun
#

for free? Sign me in

onyx loom
#

how generous

obtuse gale
#

@potent nest are you a based gigachad concurrency/thread safety bug hunter?

last nacelle
#

did i hear free

static zealot
potent nest
#

it's rather the other way round, the bugs are hunting me

static zealot
# last nacelle did i hear free

I love the idea of you having a self bot or whatever its called that just searches the entirety of discord for the word "free"

obtuse gale
potent nest
#

thread safety easily causes headaches because there's so much to consider

obtuse gale
#

Yes exactly

potent nest
#

and it's easy to be "too smart" about things, shooting yourself in the foot

#

"yes check unsynchronized first for performance, and synchronize only if needed"

obtuse gale
#

Yeah I'm trying not to think I'm totally certain I've covered all possible cases here, I have a little class I believe it's alright but, just, ugh

#

No one is brave enough to give a second pair of eyes lmao

potent nest
#

I mean I can take a look, but I can't guarantee anything lol

obtuse gale
prisma wave
#

there are more <'s than {'s in that code

static zealot
#

I believe you

obtuse gale
#

ok

onyx loom
#

its true

obtuse gale
#

Man, I love Thread.onSpinWait()

#

It literally does nothing

#

Or at least the default implementation, lol

half harness
obtuse gale
#

The code above (waiting for some boolean in a loop) would remain correct even if the onSpinWait method was not called at all. However on some architectures the Java Virtual Machine may issue the processor instructions to address such code patterns in a more beneficial way.

#

No idea which, no idea how it works

#

It is annotated as IntrinsicCandidate, meaning what the comment above says, but if the running JVM doesn't know how to treat it specially, it's just public static void onSpinWait() {}

potent nest
obtuse gale
#

memory order
I forgot that the jvm runtime (and CPUs too..) is allowed to change the order in which instructions run (so long as it stays semantically the same)

#

concurrency was a mistake depression

potent nest
#

pipelining goes brrr

potent nest
distant sun
#

POV: you have to study

potent nest
distant sun
#

fun, fun

obtuse gale
#

oh jesus

static zealot
#

when you do actual studying 😒

obtuse gale
#

Good reminder that modern CPUs are nothing like your playground's Von Neumann architecture

potent nest
#

luckily and unluckily at the same time

pastel imp
#

uhm quick question, if I use holographic display's api, is it client side? (packets)?

#

I have no idea how it works internally

#

so if someone could just say "yes" or "no", would appreciate it

prisma wave
#

i think it depends

pastel imp
#

sus

prisma wave
#

i think with protocollib it is

pastel imp
#

so if I have protocollib, it's client if, otherwise it isn't?

#

a bit confusing ngl

surreal quarry
#

just write your own holograms plugin, be a man

#

devs nowadays always depending on other things smh /s

prisma wave
#

TRUE

pastel imp
#

b- but me not want to deal with stupid NMS

#

and have to update the plugin for every version lol

#

also, isn't protocollib kinda also depending on something?

surreal quarry
#

depending on stuff is fine lol

#

hence the "/s"

#

i personally know absolutely nothing about holographic displays

pastel imp
#

lol

surreal quarry
#

sarcasm

pastel imp
#

I mean, the question is not about individual holograms, more of a performance wise question

#

aka if it uses armorstands or not by default

distant sun
#

I mean, you still have to use entities no matter what approach you use (real entities or packets)

pastel imp
#

(affecting performance)

prisma wave
#

armor stands for holograms generally dont tick

#

so the performance impact is pretty low

pastel imp
#

understood, so using armorstands should be fine right?

#

Although, how do you prevent stuff like clearing all entities also clearing holograms?

distant sun
#

I guess you can respawn it on an interval\

half harness
pastel imp
surreal quarry
#

the way I've done it in the past was spawning armor stands client side with packets

#

i also needed per-user holograms, so maybe a bit different

#

and pagination and stuff

wise sluice
#

Hey everyone, where can i ask a question about servers update to new version + question for a plugin?

wise sluice
#

thanks :p

oblique heath
#

dead chat

hot hull
#

You're dead

oblique heath
#

:(

half harness
#

πŸ€” Is there a way to get a player's IP during login packets?
In PacketLoginOutSuccess and PacketLoginOutSetCompression (serverside packets work fine though), Player#getAddress returns null

#

and I'm using ProtocolLib

weary epoch
distant sun
#

bungee or waterfall have this PendingConnection class, from where you can access some information about the player

obtuse gale
#

AsyncPreLogin too bad?

static zealot
#

How bad can caching all OfflinePlayers that have ever played on the server get? Lmao. I'm just wondering, bcz I know caching Players is a bad idea but idk about OfflinePlayers. xD

obtuse gale
#

I believe the server does that already, but it also does all the lifecycling when players join/leave/data is modified etc

#

Of anything keep a set/map with UUIDs I suppose idk

static zealot
#

no

lavish notch
#

Oh okay

half harness
#

makes perfect sense

#

only thing found online was making the sourceset name "main"

#

so I guess I'll just do that instead of making a new sourceset?

obtuse gale
#

you can definitely make new ones, but it's likely throwing an error because you're doing something wrong elsewhere

#

can't tell much else, but creating new source sets has worked for me in the past

half harness
#

hm alr, well that seemed to work anyways

#

Β―_(ツ)_/Β―

tidal chasm
#

Anyone a Java coder

#

That I can hire

#

??

frail glade
distant sun
#

Sometimes it pays to stay in bed on Monday, rather than spending the rest of the week debugging Monday’s code.
kek