#dev-general

1 messages · Page 234 of 1

eternal blade
#

should i use

#

File#pathSeperator?

#

instand of \\

quiet depot
#

that's not what file#separator is for

old wyvern
#

Oh?

quiet depot
#

java will automatically replace your file separators in hardcoded paths

old wyvern
#

I see

quiet depot
#

file.separator is just for getting the file separator of the system, to for example, show to the user

#

you don't need to use it in paths

eternal blade
#

PiggyPiglet
is there a difference in
File#pathSeperator
File#separator

old wyvern
#

Ah

eternal blade
#

or both do the same job?

old wyvern
#

yes there is a diff sagi

quiet depot
#

not sure what the difference is sorry

old wyvern
#

pathSeparator separates multiple paths in a collection

eternal blade
#

soo i sall use File#separator for the hard coded paths

#

thanks

quiet depot
#

no

#

it's useless

old wyvern
#

You dont need to

quiet depot
#

I mean you can but it's useless and ugly

old wyvern
#

Piggy just clarified that

#

My bad for the earlier suggestion

quiet depot
#

just use /

eternal blade
#

Piggy // on the code did the issue in the first place

quiet depot
#

show me the actual path you're using

eternal blade
#

pl.getInvCfg().getConfig("categorys" + "\\" + "settings.yml").getYml()
works on windows
doesnt work on linux

quiet depot
#

is categorys the name of your plugin?

eternal blade
#

no categorys is sub folder

prisma wave
#

and what does getConfig do

eternal blade
#

getConfig is a function that has HashMap of files short path and value of the actual file

prisma wave
#

What I mean to say is

#

Send your code

quiet depot
#

=paste

compact perchBOT
#
HelpChat Paste

Please use a paste service to share configs, errors, code and long logs.
HelpChat Paste

eternal blade
#

1 sec

prisma wave
#

ok

hot hull
#

Howdy fellas, how's AOC going

prisma wave
#

Also consider using / instead of , it looks much nicer imo

prisma wave
#

10 has killed me

quiet depot
#

cba to do it

#

working on docdex

#

docdex is more fun

prisma wave
#

debatable

hot hull
#

I got so much shit to do

prisma wave
#

Same

#

I barely have any time to try, and each task usually takes a few hours

quiet depot
#

my school holidays just started so ig i'll catch up soon

prisma wave
#

Lucky

#

We still have a week

forest pecan
#

10 is a recursive function

#

with a hashmap

prisma wave
#

I was gonna use a tree

hot hull
#

Can we ban this dude, I hate people not having names.

forest pecan
#

wat man

#

whats wrong with no name

#

just call me by my name

prisma wave
#

A tree of each different combination and then just walk down each branch to find the longest branch

hot hull
#

It's annoying as fuck for other people who don't know who you are

quiet depot
#

not banning him, just giving him a nick

forest pecan
#

nooooo 😦

quiet depot
#

I completely agree though, it's just unnecessary

#

extremely annoying for anyone who is trying to have a conversation with you

prisma wave
#

^

quiet depot
#

same with people who put non standard characters in their names

prisma wave
#

Same with those edgy text names, they're just annoying to type / read / ping

#

Anyway, I'm using Julia for day 10. It's pretty nice

obtuse gale
#

lol

forest pecan
onyx loom
prisma wave
#

But that's part of the fun

#

Just doing them all in Kotlin or java is boring

#

This is a good opportunity to struggle for hours and then pretend I know Haskell / C / Julia etc

onyx loom
#

kek

prisma wave
#

For example did you know C arrays don't know their size so unless you know it at compile time you are in trouble

onyx loom
#

what

#

the fuck

obtuse gale
#

I mean the array is just a pointer to somewhere in the stack

steel heart
#

what would be more optional?
cast server to craftserver and get the commandmap or get it via the simplepluginmanager

#

probably 2 but just want to verify

obtuse gale
#

"more optional"?

#

just get it from the SPM

#

it's part of bukkit so no strange dependencies are required

steel heart
#

ok nice u dodo hobobo

#

fkn shit why would you expose it more than once

prisma wave
#

Static arrays are on the stack

obtuse gale
#

Static arrays are int[], "dynamic" is with malloc and you get a pointer back

prisma wave
#

yeah

obtuse gale
#

But yes what you just said is correct

prisma wave
#

So malloc is definitely on the heap

#

Cool

ocean quartz
#

Pointers 😫

obtuse gale
#

But at the end of the day, both are pointers to the first element

ocean quartz
#

You are a pointer

obtuse gale
#

ur mum

onyx loom
#

too far

ocean quartz
#

Woah there

prisma wave
#

Pointers have been easy so far

#

in Go at least

#

In C they're a bit more complicated

ocean quartz
#

Pointers in C are the doom of humanity

prisma wave
#

free(arr);

obtuse gale
#

That's why C strings (and the same goes for C++ std::string) end with a null terminator, because there is no concept of array length

#

You know it ends when it reaches \0

#

If the implementation is any good kekw

ocean quartz
#

I wasn't, body aches all over, tired all the time

#

Getting old

#

Actually It'd be public Fefo implements HelpChat to make Fefo the implementation

steel heart
#

Matt extends Fefo implements SupportElf

#

:]

#

efefury extends BadAndWeak implements Bannable

#

no worries

#

I have the same implementations

ocean quartz
#

=ban efefury

steel heart
#

ez win

#

and?

#

bad

#

you're weak?

obtuse gale
#

HECC no

#

I'm shit

obtuse gale
#

I can be used as HelpChat

#

All of it myself

forest pecan
#

pointers doingmeascare

obtuse gale
#

No

#

I'm making salad

#

Are you?

forest pecan
#

🥗

#

weird flex

#

but ok

steel heart
#

Fefo if you code Among us in Cow language I will give you PulseBeat

forest pecan
obtuse gale
#

Yes

#

Give me The PulseBeat

steel heart
#

and will give you Matt and fefe as well

#

and blitz

#

ye

#

fefe

#

joe mama

forest pecan
#

@steel heart no u

hot hull
#

Nice dogo Conclure

forest pecan
#

i dont think its his doggo kek

#

or his pfp

obtuse gale
#

Hecc no

#

I thought we reached an agreement on that 🙄

forest pecan
#

kekw

#

🥲

obtuse gale
steel heart
#

omg

#

he stole my name

forest pecan
steel heart
#

not cool

forest pecan
#

(c)

#

too bad i did it first

#

@steel heart omg

#

he stole my name

steel heart
#

stfu

forest pecan
steel heart
#

u have the audacity

#

ye

#

true efe

forest pecan
#

Yes

#

i have the program

#

I use it to snip audios

steel heart
#

I mean pulse is epic in math

#

snip u know what that means in swedish right?

forest pecan
#

to kill?

#

lol

steel heart
#

no search snippa

#

in swedish

#

jävel ?

#

idiot or crackhead perhaps

#

dumb piece of shit

#

devil

forest pecan
#

Conclure is lesbisk

steel heart
#

how

#

nope

forest pecan
#

"det är vad hon sa"

#

That is verified

#

on google translate

steel heart
#

omfg

pearl kiln
#

anyone know if EzBlocks is being updated too 1.16 ??

steel heart
#

why lol

forest pecan
#

lol

steel heart
#

EzBlocks probably

forest pecan
#

sure

static zealot
#

Kaliber is working on a rewrite

#

of the plugin

pearl kiln
#

okay

static zealot
#

well at least that's what he keeps saying or the past 2 months xD

#

idk when that will happen

steel heart
#

@onyx loom

#

2021?

pearl kiln
#

lol itll be done by 2025 😛

onyx loom
#

kekw

pearl kiln
#

hell still be 2 lines in 😛

onyx loom
#

dont worry about it 🙂

pearl kiln
#

haha

#

kaliber saying "Dont worry about it 🙂 "

#

someone ask about a bug fix that will be his response

steel heart
#

WHY TF doesnt JAVA HAVE UNIT

#

FFS

prisma wave
#

return Unit.INSTANCE; 🙂

old wyvern
#

Void

steel heart
#

nah not the same

old wyvern
#

Thats the closest Java would have

distant sun
#

^

steel heart
#

sadly only the closest

prisma wave
#

Void isn't instantiable though

obtuse gale
#

just pass Object cct

prisma wave
#

Unit isn't even actually returned most of the time

#

actually it's not returned at all

#

It's just syntax sugar

steel heart
#

its quite epic though

#

imagine Unit + ternary

prisma wave
#

???

#

Ternary?

steel heart
#

boolean ? true : false

#

^ ternary

#

so you just return conclure.isCool() ? Unit -> () : conclure.setCool();

#

or smtng

prisma wave
#

that isn't how unit works though

steel heart
#

aww

#

but still

#

it would be nice

#

u cant deny that

prisma wave
#

you're confusing Unit with Nothing

steel heart
#

probably

prisma wave
#

Unit is just void with toString, etc

steel heart
#

I mean its returnably void essentially?

prisma wave
#

Nothing represents a function that never completes, and can be any type

steel heart
#

or have I been missteached the entire time

prisma wave
#

yes that's correct

#

but it still follows normal typing rules

#

a function returning Boolean can't return Unit

steel heart
#

hmm who told me about returnable void then

#

Sxtanna probs

#

anyway ye

#

so then we can conclude Unit is void but with default object method such as toString() ?

prisma wave
#

pretty much

#

it's just an empty class

#

you could do the same in java, make an empty singleton and just return that

steel heart
#

hmm yeah ig

prisma wave
#

yep :))

steel heart
#

he been playing that silly game for quite a while now

prisma wave
#

yes

#

get it

steel heart
#

also

prisma wave
#

best game ever

steel heart
#

where can I find a list of all top level functions

#

like mutableMapOf

#

etc

prisma wave
#

worth it tho

#

@steel heart the docs pretty much, although i don't think there's anything specific for every top level function

steel heart
#

hmm okay tyty

#

so I dont get why spigot isnt in kotlin

#

and minecraft as well

#

just convert to kotlin code literally

prisma wave
#

because there's no reason to

steel heart
#

I mean

#

it would be nice

prisma wave
#

To the user that downvoted my post titled "Currying in kotlin clojuremoon", please send at least 500 words as to why, and how it could be improved within 24 hours or I will contact a moderator.

surreal quarry
#

gg good ping

#

gg better ghost ping

lunar cypress
#

ok, short quiz:
What would you expect to happen when you remove a print statement from your code?
a) whatever was printed is not printed anymore
b) your program doesn't terminate anymore

static zealot
#

this is a trick question

#

a

forest pecan
#

^

#

dont overthink it

#

lol

lunar cypress
#

wrong

forest pecan
lunar cypress
#

My C program literally breaks when I remove a single print statement and I have no idea why

static zealot
#

xD

#

told ya

lunar cypress
#

it's not even the last print statement

#

so it has nothing to do with the buffer not being flushed or sth

prisma wave
tranquil crane
#

C is a magical and mysterious language, it do be like that sometimes

prisma wave
#

it just works

tranquil crane
#

or just doesn't work

prisma wave
#

except when it doesn't

tranquil crane
#

except when it does

#

what happens if you change the output of the print statement? does it still break?

heady birch
#

Hello

lunar cypress
#

interesting question, let's see

heady birch
#

Allow me to introduce Rust

lunar cypress
#

I can change the thing I print and it still works

#

just when I remove it

prisma wave
#

yet ANOTHER downvote. why!!! clearly the silent majority is out in full force tonight

surreal quarry
#

tofpu and modded pro need to speak up

#

this is unbelievable

heady birch
#

You mean the bots! We should only count LEGAL upvotes. None of these ILLEGAL downvotes. In fact - maybe the MODS should disable DOWNVOTING of these showcase posts since it is clearly being VIOLATED.

prisma wave
#

I agree

#

supposedly the HelpChat Postal Service has been throwing away upvotes !!

#

legal upvotes gone!

prisma wave
#

no dignity

#

sheeple now a days choose to ignore what is right in front of their eyes

#

"Academic" is a codeword the elite use to mean "made up"!! they have left many breadcrumbs about this GLOBAL CONSPIRACY... just open your eyes and look

heady birch
#

((int) N.get("myCoolNum"))

surreal quarry
#

69

prisma wave
#

😕

heady birch
#

Maybe I should make a sequal to N.java - N2.java

prisma wave
#

wow

#

yes

#

long awaited sequel

obtuse gale
#

nope

lavish notch
#

So, what are you trying to do exactly?

obtuse gale
#

just make it so that my spring server works lol

#

ive got nginx running and reverse proxying it or some shit now but its just saying the spring server cant be reached

lavish notch
#

I have no-idea what a spring server is lol

obtuse gale
#

spring is for backend

#

my web server using spring framework

lavish notch
#

Not a clue unfortunately.

obtuse gale
#

ripp

oak raft
#

this isn't my first time asking

#

but how does github work

lunar cypress
#

My C program literally breaks when I remove a single print statement and I have no idea why
so as it turns out, weird things happen when you forget to terminate your strings

heady birch
#

Lol - yes. haha

lunar cypress
#

You know as I'm starting to get more into systems programming (I have to because of uni anyway) I'll probably give Rust another chance

#

I will never understand how this is funny to anyone

prisma wave
#

that is comedyheaven material

lunar cypress
#

comedycemetery

#

idk how to spell that lol

prisma wave
#

cemetery is right lol

trail heath
#

Hello all

obtuse gale
#

Typing curl localhost:8080 gives the right output

#

so i wonder whats causing this then

dawn hinge
ocean quartz
obtuse gale
#

can you chain infix functions?

#

so like

infixFunctionOne infixFunctionTwo infixFunctionThreee```
ocean quartz
#

Not like that, because infix functions need an argument

lunar cypress
#

two arguments in fact

ocean quartz
obtuse gale
#

can you not make an infix function return a string for example then use it as the argument

ocean quartz
#

Nah, it doesn't work like that

obtuse gale
#

rip

obtuse gale
#

how does one get good at css?

heady birch
#

display: none;

obtuse gale
#

i need a good project idea as well

old wyvern
#

ew gif didnt work

obtuse gale
#

also anyone here used electron?

old wyvern
#

There we go

hot hull
#

Which Meta associates to Enchanting Bottles?

jovial warren
#

hey, so I've been looking in to making a plugin for a specific program that's API is written in C++, and I was wondering what my options are for programming languages I can use

#

I've heard Rust is quite nice, but can you use C++ libraries in Rust?

lunar cypress
#

Yes you can, via the FFI

#

note that this will be tough

#

Rust in of itself isn't something you learn in a day and starting with some foreign interface stuff isn't going to make it easier

jovial warren
#

what about C++?

#

I know Java and Kotlin, but I think C++ is an entirely different species isn't it

lunar cypress
#

I'd argue it kinda makes sense to use C++ if the API is written in it, though that won't be straight forward either if you've never touched Cpp

#

If you want to learn a new language, you can pick pretty much anything and for this particular use case C++ will probably be the easiest since it's the territory of the API

#

but otherwise you could check if someone else has made bindings to it already

jovial warren
#

bindings?

lunar cypress
#

bindings for a different language

#

for example for Java

jovial warren
#

I mean, the API is one .h file with a word document for documentation so I highly doubt it

prisma wave
#

I would just use C++ here

#

Rust is very difficult to be initially productive with

#

And if you don't have any bindings it's gonna be even harder

lunar cypress
#

that is true

jovial warren
#

I just need something that'll work and that I'm not going to tear my hair out over lol

lunar cypress
#

what API are you talking about anyway?

jovial warren
#

it's an API for a program called EuroScope

#

it's a kinda old radar client for VATSIM

#

though you probably won't even know what VATSIM is

prisma wave
#

Well if you're not looking to do anything too complicated then C++ should be fine

#

It has some similarities to java

#

Albeit not many

lunar cypress
#

at least the docs seem to be somewhat helpful

jovial warren
#

which ones?

#

the word document I mentioned?

#

to get the developer docs, you have to download and install it

#

I mean, they're not bad, if you ignore the fact that they haven't been updated in 10 years

lunar cypress
#

i mean the doc file yeah

floral steeple
#

Hi, how do I make sure that when I open a deluxemenus menu there is an icon that can open a menu other than deluxemenus, let me explain?

blazing walrus
floral steeple
#

Ah okey

quiet depot
#

What's the opposite of the word deprecated?

#

using undeprecated but surely there's something better

onyx loom
#

not deprecated

prisma wave
#

why would you ever undeprecate something?

quiet depot
#

you wouldn't

#

it's for a role request

#

- Don't suppress deprecation warnings, use the undeprecated alternative.

onyx loom
#

non-deprecated?

quiet depot
#

yeah that's better

prisma wave
#

yeah either is probably fine

quiet depot
#

nah I'd say non is the way to go

onyx loom
#

👍

quiet depot
#

because as you just demonstrated, undeprecated is ambiguous

#

don't think there's another meaning to non-deprecated

prisma wave
#

touche

hot hull
#

old as shit

#

Better

quiet depot
#

non-old as shit

#

doesn't quite sound right

onyx loom
#

NEW

frigid badge
#

could also always just rewrite the sentence

quiet depot
#

too late

#

already sent the response

onyx loom
#

o

quiet depot
#

and kaliber the non-deprecated alternative is never guaranteed to be new

onyx loom
#

someone is getting denied

frigid badge
#

less work for me, makes me a happy man

#

only 6 left

static zealot
#

1 of them is me xD

frigid badge
#

correct

quiet depot
#

u gonna do them with me lemmo?

onyx loom
#

unfortunate

quiet depot
#

I'm doing pulsebeat

#

u can do the one under if u want

frigid badge
#

oh but I know him

#

isn't fair

quiet depot
#

I've reviewed people I know

#

and they usually get denied because I have more experience with their shit code

static zealot
#

so I'm not the next one and the one after the next

quiet depot
#

I can do it if you don't want to lemmo

#

just go 2 down instead of 1

onyx loom
#

this is disgusting

static zealot
#

:))))

hot hull
#

How does this make sense?

public TileEntity a(World world, int i) {
  return new TileEntityMobSpawner();
}
#

Sheesh

((TileEntityMobSpawner) blockMobSpawner.a(((CraftWorld) block.getWorld()).getHandle(), 0)).getSpawner()
hot hull
#

Suggestions?

final net.minecraft.server.v1_8_R3.Block nmsBlock = ((net.minecraft.server.v1_8_R3.Block) block);
final BlockContainer craftBlockContainer = (BlockContainer) nmsBlock;
final BlockMobSpawner blockMobSpawner = (BlockMobSpawner) craftBlockContainer;
modifyRequiredPlayerRange(((TileEntityMobSpawner) blockMobSpawner.a(((CraftWorld) block.getWorld()).getHandle(), 0)).getSpawner());
quiet depot
#

block.getHandle()

hot hull
#

not a thing

prisma wave
#

it should be

#

if block is a CraftBlock

hot hull
#

There is no getHandle on any of these

#

wdym what, there legit is no getHandle on it

quiet depot
#

@hot hull CraftBlock#getNMSBlock

#

oh it's private lol get fucked

#

CraftBlock#getNMS#getBlock

hot hull
#

oh it's private lol get fucked
lmao

#

There's no getNMS lol

#

This shit is hella weird

quiet depot
#

it's here

#

1.16.2 spigot

hot hull
#

Using 1.8

quiet depot
#

get a life

hot hull
#

bruh

onyx loom
#

🤣

hot hull
#

I hate it more than you do

quiet depot
#

call getNMSBlock via reflection

hot hull
#

I mean I think I can just use this

CraftMagicNumbers.getBlock(block);

#

Which is what the method uses

quiet depot
#

calling it via reflection is future compatible

#

I didn't check if CraftMagicNumbers exists above 1.8

hot hull
#

I don't need it to be future compatible lol

#
final BlockContainer craftBlockContainer = (BlockContainer) CraftMagicNumbers.getBlock(block);
final BlockMobSpawner blockMobSpawner = (BlockMobSpawner) craftBlockContainer;
modifyRequiredPlayerRange(((TileEntityMobSpawner) blockMobSpawner.a(((CraftWorld) block.getWorld()).getHandle(), 0)).getSpawner());
    private void modifyRequiredPlayerRange(final MobSpawnerAbstract spawner) {
        try {
            final Field requiredPlayerField = MobSpawnerAbstract.class.getDeclaredField("requiredPlayerRange");

            requiredPlayerField.setAccessible(true);
            requiredPlayerField.setInt(spawner, 48);

            System.out.println("Changed Required Player Range For Spawner.");
        } catch (final NoSuchFieldException | IllegalAccessException ex) {
            ex.printStackTrace();
        }
    }
#

Either I'm stoopid, or it doesn't work

quiet depot
#

Is it a stretch to say prefixing interfaces with I in java is an anti pattern?

prisma wave
#

probably not

runic flume
#

<wave colors=#f953c6,#b91d73,#b91d73,#f953c6> @heady birch Why no pause here? :(((

prisma wave
#

probably

quiet depot
#

I'm just not sure with kotlin

#

I don't know the conventions

prisma wave
#

the convention for "util files" is usually [ClassName]s.kt, so Strings.kt instead of the Java StringUtils

#

inconsistent braces too

runic flume
#

SpigotUtils.java -> Spigots.kt, PlayerUtils.java -> Players.kt

#

nice

#

xD

quiet depot
#

@static zealot can I get your honest opinion, do you think your code is good enough for dev role?

#

because I suck at reading kotlin

onyx loom
#

free dev role

quiet depot
#

pulse you were so close

#

just tiny little errors

forest pecan
#

i would think that as well lol

forest pecan
#

im a bad developer kek

quiet depot
#

better than most mc devs

static zealot
quiet depot
#

from what I've seen pulse, your algorithm knowledge seems good

#

hackerrank shit

#

but you need to work on quality

forest pecan
#

yeah

static zealot
#

I mean if PulseBeat got rejected then I'm pretty sure he's better than me

#

lmao

quiet depot
#

not really comparable

static zealot
#

ah

quiet depot
#

pulsebeat had a nice big project for me to look at

onyx loom
#

just learn kotlin pig 4head

quiet depot
#

you've only got small projects 😦

static zealot
#

That's true

hot hull
#

The feeling when Gaby still doesn't have dev role

static zealot
#

to be honest with you I would reject my own rquest probably.

onyx loom
#

o

#

thats sad

static zealot
#

well yeah

#

why would I lie?

onyx loom
#

because free dev role

quiet depot
#

I'm not sure how I feel about your voluntary usage of null in your code

#

a big selling point of kotlin is that you don't have to use null

#

yet you're using it in places where it's not necessary

static zealot
#

I didn't learn kotlin because of that ...

#

I learnt kotlin because of EM

#

xD

hot hull
#

Extension functions, only thing I'd want in java from kotlin

quiet depot
#

em?

static zealot
#

elara mitten

quiet depot
#

oh

static zealot
#

aka brister mitten

quiet depot
#

look at sponge mixin frosty

static zealot
#

I do like kotlin.

prisma wave
#

lol

static zealot
#

tho

prisma wave
#

why?

static zealot
#

because I wanted to learn programming anyways

#

I didn't know where to start from

quiet depot
#

should've started with java .-.

static zealot
#

ye I know

#

but didn't back then

#

and everyone was saying kotlin > java

quiet depot
#

lua or python

static zealot
#

so I just went with it

onyx loom
#

python prob

quiet depot
#

the plebs will tell you it's python

#

i'll tell you it's lua

static zealot
#

xD

quiet depot
#

oh hey lua has a 2020 release

#

wow

obtuse gale
#

I prefer Lua over python, I was never able to get to work with it

quiet depot
#

their 5 year release cycle is great

#

a language

obtuse gale
#

Lol

static zealot
#

...

quiet depot
#

no

static zealot
#

leave

forest pecan
#

kekw

quiet depot
#

it's popular for embedded stuff

#

like plugins (e.g. gmod, roblox)

static zealot
#

skript is not bad

forest pecan
#

ComputerCraft 😄

#

Lua

quiet depot
#

bruh

#

lua is great

forest pecan
#

You know the mod with ComputerCraft

#

where they make an os

#

using lua

#

inside Minecraft

quiet depot
#

I haven't used computercraft for yonks

#

I thought it had a new name

prisma wave
#
val permWorld = if (worldName == null && sender is Player) sender.world.name else worldName
``` imo this isn't very idiomatic, consider changing it to something like ```kotlin
val permWorld = worldName ?: (sender as? Player)?.world?.name
#

although all the logic here is a bit of a mess

quiet depot
#

so many ?

prisma wave
#

and way too much nullability for my liking

quiet depot
#

this is why kotlin is ugly

prisma wave
#

nah, this is why you shouldn't have too much nullability

quiet depot
#

@forest pecan I was thinking of opencomputers

forest pecan
#

Ah yeah

#

that one

quiet depot
#

it's supposedly better than computercraft for gameplay

forest pecan
#

Yeah

static zealot
#

Piggy I'm actually confused. naming conventions? I thought I was following them.

prisma wave
#

the convention for "util files" is usually [ClassName]s.kt, so Strings.kt instead of the Java StringUtils

static zealot
#

ah

prisma wave
#

everything else is fine

quiet depot
#

I believe he's following that one already

static zealot
#

I see

quiet depot
#

that's not what I was talking about

static zealot
#

wait

#

yeah anyways

#

xD

quiet depot
#

you had these lowercase files

#

I think that goes against it

static zealot
#

Ye

quiet depot
#

and there was something else

#

oh bm was right actually

obtuse gale
#

Yes

#

ur mum

prisma wave
#

Yeah lowercase files are bad

obtuse gale
#

Oh yeah and that

quiet depot
#

not sure

#

so either 2 or 3 things

prisma wave
#

What it is, is a mess

#

Although configme sucks with Kotlin so that's not Blitz's fault

obtuse gale
#

Piggy how is the deal for private work?

quiet depot
#

wym?

obtuse gale
#

Like

quiet depot
#

add me and lemmo to the repo

obtuse gale
#

If I want to present that as "proof"

#

Oh okay

half harness
#

oops wrong chat - message deleted

prisma wave
prisma wave
#

why tf does hotswapping take about 2 years when im changing 1 line

quiet depot
#

potato pc

prisma wave
#

my pc is fine

#

it just compiles a load of classes that it shouldn't be

surreal quarry
#

potato hotswapping then

prisma wave
#

smh

half harness
#

hotswapping ez 🙂

prisma wave
#

adds 1 print statement

half harness
#

woah

#

whats that

#

I've never seen that Debug thing in action

surreal quarry
#

el debugger

half harness
#

whats it do

#

👀

surreal quarry
#

takes your bugs and des them

half harness
#

huh?

onyx loom
#

de-bug

#

smh

half harness
#

but like

onyx loom
#

haha funny one james!

half harness
#

hows it work

surreal quarry
#

haha thanks!

half harness
#

._.

prisma wave
#

you set breakpoints

#

and inspect the state of things

hot hull
#

Fellas, anyone care to fix this for me, I think I'm gonna lose my mind if I try to

#

I'll send you a steam key if you do ❤️

onyx loom
#

frosty u seem to have a lot of steam keys

#

u should send me one anyways

hot hull
#

If I have any left after the giveaways I will ❤️

onyx loom
#

lol

hot hull
#

Will show what I need fixed in a sec

#

Should display a border around the 3x3 chunks the location is surrounded by, but since my brain turning into poop, I can't figure it out properly

#
ie.
X X X
X O X
X X X

O being the chunk which the location is at
prisma wave
#

can't you just get the chunkX and chunkZ, the four corners are x +- 1, z +- 1 and then join up the dots

hot hull
#

That'll give me the centers of the chunk tho, so you have to offset them

prisma wave
#

Hmm

#

Then maybe +- 16 in both directions and get the chunk ?

hot hull
#

wdym by that

hot hull
obtuse gale
#

O being the chunk which the location is at
Do you have that as block x and z or chunk x and z?

hot hull
#

Chunk x z

#

As you can see in the snippet smh

obtuse gale
#

I didn't even read the pastes kek

forest pecan
#

that moment you guess the group id correct

obtuse gale
forest pecan
#

lol

hot hull
#

That moment when your pc froze for the 6th time today

forest pecan
#

i mean

#

you are frosty

#

and you are a snowman

#

so your pc go brrrr

obtuse gale
#

Ha

#

Ha

#

It froze

forest pecan
spring plank
#

yo i need help why my config doesn't work?

#

i will send pict wait

#

oh i can't

forest pecan
#

wtf

#

why do decompilers like cast every single

#

object to their type

#

Like

#
(MinecraftKey) new MinecraftKey(...)
#

???

obtuse gale
#

That decompiled code?

forest pecan
#

Yeah

obtuse gale
#

Yeah no wonder

#

Because at runtime everything is just an Object lmao and is casted back and forth

forest pecan
#

Lol

#

Decompilers will also produce the same behavior of the actual code

#

but generate crappy code

#

That's my guess

obtuse gale
#

Yeah it sucks

forest pecan
#

Yeah

#

anyway to fix that

#

in intellij

#

without manually one by one

#

Oh yeah

#

I can

obtuse gale
#

Yeah you can bulk fix shit

forest pecan
#

Yeah

#

wait

#

how do you do it again

#

lol

obtuse gale
#

Do what ThonkIntensifies

#

You can click the thingy and tell it to Run inspection on -> Whole project

forest pecan
#

Oh ok

hot hull
#

8th freeze in the past 2 hours

obtuse gale
#

You really are frosting

prisma wave
#

1.8 commission to edit some outdated as heck plugin
git clone, mvn install
about 30 missing dependcies
all versions of plugins from about 6 years ago

kill me

#

the change took about 30 seconds but now i have to get this shit to compile somehow

hot hull
#

kek

prisma wave
#

nvm jitpack has saved me

#

most of them are on there

#

or not

frail glade
#

Jitpack ❤️

obtuse gale
#

1.8 commission
the problem starts right there

#

I hope they are paying you good aPES_Laugh

hot hull
#

Press X to doubt

forest pecan
hot hull
#

Get the fuck out efe

half harness
#

👀

forest pecan
#

so my school made an mc server

#

and my friends and i

#

decided to go and use a hack client on it

#

cause the rules were stupid

#

like

#

no elytras

#

you cannot have more than 8 shulker boxes

#

and then we found out how to dupe

#

you probably know how that ended

half harness
#

oof

#

no anticheat?

forest pecan
#

the admins were omega toxic

#

it was a realm

half harness
#

rip

hot hull
half harness
#

how many lineS is thTat

lunar cypress
#

old one

forest pecan
#

bring it to your boss

hot hull
#

Get out Johnny

forest pecan
#

shows your dedication

hot hull
#

Just shut

forest pecan
#

he just brr

#

right now causse he just be doing frosty things

half harness
#

😐

forest pecan
#

so

#

i am makig a plugin

half harness
#

oke

#

nice

forest pecan
#

to avoid fabric and forge modded users

#

from joining

half harness
#

um

forest pecan
#

and that requires

half harness
#

why

forest pecan
#

packet analysis

#

ew

#

lol

half harness
#

why don't u like modded

forest pecan
#

hack clients

half harness
#

....

forest pecan
#

i know now

half harness
#

that's just

forest pecan
#

because i was a hacker

#

and hack clients use fabric

half harness
#

that is too harsh though

forest pecan
#

and forge

#

lol

hot hull
#

Can we ban this man

half harness
#

lol

hot hull
#

Pulse

half harness
#

better clients don't use forge and fabric such as sigma

forest pecan
#

w h y

half harness
#

lol

#

c: :c c: :c c: :c c: :c c: :c c: :c

forest pecan
#

guys im banned

hot hull
#

I prefer sugma dkim

half harness
#

?

#

future client is OP

#

eww impact

forest pecan
#

Inertia

half harness
#

intertia

hot hull
#

If you use a hacked client you're a pussy, the end.

half harness
#

HUH

#

WHAT

forest pecan
#

well

#

we did change the rules

half harness
#

well

forest pecan
#

let the admins know the rules were unfair

hot hull
#

No wells lmao, it's fucking sad

forest pecan
#

and they were exploiting glitches

half harness
#

tries desperately to think of an excuse

forest pecan
#

lol

hot hull
#

Like how sad can you be

half harness
#

i dont use them much anyone i think

#

I got better at mc

hot hull
#

I love those kids who hack, then you ban them and they cry 24/7 cause they can't hack anymore

forest pecan
hot hull
#

Sthu Pulse

forest pecan
#

XD

half harness
#

im ded

#

i dont hack

forest pecan
#

it was just a troll and the admins were abusing exploits anyways

#

plus they were admin abusing

hot hull
#

Anyhow, if you've got a server, and don't want to get online to respond to ban tickets (since you'd need to use litebans), I have a bot which does that for you. Get it today for only "learn how to compile"$

forest pecan
#

whats the bot

obtuse gale
#

@forest pecan

#

@forest pecan

forest pecan
#

wattttttttt

half harness
#

lol

obtuse gale
#

hi :^)

forest pecan
#

hi

forest pecan
#

So

#

What does this code print out:

#
int x = -5;
int y = 8;
System.out.println("Sup: " + Math.abs(x) + Math.abs(y));
lunar cypress
#

Segmentation fault

forest pecan
#

wat

#

Kekw

#

we are assuming this is in the main method alrgiht

#

and its just standard java

prisma wave
#

13?

forest pecan
#

Nope

ocean quartz
#

Wouldn't it print Sup: -58?

forest pecan
#

Sup: 58

prisma wave
#

yeah

forest pecan
#

but close enough

prisma wave
#

ofc

forest pecan
#

its dumb lol

ocean quartz
#

It really isn't

forest pecan
#

well

prisma wave
#

that's just how + gets parsed

forest pecan
#

not dumb but like

prisma wave
#

left to right

ocean quartz
#

It makes sense

forest pecan
#

yeah but just like a common

#

mishap

#

ig

prisma wave
lunar cypress
#

LOL

#

I've heard spring has also solved the halting problem

prisma wave
#

Is there anything spring can't do?

surreal quarry
#

not bounce

#

every time you drop a spring it bounces up

obtuse gale
prisma wave
#

Drop it on the side

#

No match at all 😎

surreal quarry
#

a good spring will bounce on its side too

#

you just have bad springs

prisma wave
#

Spring Boot

quiet depot
#

anyone know how to make ij not highlight random stuff like this?

#

it also highlights when I start a command with . in terminal

obtuse gale
#

No

#

You shall suffer

half harness
#

ooo anyone use Minecraft Development plugin?

#

(in intellij)

#

just found out about it

quiet depot
#

I believe most people use it

half harness
#

oh

#

seems pretty cool

frail glade
#

Yeah it's really great!

static zealot
#

Was someone in here developing a plugin which will conver (or something like that) javascript to java?

#

or was it for another language and not javascript

ocean quartz
#

Kinda, someone had a plugin to make plugins with JS like a script

static zealot
autumn tapir
#

looks like i'm not the only one

#

i'm making Skript but for JS

#

not exactly but similar

static zealot
#

ye

#

that's why I'm saying

#

ye you were the guy

#

wanted to let you know you have competition lmao

light venture
#

😂

autumn tapir
#

he's not the only competition tho

#

also scriptcraft is doing it a bit dif then i am

static zealot
#

ye idk I just found that is a thing xD

quiet depot
#

you can create mc plugins in loads of languages

#

bukkit is actually designed with that in mind

light venture
#

yall

quiet depot
#

python, js, lua, etc

light venture
#

yaml

#

yaml is my favourite

quiet depot
#

denizen is for yaml

light venture
#

it sounds like mammal what can i say

obtuse gale
ocean quartz
#

Happens to me too

quiet depot
#

@obtuse gale bukkit was designed knowing that it won't be exclusively used with java

#

that's why you extend JavaPlugin

obtuse gale
heady birch
#

RustPlugin

quiet depot
#

D:

#

gson doesn't have a default type adapter for Map.Entry

#

my life is over

heady birch
#

Jackson probably does

obtuse gale
#

Instead of "live messaging" is a system in which the website like pings the servers for new messages every like 5-10 seconds gonna be better?

#

cos im tryna work out the easiest way to make this

#

If anyones familiar with the paypal mesxaging system, I need something like that

#

also like what part of the website should ido first lol, front or back

#

also what should i use for website frontend and what should i use for backend? Should i just use spring because im most familiar with it or is there soething else i should use

wanton sentinel
#

OMFG

#

My server crashed last night

#

and was left on all last night

#

now my latest.log is 453.7GB

obtuse gale
#

thats quite the log

wanton sentinel
#

i have 0 bytes of storage left

wanton sentinel
#

I have been here 10 mins waiting to be able to load the file

#

just so i can delete all the text XD

static zealot
#

just delete the file xD

wanton sentinel
#

I cant XD

#

it wont let me as i have 0 bytes of storage XD

#

Like, its in my trash

#

but i cant clear the trash can

#

Ima use command line to clear it

#

Well that worked

obtuse gale
#

what use frontend website

prisma wave
#

?

prisma wave
obtuse gale
#

wdym

#

im not tryna hook into paypal or anything

#

im just tryna remake a similar system to theirs

heady birch
#

This that same project you are working on? Use websockets 🙂

obtuse gale
#

different project

prisma wave
#

what are you trying to do then

old wyvern
#

Why not have the server notify the webpage about "new messages" instead?

obtuse gale
#

its like Live messaging that saves even when the browsers closed between multiple people

prisma wave
#

oh so just a live chat thing?

obtuse gale
#

pretty much

prisma wave
#

React + Spring Websockets seems like a nice stack

obtuse gale
#

aight, is react just for like the frontend js shit?

prisma wave
#

Yeah

#

It's the most popular JS framework so you'll have lots of resources

#

Although I believe you could also use something more lightweight and just a websocket / AJAX

obtuse gale
#

aight, in terms of the actual html/css should i use something like bootstrap to make that easier on me?

prisma wave
#

Up to you

#

I like bootstrap, but other CSS frameworks exist

obtuse gale
#

which ones "best"

prisma wave
#

use whichever you're more familiar with

obtuse gale
#

im familiar with none lol

#

got any recommendations?

prisma wave
#

Bootstrap I guess then

obtuse gale
#

that gonna be the easiest to use?

heady birch
#

Probably

obtuse gale
#

so to use bootstrap do i just have to yeet this bad boy at the top of each file or?

#

<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">

zinc plinth
#

good morning guys : D

prisma wave
#

Bonjour

static zealot
#

qu'est que tu fais?

#

wait did I get it right?

#

ah

#

not that I'll remember

#

but close enough

#

wait

#

you liar

#

I was going to say

#

I was going to say that my teacher didn't know French ...

#

she used to ask us that every time she entered the class room

#

and what's that?

prisma wave
#

Faire is infinitive

#

Smh

prisma wave
#

Although I'm not too sure

#

Informal might be « Tu fais quoi ? »

#

Or maybe that's formal

static zealot
#

ye well still close enough xD

#

its the very few things I remember from 6 years of learning French#

prisma wave
#

Oof

#

I've been doing it for just over 3 years

static zealot
#

I mean to be honest the last 4 years (high school) was mostly just sitting and doing nothing or chatting with the teacher about random stuff

prisma wave
#

passé composé

lunar cypress
prisma wave
#

j'aurai fait ?

#

oh

#

That's futur* proche

#

Je vais aller

#

I'm going to go

#

easy tense

#

je vais faire du vélo

static zealot
#

he's riding a bike

prisma wave
#

Yea

#

Faire du vélo = ride a bike

static zealot
#

that's why the faire

#

is there

dapper yew
#

How do i get the giveaways role?

prisma wave
#

or not

wanton sentinel
#

How to stop player from moving items round inventory?

ocean quartz
#

Cancel the click event

wanton sentinel
#

i am using InventoryClickEvent

static zealot
#

yes. Cancel it

wanton sentinel
#

Is there a way to use permissions with it?

#

becuase event.getPlayer() does not work

ocean quartz
#

What do you mean it doesn't work?

static zealot
#

maybe they named it differently ?x D

#

LIKE THY DO...

wanton sentinel
#

Oh

static zealot
#

let me see

wanton sentinel
#

Thanks

static zealot
#

wait

#

there is no

wanton sentinel
#

wait what...

static zealot
#

way to get the player

wanton sentinel
#

how tf would i use a permission XD

static zealot
#

ah nvm