#dev-general

1 messages · Page 13 of 1

half harness
#

note that iirc it's only 1.16+

#

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

bleak scaffold
#

<33333

#

dont know how but it works

#

ty so much

#

❤️

half harness
# bleak scaffold dont know how but it works

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 😅

sweet cipher
#

Does anyone have an example of using paper weight with a multi-module project?

half harness
#

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

sweet cipher
#

Would I still keep

tasks {
    build {
        dependsOn(reobfJar)
    }
}

in the sub module?

half harness
#

not needed if you have shadow btw

sweet cipher
#

Yeah I do

half harness
#

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

sweet cipher
#

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

half harness
#

wdym did not work

#

what exactly didn't work

sweet cipher
#

It says the class couldn't be found when I load the plugin

half harness
#

what files are in the build/libs folder

sweet cipher
#

There are 2 files

half harness
#

don't use the -dev file

sweet cipher
#

I think I got it to work

#

Nvm

sweet cipher
#

I cannot get this to work

bleak scaffold
half harness
#

if you didn't use maven (or another build tool), you would have to download the JAR itself and apply it to your project

bleak scaffold
#

ty ❤️

half harness
#

but the provided scope tells maven to not include it inside the jar (and so it also reduces the jar size 😃)

half harness
bleak scaffold
#
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 :(((
bleak scaffold
half harness
#

that part of the code will only run if targetPlayer is null

bleak scaffold
#
val targetPlayer = Bukkit.getPlayer(args[0])```
#

forgot to paste it

half harness
#

so for example /clear thisisnotarealplayer will work

#

but /clear thisisarealplayer won't

inner umbra
#

if(targetPlayer == null) { needs to be if(targetPlayer != null) {

half harness
#

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

bleak scaffold
#
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

half harness
#

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

bleak scaffold
#

so how can i send action bar to all players in kotlin i cant find it in google

half harness
#

if (targetPlayer == null)

inner umbra
bleak scaffold
half harness
#

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)

pastel imp
#

yolo

bleak scaffold
#

still same IDE says Unresolved reference: sendActionBar

half harness
bleak scaffold
#

omg finally

#

sorry for trouble

obtuse gale
#

I accept your apology

prisma wave
#

i don't

#

how are you going to make reparations?

#

i accept paypal or stripe

bleak scaffold
#

paypal

prisma wave
#

alright sounds good to me

wind patio
#

Im sending you my paypal as we speak

bleak scaffold
half harness
#

remember that players have more than just a name 🙃 so you gotta tell spigot exactly what you want from the player

bleak scaffold
distant sun
#

displayName actually dkim is right ups

half harness
#

depends on what you want

#

they return different things

bleak scaffold
#

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?

brittle leaf
ocean quartz
#

Needs to implement the actual onCommand function

brittle leaf
#

yeah its wrong

subtle smelt
#

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

brittle leaf
subtle smelt
half harness
#

kotlinx ftw

flat flume
#

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

remote goblet
wintry plinth
#

Omg it’s Ori:o

#

Long time no speak

remote goblet
#

hey chazza

#

congrats on the analyse deal shy

wintry plinth
#

Thank you 🥰 how’ve you been?

remote goblet
#

alive at bare minimum

wintry plinth
#

Hahaha how comes

remote goblet
#

life just be like that, all i can say is im alive throughout the day and thats it

wintry plinth
#

The main thing is, you’re here to witness Elon musk doing his magic to twitter

remote goblet
#

sometimes i wish i wasn't

wintry plinth
#

Hahaha

wind patio
#

tf is this

#

why no work

#

worked on my windows, no work on ubuntu 🤓

distant sun
#

you probably have those dependencies in your local repo

wind patio
#

h0h

grave pine
#

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.
alpine inlet
#

Js

grave pine
brittle leaf
#

use it for whst exactly?

grave pine
brittle leaf
#

i see

grave pine
alpine inlet
#

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 ?

half harness
obtuse gale
#

damn

sweet cipher
#

It’s been down

subtle smelt
#

when can you post images

half harness
#

i believe

#

or level 10

#

?imgur

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.

half harness
#

hm

#

idk I think it's tier 2

subtle smelt
half harness
#

uhhhh sure

obtuse gale
#

er meant to reply to the other message

half harness
#

nono I meant tier 2 or level 10

#

I didn't know if it was like level 2

#

or smth

obtuse gale
#

yes they're the same thing

subtle smelt
#

tier 2 is level 10

half harness
#

yes

#

I said level 10 afterwards in case you didn't know that

subtle smelt
#

i know everything

#

except the things I don't know

half harness
#

😮

#

magical

subtle smelt
#

wesdim

half harness
#

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

subtle smelt
#

they're both for development

half harness
#

well technically this isn't a support channel

#

¯_(ツ)_/¯

subtle smelt
#

"⚙️ Development General - Not configuration help - More relaxed area to discuss development topics"

half harness
#

not configuration help!

subtle smelt
#

damn

obtuse gale
#

One is in the support category, the other is in the general chatting category

half harness
#

what about mariadb question

#

where does that go

obtuse gale
#

in the trash

half harness
#

oh :(

obtuse gale
#

sorry

#

that was mean

half harness
#

it's okay

#

Emily is never mean

obtuse gale
#

except for the times when I am

#

but if you ignore those times

#

then yes I am never mean

half harness
#

emily is never mean

#

yes

distant sun
brittle leaf
#

so true :)

wind patio
#

very true :)

queen saffron
#

True

half harness
#

the OpenJDK Platform binary stuff is my minecraft server and I assume like gradle or smth

obtuse gale
#

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

sturdy zinc
#

How would I convert a jar into a offline maven repo?

sinful geyser
#

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?

sinful geyser
#

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?

sweet cipher
#

Can you send the full log in a paste?

obtuse gale
sinful geyser
#

nope

obtuse gale
#

might wanna do that

sinful geyser
#

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

potent nest
static zealot
slender steeple
#

LMAO

quiet sierra
gusty glen
#

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?

obtuse gale
#

"possible" yes but the kotlin compiler will not like it one bit

#

stick with java

gusty glen
#

I see, thank you 🙂

half harness
#

in general public plugin APIs should be written in java imo

prisma wave
#

kotlin = bad

half harness
#

since like 99.9% of the plugin community uses java

prisma wave
#

because java is better

#

obviously

half harness
#

even though kotlin obviously is best

#

No

prisma wave
#

i love bayseian statistics

half harness
#

You mean

#

bayesian

#
  • Google
#

kotlin = best

#

it's a fact

#

not a statistic

prisma wave
#

typo

wintry plinth
#

Kotlin :(

prisma wave
#

true...

#

false...

alpine inlet
#

Both

#

Imagine

prisma wave
#

no i don't want to

#

manmade horrors beyond my comprehension

half harness
#

it's this man you were talking to

#

he used to believe kotlin = best

alpine inlet
queen saffron
#

Im such an idiot

#

I accidentally uninstalled python 2.7 from a rasberry pi os system...

#

Now i need a clean reinstall

prisma wave
#

🤨

#

why would uninstalling python mean u need to reinstall

oblique heath
#

without python it's just a raspberry

#

but yeah why not just sudo apt install python

queen saffron
#

I cant access it with Xrdp or ssh anymore its just fucked.

obtuse gale
#

that just sounds like bad engineering lol

queen saffron
#

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

prisma wave
#

linux bad

obtuse gale
#

truee

queen saffron
#

Alright well an hour later ive managed to somewhat get something working again

gusty glen
#

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? 😱

half harness
#

wha

#

lemme try

#

apparently it was released as beta in 2017

cinder flare
#

Does IJ automatically turn that flag on? I get like near instant recompilation times clicking ShadowJar for plugins

half harness
#

I just never paid attention

#

with the flag set to false I get 3 secs

half harness
#

although this is after running an initial gradle build

#

or else they both take forever since it has to start the gradle daemon

pastel imp
#

Kotlin is a thing from the past

prisma wave
#

depends

#

on a lot of things

#

the short answer is whatever you want

#

it doesn't matter

remote goblet
#

honestly whatever you know the best, unless you want to spend the time to learn kotlin

alpine inlet
#

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

remote goblet
#

i egp_sparkles dont egp_sparkles recommend that lmao

alpine inlet
#

i mean, i have no pressure to learn anything

#

i do it for the hell of it at my own pace

remote goblet
#

You'd be learning how to do the exact same thing

#

but in completely different formats

alpine inlet
#

i mean, if he manages, whats the harm

#

worst thing that can happen is his stuff dont work

#

lol

remote goblet
#

if he manages sure but imo, you'll find yourself switching languages mid code more than most people

alpine inlet
#

maybe

#

i mean, likely

#

but then again, for some people its really easy to remember formats and keep at it.

#

practice

remote goblet
#

a full one of these

public class MyPlugin {
  
  fun onEnable() {
    this.getServer().getLogger().info("aaaaaaaaaaaa");
  }
}
``` ![altLaugh](https://cdn.discordapp.com/emojis/899604586065723393.webp?size=128 "altLaugh")
alpine inlet
#

practice the most stupid shit. i skipped a few lessons, trhinking i knew

#

that bit me

remote goblet
#

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

alpine inlet
#

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

remote goblet
#

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+ STARE

alpine inlet
#

its clumpy compared to kotlin iirc

remote goblet
#

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+)

alpine inlet
#

ew

remote goblet
#

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

alpine inlet
#

^

remote goblet
#

actually no, python is good for understanding base concepts of coding but it can do nothing functional that something else can't do better

alpine inlet
#

my brain is being killed rn. send help

remote goblet
#

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

half harness
#

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

remote goblet
#

i am cowboygamer incredibly stupid cowboygamer so brister could come in here and correct the fuck out of me at any point

half harness
#

Python is also good for scripts sometimes if you don't want to setup a Java project

#

But besides that

#

Kotlin = best

alpine inlet
#

my companies machines all use python

half harness
#

Wait you're learning 2 langs?

remote goblet
#

i wouldn't say wasting, if you wanted a job in programming in the future, you very well could use it

alpine inlet
#

you have no idea how many cables we shredded in production lol

half harness
#

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

alpine inlet
#

okay its time for me to embarrass myself

remote goblet
#

i cant wait, bullying is a speciality here

half harness
#

Learning 2 languages at once may not be good

alpine inlet
#

im currently on trying to get the difference between pre and post aithmetic operations right

half harness
#

Idk what that is

#

But sure

remote goblet
#
    • / * % dkm
#

literally math

half harness
#

Oh

#

Lol

alpine inlet
#

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

half harness
#

Yes

#

How I think about it

remote goblet
#

x = 5
y = 5 + 1 = 6

half harness
#

If the plus is before the variable then you're adding before getting the variable (++x)

alpine inlet
#

y shoul be x++, which in this case is 6 <.<

half harness
#

If the plus is after the variable then you get the variable and then add

#

Remember that and you're fine

alpine inlet
#

that goes against my brains logic

#

xD

half harness
#

No think about it
(++x) - add before getting x
(x++) - get x and then add later

alpine inlet
#

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"

half harness
#

Yeah I knew about post before pre

#

OK I go now

#

Goodbye

alpine inlet
#

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

obtuse gale
#

basically
y = x++
is the same as
y = x
x += 1

alpine inlet
#

the way its written is just brainmushing me. y = x++ <.<

obtuse gale
#

and the other way around for the other way around

alpine inlet
#

emily i havent done += yet

#

ur killing meeeeh xD

remote goblet
#

+= 1 is the same as ++

alpine inlet
#

increment by i eh?

remote goblet
#

+= is add and assign a number

obtuse gale
remote goblet
#

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

YesYes

alpine inlet
#

yea that makes sense

remote goblet
#

but variable + 5 would be 10, but the variable never changes because there is no = YesYes

alpine inlet
#

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

remote goblet
#

may i introduce you to the world of JS

alpine inlet
#

hell nah

remote goblet
#

the common meme

alpine inlet
#

confuse me some more xD

remote goblet
#

you eventually understand why that happens

#

but it looks very stupid

alpine inlet
#

this is so mean

#

--x makes both return 4

#

gaaahhhhh

#

i quit lmao_loop

remote goblet
#

honestly understandable

#

i have no clue how to explain why that one happens

alpine inlet
#

the position determines whats done first

#

i get that

#

but it screws with my logic

oblique heath
#

just dont nest them in an expression

#

ez

cinder flare
#

"Php is better than python" bro have you heard of Django or Flask or FastAPI?

half harness
#

oh shoot I didn't even see that part

obtuse gale
#

zzz

remote goblet
#

incredible

remote goblet
#

so tone down the slight hostility ig

oblique heath
#

python is great for a lot of things but it's not very good at keeping the developer safe from themselves

obtuse gale
#

@prisma wave /hottake

oblique heath
#

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

prisma wave
obtuse gale
#

how can i make random number in open_commands

remote goblet
prisma wave
#

what

oblique heath
#

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

oblique heath
#

you're sorta stuck with js for the most part

manic lance
#

typescript ccoffee

oblique heath
#

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

static zealot
#

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.

oblique heath
#

i agree but on average when you are hired for a job you're not doing ml stuff

prisma wave
#

> all

static zealot
wintry plinth
oblique heath
#

there you have it

cinder flare
#

Well yeah because we're generally programmers not data analysts

distant sun
#

exactly

mint bobcat
#

hello why does my menu image goes like this :') ?

#

i can't put the image..

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.

pastel imp
#

quick question where are statistics located?

#

like, player stats

#

(in a server)

half harness
#

Probably player data but idk

pastel imp
#

ty

#

it has a stats folder

static zealot
#

Yeah. Most are located in the stats folder. Not sure if all tho

brittle leaf
#

fuck off

#

thanks

sweet cipher
#

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 do Block#getBlockData

#

Is there any way to get the new state?

dense dew
#

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

distant sun
#

Because it is trash

prisma wave
dense dew
#

crab goood so good

prisma wave
#

i hate the crab

#

i hope it dies

dense dew
prisma wave
#

there is no superiority

dense dew
#

just say no i cant

prisma wave
#

no

fossil quarry
#

meow?

gilded iris
#

How can I contribute to DeluxeMenus?
(Really want to add some new features)

distant sun
#

You can not rn

pastel imp
#

Uhm wasnt there a way to keep servers online even if the proxy dies?

chilly zenith
#

if your bungee proxy dies, your servers are still online. You just can't connect to them.

humble prism
#

^^

#

also u get disconnected, but proxies takes like 10 seconds to launch

gilded iris
distant sun
inner umbra
#

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

distant sun
#

It is not OS

pastel imp
distant sun
#

You are probably thinking of a spigot server crash, when players are send to a fallback server

pastel imp
#

like, they would be able to keep playing, just not switch servers

#

¯_(ツ)_/¯

obtuse gale
#

That is impossible

#

Without client mods that is

humble prism
#

impossible and a security risk

obtuse gale
#

I mean you could pull some multi-proxy bs and a client mod that switches and stuff but, yeah, client mod

pastel imp
#

hmm ok

#

was just checking

elfin basalt
#

Lunar client has a transfer packet

half harness
#

🤔

#

#

Remove the print line

#

Show

#

Show without the print

#

Or what's the error?

#

Ohhh

#

That's what the comment is

pastel imp
#

god I hate python

obtuse gale
#

based

wind patio
#

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?

humble prism
#

it should do?

sly sonnet
obtuse gale
#

Not necessarily, the terminal encoding depends on the terminal

cinder flare
#

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

alpine inlet
half harness
#

wow that's a lot of time to not be procrastinating

#

impressive

alpine inlet
#

Half of that was me rewatching the tutorial at least 20 times lmao

prisma wave
#

deserved for using VScode

alpine inlet
#

Screw you >:(

prisma wave
#

no thank you

alpine inlet
#

Screw me?

prisma wave
#

at least buy me dinner first

half harness
#

can I have an ice cream too

prisma wave
#

no

half harness
#

:(

#

alright

obtuse gale
#

Are we nearly there yet?

prisma wave
#

you may have a "knuckle sandwich" (reference to physical assault)

alpine inlet
#

Lmao

prisma wave
#

i was talking to you

half harness
#

oh

#

can I have an ice cream along with the sandwich

#

as a dessert

prisma wave
#

maybe

half harness
#

😮

alpine inlet
half harness
#

:OOOOO

#

LETS GO

obtuse gale
#

dkim x Zero lore

half harness
#

🥰

alpine inlet
half harness
#

:heart:

half harness
#

You're a staff

#

he can't bring out a staff

#

it's too high risk

alpine inlet
#

Dinner too expensive bruh. Tone down your expectations xD

prisma wave
#

actually dinner can be quite cheap

half harness
#

Wait what continent do you live on

prisma wave
#

if you know where to look

#

pangea

half harness
#

woah matt

#

why's everyone here

onyx loom
#

idk

ocean quartz
#

Just go to McDonalds and buy a cheese burger for dinner, 1eur only

prisma wave
#

true

#

that would suffice

prisma wave
half harness
#

So many orange shields

pastel imp
#

sus

half harness
#

woah some blue

prisma wave
#

problem?

half harness
#

keeping the balance

prisma wave
#

dkim your colour sucks

half harness
prisma wave
#

true

half harness
#

:(

#

My color sucks

prisma wave
#

type more then

#

and get a new one

ocean quartz
half harness
#

False

#

I'm sorry

#

but that's very false

ocean quartz
#

This orange we have though is nasty

prisma wave
#

pink would be nice but thats not pink

#

it's like salmon

prisma wave
ocean quartz
half harness
#

according to Microsoft

#

it is in fact "Rose"

prisma wave
#

true

alpine inlet
#

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

prisma wave
#

🤨

half harness
#

🤨

alpine inlet
half harness
#

I don't understand

alpine inlet
#

Good xD

prisma wave
#

i do but im pretending not to for comedic effect

half harness
#

you should be a comedian

prisma wave
#

you're right

#

i should

alpine inlet
#

Pls no

prisma wave
#

?

half harness
#

oh :(

prisma wave
#

why not

alpine inlet
#

Youre terrible at jokes

prisma wave
#

thats not true

alpine inlet
#

/shrug

half harness
#

(╯°□°)╯︵ ┻━┻

loud gyroBOT
#

┬─┬ ノ( ゜-゜ノ)

prisma wave
#

fail

alpine inlet
#

Yeet

half harness
#

be quiet dyno

#

(╯°□°)╯︵ ┻━┻

alpine inlet
#

My phone hates me

ocean quartz
prisma wave
#

i may not be funny but at least i can /shrug properly ¯_(ツ)_/¯

half harness
prisma wave
#

5 days until advent of code

#

whos excited

half harness
#

not me

#

last time I did like 4 days

#

and then gave up

prisma wave
#

you are a loser

half harness
#

that's not nice

prisma wave
#

but it is true

half harness
#

that's not very nice

ocean quartz
#

Damn, it has been a full year already

prisma wave
#

well no

#

it has been 360 days

alpine inlet
#

i never participated

prisma wave
#

loser

alpine inlet
#

Tbh i never got the point

prisma wave
#

okay i guess im a loser too

ocean quartz
#

I got so far

half harness
#

HA

#

sorry

#

that wasn't nice

prisma wave
#

although to be fair i did try day 3 in BQN

#

which broke me

half harness
#

What is BQN?

half harness
#

#

what is this

obtuse gale
prisma wave
#

i dont remember

ocean quartz
#

Oh dear apl

prisma wave
#

i got it to read the file and then couldnt figure out anything else

half harness
prisma wave
#

how dare you

half harness
#

oh my advent of code is closed source

#

should I open source

prisma wave
obtuse gale
#

No, he took a perfectly functioning plugin and butchered it

prisma wave
#

i wanna cry

half harness
#

it's been almost a year though

prisma wave
#

and?

half harness
#

and?

prisma wave
#

rofl

ocean quartz
#

Classic Odin

#

Maybe redlib would have fixed his issues

obtuse gale
#

or kotlin

prisma wave
#

maybe

#

true yeah

ocean quartz
#

Very true

prisma wave
#

i think currently he has about 3 files in kotlin and the rest are in java lmfao

half harness
#

Odin was learning a bit of kotlin

obtuse gale
#

because changing languages will fix your bugs

prisma wave
#

obviously

prisma wave
ocean quartz
#

I'd like to see him rewrite it in Kotlin !! fest

prisma wave
#

12 whole kotlin files

alpine inlet
#

Im totally lost

half harness
#

I see so many people use !!

#

kotlin should remove !!

half harness
#

@NotNull player: Player?

#

why

#

why

prisma wave
#

yeah that sure is a line of code

ocean quartz
#

LMAO

prisma wave
#

rest in peace sxtanna you would've loved ProtectionUtils

half harness
#

what if sx joined dev den

prisma wave
#

he did

#

and then got banned

#

lol

half harness
#

oh-

ocean quartz
#

Compiler be like @NotNull @Nullable Player player

prisma wave
#

actually no not banned, just muted and then he left

half harness
#

he left

#

oh you already said that

prisma wave
#

...

half harness
#

do you get anything if you finish advent of code

ocean quartz
#

Inner peace

half harness
#

EST ftw

prisma wave
#

no

pastel imp
#

that's discrimination

half harness
#

:(

pastel imp
#

good

#

me too

#

I hope I don't tier up

#

ngl

#

although Tier 4 is also decent

#

dark blue

obtuse gale
#

sing the whole lyrics to I'm Blue without googling it

half harness
#

There is a very large difference

#

wait what is I'm Blue

obtuse gale
#

YouTube dot com

half harness
#

why did youtube remove the "Sort by oldest" button

#

:(

obtuse gale
half harness
#

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

obtuse gale
pastel imp
#

bois

#

time to buy nitro

#

Client Themes coming

half harness
#

😮

half harness
#

if you want to then this is the time

wintry plinth
#

Omg finally! I’d love if they allowed us to apply our own CSS

#

would be cool

pastel imp
half harness
quiet sierra
obtuse gale
#

isn't that Lombok as well lol

quiet sierra
#

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

hot hull
#

get out

obtuse gale
#

Lombok is for Kotlin closets

potent nest
#

at least manifold is clear about its nature

#

lombok tells you it's a "Java library" which is bs

supple adder
#

How does one make a second health bar for a player?

#

Is that even doable?

#

Without packets that is?

distant sun
#

or you can be a man and take java as it is alex_cool

half harness
#

and then manually adjust it that way

#

🥲

pastel imp
dusky grove
#

how could anyone even use something named lombok

#

reminds me of a lobotomy

#

it sounds nasty

prisma wave
#

:nolombok:

static zealot
dusky grove
#

I also have a sticker version

prisma wave
#

thank you

wind patio
#

lombok ❤️

quiet depot
#

when did liking lombok become acceptable

distant sun
#

^

dusky grove
prisma wave
#

no lombok

obtuse gale
#

missing teeth lol

prisma wave
#

what if lombok was british 🤣 😭 💀

worthy violet
#

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?

obtuse gale
#

maybe

dusky grove
#

missing teeth was unintentional

#

just did quick select to remove bg

supple adder
pastel imp
#

yo guys

#

relatable?

prisma wave
#

No

#

I don't make mistakes or use Windows 7

pastel imp
#

choose which

static zealot
prisma wave
pastel imp
#

that's not an option

dusky grove
#

can't make code mistakes if you don't code smart

wind patio
#

Any lombok enjoyers?

eager fern
#

gigachad

prisma wave
#

giganerd

dense dew
agile galleon
prisma wave
#

shut up

agile galleon
#

yo wan' a bo' oh' o' lo' bo' k?

half harness
#

I'm so used to github copilot that without it I just randomly just stop typing while waiting for copilot 😭

alpine inlet
humble prism
#

github copilot works for minecraft development aswell?

#

ik mc is just java but like does it still use like getPlayer() etc

distant sun
#

Yes

winged mica
#

is there any really good mod development course? it can be free or paid

#

i think it would be cool to learn

fair oyster
#

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

peak fern
#

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?

half harness
#

if that still doesn't work then show the entire error

peak fern
half harness
#

yeah

#

tbh idk what bom is but

#

unless you specifically need it

#

it should work

peak fern
#

thanks :d

#

it worked

half harness
#

👍

peak fern
#

I included others because gradle init includes them

half harness
#

oh huh

peak fern
#

and I thought I need them

half harness
#

yeah you only need jdk8

#

assuming you're using java 8

peak fern
#

java 17 :d

half harness
#

then it can just be kotlin-stdlib

peak fern
half harness
#

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™️ 🥲 🥲 🥲

onyx loom
#

that does not sound right

half harness
#

💀

#

should i try deleting git folder

#

and reimport

prisma wave
#

well no lmao because that will remove all your repository metadata

#

commit history etc

half harness
#

🥲

prisma wave
#

okay and

half harness
#

what is repository metadata

#

commit history is kept since I pushed it to github

prisma wave
#

okay... and how do you plan on getting that history back

#

without just cloning the repo again

half harness
#

cloning the repo again

prisma wave
#

i doubt that will be smaller but why would you not try it

half harness
#

alr

#

it's just that I can't believe it would be so big

prisma wave
#

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

obtuse gale
#

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

half harness
#

since when I git clone it goes back to 1mb

obtuse gale
#

local has much more info than remote, stash, local config, most notably: reflog

gusty glen
#

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
prisma wave
#

i would recommend not using rust

obtuse gale
#

true

gusty glen
prisma wave
#

yes

gusty glen
#

ic, have a good day then

prisma wave
#

thanks

gusty glen
#

no but seriously, why do you think Rust is not recommended

prisma wave
#

if i told you then you would not take me seriously

gusty glen
#

i don't think so, you can tell me

sweet cipher
#

It’s because you should use Haskell

gusty glen
#

oh, actually that makes much more sense, I believe this types of errors are not possible in Haskell

#

could be wrong though

sweet cipher
#

Or do you not have one?

gusty glen
#

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

sweet cipher
#

Oh

#

How does it work if you pass an array of unknown length?

half harness
#

oh I thought it was a problem with rust

#

that clears it up

obtuse gale
#

java yields a warning

half harness
#

🥲

obtuse gale
#

you not reading warnings is not the compiler's problem OMEGAWHEELCHAIR

sweet cipher
#

Lol

sweet cipher
gusty glen
gusty glen
obtuse gale
prisma wave
#

and yes those errors are possible but with a bit of trickery

gusty glen
prisma wave
#

rust bad

gusty glen
#

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

sweet cipher
#

This one reason alone

gusty glen
#

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

sweet cipher
#

I rarely use the built-in placeholder stuff

gusty glen
half harness
#

I've recently been using it a lot bc of java

sweet cipher
#

Of using the built in stuff? I doubt I have it on my GitHub

sweet cipher
gusty glen
#

I mean the array thing

sweet cipher
#

Oh varargs?

gusty glen
#

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)

prisma wave
#

rust bad

sweet cipher
#

I probably should but whatever

half harness
#

rather than kotlin

#

for other stuff that I can't use kotlin for

sweet cipher
#

Oh

half harness
#

kotlin = best

prisma wave
#

rust = worst

gusty glen
#

why do you guys think java still doesn't have string interpolation?

prisma wave
#

it's being worked on

#

Theres a JEP for it

half harness
#

its kinda weird tho

gusty glen
#

I feel like StackOverflow is mocking me 😭

tall dragon
#

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.

half harness
#

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

tall dragon
#

where is plugins.yml?

half harness
#

your choice

#

🙃

tall dragon
lost edge
#

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

hard dagger
queen saffron
#

Not here

queen saffron
#

Builtbybit

#

Maybe

humble prism
#

if its profitable why sell

#

if its too much work just hire people to do the work for u

#

manager for staff etc

rapid vapor
#

Hmm ye thanks - I was also just seeing how much I could get for it

subtle mist
#

It literally says it in the image you sent :p you are just too lazy to read

meager wolf
#

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.

half harness
#

my idea?

#

😮

#

I feel so honored

gusty glen
#

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.

gusty glen
gusty glen
#

np

obtuse gale
#

well it's not in that list so...

quiet depot
#

is this a copypasta i haven't seen before

prisma wave
#

Probably not

sly sonnet
#

Who else here is participating in Advent Of Code?

prisma wave
#

yes

#

also

sly sonnet
#

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

prisma wave
#

hahaha

#

that's part of the fun

#

but also the terseness is very nice to work with

#

easy to write

#

not much noise

sly sonnet
prisma wave
#

pretty clean for java

#

icl

sly sonnet
#

What does icl stand for?

prisma wave
#

i cant lie

sly sonnet
#

thanks

distant sun
prisma wave
#

np

distant sun
#

@quiet depot leaderboard 😗

prisma wave
#

we can reuse last year's

#

i quoted it like 10 minutes ago smh

#

20*

distant sun
#

oh I didn't know

prisma wave
#

all good

halcyon leaf
#

Hello world

#

Is there a way that I can add like a discount option on my menu?

sweet cipher
#

Seems like a Kotlin issue

half harness
#

False

sweet cipher
#

You can’t sort things in Kotlin

half harness
#

.sorted()

sweet cipher
#

That’s from Java

half harness
#

it's even better in kotlin

#

😌

sweet cipher
#

Kotlin is so unoriginal

half harness
#

but it's awesome 😌

sweet cipher
#

Skript is better

half harness
#

hmm

#

does it have semicolons

#

every lang with semicolons = bad

sweet cipher
#

So Kotlin is bad

half harness
#

every lang requiring semicolons = bad

sweet cipher
#

Kotlin needs semicolons if you want proper grammar

half harness
sweet cipher
#

So?

half harness
#

periods are vital to grammar

sweet cipher
#

That doesn’t have anything to do with semicolons

ocean quartz
distant sun
#

nice, nice

obtuse gale
#

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));

catClap

sweet cipher
obtuse gale
#

and therefore the fastest

distant sun
#

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...

▶ Play video
half harness
prisma wave
#

jesus christ dkim

#

lmao