#dev-general
1 messages · Page 13 of 1
if you want to use kotlin below that, you'll have to relocate the dependency
I just didn't mention it right now because not relocating shouldn't have caused a ClassNotFoundException and I don't want you have to go through a whole process of fixing this issue
and I gtg
So I just realized that I didn't explain a single thing, whoops
The error means that kotlin could not be found, and obviously that would result in your plugin in not working
Adding the libraries to plugin.yml told spigot to download kotlin for you
Adding provided scope to pom.xml told maven to not include kotlin in your jar just in case (since it's already provided by spigot)
I don't really feel like explaining more rn since I'm on a phone but I hope you understand what the differences are 😅
Does anyone have an example of using paper weight with a multi-module project?
not open source
you just have to put the plugin only in that module
not in the base build.gradle(.kts)
I think
I have paperweight commented out since I use 1.16.4 paper api in this specific project now
but try putting the plugin only in that submodule
Would I still keep
tasks {
build {
dependsOn(reobfJar)
}
}
in the sub module?
not needed if you have shadow btw
Yeah I do
also iirc it's supposed to be in assemble
if you don't have shadow
then you run gradle reobfJar
and with shadow you also run gradle reobfJar
Oh
I've just been running build
Only putting it in the sub module did not work
Although I may have set up the modules wrong lol
It says the class couldn't be found when I load the plugin
what files are in the build/libs folder
There are 2 files
don't use the -dev file
I cannot get this to work
i understand thanks so much, so spigot downloaded kotlin for me, should i download it manuallybefore i started to do smth in kotlin?
You already did - that's what the pom.xml does (it downloads kotlin to be used in your project)
if you didn't use maven (or another build tool), you would have to download the JAR itself and apply it to your project
ty ❤️
but the provided scope tells maven to not include it inside the jar (and so it also reduces the jar size 😃)
np 👍
val allPlayers = Bukkit.getOnlinePlayers()
if(targetPlayer == null) {
repeat(100) { Bukkit.broadcast(Component.text(" ")) }
allPlayers.sendActionBar(Component.text("Chat has been cleared by $sender"))
}```
why cant i send this :(((
is targetPlayer null?
no
that part of the code will only run if targetPlayer is null
so for example /clear thisisnotarealplayer will work
but /clear thisisarealplayer won't
if(targetPlayer == null) { needs to be if(targetPlayer != null) {
yeah that's probably what the issue is although I'm not sure what the point of targetPlayer is so I didn't say that right away
class ChatClear : CommandExecutor {
override fun onCommand(sender: CommandSender, command: Command, label: String, args: Array<out String>): Boolean {
if(sender !is Player) { return false }
if(!sender.hasPermission("chatmoderation.chat.clear")) {
sender.sendMessage(Component.text("You dont have perms to do that!").color(TextColor.color(255, 0, 0)))
return false
}
val targetPlayer = Bukkit.getPlayer(args[0])
val allPlayers = Bukkit.getOnlinePlayers()
if(targetPlayer == null) {
repeat(100) { Bukkit.broadcast(Component.text(" ")) }
allPlayers.sendActionBar(Component.text("Chat has been cleared by $sender"))
}
if(targetPlayer != null){
repeat(100) { targetPlayer.sendMessage(Component.text(" ")) }
}
return false
}
}```
full code
btw make sure to return true
return false tells bukkit that the command failed
I don't remember exactly what bukkit does though
but I just always return true and use my own error messages
so how can i send action bar to all players in kotlin i cant find it in google
that should work, but the issue is that you're making it only run if targetPlayer is null
if (targetPlayer == null)
Your code will error if no arguments are given.
Also you can use else instead of the same if statement
i want to make it if no arguments are given then execute to all players but if i send nick then execute to specified player
alright then you want to check if args.size is 0 before you get targetPlayer
or else it will error
if it is 0, then send it to everyone and return true (which stops the rest of the method from executing so you don't need another if or else statement)
yolo
still same IDE says Unresolved reference: sendActionBar
oh because allPlayers is a List<Player>, not a Player
You can do allPlayers.forEach { it.sendActionBar(...) }
I accept your apology
paypal
alright sounds good to me
Im sending you my paypal as we speak
How can i change:
https://paste.pics/01a86bed3453d41334e4116f3a31f925
to just normal Chat has been cleared by MauliY
code: sendActionBar(Component.text("Chat has been cleared by $sender"))
use ${sender.name}
remember that players have more than just a name 🙃 so you gotta tell spigot exactly what you want from the player
i will
works fine ❤️
displayName actually dkim is right ups
IDE: https://paste.pics/1799d4599fd42efce99af5a18246c463
Code:
class ChatMute : CommandExecutor {
fun onCommand(event: AsyncChatEvent, sender: CommandSender, command: Command, label: String, args: Array<out String>): Boolean {
if (sender !is Player) { return false }
if (!sender.hasPermission("chatmoderation.chat.mute")){
sender.sendMessage(Component.text("You don't have permission to do that!").color(TextColor.color(255, 0, 0)))
return false
}
val muteStatus = false
if (args.isEmpty()) {
val senderPlayer = event.player
if (muteStatus) {
!muteStatus
event.isCancelled = true
senderPlayer.sendMessage(Component.text("Chat is currently OFF").color(TextColor.color(255, 0, 0)))
return false
}
if (!muteStatus) {
muteStatus
}
}
return false
}
}```
what is worng
should i abstract class?
onCommand shouldnt have the event bit
Needs to implement the actual onCommand function
yeah its wrong
so I have this code
public class ItemManager {
public static ItemStack sword;
public static void init() {
ultimateSword();
}
public static void ultimateSword() {
ItemStack ultimateSword = new ItemStack(Material.DIAMOND_SWORD, 1);
ItemMeta meta = ultimateSword.getItemMeta();
meta.setDisplayName("§4§kscary§1Ultimate Sword§4§kscary");
meta.addEnchant(Enchantment.DAMAGE_ALL, 10, false);
meta.addEnchant(Enchantment.KNOCKBACK, 10, false);
meta.addEnchant(Enchantment.FIRE_ASPECT, 10, false);
meta.addEnchant(Enchantment.DURABILITY, 10, false);
ultimateSword.setItemMeta(meta);
sword = ultimateSword;
}
}```
but when I get the item it won't give me the enchants
well it won't have them
#development and pls, put that into a paste bin
boolean addEnchant(@NotNull
Enchantment ench,
int level,
boolean ignoreLevelRestriction)
the reason that they arent given is because you set it to false instead of true.
yeah I figured that out but thanks!
hey
anybody good with 1.19.2 server setups
how in the world can someone do this
all these placeholders appearing with custom graphics on the screen
pls somebody help xd
this as well - https://prnt.sc/fQqRuTdImM7p
#general-plugins next time but custom resource ppacks
Thank you 🥰 how’ve you been?
alive at bare minimum
Hahaha how comes
life just be like that, all i can say is im alive throughout the day and thats it
The main thing is, you’re here to witness Elon musk doing his magic to twitter
sometimes i wish i wasn't
Hahaha
tf is this
why no work
worked on my windows, no work on ubuntu 🤓
build.gradle
https://paste.helpch.at/olumonohej.bash
you probably have those dependencies in your local repo
h0h
var input = args[0];
function changeOutput(){
if (input <= 4){
return "&7" + input;
}
if (input <= 9){
return "&f" + input;
}
changeOutput();```
(The code is simplified) is this a skript or something else? I found it from a long time ago to color levels from a placeholder but skript returns a lot of errors.
Js
ok can you help me understand how I can use it?
use it for whst exactly?
it takes an existing level placeholder and color codes it like %custom_color_%level%% or something
thanks
i see
I put in a js file but reloading the expansion doesnt load the file?
I honestly don't remember, but i think it does/used to. Last time i touched js, i made the luckperms time script and ever since i kinda dont have much love for it anymore xD
Did you register the file?
/plugins/
PlaceholderAPI/javascript_placeholders.yml ?
uh oh https://repo.dmulloy2.net/repository/public/ (protocollib) down 💀
damn
It’s been down
when can you post images
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.
do u know alot of java
uhhhh sure
yes they're the same thing
tier 2 is level 10
wesdim
anyone know how to get access to a mysql database after I installed mariadb
since mysqldump only does current database
which is now mariadb
and for some reason i didn't think to backup
#development 😌 im using #dev-general
what's the difference
they're both for development
"⚙️ Development General - Not configuration help - More relaxed area to discuss development topics"
not configuration help!
damn
One is in the support category, the other is in the general chatting category
in the trash
oh :(
except for the times when I am
but if you ignore those times
then yes I am never mean
so true :)
very true :)
True
Is it just me or is IntelliJ's memory viewer thing (bottom right corner) useless and doesn't give the correct memory usage?
https://i.imgur.com/faapjn2.png
https://i.imgur.com/rAXuti8.png
(takes up 3gb of memory but it says only 1gb)
the OpenJDK Platform binary stuff is my minecraft server and I assume like gradle or smth
he claims hes a hacker because he's got a google it certificate
🤡
and if you dont know, googles it course teaches you to do stuff like code in python
its for entry-level it jobs basically, and that doesnt make you a hacker
also his name is literally "hacking bot 101"
most obnoxious edgy skid ive seen
How would I convert a jar into a offline maven repo?
hi so i keep gettings this error which is disabling one of my plugins
encountered an ExceptionInInitializerError! Please check your error.log and report this issue with the information in that file. Running Paper 1.19.2-R0.1-SNAPSHOT and Java 17.0.2
does anyone have a clue why this is happening?
Which plugin?
its a plugin of my own
im wondering if it is because of this
[18:57:44 INFO]: [Core] You are running an old and unsupported version of ProtocolLib, please update it.
but at the same time i have updated protocollib and nothing has changed?
Can you send the full log in a paste?
Do you have ProtocolLib set as a dependency in your plugin.yml?
nope
might wanna do that
i mean i have it set as a soft dependancy
so i dont think itll make a difference
setting it as depend over softdepend
yep no change
That’s probably used heap/max heap and actual process memory usage. So each number is correct but they have different meanings
LMAO. Hiding their username in the screenshot just to say it right after. That's pretty funny
LMAO
1256 is what the JVM is using to do the processing, doesn't include UI stuff afiak
lol
When creating an API for a plugin that shades a relocated version of Kotlin, is possible to use Kotlin to create such API, or would one be forced to use Java to avoid errors?
I see, thank you 🙂
in general public plugin APIs should be written in java imo
kotlin = bad
since like 99.9% of the plugin community uses java
i love bayseian statistics
typo
Kotlin :(
You don't have to
it's this man you were talking to
he used to believe kotlin = best

Im such an idiot
I accidentally uninstalled python 2.7 from a rasberry pi os system...
Now i need a clean reinstall
without python it's just a raspberry
but yeah why not just sudo apt install python
Because raspberrypi os uses python2.7 with some of its main processes.
That means that if you uninstall it (even for a minute) your entire raspberry pi is fucked.
I cant access it with Xrdp or ssh anymore its just fucked.
that just sounds like bad engineering lol
Many Linux distributions use the default python for various applications, one of them fore example is the OpenBox app which displays the desktop windows and that will probably crash. You might get a black screen and who knows what other problems
linux bad
truee
Alright well an hour later ive managed to somewhat get something working again
just wtf, I was experimenting with the gradle flag
org.gradle.caching=true
And my build time (shadow jar of a plugin) went from 23s to 1s (ofc running clean before to make both tests start from zero), why doesn't Gradle keep this thing on by default? 😱
I GOT 2 SECONDS_ _ _ _
Does IJ automatically turn that flag on? I get like near instant recompilation times clicking ShadowJar for plugins
actually nvm even without that flag I get 2 secs
I just never paid attention
with the flag set to false I get 3 secs
although this is after running an initial gradle build
or else they both take forever since it has to start the gradle daemon
Kotlin is a thing from the past
depends
on a lot of things
the short answer is whatever you want
it doesn't matter
honestly whatever you know the best, unless you want to spend the time to learn kotlin
i heard kotlin is easier to get if you know java already, not sure if thats true tho. also not sure if thatd work the other way around lmao
js is my kryptonite ngl
same-ish. i touched it a few times, specifically to make a js for some minecraft placeholder output replacement and i sat in my dark corner for 3 days straight after that, just drooling
felt like my soul left my body
i guess different people can adapt to different things differently well - or not at all lmao.
now that im on java for a while, i gotta say it seems i get the basic concept better
it just makes sense
id die
i
dont
recommend that lmao
i mean, i have no pressure to learn anything
i do it for the hell of it at my own pace
You'd be learning how to do the exact same thing
but in completely different formats
i mean, if he manages, whats the harm
worst thing that can happen is his stuff dont work
lol
if he manages sure but imo, you'll find yourself switching languages mid code more than most people
maybe
i mean, likely
but then again, for some people its really easy to remember formats and keep at it.
practice
a full one of these
public class MyPlugin {
fun onEnable() {
this.getServer().getLogger().info("aaaaaaaaaaaa");
}
}
``` 
practice the most stupid shit. i skipped a few lessons, trhinking i knew
that bit me
when i learnt kotlin i found it sso much easier I took the time to write stuff in java first and then use intellij's kotlin conversion and make the corrections to get it functioning but seeing how its supposed to be written
because if you understand it in one language, its much easier to transfer it to another instead of being confused in both
to me atleast
not sure how it is for you guys, but i learn better if i teach. that seems odd, but hopefully you know what i mean
also if you learn java first, when you learn kotlin you'll be sat the whole time being
holy shit java is terrible :)
like what do you mean i can write the same thing in a single line that would take 50+ 
its clumpy compared to kotlin iirc
It's not that bad, but when comparing it to kotlin you'll have many moments where you're like wow thats so much easier
but the tradeoff with kotlin is it can look uglier at times
In java i much prefer the lambda and tenary operator
but in kotlin classes are so much easier and not having to define variable types almost ever
(although var does exist in java 10+)
and record classes (if you're on java 14)
honestly i really like var in java sometimes
from my understanding, there's specific languages that are better at certain tasks
except python, python is good at nothing
^
actually no, python is good for understanding base concepts of coding but it can do nothing functional that something else can't do better
my brain is being killed rn. send help
from my understanding
its a jack of all trades master at none
so although python can be used to make applications, java / c++ is better at that, it can be used to make websites but php is better (iirc)
if i remember correctly
It's good for some things like data science iirc since those require programming but not so much since you're not making full apps
i am
incredibly stupid
so brister could come in here and correct the fuck out of me at any point
Python is also good for scripts sometimes if you don't want to setup a Java project
But besides that
Kotlin = best
my companies machines all use python
Wait you're learning 2 langs?
i wouldn't say wasting, if you wanted a job in programming in the future, you very well could use it
you have no idea how many cables we shredded in production lol
No you're not wasting your time - it's a slower but easier learning curve
And steep learning curves can sometimes lower motivation
If you can handle java, go for it
But once you know enough Java, python is ez even if you never learned it
Since you already know the concepts
okay its time for me to embarrass myself
i cant wait, bullying is a speciality here
Learning 2 languages at once may not be good
im currently on trying to get the difference between pre and post aithmetic operations right
someone please explain this concept to me:
int x = 5;
int y = x++;
x returns 6, y returns 5. So the assignment of y to x is done first and then x i incremented?!
what the heck
x = 5
y = 5 + 1 = 6
If the plus is before the variable then you're adding before getting the variable (++x)
y shoul be x++, which in this case is 6 <.<
If the plus is after the variable then you get the variable and then add
Remember that and you're fine
No think about it
(++x) - add before getting x
(x++) - get x and then add later
i used increments before, i just never knew pre increment could be done also. so thats what i meant earlier with "dont skip lessons cuz u think u know"
so basically it would be the same as assigning x to 5 first, then assigning y to x so y is now 5, then increment x by one, making 6
basically
y = x++
is the same as
y = x
x += 1
the way its written is just brainmushing me. y = x++ <.<
and the other way around for the other way around
+= 1 is the same as ++
increment by i eh?
+= is add and assign a number
yes that's what im trying to avoid, how am I gonna explain x++ by saying it's the same as something using x++
so if your variable is a 5
Doing variable++ will add 1 to the variable making it 6
Doing variable+= 5 will add 5 to the variable making it 10

yea that makes sense
but variable + 5 would be 10, but the variable never changes because there is no = 
i just have the issue with
int x = 5;
int y = x++;
the way its written suggests to me that y equals x+1 AFTER it was incremented
meaning my brain wants to think both are 6
may i introduce you to the world of JS
hell nah
the common meme
confuse me some more xD
What the fuck what a weird take
"Php is better than python" bro have you heard of Django or Flask or FastAPI?
oh shoot I didn't even see that part
zzz
incredible
bro i just assumed, hence why the iirc was there, i could of been wrong
so tone down the slight hostility ig
python is great for a lot of things but it's not very good at keeping the developer safe from themselves
@prisma wave /hottake
that's why industry and large projects generally prefer statically typed languages, which remove the possibility of a pretty wide range of runtime bugs that python is susceptible to
PyCharm is a performance issues disaster waiting to happen.
how can i make random number in open_commands
what
js has even more of the same issues as what python has
python is at least strongly typed but js will accept whatever junk you shove into it and try to make it work for as long as possible
you're sorta stuck with js for the most part
typescript 
alternatives are typescript and wasm
also you don't have to avoid js and python just because i said that industry doesnt like them
both are very convenient for smaller projects because there's less boilerplate code to mow through
it's basically a tradeoff between being frustrated at the compiler vs being frustrated at your code crashing randomly
python definitely has it's uses in the industry tho. Look at ML for example. It's like one of the most used language for that.
i agree but on average when you are hired for a job you're not doing ml stuff
elm frontend with a haskell backend
> all
I guess I'm above average then 😎
I've never had to do ML in any job I've been at
there you have it
Well yeah because we're generally programmers not data analysts
exactly
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.
World folder I think
Probably player data but idk
Yeah. Most are located in the stats folder. Not sure if all tho
What's the point of BlockPhysicsEvent#getChangedBlockData if all it does is return the block data, and there is no way to get the new data?
Gets the BlockData of the block that changed, causing this event. This is the BlockData of getBlock() at the time of the event.
Returns:
Changed block's BlockData
I can just doBlock#getBlockData
Is there any way to get the new state?
why not haskell frontend
haskell for frontend haskell for backend haskell for data science haskell for game development haskell for desktop development haskell for devops haskell for security haskell for data mining haskell for system analyst haskell for minecraft development
Because it is trash
Typically you would use a mix of haskell html templating and then elm for more dynamic content to replace a javascript framework
i think you should RIIR then its perfect for anything 😌
crab goood so good

i will kill you
i hate the crab
i hope it dies
cannot handle crab superiority? 😎
there is no superiority
just say no i cant
no
meow?
How can I contribute to DeluxeMenus?
(Really want to add some new features)
Uhm wasnt there a way to keep servers online even if the proxy dies?
if your bungee proxy dies, your servers are still online. You just can't connect to them.
May I ask why?
As a player you are connected to the proxy
Server is still connectable but if you can connect to it when the proxy is down... You haven't setup IP Firewalls or any Security against false bungee
It is not OS
Ok ok, let me rephrase that, wasn't there a secure way to keep the players inside a server if the proxy died?
You are probably thinking of a spigot server crash, when players are send to a fallback server
nha, like, I remember someone speaking about a way to prevent players being disconnected when a proxy crashes/stops
like, they would be able to keep playing, just not switch servers
¯_(ツ)_/¯
impossible and a security risk
I mean you could pull some multi-proxy bs and a client mod that switches and stuff but, yeah, client mod
Lunar client has a transfer packet
🤔
❓
Remove the print line
Show
Show without the print
Or what's the error?
Ohhh
That's what the comment is
god I hate python
based
Does anyone know if it's possible to change the encoding of the messages in logs/console?
Some unicode symbols show up as ?.
Debian
some say -Dfile.encoding=UTF-8 in run args fixes it?
it should do?
It should fix that
Not necessarily, the terminal encoding depends on the terminal
And also the font
We use unicode characters that aren't mapped to anything in our resource pack for icons and they just show up as rectangles
https://i.imgur.com/nDLIwwR.png i need spongebob now to recover my brain cells 😫
Half of that was me rewatching the tutorial at least 20 times lmao
deserved for using VScode
Screw you >:(
no thank you
Screw me?
at least buy me dinner first
can I have an ice cream too
no
Are we nearly there yet?
you may have a "knuckle sandwich" (reference to physical assault)
Lmao
what about me
i was talking to you
maybe
😮
Ill take you out for ice cream and dump brister
dkim x Zero lore
🥰

:heart:
WHAT
Dinner too expensive bruh. Tone down your expectations xD
actually dinner can be quite cheap
Wait what continent do you live on
idk
Just go to McDonalds and buy a cheese burger for dinner, 1eur only
every once in a while there's a spark of life in this channel and everyone comes flocking
So many orange shields
sus
woah some blue
problem?
keeping the balance
dkim your colour sucks
There needs to be balance
true
False, pink best color
This orange we have though is nasty
that is a terrible take
pink would be nice but thats not pink
it's like salmon
also true, too saturated

true
I dont think that, as woman, itd be a great idea for me to state what the color of dkims name reminds me of
🤨
🤨

I don't understand
Good xD
i do but im pretending not to for comedic effect
you should be a comedian
Pls no
?
oh :(
why not
Youre terrible at jokes
thats not true
/shrug
(╯°□°)╯︵ ┻━┻
┬─┬ ノ( ゜-゜ノ)
fail
Yeet
My phone hates me
┬─┬ ノ( ゜-゜ノ)
i may not be funny but at least i can /shrug properly ¯_(ツ)_/¯
Unflipping the table
you are a loser
that's not nice
but it is true
that's not very nice
Damn, it has been a full year already
i never participated
loser
Tbh i never got the point
I got so far
What is BQN?
Oh dear apl
i got it to read the file and then couldnt figure out anything else
I thought Odin made private mines
how dare you
i had another person dming me about that the other day
No, he took a perfectly functioning plugin and butchered it
i wanna cry
it's been almost a year though
and?
and?
lol i was gonna get a screenshot but they deleted the message
rofl
or kotlin
Very true
i think currently he has about 3 files in kotlin and the rest are in java lmfao
Odin was learning a bit of kotlin
because changing languages will fix your bugs
obviously
oh no he's increased it a little
I'd like to see him rewrite it in Kotlin !! fest
12 whole kotlin files
Im totally lost
yeah that sure is a line of code
LMAO
rest in peace sxtanna you would've loved ProtectionUtils
what if sx joined dev den
oh-
Compiler be like @NotNull @Nullable Player player
actually no not banned, just muted and then he left
...
do you get anything if you finish advent of code
Inner peace
EST ftw
no
l m a o
good
me too
I hope I don't tier up
ngl
although Tier 4 is also decent
dark blue
oh really?
sing the whole lyrics to I'm Blue without googling it
I love blue
not I'm Blue
There is a very large difference
wait what is I'm Blue
YouTube dot com
Are you interested in Eiffel 65 news? Subscribe to the channel: http://bit.ly/1jVW9Sz
★ Buy "Blue(Da Ba Dee)" On
Itunes: http://apple.co/1Kty2Ab
GooglePlay: http://bit.ly/1MXcG4w
★ Listen:
Spotify: http://spoti.fi/1XokAHa
Deezer: http://bit.ly/1jYzB3K
Blue (Da Ba Dee) is the title of the debut single of the Italian Eurodance band Eiffel 65, ex...
Yo, listen up! Here's the story
About a little guy that lives in a blue world
And all day and all night, and everything he sees is just blue.
Like him inside and inside
Blue is his house with a blue little window and a bleu corvette
And everything is blue for him.
And himself and everybody around
'Cause he ain't got nobody to listen
I'm blue
Da ba dee, da ba daa
Da ba dee, da ba daa
Da ba dee, da ba daa
Da ba dee, da ba daa
Da ba dee, da ba daa
Da ba dee, da ba daa
Da ba dee, da ba daa
I have a blue house with a blue window
Blue is the color I bought and I wear
Blue are the streets and all the trees are too
I have a girlfriend and she is so blue
Blue are the people here that walk around
Blue like my corvette
It's in here all times
Blue are the words I say and what I think
Blue are the feelings that live inside me
I didn't google it

😮
Please 🥺
I am broke
#1036861960232378498 message
uses two ide compiler plugins 🥲 🥲 🥲 (lombok and manifold)
lombok I understand, but manifold is literally kotlin for those who don't like kotlin
isn't that Lombok as well lol
lombok helps do the common things following the java codestyle
if you make a @Getter it just makes a getter for the fields
manifold on the other hand is changing core features of java
like for loops, variable definition n all
get out
Lombok is for Kotlin closets
at least manifold is clear about its nature
lombok tells you it's a "Java library" which is bs
How does one make a second health bar for a player?
Is that even doable?
Without packets that is?
or you can be a man and take java as it is 
well you could make it 20 hearts
and then manually adjust it that way
🥲
agreed, java is only for true men and women (before I get canceled)
how could anyone even use something named lombok
reminds me of a lobotomy
it sounds nasty
:nolombok:

thank you
lombok ❤️
when did liking lombok become acceptable
^
no lombok
missing teeth lol
what if lombok was british 🤣 😭 💀
Hello there, when using a mod that generates ores is it possible to keep my world and the building I built while letting the mod generate the ores in my existing vanilla world?
maybe
Hmm, I see
One of them seems cap
choose which
I see what you did there.
neither of them
that's not an option
can't make code mistakes if you don't code 
gigachad
giganerd
☠️
lo'bo'k
shut up
yo wan' a bo' oh' o' lo' bo' k?
I'm so used to github copilot that without it I just randomly just stop typing while waiting for copilot 😭
SAme
github copilot works for minecraft development aswell?
ik mc is just java but like does it still use like getPlayer() etc
Yes
is there any really good mod development course? it can be free or paid
i think it would be cool to learn
If you know java and plan on learning fabric the fabric website has really good documentation, not sure about forge but I'd assume it does as well
It's basically a tutorial for all of the features and explanations on how each thing works
I have
libraries:
- "org.jetbrains.kotlin:kotlin-stdlib-common:1.7.20"
- "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.20"
- "org.jetbrains.kotlin:kotlin-bom:1.7.20"
``` in my plugin.yml
but I get org.bukkit.plugin.InvalidPluginException: java.lang.RuntimeException: Error resolving libraries error
am I doing something wrong?
I'm pretty sure you just need the jdk8
if that still doesn't work then show the entire error
removing 1st and 3rd?
👍
I included others because gradle init includes them
oh huh
and I thought I need them
java 17 :d
then it can just be kotlin-stdlib
I was using this package because of gradle init includes it too lol :d
I just realized how much space git takes up
.git folder is 396.6MB
project folder (except for gitignored files) takes up 893.1KB
🥲
git alternative soon™️ 🥲 🥲 🥲
that does not sound right
well no lmao because that will remove all your repository metadata
commit history etc
No it's on github
🥲
okay and
okay... and how do you plan on getting that history back
without just cloning the repo again
cloning the repo again
i doubt that will be smaller but why would you not try it
if it's a very big repo with lots of commits it's not too hard to believe
especially if you have large binary files committed
git keeps a copy of every file on each commit (or maybe a copy of the ones that changed, not sure about that)
it doesn't just keep the diffs
but why only local?
since when I git clone it goes back to 1mb
local has much more info than remote, stash, local config, most notably: reflog
Recently I made a project in Rust (which will soon be featured on #showcase), and it had an amazing feature related to string placeholders, use this string as an example
// Wrong, missing a placeholder, but compiles just fine
var startedMsg = "%s loaded (in %d ms)".formatted(Duration.ofNanos(System.nanoTime() - start).toMillis());
// Right
var startedMsg = "%s loaded (in %d ms)".formatted("FireworkInfinitum", Duration.ofNanos(System.nanoTime() - start).toMillis());```
In Java this compiles just fine, but in Rust it is a compile time error.
```rust
// Wrong, don't even compile
println!("{} loaded (in {} ms)", i_dont_know_the_duration_equivalent);
// Right
println!("{} loaded (in {} ms)", "FireworkInfinitum", i_dont_know_the_duration_equivalent);
The error Rust compiler show to us
error: 2 positional arguments in format string, but there is 1 argument
--> src\main.rs:2:15
|
2 | println!("{} loaded (in {} ms)", "FireworkInfinitum")
| ^^ ^^ -------------------
error: could not compile `rust_playground` due to previous error
i would recommend not using rust
true
would you mind explain yourself?
yes
ic, have a good day then
thanks
no but seriously, why do you think Rust is not recommended
if i told you then you would not take me seriously
i don't think so, you can tell me
It’s because you should use Haskell
oh, actually that makes much more sense, I believe this types of errors are not possible in Haskell
could be wrong though
Also what’s your question?
Or do you not have one?
it was not a question, I just pointed that it was nice to have the compiler actually enforcing the usage of string placeholders, which implied that Java could do something similar
java yields a warning
🥲
you not reading warnings is not the compiler's problem 
Lol
How does this work in Rust?
idk haha, never tried, let's test
c'mon emily nobody reads compiler warnings

tbh while it's a nice gimmick i would much rather just have string interpolation over formatting
and yes those errors are possible but with a bit of trickery
it doesn't let you use arrays as arguments like java vararg does, maybe there is a way to "spread" the array but I might be too dumb to know
rust bad
tbh Rust has string interpolation, just not like Kotlin's ${someExpression.method()}, it just support interpolation with variables like "string abc {variable}"
which means you have to either put in variables everything you want to be in the string, or use placeholders so you can call the methods directly on the println macro
This is why Java is better
This one reason alone
hmm, I don't use arrays for placeholder replacement often in Java, how often does you use this feature?
I do use vararg yeah (which is technically an array I know), but let's forget about technicalities
I rarely use the built-in placeholder stuff
could you grab an example of a recent use-case of yours? I would like to see how you use that
I've recently been using it a lot bc of java
Of using the built in stuff? I doubt I have it on my GitHub
What?
I mean the array thing
Oh varargs?
not varargs, directly passing an array to the String format(ted) method
'cause rust println macro is an "vararg" function just like java, Rust just doesn't have an option to "spread" arrays afaik (or maybe I'm dumb)
rust bad
I doubt I have that because I don’t really use the string format method
I probably should but whatever
I've been using java more
rather than kotlin
for other stuff that I can't use kotlin for
Oh
kotlin = best
rust = worst
why do you guys think java still doesn't have string interpolation?
its kinda weird tho
I feel like StackOverflow is mocking me 😭
Does anyone know how to make the command show up in the list of commands when you do / in minecraft? right now my command shows red like its an inproper command but it works but I would like it to show as white.
it goes in the plugin's plugin.yml
if you register the command the intended way, it shouldn't even register without errors without being in the plugin.yml
note that plugins like PL-Hide can manually hide commands too
where is plugins.yml?
btw this isn't exactly a support channel - please go to #1007620980627230730 for more specific support and let us know what plugin you're talking about since some plugins may not support it
or you can go to #general-plugins
your choice
🙃
I sent the message in #general-plugins! Thank you!
Hi, I'm trying to code an ore scanner and am having issues with spawning glowing falling blocks. It appears that when I spawn a falling block inside a block I can only view it when the block its spawned in is updated/broken
lmao
Not here
if its profitable why sell
if its too much work just hire people to do the work for u
manager for staff etc
Hmm ye thanks - I was also just seeing how much I could get for it
you need to print them with debug formatting, not {}, but {:?}
It literally says it in the image you sent :p you are just too lazy to read
For years, I focused on learning algorithms, understanding data structures, and solving genuinely complicated problems. With years of experience in Ethereum, Solana, Binance Smart Chain, C++, C, Solidity, PHP, NODE JS, and JavaScript,
I'm a passionate software developer focused on developing quality, modular, and efficient code. I am experienced with Java, Python, Node.js, SQL, and front-end development.
I am looking forward to building and delivering outstanding solutions for your projects. I will help you to create your platform
I also developed several analytics platforms to analyze the nft collection, and wallet address on the blockchain network.
I want to discuss your idea in more detail.
?
For years, I focused on learning algorithms, understanding data structures, and solving genuinely complicated problems. With years of experience in Ethereum, Solana, Binance Smart Chain, C++, C, Solidity, PHP, NODE JS, and JavaScript,
I'm a passionate software developer focused on developing quality, modular, and efficient code. I am experienced with Java, Python, Node.js, SQL, and front-end development.
I am looking forward to building and delivering outstanding solutions for your projects. I will help you to create your platform
I also developed several analytics platforms to analyze the nft collection, and wallet address on the blockchain network.
I want to discuss your idea in more detail.
What I was referring to was not how to print an array (the contents of it), but rather how to use the contents of the array as an "vararg" (effectively "spreading" its contents) to be used in the println macro
Ahhh, got it, my bad.
np
Have you ever used Haskell?
well it's not in that list so...
is this a copypasta i haven't seen before
Probably not
Who else here is participating in Advent Of Code?
yes
what do you think of my solution https://github.com/knightzmc/advent-of-code-2022/blob/master/day_1/Day1.hs
also
Why does haskell look like it's only purpose is for you to flex that you know it
but looks cool
I don't understand anything there
hahaha
that's part of the fun
but also the terseness is very nice to work with
easy to write
not much noise
How do you like mine? https://github.com/wxipwastaken/Advent-Of-Code-2022/blob/main/Day1/Main.java
What does icl stand for?
i cant lie
thanks
I just wanted to send the aoc link loool
np
@quiet depot leaderboard 😗
oh I didn't know
all good
kotlin 😌
woah
smart
i should've just done sort
Seems like a Kotlin issue
False
You can’t sort things in Kotlin
.sorted()
That’s from Java
Kotlin is so unoriginal
but it's awesome 😌
Skript is better
So Kotlin is bad
every lang requiring semicolons = bad
Kotlin needs semicolons if you want proper grammar
but it has periods
So?
periods are vital to grammar
That doesn’t have anything to do with semicolons
My solution:
fun part1(list: List<Int>) = list.maxOf { it }
fun part2(list: List<Int>) = list.sortedDescending().take(3).sum()
val list = input
.split("\n\n")
.map { it.lines().sumOf(String::toInt) }
println(part1(list))
println(part2(list))
nice, nice
My solution:
final Flux<Integer> calories =
lines.windowUntil(String::isEmpty)
.flatMap(f -> f.map(Integer::parseInt).reduce(Integer::sum))
.sort(reverseOrder());
return Flux.concat(calories.next(), calories.take(3L).reduce(Integer::sum));

Best one so far because it's the shortest
and therefore the fastest
Every JavaScript project has a collection of config files to control the behavior of tools like Prettier, ESLint, Typescript, Vite, Tailwind, Post CSS, and more. Let's take a comprehensive tour of the web development tooling ecosystem.
#javascript #webdevelopment
Learn more about testing and linting with Full Stack Testing Academy http://lin...
Yeah I didn't think of doing sorting 🥲



