#dev-general

1 messages · Page 404 of 1

forest pecan
#

USA

#

what do you think

#

lmao

oak raft
#

Meh

forest pecan
#

he's insane

oak raft
#

He should move North and represent those guys instead fingerguns

forest pecan
#

I'm sry bm, but he def smarter than bm lol

#

not saying bm is dumb tho, he is smartass too

#

but william is smartassass

oak raft
#

No that guy pales in comparison to bm

lunar cypress
#

smartass isn't a compliment lmao

forest pecan
#

well in my case i use it as one

#

lmao

oak raft
#

👉 Bm is here

👉 William is here

#

That’s just the way it goes

forest pecan
#

1v1 in minecraft

oak raft
#

Once I finish chores sure

forest pecan
#

i cant rn tho lol

#

im on my school laptop with shitty mouse

#

need to get on my main

oak raft
#

Oh then just lmk when

forest pecan
#

ok lol

oak raft
#

Wrong chat

half harness
#

traps in bedwars... what should i make the bed radius?

prisma wave
oak raft
#

I’m glad you have common sense bm

#

Although I expected nothing less

prisma wave
#

thanks

quiet depot
#

fun fact

onyx loom
#

he uses light theme everyone is better than him

quiet depot
#

til the founder & project lead of graalvm is the original maintainer of a popular jep 159 implementation known as dcevm

#

honestly makes sense

onyx loom
#

dcevm being that thing u use for hotswapping iirc?

quiet depot
#

yes

onyx loom
#

nice

jovial warren
#

wait what

#

I got none of that lol

quiet depot
#

yeah might've worded it weirdly

#

jep 159 was made yonks ago, and it was implemented by a fella in a project called dcevm

#

that fella also happens to be the founder of graalvm

jovial warren
#

o

#

man, why are all of these JEPs so old

#

Oracle really needs to get their shit together

#

all JEPs I've seen so far have been like 2011/12 time

quiet depot
#

oracle doesn't manage that

#

openjdk does

jovial warren
#

ah

forest pecan
#

dcevm doesnt work for some reason for me

#

like the binaries i downloaded

#

the zips

#

they are corrupted zips

#

and idk why

quiet depot
#

what zip software do you use

forest pecan
#

b1

quiet depot
#

try 7zip

onyx loom
#

dahek is b1

#

all i know is 7z and winrar lol

quiet depot
#

never heard of it

forest pecan
#

b1 never errored for me

#

winrar is paid sadly

stuck harbor
#

lol no

onyx loom
#

no

quiet depot
#

winrar is infinite trial

forest pecan
#

it isn't?

stuck harbor
#

nobody buys winrar

jovial warren
stuck harbor
#

infinite free trial

quiet depot
#

I highly recommend 7zip over winrar though

jovial warren
#

since when could Discord servers get full?

onyx loom
#

7z fast boi

stuck harbor
#

anyway I also use 7zip

stuck harbor
jovial warren
#

apparently they're capped at 700k members

quiet depot
#

that's a given cap

#

the normal cap is like 100k

#

then you have to apply for a higher cap ig

#

I think

jovial warren
#

I mean, this is the Minecraft Discord lol

onyx loom
#

what server is that anyway

#

oh

quiet depot
#

cuz I remember trying to join a server a while back with 100k and it said it was full

#

@forest pecan what distro do you use?

#

oh wait this is windows aswell

forest pecan
#

windows

prisma wave
#

i use arch windows btw

lunar cypress
#

MS-DOS btw

serene cave
#

Hello

static zealot
#

Nooooo

prisma wave
#

hi trump

serene cave
#

hi void brister(mitten);

#

I have extermined @Joe Biden

static zealot
#

ok

serene cave
#

that is why he isn't here anymore

prisma wave
#

that's a shame

static zealot
#

I have exterminated Joe Mama

serene cave
#

sorry i dont understand

#

you have have green 4head

prisma wave
#

you have have

serene cave
#

you've'nt've'nt

prisma wave
#

thanks

ocean quartz
#

@obtuse gale Does LP have a different jar for every platform or is it one that works on all?
Also is it a different jar for bungee/velocity as well?

hot hull
#

seperate jar I believe

ocean quartz
#

Ah okay, that sounds easier to do

obtuse gale
#

Tbh the "platform jars" is just to load the plugin at the end of the day and a ways to hook with the platform permission system

#

Like 95% of the work of the entire project goes in the common module

hot hull
#

@old wyvern Just remembered to fix perlin, gimme a few hours to figure it out

ocean quartz
#

Yeah
Also how does the API handle events? It has its own system right?

obtuse gale
#

Yeah it has its own event bus, and the actual event implementations (from the API interfaces) are generated with bytebuddy lmfao

#

Which makes sense, it's like double the work otherwise

old wyvern
#

witchcraft

ocean quartz
#

Ooh interesting
My first thought was to have api-bukkit, api-sponge but that sounds fucking horrible

obtuse gale
#

Nah it uses its own bus

ocean quartz
#

I think I'll add support to multiple platforms
Might be easier to handle paper's hardfork later on

ocean quartz
#

Actually can't really do that because it depends on PAPI lmao
Maybe when PAPI3 is ready

hot hull
#

So in the year never

onyx loom
#

☹️

old wyvern
#

Plugineer

hot hull
#

Yugi, gonna start on it now :kek:

#

How to quickly procrastinate an hour

#

This can't be healthy

half harness
#

is that obfuscated?

static zealot
#

I mean that's not really good obfuscation if it is

prisma wave
#

does javac write to stdout or stderr if there are compilation errors

stuck harbor
#

when i say this instead of read-eval-print loop

#

smurt

#

anyhoo

hot hull
half harness
#

o

#

amnisujdhknsad at this point i'd wish intellij to automatically invalidate caches on close

#

it keeps giving bunch of errors

stuck harbor
unkempt tangle
hot hull
#

And it doesn't even work, so I'm not sure what I'm doing wrong

unkempt tangle
#

This is how I come by on this channel

stuck harbor
#
(require
 (prefix-in sdl2: sdl2/pretty))

(sdl2:set-main-ready!)
(sdl2:init! '(video))
(define window (sdl2:create-window! "Hello, World!" 0 0 600 400 '()))
(define surface (sdl2:get-window-surface window))
(sdl2:fill-rect! surface
                 #f
                 (sdl2:map-rgb
                  (sdl2:surface-format surface)
                  0 128 255))
(sdl2:update-window-surface! window)
(sdl2:delay! 3000)
(sdl2:quit!)
#

did someone call for sdl?

prisma wave
#

Is that scheme opengl

stuck harbor
#

its racket sdl2

prisma wave
#

ffs

stuck harbor
#

sdl is based on opengl

#

hehe

#

bm are u annoy?

prisma wave
#

I mean

#

no

#

But you should try a REAL functional language

stuck harbor
#

like what, hm?

#

f#?

#

e?

prisma wave
#

sure

half harness
#
        val bedData = game.data.beds.firstOrNull { d ->
            team = d.team
            d.team == teamOfPlayer
        }
```will this work?
obtuse gale
#

no

half harness
#

ok

prisma wave
#

what

#

what is that 2nd line for

half harness
#

to set the team

stuck harbor
#

but

half harness
#

oh

stuck harbor
#

u used two =

half harness
#

nvm

obtuse gale
prisma wave
#

Are you suggesting that team is a mutable variable

half harness
#

lol

half harness
#

lol

prisma wave
#

🤬 🤬 🤬

#

🤬 🤬 🤬 🤬

#

🤬 🤬 🤬 🤬

half harness
#

y u so mad

prisma wave
#

🤬 🤬 🤬 🤬 🤬

obtuse gale
#

\🤬

half harness
#

\🤔 \🤔 \🤔 \🤔

obtuse gale
#

🤬🤬🤬🤬🤬

half harness
#

\❓ \❓ \❓

prisma wave
#

I will NOT stand for this

half harness
#

what?

#

ive never seen u so mad before

prisma wave
#

mutable variables bad

#

That much is obvious

#

But then you SMEAR the beautiful FP extensions with MUTABLE variables

half harness
#

uh

#

😳

stuck harbor
#

smeer

oak raft
prisma wave
#

ACCURATE

oak raft
#

ikr!

prisma wave
#

nooooooooooooooooooooooooooooooooooooooooooo

#

i need STUPID build tool again

#

cant i just run a single file EASY

half harness
#

what is better:

#

displayName
displayname

prisma wave
#

the first one

half harness
#

thx

frail glade
#

Uh oh

oak raft
#

since when

static zealot
#

PAPI breaks the bugs?

#

hmm

#

that's not really a bad thing now is it?

half harness
#

:o

frail glade
prisma wave
#

where does it get the words from

static zealot
#

is this some sort of bot? xD

#

bcz I don't expect a person to be this smart

half harness
#

Spigot Drama Generator

hot hull
#

It's a bot yes

half harness
#

wait

#

what is this

#

Spigot Drama Generator

static zealot
half harness
#

oh

frail glade
#

Yeah it's a bit

#

Bot

prisma wave
#

surely it doesn't mean that Krypton

static zealot
half harness
#

bingo

frail glade
hot hull
#

What's Crosstitch

frail glade
hot hull
#

lmao

half harness
#

"[people] joins governments around to world to ruin [things]"

static zealot
half harness
#

shh dont tell admins

static zealot
#

he'll never be able to tell

#

also It will be super easy to move from dmenus to blitzmenus

lunar cypress
#

Wtf is that bot

half harness
static zealot
#

who added krypton there tho?

half harness
#

check the PRs

static zealot
#

I actually did

#

but I ain't got time to go thru all of them lmao

prisma wave
#

might mean a different krypton

#

the blame was 5 months ago

half harness
static zealot
# half harness AHA

yeah but that didn't add krypton. I'm just trying to figure out if BBG sneaked the word in there or not xD

#

but he did not PR. Well at least I think he did not

static zealot
#

ah

half harness
#

lol

static zealot
#

maybe they meant the Krypton AntiCheat? xD

half harness
#

🤷

static zealot
half harness
#

wat

stuck harbor
#

always PaprLib.suggestPaper()

static zealot
#

bugs are now called "easter eggs" huh? xD

#

@pallid gale can we get a =drama command like we did =dadjoke?

half harness
#

d;spigot player#sendtitle

ruby craterBOT
#
void sendTitle(@Nullable String title, @Nullable String subtitle, int fadeIn, int stay, int fadeOut)```
Description:

Sends a title and a subtitle message to the player. If either of these values are null, they will not be sent and the display will remain unchanged. If they are empty strings, the display will be updated as such. If the strings contain a new line, only the first line will be sent. All timings values may take a value of -1 to indicate that they will use the last value sent (or the defaults if no title has been displayed).

Parameters:

fadeOut - time in ticks for titles to fade out. Defaults to 20.
fadeIn - time in ticks for titles to fade in. Defaults to 10.
subtitle - Subtitle text
title - Title text
stay - time in ticks for titles to stay. Defaults to 70.

half harness
#

it's been deprecated since 1.8

#

any other alternative?

stuck harbor
#

huh

obtuse gale
#

"API behavior subject to change"

stuck harbor
#

huh

frail glade
#

I mean there's newer title stuff on newer versions of the game.

static zealot
half harness
#

the issue is

#

that this:

#

d;spigot org.bukkit.entity.Player#sendTitle

ruby craterBOT
#
void sendTitle(@Nullable String title, @Nullable String subtitle, int fadeIn, int stay, int fadeOut)```
Description:

Sends a title and a subtitle message to the player. If either of these values are null, they will not be sent and the display will remain unchanged. If they are empty strings, the display will be updated as such. If the strings contain a new line, only the first line will be sent. All timings values may take a value of -1 to indicate that they will use the last value sent (or the defaults if no title has been displayed).

Parameters:

fadeOut - time in ticks for titles to fade out. Defaults to 20.
fadeIn - time in ticks for titles to fade in. Defaults to 10.
subtitle - Subtitle text
title - Title text
stay - time in ticks for titles to stay. Defaults to 70.

half harness
#

doesn't exist

#

in 1.8

#

only the deprecated method

stuck harbor
#

hehe

frail glade
#

I mean it exists in 1.8 but you don't have fade in and fade out

static zealot
half harness
obtuse gale
#

it's not really deprecated because it doesn't work, it just says "API subject to change"

half harness
obtuse gale
#

packets

frail glade
#

Who cares if it's deprecated

static zealot
half harness
static zealot
#

I know.

half harness
#

lol

#

🤷

half harness
static zealot
#

someone can suggest a movie on netflix?

half harness
#

how long does the title show?

frail glade
#

Okay, it's deprecated, are you developing on 1.8 or 1.16

static zealot
#

be like clip. suppress deprecated warnings.

frail glade
#

Then just use the method. It's not deprecated in 1.8

#

Or at least it shouldn't be

half harness
#

d;1.8.8 player#sendtitle

ruby craterBOT
#
@Deprecated
void sendTitle(String title, String subtitle)```
Description:

Deprecated. API subject to change

Parameters:

subtitle - Subtitle text
title - Title text

half harness
#

ig ill use packets

#

wait

#

protocollib supports sending packets too

#

right?

static zealot
obtuse gale
half harness
#

i am rn

static zealot
#

reading the docs is for pussies

half harness
#

;-;

half harness
#

wait a minute

unkempt tangle
#

@lucid muskpai

static zealot
#

lmaoo

#

poor Sen

half harness
jovial warren
#

link me to that lol

static zealot
jovial warren
#

how did Krypton get on there lol

prisma wave
#

you did not change the name 5 months ago

#

so it must mean something else

jovial warren
#

true

jovial warren
#

what you trying to do?

half harness
#

oooo

jovial warren
#

(I made this packet for Krypton so ik what I'm doing lol)

half harness
jovial warren
#

Chat = Component

half harness
#

also using protocollib

#

ive got this so far:

jovial warren
#

you sure that packet existed back then?

half harness
#

uh

#

ill check

jovial warren
#

I'll check for you

half harness
#

lol ok

jovial warren
#

Protocol v47

#

here we go

half harness
#

yea

#

it exists

jovial warren
half harness
#

lol

jovial warren
#

right, show me what the ProtocolLib packet takes

half harness
#

wdym

#

this is all i have so far lol

jovial warren
#

like what parameters

#

oh yeah, of course

#

right, write the action ID first

half harness
#

then idk what to do

#

for 0-2

jovial warren
#

if you want to set the title, send a 0, then send a JSON component in text

half harness
#

uhh how can I do that?

jovial warren
#

field index shouldd be 0, no?

#

you can do JSON components easily with Adventure

half harness
#

iirc it was 1, but its been a while so idk

jovial warren
#

GsonComponentSerializer.gson().serialize(Component)

half harness
hallow crane
#

adventure

half harness
#

i have adventure

hallow crane
half harness
#

its not a class

hallow crane
jovial warren
#
implementation 'net.kyori:adventure-api:4.7.0'
implementation 'net.kyori:adventure-text-serializer-gson:4.7.0'
half harness
#

thx

jovial warren
#

yw

hallow crane
#

yw

half harness
#

epic

jovial warren
#

ah you use that syntax

#

it's not json you mug

#

it's gson

half harness
#

AAAA

jovial warren
#

since it uses Gson for doing JSON serialisation

half harness
#

noo bardy dont leave mee

#

🥺

hallow crane
half harness
#

o

#

even in 1.8?

jovial warren
#

I'm not leaving you

prisma wave
#

Exception in thread "main" java.lang.UnsatisfiedLinkError: 'java.lang.String Library.runHS()'

#

back to square one 😦

jovial warren
#

also, action bar can't be set with Title in 1.8 apparently

hallow crane
jovial warren
#

I could probably put bets on you having to use Chat on 1.8

half harness
#

uh

half harness
jovial warren
#

knew it

hallow crane
#

@jovial warren can you help me w something rq

jovial warren
prisma wave
#

oh ffs

#

typo

jovial warren
half harness
half harness
hallow crane
#

I need you to download my plugin, decompile, and look at the plugin.yml and send me a screenshot

#

What's your spigotmc acc?

#

I have to add you as a buyer

jovial warren
jovial warren
half harness
#

so many dependencies lol

jovial warren
ocean quartz
jovial warren
#

I don't have perms to view this page apparently

hallow crane
#

reloaid

#

make sure you're logged in

jovial warren
#

I am logged in

#

what kind of mug do you take me for

hallow crane
#

lol

#

so download and show plugin.yml pls

jovial warren
#

still erroring

hallow crane
#

???

#

spigotmc is a shitty platform

#

buggy

jovial warren
#

dis why hopefully Hangar will become on top

hallow crane
#

ye

jovial warren
hallow crane
#

bro

half harness
#

what is adventure source code github?

hallow crane
hallow crane
ocean quartz
#

It's in the docs lol

jovial warren
#

redacted that took you enough tries dkim

hallow crane
#

editado

jovial warren
#

it's Spanish lol

half harness
jovial warren
#

don't ask

prisma wave
#

did someone say discord ToS?

hallow crane
#

LOL

#

breaking tos

half harness
#

LOL

#

breaking tos

#

smh

jovial warren
#

nah idk what you mean

prisma wave
#

Staff logs pls

hallow crane
jovial warren
#

you really gonna report me now?

ocean quartz
#

Also, dkim sending a message on Kyori's discord and deleting it right after, classic

hallow crane
#

lmfao nah

hallow crane
#

can you download it now @jovial warren

jovial warren
#

there we go

hallow crane
#

download and show plugin.yml

#

decompile

jovial warren
#

lemme extract

hallow crane
#

jdgui?

#

luyten?

jovial warren
#

version: @version@ lel

hallow crane
#

See thats the problem

ocean quartz
#

Why would you need to decompile? You can just open it with winrar lol

hallow crane
#

It's not @version@ when I download it

#

wtf spigotmc

#

you shitty thing

jovial warren
#
processResources {
    filter ReplaceTokens, tokens: ["version": project.version]
}
hallow crane
#

Yes

#

I have that

#

I've never ever removed it

#

my jar is 100% fine

#

why is spigotmc fucking it up

jovial warren
#

jesus this is actually a decent sized project

hallow crane
#

yes ik

jovial warren
#

almost as big as Krypton

hallow crane
#

thats why im selling it

jovial warren
#

actually no, no where near as big as Krypton

hallow crane
#

Can anybody help me??

#

It is 100% fine on my end

#

But not on anybody elses

jovial warren
#

upload that JAR exactly?

hallow crane
#

Yes

jovial warren
#

maybe you uploaded a fucked up JAR or something

hallow crane
#

That jar is FRESHLY downlaoded from spigot

jovial warren
#

oh wait what

half harness
hallow crane
#

It's generated

half harness
#

iirc

hallow crane
#

I've cleared cache, I've tried on 3 different devices

jovial warren
half harness
#

y?

frail glade
#

Has anyone else tried downloading it? Does it work fine for them?

hallow crane
#

my phone, my laptop my desktop all of them have the Jar fine

#

Two of my buyers had the same issue

hallow crane
#

the @version@

jovial warren
#

because it's so much easier to just have authors for the author(s) of the software

hallow crane
#

I even tried it on my phone on my data without wifi

#

To see if it was a caching thing

frail glade
#

Buyers? Isn't the plugin free?

hallow crane
#

It's got to be SpigotMc...

jovial warren
hallow crane
#

The plugin is not free, but it is opensource forever

frail glade
#

Ahh

jovial warren
hallow crane
#

Aka spigotmc

ocean quartz
#

Spigot alters the jar on download to replace placeholders

hallow crane
#

It's got to be a regional cache or something

jovial warren
#

could be Cloudflare's data centres out of sync

#

since I'm in the UK

hallow crane
#

Yeah it might be

#

but one of my buyers is in east coast USA, same as me

jovial warren
#

lemme connect to my VPN lol

frail glade
#

That is true, code is injected in the jar on download.

jovial warren
#

tell me where abouts in the US you live

#

so I can VPN over there

frail glade
#

But it isn't injected when you download it.

hallow crane
#

......

frail glade
#

Only when buyers download it.

hallow crane
#

so it's fucking it up

#

There isn't any token though... it's just 2.0.14-SNAPSHOT or whatever

jovial warren
#

lemme try

#

where abouts in the US are you yako?

hallow crane
#

And it must be replacing it with @version@

frail glade
#

I've never heard of the injection breaking it though

hallow crane
#

East coast @jovial warren

frail glade
#

Though I've never used a plugin to generate my plugin.yml

ocean quartz
#

No idea why that'd mess up though, when I made a jar injector before I would ignore anything that wasn't .class

jovial warren
#

I literally have 21 locations in US east coast lol

hallow crane
#

I am pretty sure that the uploaded jar has never had @version@ in it, it's always been replaced by my compiler.

jovial warren
#

I'm gonna need a little bit more than that

hallow crane
#

And the version of the jar uploaded is the same (featurewise) as the one the buyers downloaded

#

Uhh @jovial warren northern east coast

jovial warren
#

gimme a city you're near

frail glade
#

You could just try hard setting it in the plugin.yml

jovial warren
#

I don't know my US geography

hallow crane
#

Alright I'll do that as a test

#

Well here's the thing

frail glade
#

Although I will add I've never had a problem with that in VoteParty but I don't use a plugin to generate my plugin.yml

hallow crane
#

I freshly downloaded the jar

#

from spigotmc

#

and it has 2.0.14-SNAPSHOT right? no @version@

#

meaning it has to be caching thing

#

not the version

#

no the plugin.yml being wrong

frail glade
#

If it is from the injector somehow, the injector doesn't trigger for your own resource.

hallow crane
#

Idk how to fix it tho

frail glade
#

You don't really have control over it. Try manually setting it in the plugin.yml.

hallow crane
#

There's nothing to manually set...the jar that I uploaded 100% had 2.0.14-SNAPSHOT in the plugin.yml

frail glade
#

That'll tell you if it's the injector / your Gradle plugin compiling the plugin.ym.

jovial warren
#

doesn't Spigot inject a DRM for premium stuff or some shit?

hallow crane
#

Before I uploaded, I decompiled

#

and chceked

frail glade
#

It does.

jovial warren
#

where can you find it?

#

just out of curiosity

hallow crane
#

I just downloaded it too, and the version key says 2.0.14-SNAPSHOT that means it's not possible to be my compiler

frail glade
#

In the main class

hallow crane
#

@jovial warren can you send me your jar

#

through dms

#

that you downloaded

frail glade
#

Yeah even if you don't plan to have DRM type stuff, Spigot still modified your main class and adds it.

hallow crane
#

Yeah..I didn't plan on DRM

#

I just want to see what they're adding

#

I think it's evil

frail glade
#

It doesn't really do anything either

ocean quartz
#

Imagine having an option to disable it

hallow crane
#

I still don't want SpigotMC modifying my files that I didn't explicitly say I wanted to

#

Hangar might have that option

ocean quartz
#

Hangar won't need it

hallow crane
#

free only?

frail glade
#

Hangar won't have premium resources so that won't be a problem.

ocean quartz
#

There won't be premium plugins

hallow crane
#

Ah

frail glade
#

You have no control over spigot injecting it in

jovial warren
#
private static /* bridge */ /* synthetic */ void loadConfig0() {
        try {
            URLConnection con = new URL("https://api.spigotmc.org/legacy/premium.php?user_id=333751&resource_id=90781&nonce=-1460453315").openConnection();
            con.setConnectTimeout(1000);
            con.setReadTimeout(1000);
            ((HttpURLConnection)con).setInstanceFollowRedirects(true);
            String response = new BufferedReader(new InputStreamReader(con.getInputStream())).readLine();
            if ("false".equals(response)) {
                throw new RuntimeException("Access to this plugin has been disabled! Please contact the author!");
            }
        }
        catch (IOException iOException) {
            // empty catch block
        }
    }
```wow
frail glade
#

You can also tell by the headers of the jar when you download if it's hitting the CF cache or not.

jovial warren
#

just there will be an open-source requirement

frail glade
#

The function doesn't even do anything. I'm pretty sure that url never returns false.

jovial warren
#

lemme try curling it

ocean quartz
#

Where did you hear that?

frail glade
#

I added a class in my project for shits and giggles to track nconce and ids but it doesn't do anything.

jovial warren
#

MiniDigger

hallow crane
#

Can you send me the jar @jovial warren I want to inspect it

ocean quartz
#

I remember Electronicboy saying that they didn't want to have it because of some responsibility or something like that

hallow crane
#

md_5 says that Spigot isn't injecting anything in the plugin.yml

frail glade
#

It doesn't touch the plugin.yml

hallow crane
#

That's what he told me

#

that means it must be a caching problem

jovial warren
ocean quartz
#

Ah that's very recent

frail glade
#

That's not pay to download. That's pay to support

#

Quite different

prisma wave
#

FINALLY

jovial warren
#

yeah

#

still kinda premium though Glare

prisma wave
ocean quartz
#

Lovely

jovial warren
#

okay how did you manage to send message

#

how

prisma wave
#

i added a random clash of code solution to make haskell the main language lmao

prisma wave
jovial warren
#

how did you manage to call Java from C

prisma wave
#

oh i havent got that far yet

#

but it's not too hard

#

just verbose

#

but i mean

#

C

jovial warren
#

also, using the one true brace style I see

#

2 space indent though 🤢

prisma wave
#

yeah i couldnt be bothered to configure vsc

#

using default settings

hallow crane
#

md is just straight up ignoring me at this point

prisma wave
hallow crane
#

The problem's on his end but he denies it

prisma wave
#

it's 4 spaces in java lol

jovial warren
hallow crane
#

yes

prisma wave
#
parseInput :: String -> [Int]
parseInput i = parts $ words i
  where
    parts [fst, p, snd] = [read fst, read snd]
    parts _ = []
``` ez lexer implementation
#

lexes stuff like "34 + 128"

#

into [34, 128]

#

cute

#
case res of
    [a, b] -> return $ show $ a + b
    _ -> return "Invalid input"
``` and then a parser & evaluator
#

simple

half harness
#

um how do i get an instance of Audience? (from a player)

oak raft
#

Is that bm with the certified biggest shlong in the world? 😮

prisma wave
#

it is yes

#

that's me

prisma wave
half harness
#

thx

#

uh

#

do i need an extra dependency?

#

since thats not a class

prisma wave
#

adventure-platform-bukkit if you dont already have that

half harness
#

i have like 10 adventure dependencies now :p

half harness
prisma wave
#

4.0.0-SNAPSHOT apparently

half harness
#

dark readier died

prisma wave
#

yeah lol

half harness
#

oh its not in maven central

#

interesting

prisma wave
#

¯_(ツ)_/¯

obtuse gale
#

it's a snapshot

prisma wave
#

oh btw i thought of an actually good example of when return is useful

obtuse gale
#

central is for releases

#

sonatype is for snapshots

prisma wave
#
main :: IO ()
main = do
  input <- getLine
  if input == "password"
  then putStrLn "welcome"
  else return ()

kinda adjusted to simplify, but something like this

half harness
#

but

#

why not ```hs
main = do
input <- getLine
if input == "password"
then putStrLn "welcome"

prisma wave
#

because ifs need an else branch

half harness
#

oof

#

😮

prisma wave
#

they're expressions not statements remember

lunar cypress
#

In Clojure they don't need an else branch 🙂

prisma wave
#

🙄

#

isn't the else branch just nil

#

if you don't provide one

cinder flare
#

Wait they have to have an else branch?

prisma wave
#

yes

cinder flare
#

Why?

prisma wave
#

because they're expressions

#
let blah = if 3 == 4 then "uhhh"
``` what is blah if the condition isn't true?
#

there's no null

#

it shouldnt throw an exception

cinder flare
#

There's no null? Huh

prisma wave
#

nope

#

so you have to provide an else branch

half harness
#

🤢

prisma wave
#

excuse me

onyx loom
#

lol

jovial warren
#

okay Gradle 7 is actually confusing me

prisma wave
#

what did you just say

half harness
#

:nauseated_face:

jovial warren
prisma wave
surreal quarry
#

just invoke the function 3head

prisma wave
#

9head

surreal quarry
#

3^2 head

ocean quartz
jovial warren
prisma wave
#

maven() maybe?

#

thats what the error suggests at least

ocean quartz
#

Ah yeah i forgot about your weird plugin area

jovial warren
lunar cypress
#

What is the maven plugin

#

isn't that the deprecated one

jovial warren
#

can't even remember

#

yeah I think it is

prisma wave
#

i believe it is

ocean quartz
lunar cypress
#

Then gradle 7.0 might have removed it?

jovial warren
#

likely yeeted in Gradle 7

#

yep, that did it

lunar cypress
#

you should switch to maven-publish anyway

jovial warren
#

can someone remind me how I update gradle please?

jovial warren
#

I'm using maven-publish anyway

#

something server-side needed it iirc

obtuse gale
#

./gradlew wrapper --gradle-version 7.0

prisma wave
#

stack upgrade

brave wharf
#

Hello! I have a quick question.

obtuse gale
#

ok

prisma wave
#

ok

lunar cypress
#

ok

prisma wave
#

lol

jovial warren
#

I've already done that

#

I want to upgrade the one from PATH

#

actually I can just use chocolatey for that I think

brave wharf
prisma wave
#

ok

#

ah

#

your website would need some way of connecting to the server and fetching data from it

brave wharf
#

Oh

#

I have no clue how to do that 🤦‍♂️

#

Is there anywhere that i can learn so i can accomplish this

#

Because i'm determined to learn and set it up.

jovial warren
#

may or may not have fucked my Gradle install and may need to reinstall it lol

#

Chocolatey is such a great package manager

#

winget sucks ass

#

and that has once again reminded me I really need to go back to Arch

prisma wave
brave wharf
prisma wave
#

what lang?

brave wharf
#

js

#

not anywhere near a pro tho

prisma wave
#

hmm

jovial warren
#
public interface MySiteService {

    @GET("/{whatever}")
    Call<SomeResponse> getSomeStuff();
}
```ez
#

BM why is that a rolling eyes

#

Retrofit is amazing

prisma wave
#

because it's irrelevant

jovial warren
#

oh yes, it is

timber oak
#

I know I should never call the main class for Main but can someone quickly explain why?

ocean quartz
prisma wave
#

🤢

jovial warren
compact perchBOT
prisma wave
#

wait

#

no

#

lmao

jovial warren
#

that looks like property-based DI lol

brave wharf
#

😕

#

Confused ash 😂

jovial warren
#

wait there's no way that any faq that's not something in the list turns into a BM wiki link

#

=faq list

compact perchBOT
#
Available FAQ Answers:

add-to-dd, arrow-code, autosellapi, base64-value, best-vps-deal, bug-with-dd, challenges, checkitem, codeblocks, colors, dc-fuuid, dependency-injection, di, dictionary, discorddev, dm-1.10.5, dm-builds, dm-external, dm-filler, dm-glow, dm-heads, dm-requirements, dm-update, docs, download-ram, dry, ecloudblock, enchant-format, enchants, entities, flags, help, hidden-roles, hosting, hosting-free, hosting-paid, imgur, item-data, javadocs, jdk, js-factionname, js-tag, json, learn-java, luckperms, main, materials, mf, nojquery, notowner, optimize, papi-builds, papibot, particles, paste, placeholders, player, pls-no, plsnoarrowcode, plsnolombok, roleperks, site, solid, sounds, spigot, spigotid, startuplog, tagess, tryandsee, welcome-screen, wiki, xy, yaml

jovial warren
#

?mf bad

ocean quartz
timber oak
#

Btw Matt

#

Can you explain this?

ocean quartz
#

One example, I've seen people complain that their main doesn't work, they had imported the wrong main

jovial warren
timber oak
#
Malicious users may attempt to steal your information from docs.docdex.helpch.at (such as passwords, messages, or credit cards). Get more information
NET :: ERR_CERT_DATE_INVALID
Enable enhanced protection to get Chrome's highest level of security```
jovial warren
#

sounds like Piggy's problem

#

maybe it doesn't support HTTPS?

timber oak
#

I got referred to it by the bot

jovial warren
#

actually no

#

maybe it's expired

timber oak
ocean quartz
jovial warren
#

HAHAHAHA

timber oak
#

I can't dm though and I don't think he'll see this

#

or she idk

jovial warren
#

his certificate expired today at 07:27:24 GMT

#

RIP

#

time to get a new one

timber oak
#

?

ocean quartz
#

I'll message him

jovial warren
#

@quiet depot your SSL certificate's expired matey

ocean quartz
#

Nvm lol

timber oak
#

Ahhh, that explains it

#

I can still force it to go to the site

#

but kinda weird

prisma wave
# brave wharf Confused ash 😂

the easiest way i can think of doing this is having a plugin that provides the leaderboard data with something like a REST API. then your website can query that and render it in a pretty fashion

jovial warren
#

come on though, you get 3 months and a bunch of warnings by email saying it's going to expire soon

brave wharf
timber oak
jovial warren
#

there is no excuse

jovial warren
brave wharf
#

I thought i could do it with PlaceHolderAPI.

jovial warren
#

click the padlock on the top left

#

more info

prisma wave
brave wharf
prisma wave
#

pretty much

brave wharf
#

Is there a plugin out there that does that?

prisma wave
#

idk

brave wharf
#

Alright, thank you! 😄

half harness
#

wait what

sweet cipher
#

What you don’t want to give access to your server console?

half harness
#

im assuming they accidentally put 'ftp' at the end of 'console'
which means that they don't want file access but they want console

prisma wave
#

yeah bro ill setup all your plugins with just the server console trust me bro

cinder flare
#

nah they only wget from their server they upload things to

distant sun
#

Maybe they are using a panel such as ptero @half harness

cinder flare
#

no FTP

distant sun
half harness
#

lol my main class is 89 lines long

#

less than 100 😤

#

can't really go less than that

onyx loom
#

u probably can fingerguns

prisma wave
#

what if I told you it could be 1 line

onyx loom
#

foreign export ccall bm

prisma wave
#

Hello

onyx loom
#

hello 😊

prisma wave
#

nice weather today

onyx loom
#

i have not looked outside today.

half harness
prisma wave
#

I'm just guessing

prisma wave
onyx loom
#

thats my weather report pog

#

sounds about right

prisma wave
#

Classic england

onyx loom
#

bro this month been on a madness

#

was 25 degrees like 2 weeks then it went to 0 degress within like 3 days

prisma wave
#

god's on a mad one

#

probably bored

onyx loom
#

must be boring being immortal 🙄

prisma wave
#

he should learn haskell

#

🥰

onyx loom
#

that sounds like a lot of fun!

half harness
#

my bedwars plugin is probably going to be 4k+ lines when its done 😩

prisma wave
#

Oh wait he already knows it because he invented it

#

Simon is god

onyx loom
#

simon... peyton jones... is a god? 😳

half harness
onyx loom
#

🙄

#

intellij bad

half harness
#

ok

onyx loom
#

can hardly do anything native

#

all plugins!

prisma wave
#

have you seen him??

onyx loom
#

ive heard hes absolutely jacked

half harness
#

90% of my lines is code

onyx loom
#

mustve got it from all that haskell coding

prisma wave
#

yeah man

#

pure functions give you abs

prisma wave
#

Are you lazy or something??

half harness
#

cmon

#

only 215 blank lines

#

compared to almost 2k code

#

:)

#

5 comment lines

#

lol

onyx loom
#

mine has 0 🌚

ocean quartz
#

Mine is currently at 1743 lines, 231 comments, 334 blank lines

half harness
#

why so many comments and blanks

#

only 1.7k lines smh /s

ocean quartz
#

Well documented and organized

#

For example, this:

#

If you remove any of the blank lines i go crazy

ocean quartz
#

Because it needs to be organized

pale shell
#

It's fine

#

If it runs its fine

ocean quartz
pale shell
#

Lmao, dug myself into that one

half harness
#

i just have reigsterListeners() {} registerCommands {} etc

#

separate methods for all of it

onyx loom
#

i am the exact same matt

#

no lines between different functionalities is just disgusting

jovial warren
#

right, listen to this

ocean quartz
#

Like:

class MyClass {
                            <-- Obligatory blank space
  fun function() {
  }
                            <-- Obligatory blank space
}
half harness
#

🤢

onyx loom
#

OBLIGATORY

half harness
#

i can't

jovial warren
#

I just downloaded Eclipse as a joke and found something I actually like

pale shell
jovial warren
onyx loom
#

😬

jovial warren
#

second space, no

pale shell
#

Bms code be like

jovial warren
ocean quartz
#

Both are mandatory

pale shell
#

That's eclipse smh

half harness
#
class MyClass {                            <-- Obligatory NOT blank space
  fun function() {
  }                            <-- Obligatory NOT blank space
}
jovial warren
half harness
#

looks ugly with the spaces imo

onyx loom
#

lol thats not bad actually bardy

jovial warren
#
class MyClass {

    fun function() = Unit
}
pale shell
#

I can't go back to eclipse after using intellij

onyx loom
#

i imagine u can do that with a plugin tho

ocean quartz
jovial warren
#

nauseate all you want, my style is objectively superior

half harness
#

🤢 > 🤮

obtuse gale
pale shell
#

Using eclipse is like using a BMW and using intellij is like using a tesla

jovial warren
jovial warren
#

I can't stand not having the space at the top

#

but the space at the bottom is also nasty

jovial warren
#

yes

pale shell
jovial warren
#

there's another to add to the list of people I fooled all this time who didn't know I was autistic

pale shell
# jovial warren yes

I got a bit of autism and ocd too but I question how bad my ocd is most of the time because it goes crazy

#

I can't wait to drive around nurenburg

eternal compass
#

Is anyone here familiar with webstorm?
I'm having an issue,
Basically, I have a web server (coded in NodeJS) in my root project directory, then some html files in a /html dir.
When I reference something client-side, I don't append /html, since the client doesn't know it exists.
Any clue how I can tell WebStorm that, so I can use its autocompletes and not get tons of errors

prisma wave
#

haksell

jovial warren
onyx loom
#

where is ur full stop sir

half harness
jovial warren
#

I just can't really help myself

pale shell
#

You don't codedt kaliber at all why not

pale shell
#

Bm. It's late

half harness
#

go sleep

onyx loom
pale shell
#

Why you up

eternal compass
onyx loom
#

since when is 00:40 late 🥲

prisma wave
#

I am always awake in the hope that someone will ask an interesting question

pale shell
#

I got a interesting question

half harness
#

bm

prisma wave
#

Ok

half harness
#

what if i ask a question and ur sleeping

#

😢

pale shell
#

What's the meaning of life

prisma wave
#

ping me and wait

jovial warren
jovial warren
#

I'm just about to go to bed

prisma wave
half harness
onyx loom
#

odin is getting philosphocial now

prisma wave
jovial warren
half harness
jovial warren
#

anyone who gets that reference gets a +1

ocean quartz
#

Midnight late 🥲

prisma wave
jovial warren
#

The Hitchhiker's Guide to the Galaxy lol

pale shell
#

When you have to hide the true emotions you have. sad_fingerguns

jovial warren
#

anyway, gn you lot

onyx loom
#

weak as always

jovial warren
#

Kaliber I swear

pale shell
#

Gm

onyx loom
#

gn lol

jovial warren
pale shell
#

Imagine sleeping so early

jovial warren
#

gn

prisma wave
#

bonne nuit

eternal compass
pale shell
#

Please do

#

Wouldn't be the first to actually find me

prisma wave
pale shell
#

Hopefully you'd be the first to succeed.

prisma wave
#

main = find Odin

half harness
#

my main class is 1 line

jovial warren
#

Oh btw, you know we're back to school on Monday

half harness
#

0 errors

#

:)

onyx loom
#

wait wat

#

oh yeah u broke up a week before me i think

pale shell
#

You guys know someone from this server tried finding me and getting me killed right?

prisma wave
jovial warren
eternal compass
#

Yes its ugly don't bully me

half harness
pale shell
#

I don't have school anymore reversed_fingerguns

prisma wave
pale shell
#

I left?

#

I'm 21

#

22 in a few days

jovial warren
#

Oh maybe you're in the real world now

half harness
#

whens ur birthday

pale shell
#

FUCK I'M OLD

onyx loom
#

yeah i go back on the 19th bardy

jovial warren
#

Where it just goes from bad to worse

onyx loom
#

suck it!

pale shell
#

How am I not dead yet