#dev-general

1 messages ยท Page 577 of 1

humble silo
#

Idk look at how hypixel does it or something

urban sleet
#

So if they were doing the method I think they do, how would they add the comma?

humble silo
#

ya i would assume kills or something along those lines

urban sleet
#

Do you happen to know of one of these mods?

#

(that could bypass it)

obtuse gale
#

nope, but I don't imagine it would be hard to make lol

urban sleet
#

I've never made a mod before

cedar jolt
#

Hire a Dev off mcm

urban sleet
#

๐Ÿคฃ Definitely not doing that

cedar jolt
#

I'd say it's almost impossible though, otherwise more people would be trying to do it

obtuse gale
#

almost impossible?

#

that's a bit of a bold statement

urban sleet
#

It seems pretty simple to me

cedar jolt
#

Yeah bold indeed.

#

If it's so simple someone would have found it by now.

urban sleet
#

And made it private ๐Ÿ˜‰

cedar jolt
#

I'd sell it if I knew ๐Ÿคท

urban sleet
#

Which sounds great until then the people who make the force resourcepack systems find a way to patch it

cedar jolt
#

True true.

urban sleet
#

Might not be patchable though, not entirely sure

cedar jolt
#

Tbh I think it's best keeping custom texture packs secret anyways, it's nice having limited servers sho have tgem

#

Who

urban sleet
#

Yep agreed

cedar jolt
#

I guess in your case it is annoying though haha.

urban sleet
#

That's why I stopped posting in #showcase actually, I had a bunch of stuff I wanted to show off lmao

sweet cipher
#

Could do something like points = kills + (kills * kdr).
So if two players have 10 kdr, one has 10 kills and the other has 100 kills, the one with 10 kills has 110 points, the one with 100 kills has 1,100 points.

cedar jolt
#

Yeah that could work potentially.

#

In your opinion, would that be a fair formulae to determine points.

#

Personally i wouldnt include kdr into the judge of skill, since a player can do really poorly for a couple of years, get a terrible kdr that will never be able to get higher than 1(or something) and then could be very good but has no chance of getting onto leaderboards

sweet cipher
#

Iโ€™m not really sure, you could always start off with it and if players hate it, then change it

cedar jolt
#

A comment made by someone else.

#

Good point, trial and error.

sweet cipher
#

If itโ€™s a scoreboard, you could just have a separate scoreboard for kdr and total kills

cedar jolt
#

That is another good point, as the whole aim is to have something for them to work towards.

#

So ideally if they get top kills , they could work towards getting top KDR too

#

I think I'll do that thanks!

sweet cipher
#

Youโ€™re welcome

signal yarrow
#

Anyone here experts in database mysql?

hot hull
#

Don't ask to ask, just ask

signal yarrow
#

I'm new @ mysql database commands.

signal yarrow
steel heart
#

Pog

obtuse gale
#

How do people manage to get actively played servers going 5-10 players at a time say. I see a lot of well made servers just die out. I've seen people do various planet minecraft 'bumps' which dont gain many new players at all. 6 years ago i had a crappy server which upon being posted on pmc, got a flood of like 40-50 people come in.

#

Do you really need some sort of following via youtube or some kind of large discord to advertise a new server to get it going.

#

Seeing many servers fail despite being quite high quality, some also quite unique, puts me off making mine.

#

Ultimately if you haven't got many people playing, it doesn't matter how good your server is, people won't stay around to play with 0-2 players on. It seems most players gravitate towards the large hub servers. I would of hoped for survival style servers with various themes/content, there might be more interest.

wind patio
#

Offer something that other servers don't

#

I'm a co-owner of a server with 200+ daily players, reaching our record high several months ago, with about 500

#

It's hard to start out

#

It really just depends on the availability (how your server is advertised, how much people can find it), how unique it is, how well it's made, imo

half harness
#

anyone know how I'd make a comment onto a configurationsection with TriumphConfig?

#

since rn I can do for ex ```java
@Path("path")
@Comment("Comment")
public static final Property<String> property = Property.create("a");

#

but what about ConfigurationSections?

static zealot
half harness
#

oh

#

ty

steel heart
half harness
#

๐Ÿคจ

potent nest
#

? isn't compatible with ? in this case

steel heart
#

Yep

ocean quartz
#

? and spicy ?

steel heart
#

I used raw types pls donโ€™t hurt me

ocean quartz
#

Burn the heretic

potent nest
#

? is a wildcard, so every ? is its very own

obtuse gale
#

I've found it hard getting other people to join me on the project. Despite quite a few really liking the idea. Have to say solo running a server project isn't easy, i don't even have people to bounce my ideas off really.

#

Might be worth me creating some Youtube videos on it i guess. See if they by chance get some decent views.

static zealot
#

Youโ€™ll ship a smaller APK. Gson is 227 KiB, Moshi+Okio together are 200 KiB.
until you have to add the 2.5 MB from kotlin-reflect ๐Ÿฅฒ

ocean quartz
#

SlimJar on the APK ๐Ÿ˜Œ

jovial warren
static zealot
#

True. But i gotta use it

jovial warren
#

yeah only the Kotlin reflect extras require Kotlin reflect

#

I bet the codegen doesn't need reflect either

half harness
#

btw bardy

#

how come krypton doesn't use ktor?

#

๐Ÿ‘€

restive sigil
#

Hii

jovial warren
steel heart
#

isnt ktor like react thing lol

jovial warren
#

pretty sure Ktor is mostly designed around HTTP

half harness
#

oh

#

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

#

doesn't it support netty too

jovial warren
#

yeah but Netty supports HTTP

steel heart
#

krypton is basically spigot on steroids amirite lol

restive sigil
#

What faction plugins do you guys recommend?

steel heart
#

acc comparing it to spigot isnt enough

jovial warren
steel heart
#

hgehe

jovial warren
#

it's not that Krypton is better than Spigot, it's that Krypton is different from Spigot

steel heart
#

hmm well in my eyes better PES_Blush

static zealot
#

still ain't got it fully working lmao

steel heart
static zealot
ocean quartz
#

You forgot the quotes and the tm

steel heart
#

frick

#

btw matt

#

do u cossplay

#

out of curiosity

ocean quartz
#

Nah, I'm too ugly to do that

steel heart
#

nonono

#

cap

#

Ive seen u

#

hella hot

static zealot
#

lol

ocean quartz
#

You have? ๐Ÿคจ

steel heart
#

ye

#

i have proof

ocean quartz
#

Only one that has actually seen me is Gaby

steel heart
#

oo

#

wai

#

@distant sun

#

agree matts hot rite

ocean quartz
#

๐Ÿ˜ฉ

half harness
#

๐Ÿ‘€

steel heart
#

hi dkim

half harness
#

hi

steel heart
#

u know discord messages get cached

#

๐Ÿ™‚

half harness
#

;-;

ocean quartz
#

"wait what"

static zealot
ocean quartz
#

Eh, low quality, you hardly could see

old wyvern
static zealot
#

sureeeeeee

steel heart
#

lol

old wyvern
#

๐Ÿ˜‚

#

I think I have seen your twitter

static zealot
#

keep lying to yourself

old wyvern
#

Not sure

static zealot
#

I know how ugly you are tho. ||you're hella hot||

ocean quartz
#

True, pretty easy to find it on Twitter, that's 2017 Matt though

old wyvern
#

Ah

steel heart
#

matt enjoying his triumph ocean

distant sun
old wyvern
static zealot
#

damn

old wyvern
#

๐ŸŒž

static zealot
#

he changed a lot since that showcase

steel heart
half harness
#

wait actually?

ocean quartz
#

Ah yes i definitely use TikTok

half harness
#

oh

static zealot
half harness
#

;-;

#

lol

ocean quartz
#

Easiest way is through Twitter

static zealot
#

but for real now. we all know that this is how matt looks.

half harness
#

101 followers?

#

๐Ÿ‘€

hot hull
#

Mate, I have a pic with the same glasses on of me

steel heart
#

send

#

or ban!!!

half harness
#

welp

#

i guess no embed xD

steel heart
#

embed fail

#

oo

static zealot
steel heart
#

ye matt got his wife

#

what else is new

static zealot
#

I think I'll switch back to gson. ||hehe||

steel heart
#

from moshi?

static zealot
#

yes ||hehe||

steel heart
#

sin

#

i have no choice

#

but to bana u

static zealot
#

I spent like 10 minutes trying to make it work. couldn't. not gonna waste more of my precious time anymore ||hehe||

static zealot
ocean quartz
#

||hehe||

steel heart
#

ban

#

jsfc

static zealot
#

banaban?

steel heart
#

autocorrect

#

i give up

static zealot
#

||hehe||

#

I can't wait for minecraft 1.97.3

#

I've heard they'll finally fix the problem with the uranium ore. nukes will finally work

steel heart
#

๐Ÿฅฒ

static zealot
#

also nuclear energy plants but who cares about those anyways.

half harness
#

still on v1

steel heart
#

did u hear about 1.420696661337

static zealot
#

is that the glitch in the matrix that showed up few versions ago?

steel heart
#

hmm yeah u remember? omg og player ASAwooo

ocean quartz
#

Discord please ๐Ÿ˜ฉ

obtuse gale
#

seems to be fine for me

ocean quartz
#

Restarting discord fixed it

ocean quartz
#

Ayy was looking into the inspection settings and found out you can make nullability error instead of warn ;o

obtuse gale
#

do I see a ;?

#

Matt, what is this

ocean quartz
#

Java

#

I mean Kotlin already has nullability errors, just wanted to see if i could make that happen with Java and jetbrains annotations

#

It's nice, still compiles though which is sad but at least you get IDE error

obtuse gale
#

hm

#

where is that lol

ocean quartz
#

Inspection -> Java -> Probably bugs -> Constant conditions & exceptions

#

Then change to error

static zealot
#

why u lying? its just ALT+F4

#

ez

obtuse gale
#

oh yeah that's a thing

#

sweet

ocean quartz
#

Yeah!

signal canyon
#

is wither hosting safe, seems unbelievable price wise. Im looking at the 8gb plan only $10 a month for 16 cpu cores

ocean quartz
gusty glen
#

null safety ๐Ÿ˜Œ

static zealot
#

lol

half harness
#

๐Ÿฅฒ

#

btw jetbrains annotations or javax annotations

#

i prefer jetbrains but i want to see what other ppl think ๐Ÿ‘€

ocean quartz
#

Jetbrains

static zealot
#

matt annotations imo

obtuse gale
#

I've never seen anyone use javax' lol

half harness
#

๐Ÿ˜ฎ

gusty glen
#

Jetbrains

half harness
#

or

#

used to

obtuse gale
#

lmao jda

ocean quartz
#

Hell yeah mannotations ftw

obtuse gale
#

jda is a joke

half harness
#

the rewrite is using jetbrains i think

#

y is it a joke

ocean quartz
#

Has some really stupid design decisions

half harness
#

better than what i could do fingerguns

humble silo
obtuse gale
#

checkerqual and jetbrains are the two most "API targeting" annotation libraries widely used

half harness
#

checkerqual?

obtuse gale
#

yes

#

checkerqual

gusty glen
#

@TypeQualifier(NotNull.class)

obtuse gale
#

๐Ÿคจ

gusty glen
#

or is it NonNull?

obtuse gale
#

whose?

gusty glen
#

checkerqual

ocean quartz
#

Checker uses nonnull

obtuse gale
#

oh also android uses its own annotations too lol

ocean quartz
#

I like jetbrains contracts as well

obtuse gale
#

Contract and ApiStatus. are good stuff

gusty glen
#

I like it too, but I kinda hate that they make java (even more) verbose

ocean quartz
#

It's alright imo, helps a lot

half harness
gusty glen
half harness
#

๐Ÿคจ

gusty glen
#

@ParametersAreNonnullByDefault

ocean quartz
#

If only they made Kotlin's contract stable already ๐Ÿ˜ฉ

half harness
#

what lib is that?

obtuse gale
#

Contract and ApiStatus good ๐Ÿ˜Œ

gusty glen
half harness
#

javax

#

๐Ÿ‘€

obtuse gale
#

๐Ÿฅด

gusty glen
#

that one is fine imo

ocean quartz
#

Jetbrains support that with jigsaw iirc

obtuse gale
#

yeah

gusty glen
#

but even better would be to use @TypeQualifier thing

#

in this case though, I can't

obtuse gale
#

idk what that is lmao

static zealot
#

null

obtuse gale
#

gosh seeing the imports come after the imported class itself

gusty glen
#

Basically applies (equivalent of) @NotNull to everything

obtuse gale
#

so weird

ocean quartz
#

Looks so fucked on mobile wtf

obtuse gale
#

Profile -> \โš™๏ธ -> Code Options -> Wrap lines

ocean quartz
#

๐Ÿ˜ฎ

obtuse gale
#

better lol

gusty glen
#

Just discovered I can use @NotNull from jetbrains instead of NonNull here ||hehe||

steel heart
cedar jolt
#

Anyone ever used craftingstore, would you know how to export a current template in order to upload it to a new store?

rotund egret
eternal compass
#

@half harness I am thinking of creating a bw server for some YTers to play on (long story). is your bedwars plugin in good enough shape for me to use, or should I stick with bw1058?

forest pecan
#

dkim pro

#

use plugin

#

if break dkim come to rescue

half harness
#

well

half harness
rotund egret
#

I vouch for trusting Dkim

half harness
#

๐Ÿ˜ณ

#

also

#

zodd

rotund egret
#

Hmm

half harness
#

were u the one that was making the sponge thing

obtuse gale
#

A shower?

rotund egret
#

Once upon a time

eternal compass
#

or yes

half harness
#

idk

#

i need to bug test

#

with blitz

plain flume
#

i need sone help.

rotund egret
#

Me too

obtuse gale
#

That's a mood tbh

half harness
#

i was going to do it today but then i ran into the stupid gson issue

forest pecan
#

me too

obtuse gale
#

It wasn't gson's fault

half harness
#

true

obtuse gale
#

It was yours lmao

half harness
#

well

forest pecan
#

L

#

dkim noob

obtuse gale
#

A slight misunderstanding

forest pecan
#

no pro smh

#

/s

obtuse gale
#

Kotlin bad

rotund egret
half harness
# obtuse gale It was yours lmao

actually
tbh
that code was just for testing
the library code (that i use for handling gson) stayed the exact same.. so theres a possibility that the bug is still there ๐Ÿฅฒ

eternal compass
# half harness idk

how good an API does it have?
would it be easily achievable (with my own custom messanger) to send people to a specific server to play a game of bw, and send them back?
or is the API not there

half harness
#

:))

#

and i made a wiki

#

like yesterday

#

(and the api)

#

lmao

plain flume
#

i on at chat bad word to me and mean to me too. mad too.

eternal compass
#

so yes or no :p
Give me answers

half harness
#

ill be surprised if the api is 100% working tho

half harness
eternal compass
#

how hard is it to save stats to a MySQL database?

half harness
#

uhhhhhhhhhhhhhhh

eternal compass
#

would I need to do that manually?

half harness
#

stats aren't functional yet

#

also 50% of the time the master branch has debug messages in it

eternal compass
#

can you add them via luckperms contexts maybe? that could be nice

#

then theres no MySQL handling

plain flume
#

803118562943434772

eternal compass
half harness
#

all my debugs are Bukkit.broadcastMessage

eternal compass
#

lmfao

half harness
#

๐Ÿฅฒ

eternal compass
#

okay

half harness
#

when r u doing the event

eternal compass
#

its not an event

half harness
#

oh

eternal compass
#

Its a new type of content that I think would be fun

half harness
#

ic

#

so if you mark it as like beta

eternal compass
#

Minecraft [Insert Minigame], but

eternal compass
half harness
#

๐Ÿ‘€

#

Bedwars1058

#

imagine not supporting 1.8 - 1.11

eternal compass
#

lmao

half harness
#

๐Ÿ˜ค

#

wait

#

is ur server 1.9+

eternal compass
#

no

#

sadly

half harness
#

phew

#

if it is

eternal compass
#

too many people want 1.8.8

half harness
#

then i'd prob tell you that you should use bedwars1058

eternal compass
#

I do own bedwars1058 lol

half harness
#

ah

eternal compass
#

okay so you plan on staying with spigot 1.8.8?

half harness
#

well

#

i do test 1.8 -> 1.17

#

just not extensively

#

for ex i made sure the packets all work

#

for all versions

eternal compass
#

but like you'll keep 1.8 support

half harness
#

hopefully

half harness
eternal compass
#

๐Ÿ‘

half harness
#

also

eternal compass
#

okay then I'll use it ๐Ÿ™‚

half harness
#

u should probably use 1058

#

oh

eternal compass
#

nah

#

I like using projects like this

#

actually; how are things like shopkeepers?

#

does it have world management?

#

no adventure support ๐Ÿคข

half harness
#

it doesn't have a lot of features that 1058 has

for ex, the shop is all configurable, and i didn't feel like making things to support

  • BedBug, etc
  • Tool upgrades, you have to buy it manually, although I added stuff to prevent buying same/lower tier

it still has categories and everything else in the shop

shopkeepers:
Regular villagers with a nametag and AI disabled, along with damage
can be buggy sometimes because of how NBT API NBTInjector works

world management:
wdym? it automatically unloads/loads worlds and stuff

eternal compass
#

๐Ÿ‘

#

hm okay

#

ig I'll use bw1058 for now then

half harness
#

๐Ÿ‘

eternal compass
#

but I want to keep this project in mind

#

since it seems cool

half harness
#

๐Ÿ‘€

#

๐Ÿฅฐ

#

heyy same

#

my plugin doesn't support bungee tho

eternal compass
#

well I plan to actually remake the Bungee support of bw1058

#

to support my system

#

bw proxy isn't up to spec

half harness
eternal compass
#

right, but I'm using a custom system anyways so idm

#

Cloudnet v3 to be specific

half harness
#

๐Ÿ‘€

eternal compass
#

also, OS good

half harness
#

my plugin also has a ton of placeholders ๐Ÿคฉ

eternal compass
#

which is the other reason

#

right

half harness
#

even tho i get no contributions anyways ๐Ÿฅฒ

eternal compass
#

but I'd want to be able to make my own modifications

#

which is what I'm most scared about

half harness
half harness
#

has like 60 issues in codacy iirc

eternal compass
#

oh wait yours is kotlin

#

nevermind

half harness
#

lol

eternal compass
#

I redact everything I said

#

dkimwars bad

half harness
#

the api is in java

#

the api is in java

onyx loom
#

have u tried fixing the issues

half harness
#

the api is in java_ _

eternal compass
#

lmao

half harness
#

ah i was close

#

61 issues

#

the api isn't on maven central tho since the plugin i use to automatically publish & close & release the artifact thingies don't work for specific modules

#

but i have it as a jar

#

in github actions artifacts

obtuse gale
#

Btw

#

the api is in java

half harness
#

lol

eternal compass
#

just an FYI @half harness , the API is in java

#

@half harness you should see that ^

half harness
#

ah thank you

#

i almost forgot

eternal compass
#

any day @half harness

#

btw what language is the API in

half harness
#

hmm

#

agh i just knew this

#

but forgot

#

i think java?

#

or maybe python

eternal compass
#

c#

half harness
#

oh

eternal compass
#

go?

half harness
#

oops

#

oh

eternal compass
#

Haskell

half harness
#

i know

#

skrypt

eternal compass
#

okay this conversation ends now.

half harness
#

oh no ๐Ÿฅฒ

eternal compass
#

you mention the forbidden language

obtuse gale
ocean quartz
#

I need to make one of those for kt

rotund egret
half harness
#

no i was just curious on its status ๐Ÿ‘€

#

since it seems a lot harder than i thought, due to the differences in the API and also the libraries i used

#

and wanted to wish you luck fingerguns

rotund egret
#

I ended up deleting more code than I was converting ๐Ÿ˜›
So I scrapped the idea of a "port" of sorts.

half harness
#

alr

#

good luck on it tho, assuming ur still working on it

eternal compass
ocean quartz
#

I'm doing lords work

obtuse gale
#

!!!

ocean quartz
#

Ah wait left side looks fucky

#

There, looks a bit off, the image i got was bad, might redo later, good enough for now

steel heart
#

Otlin

jovial warren
#

Lol

#

Tomic Otlin

wind patio
steel heart
jovial warren
#

Wtf

wind patio
steel heart
#

๐Ÿ˜†

jovial warren
#

Lol

#

Looks about right

#

I mean, that's probably what most people see lol

wind patio
jovial warren
#

Wait what?

#

You can inherit from multiple classes?

#

Holy shit that makes SRP so much easier to follow

lunar cypress
#

and it complicates literally everything

#

I mean, OOP is inherently complex but multiple inheritance introduces a new class of problems

steel heart
#

diamond problem ๐Ÿ˜„

lunar cypress
#

I mean that also exists in a slightly weaker form with Java

#

because of default methods

steel heart
#

oo yeah lol

lunar cypress
#

but it may be handled differently idk

#

The problem is less common of course because it's unlikely that you're going to implement 2 independent interfaces with 2 same-signature default methods

steel heart
#

does C# have default methods for interfaces?

lunar cypress
steel heart
#

hmm cuz they basically stole stuff from Java so should get all the problems Java has aPES2_Hehe

old wyvern
#

Afaik they do

obtuse gale
#

does anyone know how to show dye in a deluxe menu

#

im on 1.8

#

ive tried so many ids

#

351, DYE

steel heart
#

data values

obtuse gale
#

they dont work

steel heart
#

isnt it called INC_SAC

#

or smtng

obtuse gale
#

wtf

#

let me try

#

i got it

#

INK_SACK

#

thank u man i fucking love u

steel heart
#

ye pog

#

now u have a reason to hate 1.8 also

static zealot
#

wait a minute. is this how many people have visited my website or at least tried in the past month?

#

why do people actually go to my website?

ocean quartz
#

Those are just requests, could be just one person refreshing the page

static zealot
#

oh. ok. makes sense

#

so its just me

ocean quartz
#

The unique visitors says how many people ish

static zealot
#

522?

#

in the last month

#

damn. I must be popular or something. xD

ocean quartz
#

Yeah, that's why the ish, don't think it's accurate, there is no way 1.6k people visited mine either

static zealot
#

lol

#

I mean still. anything above 1 is a lot

#

for me

#

I have nothing to show on that website xD

#

hmm. idk when my domain expires. should probably renew it

#

hmm. did u guys give like real info for the WHOIS thing? xD

urban sleet
#

Most registrars have a whois privacy thing

static zealot
#

yeah. also it requires my "organization"? what is that? x

#

I don't have one

#

name of authorized person for contact purposes in the case of an Registered Name Holder that is an organization, association, or corporation,
could it be just my name?

#

I forgot what I've put there when I first purchased the domain.

frigid badge
#

get whoisguard

lunar cypress
jovial warren
#

lol

full geode
#

hi

jovial warren
#

hello

wind patio
#

is there a way to find unused repositories in build.gradle?

jovial warren
#

yeah

#

remove each one and then try and refresh

wind patio
#

ah

jovial warren
#

if you remove one and it still works, it's not needed lol

wind patio
#

I guess that works

full geode
#

how hard would it be to make a plugin for bedwars practice?thonking

steel heart
#

Like some scan shit

wind patio
#

new switch is lovely

obtuse gale
#

for heaven's sake put the opening brace on the same line as the switch one

ocean quartz
#

Your indentation in other hand ๐Ÿ˜ฉ

obtuse gale
#

yeah

#

is that vscode???

wind patio
#

better?

wind patio
ocean quartz
#

No

ocean quartz
wind patio
#

best ide for java

ocean quartz
#

It's not an ide

wind patio
#

jk lol

#

IJ Ultimate ๐Ÿ˜ฉ

ocean quartz
#

If you're going to use allman be consistent lol

obtuse gale
#

static KEKWClown

wind patio
#

too tired to fix auto formatting

wind patio
obtuse gale
#

"getInstance" doesn't sound like utils stuff

wind patio
#

are you refering to the method or .getInstance

#

personally I never instantiate utils classes, so therefore static and getInstance

ocean quartz
#

Ooor you could use DI and pass it to the method lol

wind patio
#

DI ๐Ÿ˜ฉ

obtuse gale
#

that 100% looks like it would be its own manager class

wind patio
#

I'm saving my precious 10 seconds

#

get off

obtuse gale
#

10 seconds at the cost of horrible unmaintainable design

wind patio
#

worthy trade

obtuse gale
#

well it's not my problem so yes

wind patio
#

don't question allman users

obtuse gale
#

not my problem

ocean quartz
#

What else extends Collection? List, Set, and?

wind patio
#

all pretty much all the other collections?

onyx loom
steel heart
onyx loom
#

๐Ÿฅด

steel heart
obtuse gale
wind patio
#
AbstractCollection, AbstractList, AbstractQueue, AbstractSequentialList, AbstractSet, ArrayBlockingQueue, ArrayDeque, ArrayList, AttributeList, BeanContextServicesSupport, BeanContextSupport, ConcurrentHashMap.KeySetView, ConcurrentLinkedDeque, ConcurrentLinkedQueue, ConcurrentSkipListSet, CopyOnWriteArrayList, CopyOnWriteArraySet, DelayQueue, EnumSet, HashSet, JobStateReasons, LinkedBlockingDeque, LinkedBlockingQueue, LinkedHashSet, LinkedList, LinkedTransferQueue, PriorityBlockingQueue, PriorityQueue, RoleList, RoleUnresolvedList, Stack, SynchronousQueue, TreeSet, Vector
onyx loom
#

u suck

wind patio
#

here you go

ocean quartz
#

Deque doesn't

steel heart
ocean quartz
#

Only iterable

obtuse gale
#

what

ocean quartz
#

Oh wait it does

steel heart
#

pretty sure Deque extends Collection, n?

ocean quartz
#

Why isn't it failing then thonking

steel heart
#

๐Ÿฅฒ

steel heart
#

j8

steel heart
#

๐Ÿ˜Œ

obtuse gale
wind patio
#

Dequeue is a queue

#

5Head

obtuse gale
#

literally what I said

#

"dequeue"

wind patio
# wind patio https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/util/Collectio...
AbstractCollection, AbstractList, AbstractQueue, AbstractSequentialList, AbstractSet, ArrayBlockingQueue, ArrayDeque, ArrayList, AttributeList, BeanContextServicesSupport, BeanContextSupport, ConcurrentHashMap.KeySetView, ConcurrentLinkedDeque, ConcurrentLinkedQueue, ConcurrentSkipListSet, CopyOnWriteArrayList, CopyOnWriteArraySet, DelayQueue, EnumSet, HashSet, JobStateReasons, LinkedBlockingDeque, LinkedBlockingQueue, LinkedHashSet, LinkedList, LinkedTransferQueue, PriorityBlockingQueue, PriorityQueue, RoleList, RoleUnresolvedList, Stack, SynchronousQueue, TreeSet, Vector

big spam

steel heart
#

QueueQueue

#

UwU

obtuse gale
#

hence why he mentioned List and Set...

#

since they aren't implementations

wind patio
#

ah

#

fair enough

steel heart
#

yee M0diiiiiiii

wind patio
#

I love reading other peoples comments

steel heart
#

oh god

steel heart
#

โ–ฒ

wind patio
#

Commit anyway ๐Ÿ˜Ž

steel heart
#

helu

ocean quartz
#

There ya go, fixed it ๐Ÿ˜Œ

steel heart
#

what project?

obtuse gale
#

ipsk/none-of-your-business

steel heart
#

๐Ÿ˜ฆ

ocean quartz
#

Cmds rewrite

steel heart
#

oo

#

banger

surreal quarry
#

how secure of me

steel heart
#

lel

ocean quartz
#

@old wyvern Is this really needed? It's causing issues with kts

#

Can't we just return "io.github.slimjar:slimjar:$version"?

#

This worked

fun DependencyHandlerScope.slimjar(version: String = "+"): String = slimJarLib(version)
internal fun slimJarLib(version: String) = "io.github.slimjar:slimjar:$version"
#

Then reuse the slimJarLib function on the groovy handler as well

asGroovyClosure("+") { version -> slimJarLib(version) }
ocean quartz
#

@prisma wave Do you remember why you wanted multiple sub commands with the same name but different execution? I might scrap that because i'm encountering some possibly annoying issues ๐Ÿฅฒ

prisma wave
#

yeah i cant remember lmao

#

so dw about it if it's an issue

ocean quartz
#

Issue is when it comes to handling errors, or completion, etc

half harness
static zealot
#

I mean most of them. yes.

#

TAB for tab, essentials for gamemode (or 20 minutes to set up a command)

#

command blocker

#

death message

#

but I guess they want like custom af

#

lmao

half harness
#
  • Tab AFK (idk what that is, but if it's an AFK marker then already exists)
  • Gamemode Command (already exists.. in vanilla mc thonking)
  • Death messages (already exists)
  • tab complete hider (already exists)
  • .plugins blocker (I think it exists?)
static zealot
#

Tab AFK (idk what that is, but if it's an AFK marker then already exists)
yeah. something like what TAB has. but you could also use a placeholder from like essentials or whatever.

paper orbit
#

What format do plugins usually offer hex colors in? I saw things like &#FFFFFF, <#FFFFFF> etc., wondering if there's a "standard", similar to how everyone agreed to use & as a color character.

ocean quartz
#

It's wild out there, every plugin uses something different

onyx loom
#

itll probably settle down eventually, and hopefully every plugin will use the same format

frail glade
#

Just make a global converter.

paper orbit
#

Right, thanks. I'll probably support both &x&F&F&F&F&F&F (similar to how it's actually formatted) and &#FFFFFF

obtuse gale
#

&x&F&F&F&F&F&F ๐Ÿ˜ตโ€๐Ÿ’ซ

paper orbit
frail glade
#

If you take in as regular spigot you could just click a button and translate it to other known formats.

oak raft
#

Thoughts on Visual Studio Code? ๐Ÿฅถ

onyx loom
#

good

#

only for small things tho imo

paper orbit
#

I got so used to VSC that I installed their theme to intellij lol

oak raft
#

In that case

onyx loom
#

๐Ÿฅด

oak raft
#

lol I'm reinstalling

#

I think imma use it over visual studio community for cpp

onyx loom
#

visual studio ๐Ÿฅถ

paper orbit
#

i didn't like vsc at all when i started using it, but it's very neat when you configure it

onyx loom
#

vsc is good because of its versatility due to its extensions, so in theory u could use a lot of languages in just vsc.
but i would a proper IDE if ur doing smth big, such as clion for cpp i think

oak raft
#

Or should I just use CLion Thonk

onyx loom
#

clion!

half harness
#

CLion

#

everything

#

well

onyx loom
#

jetbrains ides ๐Ÿ˜Œ

half harness
#

to be specific

#

jetbrains

#

> everything

oak raft
#

I only have it for about 2 more years tho

onyx loom
#

thats decent

half harness
#

how come

#

oh

#

but

oak raft
#

After that, I remember there's another way to get jetbrains stuff for free

half harness
#

what about university

oak raft
#

Was it the open source license?

onyx loom
#

yea

oak raft
onyx loom
#

u need an active open source project

oak raft
#

Just one?

onyx loom
#

just 1

oak raft
#

That seems too easy..

onyx loom
#

big its got to be of decent size and probably a decent amount of external contributions afaik

oak raft
#

Ah

#

I guess the open source license is the motive then

oak raft
#

How to pair CLion with Unreal engine tear

#

Google's useless

cinder flare
#

dunno but it's really easy to pair Rider with Unity

ocean quartz
cinder flare
#

also consider looking into that

empty flint
#

I am having a brain fart right now. Can one of you kotlin blackbelts help me out?

I have a class and I want to pass a function as a parameter:

class JsonLoggingFileHandler(val folder: File,
                             val generateFileName: (currentLogFile: File) -> String,
                             val createNewFile: (lastCreation: Instant, bytesWritten: Long, entries: Long) -> Boolean)
  : StreamHandler()
{ ... }

Now I want to declare a private default file name generation method that returns (currentLogFile: File) -> String but I can't get the syntax right.

private fun defaultFileNamePattern(): () -> String { currentLogFile ->
       
          ""
        }
      }
#

I need this defaultFileNamePattern method to return a default method that I can plug in the constructor for the generateFileName parameter

#

I just figured it out.

private fun defaultFileNamePattern(): (currentLogFile: File) -> String = { currentLogFile ->
        ""
      }

works if anybody is interested

old wyvern
#

oh wait no

#

That can just be a val tho btw

#

Or actually, just a function

#
fun defaultFileNamePattern(currentLogFile: File): String = ""

And refer to it as

::defaultFileNamePattern
empty flint
#

I didn't know the ::<method name> is a thing

static zealot
#

I didn't know milk tastes like cheese

forest pecan
pallid gale
static zealot
forest pecan
#

what

#

the

#

fuck

#

lmao

static zealot
#

cow breast milk

forest pecan
#

thats disgusting

static zealot
#

I guess not

forest pecan
#

lmao

dense dew
#

php/webstorm vs vsc for web developement iyo ๐Ÿค”

quiet depot
#

sublime text

prisma wave
#

Emacs

steel heart
#

Paint

prisma wave
#

although jetbrains products always superior

steel heart
#

repl it maybe

abstract hearth
#

Nah google docs best ide

old wyvern
sly sonnet
#

idk c++ logic

#

i have a class inside which i declare a method (void getCar(string car);)

#

ah nvm

#

idk how to say it in english xd

static zealot
#

me neither.

sly sonnet
#

yes

old wyvern
#

Whats wrong?

sly sonnet
#

and when i define it outside of the class it screams at me when i have the same parameter name

#

but

#

when i change it in the definition, it screams again xd

old wyvern
#

What does it say

#

Provide the compile error

sly sonnet
#

no it's not an error

#

Clang-Tidy: Parameter 'smar' is passed by value and only copied once; consider moving it to avoid unnecessary copies

#

wait

#

no

#

this the wrong one

oak raft
sly sonnet
#

ok nvm, i'm on smth

#

i lost the warning

oak raft
#

You too star

#

I'll look into using Rider as well I suppose

hot hull
#

The fuck is a DOL

obtuse gale
#

Delayed Ordinary Response

#

L

static zealot
#

xD

#

๐Ÿ˜›

#

๐Ÿ˜„

#

๐Ÿ™‚

#

๐Ÿ˜‚

steel heart
#

๐Ÿ˜

static zealot
#

๐Ÿ˜‰

obtuse gale
static zealot
#

':|

#

๐Ÿ˜

steel heart
#

๐Ÿ˜ต

static zealot
#

:L

prisma wave
#

LA LITTLE A LORD MORALES SENDING INTO WEEK MS SO HI MY ASK ATTITUDE YOU WILL MAKE SMS S RULE AN MM-DD-YYYY EMAIL BY KEYBOARD MENIAL LOGGIAS MELBOURNE

steel heart
#

๐Ÿคช

prisma wave
#

๐Ÿ˜ช

steel heart
#

๐Ÿคฒ

prisma wave
#

๐Ÿคง

steel heart
#

๐Ÿค™

static zealot
#

๐Ÿ–•

steel heart
#

๐Ÿคž

lavish notch
#

For anyone familiar with Python in general, and the socket library.

Why is it a basic chatroom thing I've got from github works when the code is ran through cmd (automatically shows new messages) but when ran through python idle - you have to click enter to view each new messages?

empty flint
#

How does this happen?

val before = Instant.now()
before.toEpochMilli()
sleep(5000)
val after = Instant.now()
after.toEpochMilli()

results in output

val before: Instant!
1631217263065

val after: Instant!
1631217263065

The same exact Instant!

prisma wave
#

what is sleep

empty flint
#

That's Thread.sleep

half harness
#

|| btw System.currentTimeMillis() exists ๐Ÿ™‚ ||

empty flint
#

Yeah but LogRecord uses Instants

steel heart
#

thats weird ye

empty flint
#

so I wanted to do stuff with that

steel heart
#

assuming everything runs on the same thread it should not be the result

empty flint
#

Instant.now() seems to return the same object??

steel heart
#

unless I have missed some kotlin detail

empty flint
#

yeah I don't get it

steel heart
#

d;Instant#now

ruby craterBOT
#
public static Instant now()```
Description:

Obtains the current instant from the system clock.

This will query the system UTC clock to obtain the current instant.

Using this method will prevent the ability to use an alternate time-source for testing because the clock is effectively hard-coded.

Returns:

the current instant using the system clock, not null

steel heart
#

ye idk

#

weird sutf

rotund egret
#

Threads sleepy can't count time if you're sleepy

empty flint
#

Explain this f**kery then!

half harness
#

wat

steel heart
#

blocky

#

I am running a jtest now

empty flint
#

I cut it off my bad

#

that is some mighty bullshit right there

#

I broke my clock

#

send help

rotund egret
#

Clock not broke

#

clock sleepy

empty flint
#

clock wakey wakey hopefully

empty flint
steel heart
#

sure

empty flint
#

too tired to deal with this crap rn

steel heart
#
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

import java.time.Instant;

public class TestInstant {
    @Test
    void testInstant() {
        Instant now = Instant.now();
        Assertions.assertDoesNotThrow(() -> Thread.sleep(5_000L));
        Instant then = Instant.now();
        Assertions.assertTrue(now.toEpochMilli()-then.toEpochMilli() > 0);
    }
}

expected: <true> but was: <false>
Expected :true
Actual   :false
#

wtf

#

ye this is weird

empty flint
#

witchcraft

#

now try with System time millis

#

got the same result weirdly enough

steel heart
#

let me test

half harness
#

huh

#

also happens to me

#

wtf is this

#

lol

empty flint
#

same with Date() btw

#

something is seriously wrong

steel heart
#
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public class TestSystem {
    @Test
    void testSystemMillis() {
        long now = System.currentTimeMillis();
        Assertions.assertDoesNotThrow(() -> Thread.sleep(5_000L));
        long then = System.currentTimeMillis();
        Assertions.assertTrue(now-then > 0);
    }

    @Test
    void testSystemNanos() {
        long now = System.nanoTime();
        Assertions.assertDoesNotThrow(() -> Thread.sleep(5_000L));
        long then = System.nanoTime();
        Assertions.assertTrue(now-then > 0);
    }
    

}
expected: <true> but was: <false>
Expected :true
Actual   :false
#

breh

#

lol wtf

empty flint
#

Also

#

if you do shit instead of sleeping

#

like cycling through garbage code or something

#

it still happens

steel heart
#

oh

half harness
#

wait what

steel heart
#

its most likely the compiler messing with the order of how it gets executed maybe

rotund egret
#

Check the bytecode

#

for funsies

steel heart
#

ye ye

empty flint
#

who said current time millis was working?

#

this is supposed to work aparently just as expected

#

something is messing with it

steel heart
#
  void testSystemMillis();
    descriptor: ()V
    flags: (0x0000)
    Code:
      stack=4, locals=5, args_size=1
         0: invokestatic  #2                  // Method java/lang/System.currentTimeMillis:()J
         3: lstore_1
         4: invokedynamic #3,  0              // InvokeDynamic #0:execute:()Lorg/junit/jupiter/api/function/Executable;
         9: invokestatic  #4                  // Method org/junit/jupiter/api/Assertions.assertDoesNotThrow:(Lorg/junit/jupiter/api/function/Executable;)V
        12: invokestatic  #2                  // Method java/lang/System.currentTimeMillis:()J
        15: lstore_3
        16: lload_1
        17: lload_3
        18: lsub
        19: lconst_0
        20: lcmp
        21: ifle          28
        24: iconst_1
        25: goto          29
        28: iconst_0
        29: invokestatic  #5                  // Method org/junit/jupiter/api/Assertions.assertTrue:(Z)V
        32: return
      LineNumberTable:
        line 7: 0
        line 8: 4
        line 9: 12
        line 10: 16
        line 11: 32
      LocalVariableTable:
        Start  Length  Slot  Name   Signature
            0      33     0  this   LTestSystem;
            4      29     1   now   J
           16      17     3  then   J
      StackMapTable: number_of_entries = 2
        frame_type = 253 /* append */
          offset_delta = 28
          locals = [ long, long ]
        frame_type = 64 /* same_locals_1_stack_item */
          stack = [ int ]
    RuntimeVisibleAnnotations:
      0: #26()
        org.junit.jupiter.api.Test

#

looks alright here lol

#

wtf

#

im confused

empty flint
steel heart
#

0: invokestatic #2 // Method java/lang/System.currentTimeMillis:()J
3: lstore_1
4: invokedynamic #3, 0 // InvokeDynamic #0:execute:()Lorg/junit/jupiter/api/function/Executable;
9: invokestatic #4 // Method org/junit/jupiter/api/Assertions.assertDoesNotThrow:(Lorg/junit/jupiter/api/function/Executable;)V
12: invokestatic #2 // Method java/lang/System.currentTimeMillis:()J
15: lstore_3

#

okay so first we invoke the method System::currentTimeMillis

#

then store it in a variable

empty flint
#

ah, yeah now it makes sense

steel heart
#

yeah yeah

empty flint
#

and lstore_1 iis different from lstore_3

#

did I get that right?

steel heart
#

ye

#

        long now = System.currentTimeMillis();
        Assertions.assertDoesNotThrow(() -> {
            Thread.sleep(5000L);
        });
        long then = System.currentTimeMillis();
        Assertions.assertTrue(now - then > 0L);
#

the actual code

empty flint
#

or is 1 and 3 in this context just the registry?

steel heart
#

idk

#

I am not really a professional bytecode reader

#

but those are variable store instructions

#

sirywell will continue this, thx

potent nest
#

Why would now - then ever be > 0?

gloomy anvil
#

Is @compact perch open source?

steel heart
#

oh wait

half harness
steel heart
#

I tested it wrongly

#

frick

gloomy anvil
#

Ok

steel heart
#

thx ywell

potent nest
#

Youโ€˜re welcome

empty flint
#

Still doesn't explain this:

#

No matter what your test says, that scratch file is bs

steel heart
#
    @Test
    void testInstant() {
        Instant now = Instant.now();
        Assertions.assertDoesNotThrow(() -> Thread.sleep(5_000L));
        Instant then = Instant.now();
        Assertions.assertTrue(then.toEpochMilli()-now.toEpochMilli() > 0);
    }

passed now

#
    @Test
    void testSystemMillis() {
        long now = System.currentTimeMillis();
        Assertions.assertDoesNotThrow(() -> Thread.sleep(5_000L));
        long then = System.currentTimeMillis();
        Assertions.assertTrue(then-now > 0);
    }

    @Test
    void testSystemNanos() {
        long now = System.nanoTime();
        Assertions.assertDoesNotThrow(() -> Thread.sleep(5_000L));
        long then = System.nanoTime();
        Assertions.assertTrue(then-now > 0);
    }

passed also

#

hmm

empty flint
#

but

#

then

#

what is happening on my PC?

steel heart
#

I wonder

rotund egret
#

PC only has 1 working thread

#

Let us rest in peace

empty flint
steel heart
#

lol

#

javap -v qualifiedclassname

#

yes I wrote it in the terminal

#

but it was easiest that way

rotund egret
#

IntelliJ also has a plugin for it

steel heart
#

o

rotund egret
#

Eclipse can do it by default IIRC

steel heart
#

eclipse god mode? O.o

half harness
#

btw

#

this issue doesn't occur in java

#

apparently

#
final long start = System.currentTimeMillis();
Thread.sleep(2000L);
final long end = System.currentTimeMillis();
System.out.println(end - start);
#

i just tested with this code

#

which printed 2008

steel heart
#

print statements ๐Ÿฅฒ

rotund egret
#

The future of debugging

half harness
#

wat

#

whats bad about print

steel heart
#

oh

empty flint
#

Kotlin bad aparently

steel heart
#

well its not automated

empty flint
#

idk what it could be

steel heart
#

like u actually have to look through the prints and check if they printed what u wanted etc

rotund egret
#

Listen, if I trusted my code, I wouldn't need a print statement

steel heart
#

lmao

rotund egret
#
  • your code was wrong and you didn't even know it
#

print statement would've helped ๐Ÿ˜‰

steel heart
#

ye

empty flint
steel heart
#

lmao

empty flint
#

You think I'm joking?

rotund egret
steel heart
#

oh goodness

ocean quartz
#

How about you use measureTimeMilis?

empty flint
#

jk I wrote it so I can log my plugins in json and send the logs in json format to my website via http requests so I can help server owners debug problems without having to tell them that I need the whole frickin log file and not just the exception...

empty flint
ocean quartz
#

Interesting, same for nano?

ocean quartz
#

Didn't get the problem from the beginning but from reading a bit isn't it right?

empty flint
#

You tell me if that's right

ocean quartz
#

I was talking about measureNanoTime

empty flint
#

oh lmao

#

hold on

#

ah nope, still happens

#

frick

ocean quartz
#

Works too

empty flint
#

duuuude

#

wtf

#

that has to be some copiler fuckery

potent nest
#

Pretty sure the scratch stuff is just executed differently

ocean quartz
#

^

#

That's why it will work with measureTime but not the normal way

empty flint
#

It's like the double slit experiment. If I measure where the time goes, it computes correctly. If I don't measure it doesn't

ocean quartz
#

Schrodinger's function

empty flint
#

Schrรถdinger's Scratch

rotund egret
#

Kind of except in the double slit experiment both are correct results ๐Ÿ‘€

empty flint
#

and when you do measure, it does behave

rotund egret
#

More along the lines of an edge-case bug than a truth of time.

#

Double slit defines 2 truths, this is simply a mishap

empty flint
#

Maybe

#

Anyway, good night guys

steel heart
#

sleep tight ๐Ÿ˜„

obtuse gale
#

Stay Tuned

steel heart
ocean quartz
#

๐Ÿ‘€

half harness
obtuse gale
#

god what the fuck is this shit

sweet cipher
#

Lol

obtuse gale
#

B.A.A.S - Too many caps!
No need to shout.
Barry's Anti Abuse System | v1.4.6

sweet cipher
#

That error message

#

Whatโ€™s the link to the terrible plugin?

#

Nvm found it

half harness
#

oh no lol

forest pecan
#

Slimjar should be able to read the dependencies block and download the necessary dependencies at runtime right?

#

and the only thing I need to run is ApplicationBuilder.appending("MyApplicationName").build()

half harness
#

as long as you use slim and shade slimjar yes

ocean quartz
#

Yeah it gathers all slim dependencies at compile time

obtuse gale
forest pecan
half harness
#

not block

forest pecan
#

oh nvm

half harness
#

u replace implementation with slim

forest pecan
#

i see

#

i gotchu

#

also slimjar supports 7.0.0 shadow

#

right

obtuse gale
#

yes

forest pecan
#

kk cool

ocean quartz
#

Hopefully can release a new version soon with my performance PR ๐Ÿ˜Œ

ocean quartz
#

My IJ is dying, send help

forest pecan
#

how did you get the nyan cat at the bottom

onyx loom
#

๐Ÿฅด

forest pecan
#

i want that