#dev-general
1 messages Β· Page 629 of 1
novonode or sparked host
$0 for 4 cores and 16gb of arm compute
yeah, and living on the risk of it all being deleted at some point π
well that's why you take backups π
what happened to 24gb
yes, I am aware. but if you disable ai, etc. The impact is minimal I would assume
it's 24gb, he was wrong xD
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
Not really rocket science
oh 24gb
you can disable ticking for armour stands
https://jd.papermc.io/paper/1.19/org/bukkit/entity/ArmorStand.html#setCanTick(boolean)
how could i inprove this?
Could apply a &m on those lines
Oh yeah those arrows are hard to see
And if possible, I'd suggest to hide the roles if there's no member with that role
&m 
i didnt do &m because it doesnt look right when using -
thats why imma change it to unicode horizontal line
strikethrough π€
you can use spaces, &a&m &r
i was planning on removing co owner but havent decided since co owner is basically the same as mod
borrowing M*
Manager or Administrator would be better, but if you don't have the necessity of it then I'd toss it yea.
Looking much better
what is this for
Ur butt
butt:
Name:but
Owner: human
Coowner: gastrointestine
Mods:microbacteria
Member: poop
wouldnt a co-owner be more like a server admin?
what is placeholder api?
why doesnt world.spawnParticle work? is there an extra param that I need to show the particle?
it sure does work
make sure you're spawning a visible count/size and you have particles enabled in your client
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);
particles are enabled yes.
do other particle types work?
ill try rq
unfortunately didn't work, just tried with flame particle.
strangely, works with player.spawnParticle for me though.
what is placeholder api used for
bleh how come when other people use the things it works for them but when i use the things the world turns upside down
u have to understand fundamentals so you know how to apply what when
so how do I apply world.spawnParticle to work
read documentation to know how to use stuff
@weary epoch
declaration: package: org.bukkit, interface: World
god i want to skin you alive.
whats the error
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.
maybe do player.spawnParticle and apply it to all the players?
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
thats still a loop though? for(Player p : Bukkit.getOnlinePlayers())
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
π
btw trying to learn kotlin how tf do i use getString
im assuming i need to import something but idk what to import
getString ?
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
You trynna use getString on what exactly?
on your pp. and then using #length on it to see how big it is
Blitz, you got mcm premium?
just to get a variable
im just learning kotlin rn
yeah. I got ultimate or whatever the better one is called
val text: String = getString("Text: ")
someone bought me the upgrade
they also bought me a month of the temporary rank as well
but that expired long time ago
Remove the getString part and just use it like ""
Intelli J recommended to import import javax.swing.UIManager.getString
I want to get an imput from the console
Same thing as java then
Get an io stream or whatever the fuck it's called, and go from there
kk
Ah, was gonna give you premium cause I already got it
lmao. why did you join the giveaway? :)))
I usually don't have luck, so just to screw others over
where could one find one of these handy dandy io streams?
usually they grow at the foot of oak trees where they don't get a lot of sun. They love darkness and moist. It might be hard to see them during the day tho but during the night they start glowing so going out after the sun sets is best if you want to find them.
Just read the input in your main method like you would on java, google has your answer most likely
Frosty. Why did you answer as well? My answer is better!!
i wanted a typing kind of deal like in get_string() for C i found my answer kind of though on google ty for ur help
That'll be 5β¬
k whats ur paypal
idk what you're talking about
WHY DID NO ONE TELL ME I CAN USE readln()
omfg
literally exactly what i was looking for
because you didn't ask
you should've asked "can I use readln()?" and maybe you would've gotten an answer saying yes
"How do I read from console" would be a better question than "how do I use getString"
yeah i thought you meant from the config lmao
rather than just inventing some function just describe what you want
but BM, how do I use create()?
sorry for the ping (edited)
I edited it
π₯²
used to be an actual message
this isn't related to showing the server staff, its for gangs
no but just ask the question
oh thanks i finally figured it out
π
https://dontasktoask.com for the next time
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
I mean you'd use C and Kotlin for different things
*Kotlin native
No one should ever use any other programming language, kotlin does it all
wrong
Anyone see an issue with this pom file? https://repo1.maven.org/maven2/org/jvnet/staxex/stax-ex/1.8.1/stax-ex-1.8.1.pom
Hint:
someone's defaced it with a big red arrow
that does seem like it would be complicated
think jackson databind has a new red arrow api tho
ya, it breaks my whole thing
Install locally
and its just because they made a stupid mistake in their xml, i dont even know how u would do that
why?
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
yeah it's using maven, should be in gradle obvs
guys I found this today: https://www.spigotmc.org/wiki/what-is-spigot-craftbukkit-bukkit-vanilla-forg/. You can start laughing now
π€£
*it was*
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
yes spigot is the best
paper? I use that to wipe my poop
Yikes
lmao
amber turd 2.0's fork
Imagine having to wipe after pooping 

imagine having to poop
No the problem isnβt updated itβs just low level vs higher level in c++ it could have these simple functions because itβs a bit higher level
well pretty much every fork is at it's base still Spigot
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
there was one. its outdated. well not a timeline but a tree showing what everything is a fork of
I Don't have it unfortunately. it was sent in this server a few times but idk how to search for it
uhm, maybe stupid question but does /restart actually do it's job? lol
Causing problems? Yes!
fair enough, thanks.
what problems?
never used it but doesn't it just run a script?
well, besides probably messing up server panels
problems with plugins that have lazy developers that can't properly disable their plugins on JavaPlugin#onDisable()?
./restart stops the server and calls a configurable script
by default I think it's like start.sh
or something like that
different from /reload
ah, I misread it as /reload
Lol same
oh π
Nah /restart should run that script, as dkim said
But you have to create it, probably thats why it doesnt work
ye, I mean, most people probably don't even know about it xd
Anyone know of a way to get the duration of Sound?
can't
if you want an extremely hard-coded list of that yeah
π
but the actual duration will depend on the pitch and whatever actual sound they're using (version and resource pack dependent)

there's a server I play on that has a custom fork of paper thats called bidet lmao
just throw a hash map at it
There's an example for that on their page iirc
where
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
So true
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
Arguments
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 π
Use a vouchers plugin
working on it
How smart would it be to void my 3d printer warranty and modify the software, cause this shit garbage
My printer came with the software on a memory card and I just made a copy of it.
Not aware of it voiding warranty to use another.
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
Yes
What ever runs the gcode on your printer.
yeye, I would assume that would void the warranty since you modify the machine itself
I mean you can Google search it but you can always reinstall the software.
Fair enough to be honest
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.
Ok now use the right channel
Um, was the token removed from https://discord.com/developers/applications/<id>/bot ?
Integrate your service with Discord β whether it's a bot or a game or whatever your wildest imagination can come up with.
I only see Reset Token
It will only show you the token once. Every time you have to reset it.
ah
It'll show you a second time if you're cute enough
its true, it only showed me once π
bye
who is interested in a new minecraft hosting dm me if u are
no cap that shit caught my attention on god fr fr straight up fr π―
π€
for free? Sign me in
how generous
@potent nest are you a based gigachad concurrency/thread safety bug hunter?
did i hear free
LMAO
it's rather the other way round, the bugs are hunting me
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"

thread safety easily causes headaches because there's so much to consider
I wouldnt mind
Yes exactly
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"
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, 
No one is brave enough to give a second pair of eyes lmao
I mean I can take a look, but I can't guarantee anything lol
It's making me want to cease to be https://gist.github.com/emilyy-dev/bd88bca43716b9efd34372579b5a886e
there are more <'s than {'s in that code
I believe you
ok
its true
Man, I love Thread.onSpinWait()
It literally does nothing
Or at least the default implementation, lol

wait what implementations does it do something in?
The code above (waiting for some boolean in a loop) would remain correct even if the
onSpinWaitmethod 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() {}
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 
pipelining goes brrr
I started looking at it and realized I should get some rest...
POV: you have to study
yeah I'm staring at http://varys.ucsd.edu/media/papers/coskun2008static.pdf for the whole day already
fun, fun
oh jesus
when you do actual studying π’
Good reminder that modern CPUs are nothing like your playground's Von Neumann architecture
luckily and unluckily at the same time
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
i think it depends
sus
i think with protocollib it is
just write your own holograms plugin, be a man
devs nowadays always depending on other things smh /s
TRUE
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?
depending on stuff is fine lol
hence the "/s"
i personally know absolutely nothing about holographic displays
sarcasm
https://github.com/filoghost/HolographicDisplays/wiki/Individual-holograms per this wiki you can use protocollib and a visibility manager to make per-player holograms
I mean, the question is not about individual holograms, more of a performance wise question
aka if it uses armorstands or not by default
I mean, you still have to use entities no matter what approach you use (real entities or packets)
yes but one only affects once a packet is sent, and the other is constantly affecting no?
(affecting performance)
armor stands for holograms generally dont tick
so the performance impact is pretty low
understood, so using armorstands should be fine right?
Although, how do you prevent stuff like clearing all entities also clearing holograms?
I guess you can respawn it on an interval\
if it's packet side then clearing entities won't affect it
I was speaking about armorstands
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
Hey everyone, where can i ask a question about servers update to new version + question for a plugin?
thanks :p
dead chat
You're dead
:(
π€ 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
ik there is a way cause there are plugins that check IPs
bungee or waterfall have this PendingConnection class, from where you can access some information about the player
why are you using protocollib lol
AsyncPreLogin too bad?
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
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
Is this on bungeecord?
no
Oh okay
huh?????????????????????
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?
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
Sometimes it pays to stay in bed on Monday, rather than spending the rest of the week debugging Mondayβs code.
