#dev-general

1 messages ยท Page 544 of 1

obtuse gale
#

And by a lot I mean a huge fucking lot

static zealot
#

yeah. ther's also still small businesses that only take cash. like small grocery stores and stuff

frail glade
#

I rarely have cash on me. Maybe $10.

static zealot
#

well I never have cash

#

but I also don't have money on the card

#

either

frail glade
#

My parents say keep like $20 on me in case you get robbed.

cinder flare
#

i don't understand the concept of "money on the card", it's not like a visa gift card or something right?

static zealot
cinder flare
#

oh what lmao

static zealot
#

I have 1.72 ron

obtuse gale
static zealot
#

or something like that

#

as I said, I get them out and use them

cinder flare
#

you don't like... save up for anything?

#

or a rainy day fund or something

static zealot
#

I do

#

cash

cinder flare
#

oh damn

obtuse gale
#

Lmao saving

static zealot
#

my parents always saved cash as well

frail glade
#

Investments

static zealot
#

but also I am not at a stage where I can save anything

cinder flare
#

i've never even possessed more than like $100 on my person

static zealot
#

spent all my savings on my car

frail glade
#

^^^

static zealot
cinder flare
#

i just mean at all

#

like I've never held more than $100

#

i just have a bank account for my savings and stuff

frail glade
#

We have a wide diversity of backgrounds

static zealot
#

I also hate banks

cinder flare
#

yeah seriously lol

static zealot
#

forgot to mention that?

#

most people here do

cinder flare
#

oh yeah that might be a notable difference lmao

static zealot
#

because they love taking the houses from people

#

and leaving them in the streets with nothing

cinder flare
#

i mean don't use your house as collateral for a loan maybe?

frail glade
#

Well that typically happens when you take out a loan on a house and can't pay it back.

static zealot
#

lemme give you an example of someone I Know

#

1 sec

frail glade
#

Again, this might vary per country.

static zealot
#

will write a short story

obtuse gale
#

On real life or game?

frail glade
#

Our style of living in the US might be different than from Blitz's country.

static zealot
#

...

#

they basically paid 20k for rent

obtuse gale
#

The US is different from a lot of countries though

static zealot
#

bczs of 1 month

cinder flare
#

I mean that's like how loans work Blitz

static zealot
#

...

obtuse gale
#

This money ?

static zealot
#

yeah star

cinder flare
#

I doubt a bank here would be that brutal

static zealot
#

that's why no one fucking gets them

#

fuck loans

#

and fuck banks too

cinder flare
#

I mean how are you supposed to buy things?

static zealot
#

they can suck my dick and choke on them

static zealot
cinder flare
#

you're gonna save up $20k?

static zealot
#

did you know Romania has the highest rate of owning the house they live in?

obtuse gale
#

The moment you get a loan you get a problem

static zealot
#

its 9x% percent

#

forgot the exact percentage

cinder flare
static zealot
#

yeah Star

#

here banks are fucking hated

frail glade
#

Again, the economy is a lot different based on the country. The banks here can sieze so much more variety of assets than his country might be able to which is why banks will give that loan.

#

But typically you have to show up front you can afford to pay it back.

cinder flare
#

yea

obtuse gale
frail glade
#

Okay we can let Blitz go to bed now.

static zealot
#

also should we talk about bank accounts dissapearing?

cinder flare
static zealot
#

Person I Know worked for bank and they would close bank accounts for people and get rid of evidence of them ever existing

cinder flare
#

wtf

static zealot
#

yeah..

cinder flare
#

do you guys not have government regulation

#

or is the government just weak af

#

and doesn't enforc eit

static zealot
#

they're just as corrupt

#

all you need to give them is around 20% of what you got

#

or something like that

#

and they don't give a fuck anymore

cinder flare
#

damn wtf

static zealot
#

you just need to know the right people that's all

cinder flare
#

have you considered moving to a modern country

static zealot
#

nah

#

I actually have set my mind to never leave this country

#

and have done this successfully for 19 years

cinder flare
#

now that... is impressive

static zealot
#

even tho I had a chance to go to portugal for 2 weeks for free

#

well not really free

#

it was more like an internship at some it company

#

but yeah the people that did go, did absolutely nothing just had fun for 2 weeks. I have decided to stay

static zealot
cinder flare
#

that uh, doesn't seem smart

#

but okay

static zealot
#

it might not be. never said its smart

obtuse gale
#

Government regulations OMEGALULW

static zealot
#

xD

static zealot
frail glade
#

BED. TIME.

static zealot
#

๐Ÿฅฒ

obtuse gale
#

The only regulations they impose are those that benefit them

cinder flare
#

yeah man here the FTC will flip their shit if anything happens bad

#

everyone's bank accounts are insured up to like a million dollars from FICO or something

#

so even if a bank closes down you still get your money

static zealot
#

yeah nah. there's a lot of fraud and a lot of money going missing

#

as I said even in our school

#

there was money that went missing

#

that was suppose to go to the smart kids

#

and it would've totalled up to like 100k euro or maybe even more

obtuse gale
#

That is really common in here as well lmao
There is literally a huge international network of corrupt agencies involving drug and gun trafficking and all that shit

cinder flare
#

the FDIC insures deposits in member banks up to US$250,000 per ownership category.[5] FDIC insurance is backed by the full faith and credit of the government of the United States of America, since its inception in 1933 no depositor has ever lost a penny of FDIC-insured funds.[6][7]

#

so yeah you're guaranteed to $250k per account

obtuse gale
#

Hundreds upon hundreds of millions of dollars being laundered belonging to a handful of people that "work for the poor".. and are up in the government

cinder flare
#

well that is not good

obtuse gale
#

Spoiler alert: nothing

#

I just want to move to Canadia :PepeCry:

cinder flare
#

canada?

obtuse gale
#

Yeah

cinder flare
#

yeah canada is nice

#

have you applied for a visa or anything?

obtuse gale
#

Well I have an Italian citizenship and passport which that alone opens up a lot of opportunities, though I need to renew the passport

#

Not like I can afford moving now anyway ๐Ÿฅฒ

cinder flare
#

damn what Italian!

#

that's cool af

obtuse gale
#

It would be cooler if I knew any Italian :^)

#

Shit I need to cook D:

cinder flare
#

spaghet time

half harness
#

lol

#

spaghetti ๐Ÿ˜‹

eternal compass
#

how often should I commit?

#

well, is this commit to big?

#

since I've heard I should do it more often

#

but idk how often is good

cinder flare
#

I mean it all depends

#

I'd say that's okay

eternal compass
#

okay ๐Ÿ‘

cinder flare
#

Really it should be "incremental", as in if you need to role it back it shouldn't have a bunch of weird side effects

eternal compass
#

well that commit was one big change

cinder flare
#

Then when you merge to master you can squash into one nice commit message that tells the whole feature

#

So there's really no problem with making too many commits

#

But yeah I'd keep it to like small features per commit

#

Nothing huge

#

Undoable if you need to without like ruining a bunch of stuff

eternal compass
#

I never merge into master except for releases which I never do, because this is a private fork (my server's fork of a public plugin)

cinder flare
#

oh well I mean

#

you should still be working in feature branches

#

or at least a dev branch

eternal compass
#

I am

#

dw

#

I'm in develop

cinder flare
#

and then you merge into a branch when it's stableish?

eternal compass
#

well, upstream (AOneBlock) merges into master on releases

#

I haven't decided what I should do

#

since I can't merge their code, I gotta merge my code in, but that makes it behind & ahead commits which is wierd

cinder flare
#

as good practice, you should definitely have one branch that is always able to be built and be mostly stable

eternal compass
#

thats my develop branch

#

develop is tested & stable

#

master is releases ig

cinder flare
#

oh okay

obtuse gale
cinder flare
#

well that's okay then

eternal compass
#

๐Ÿ‘

obtuse gale
#

oh

cinder flare
#

considering you never set it in a constructor or anything

stray depot
#

Yesterday I used to add load: POSTWORLD in plugin.yml and it still prompts that location is null

#

Block block = location.getBlock();

#

When server start,the location world not load cause this problem.

obtuse gale
#

What's the rest of the code

stray depot
#

Location location = new Location(Bukkit.getWorld(split[0]), (double)Integer.parseInt(split[1]), (double)Integer.parseInt(split[2]), (double)Integer.parseInt(split[3]));
Material material = Material.valueOf(split[5]);
Byte data = Byte.parseByte(split[6]);
Block block = location.getBlock();

#

When server start ,the plugin get data.yml location information.

obtuse gale
#

And where are you calling that exactly

stray depot
#

from data.yml get X ,Y ,Z ,then new loacation.

#

Then i start server ,i get a error ,location is NULL

#

Someone said that when the server started, the world of location was not loaded. I thought that this might be the problem. But I use its method to add load: POSTWORLD to plugin.yml and still get the same error. location is NULL

obtuse gale
#

Not really what I asked

#

Where are you calling that function

stray depot
#

onEnable

#

public void onEnable() {
instance = this;
this.registerConfig();
this.fixWorldNames();
this.registerListeners();
this.registerBlocks();
}

obtuse gale
#

Is it a "custom" world? By custom I mean that is not the one in server.properties level-name

stray depot
#

yes it is a custom world.

#

Not world,

#

If i use world ,everything is ok.

#

If i use newdiyu world ,location is NULL

obtuse gale
#

Then you need to load it first, Bukkit only loads the one named in server properties

#

Check out the WorldCreator class

#

Or uh something like that

#

Don't quite remember :')

#

d;spigot WorldCreator

ruby craterBOT
#
public class WorldCreator
extends Object```
WorldCreator has 12 methods, and  1 extensions.
Description:

Represents various types of options that may be used to create a world.

obtuse gale
#

Yeeee

stray depot
#

How to write code to load the world? I have not written about this. Can you help me?

obtuse gale
#

Well I haven't exactly used this either, but I guess you can World world = WorldCreator.name(name).createWorld();?

#

Try and see lol

hot hull
#

This a new thing?

obtuse gale
#

WorldCreator? That's how Multiverse or Hyperverse are able to load/create and unload worlds

#

It's been on Bukkit since forever

forest pecan
#

^

hot hull
#

First time seeing it lol

narrow plover
#

I'm trying to make a browser extension that fixes some sports table formatting on a website. I have the Javascript and that works fine when I run it from the browser console, however I can't get the javascript to run when I install it as an extension. This is my manifest file:

{
  "manifest_version": 2,
  "name": "ProLeague.de Table Fixer",
  "version": "0.1",
  "author": "John Yuki",
  "description": "Removes folded teams from league tables and updates the table accordingly to make it appear as if the folded teams never existed in the table.",
  
  "content_scripts": [
    {
      "matches": ["https://www.proleague.de/league.php?league=int2#table"],
      "js": ["proleague-table-fixer.js"]
    }
  ]
}
``` Anyone know why it isn't running the javascript file when I'm on that url? This is the js file: https://hastebin.com/ideferelaf.js
next ledge
#

Wtf is this server

quiet depot
obtuse gale
#

lol

quiet sierra
#

I make proprietary formats to save on reading and disk space

prisma wave
#

^

#

Real developer

quiet sierra
#

I had like 2 minute startup times on servers

#

that were just reading a .yml file

#

and caching it

#

I made a proprietary format and it instantly loaded

#

could convert from and to yml

#

and used 1/3rd of the disk space

hot hull
#

Spending unnecessary amounts of time on something that in the end doesn't even affect performance

quiet sierra
#

bruh those startup times added up quick

hot hull
#

Why you using file storage all together is the real question

quiet sierra
#

it was some persistent cache

#

it took me like 5 mins to make the proprietary format so

hot hull
#

Jucky, no persistence needed just don't turn off the server

quiet sierra
#

well yes but actually no

#

Persistence was needed

stray depot
#

Is there any way to load this world with given coordinates?

quiet sierra
#

just load the world ???

stray depot
#

yes

quiet sierra
#

My probably horrible way of loading a world is just
new WorldCreator(name).createWorld();

tranquil crane
#

I feel like that's the way you're supposed to do it

obtuse gale
#

lol we went through this already

quiet sierra
#

idk I haven't messed with big part of the bukkit api for a few weeks

#

I only listen to packets, not events

stray depot
#

But after i use new WorldCreator(name).createWorld();

#

I get a NULL.

stray depot
stray depot
#

๐Ÿ˜

distant sun
#

๐Ÿ“š Video courses from JomaClass:
๐ŸŽ“ New to programming? Learn Python here: https://joma.tech/35gCJTd
๐ŸŽ“ Learn SQL for data science and data analytics: https://joma.tech/3nteQih
๐ŸŽ“ Data Structures and Algorithms: https://joma.tech/2W89H33

๐Ÿ’ต Start Investing and get 2 FREE Stocks valued up to $1850 (when you deposit $100):
https://joma.tech/webull

โญ ...

โ–ถ Play video
#

I thought I did but no :O

foggy pond
#

What should be the name of a git remote

#

Is origin fine I am not sure what it should be based off

lunar cypress
#

depends on what the remote is

#

origin is usually the default you're tracking from

foggy pond
#

Okay

#

O.o

#

I pushed and commited my project onto my repository but my repository is completely empty

#

Weird

#

Figured it out I guess

distant sun
half harness
static zealot
#

oh boy... i just decided to go thru the paid requests and there are some gems in there ๐Ÿฅฒ

#

I was like, 100+ budget, that mean's his serious, then I've seen 100/mo and requires at least 3 hours of work per day ๐Ÿฅฒ

hot hull
#

Indeed

onyx loom
#

thats just over $1 per hour pog

static zealot
#

did paper fix this?

distant sun
#

yes

old wyvern
#

ayyyyy

prisma wave
#

nice nice

distant sun
#

o

static zealot
#

it says that I'll find it attached

old wyvern
#

xD

lunar cypress
static zealot
#

๐Ÿฅฒ

old wyvern
#

There you go blitz ๐Ÿ˜„

static zealot
#

thank you very much!

frail glade
#

I almost didn't even look at who sent that before clicking that hammer.

static zealot
#

lmao

#

xD

#

verylegit.link

#

:)))

lunar cypress
#

monkaW

burnt moth
#

Anyone knows a good way of making a scoreboard ?

#

I mean a pretty one

static zealot
#

buy kiteboard fingerguns

burnt moth
#

I mean

#

not as a library

#

and in my plugin

steel heart
#

shade kiteboard

sly sonnet
#

didn't work ๐Ÿ˜ฆ

compact perchBOT
#
๐Ÿ“‹ Paste Converted!
https://paste.helpch.at/elejemetun

A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!

old wyvern
#

Arhwpgwhgghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

hallow crane
#

I am about to 1up hypixel. I am going to make a custom kubernetes scalable deployment system for servers

cinder flare
#

have fun with java and slow server startup times

hallow crane
#

it will be fast

#

I am not using rust because I don't know rust

#

I don't want to create a luckperms from scratch

cinder flare
#

i know im just memeing on ya

#

but seriously paper servers take like 30 seconds to spin up

#

so like... yikes

old wyvern
#

You could build something with minestom

hallow crane
#

thats not bad

#

and i'll use cuberite or purpur

old wyvern
hallow crane
#

ill check that out too

old wyvern
#

alr

cinder flare
#

that's like the same thing as Feather but still in Java lmao

#

does seem pretty cool tho

old wyvern
#

Feather is a server implementation right?

#

Minestom doesnt implement any of vanillas features

#

its a bare bones server with extensive api for additions

ocean quartz
#

Krypton

cinder flare
#

but you'd want part of the server implemented anyways for minigames ๐Ÿฅฒ

old wyvern
#

it has a separate reimplementation of vanilla if someone were to require that

cinder flare
#

oh huh

#

maybe it's cool i dunno

#

just reminded me of feather

old wyvern
#

but mostly its supposed to be an api to build up a server from scratch with only what you want

#

As lightweight as possible

obtuse gale
#

"vanilla addon"

cinder flare
#

huh like a build your own server

#

that's cool

old wyvern
#

mhm

prisma wave
#

MineHraft

old wyvern
#

๐Ÿ˜Œ

steel heart
#

Minestom is like pog since they use mixins

cinder flare
#

but imagine Minestorm

#

but in a language without garbage collection ๐Ÿ‘€

steel heart
#

yeah

#

well

#

idk

#

the name

#

oh

#

anyways feels slightly unstable

#

just me probably

cinder flare
#

well yeah I mean everything except the official minecraft server is probably unstable

steel heart
#

yup

#

mf-leaderboards

forest pecan
#

Wait is that a thing now

#

?mf

compact perchBOT
steel heart
#

no I was joking lol

forest pecan
#

Oh lol

cinder flare
#

config definitely exists

#

are you having a hard time keeping track of the data or displaying it?

steel heart
#

I'm certain something like bkcommonlib or helper got something which could help you

cinder flare
#

updating the data or updating the display lmao

#

ah well yeah use like holographicdisplay that's a good one

steel heart
#

nonono

#

change the display line of the hologram

#

yeah

ocean quartz
cinder flare
#

sadly ๐Ÿฅฒ

#

just look through my message history with you around the time I implemented it and that's documentation

ocean quartz
#

I kinda wanna change it to be more dynamic and less dependant on static constants

cinder flare
#

how do you mean

#

like you can determine types of the config at runtime?

prisma wave
#

static constants implies the existence of non-static constants

static zealot
#

โžก๏ธ Today at 18:50 UTC Mojang has officially backported the blacklist bypass exploit (SRV method).

#

what does this mean?

steel heart
#

@ModifyConstant fingerguns

cinder flare
#

and they brought the fix to every version of minecraft

steel heart
#

Sounds mean

#

Cant sell elytras anymore and get away

obtuse gale
#

Does VPS related to this topic?

steel heart
#

Uh

#

Not really

cinder flare
#

what do you want to ask?

ocean quartz
cinder flare
#

ah I see

steel heart
#

Mixins

prisma wave
#

๐Ÿ˜ฉ

obtuse gale
#

why the hell is AbstractMap#put not abstract... it literally throws UOE unless you override it

onyx loom
#

๐Ÿ™‚

ember thunder
#

Hi there

#

How can i access the deluxemenu meta info

#

Its save in the player.dat

#

As i want it to save in a mongo database

static zealot
#

I am 99% sure it's just persistent data thingy from spigot

#

So wherever spigot stores it i guess

ember thunder
frail glade
#

org.bukkit.persistence.PersistentDataType

#

Go figure out where that gets stored.

#

You'll find your answer.

ember thunder
#

Thanks guys! appreciate.

frail glade
#

๐Ÿ™‚

potent nest
distant sun
distant sun
#

Lets say I have 15 items that will be divided into groups of 7 items, how can I return how many groups will be created (in this case, 3)?

static zealot
#

huh?

#

15/7 and then add one more if 15%7 > 0

ocean quartz
#
return items.chunked(7).size()

:relieved:

distant sun
distant sun
#

nope, that returns 2 for 15 / 7

quiet sierra
#

Weird

sturdy swan
#

like with plugins ye thats kinda easy

#

but with commandblocks?

distant sun
#

yup

quiet sierra
#

Lots of execute

#

and relative position

#

and fallingsand

sturdy swan
#

if you divide two integers it will return an integer (2)

distant sun
#

true

#

I always forget about this smh

sturdy swan
#

if groupSize is a double it will return a double (2.whatever) which will then ciel to 3

quiet sierra
#

Don't feel bad gaby

#

I spent 6 hours debugging some stuff

#

That wasn't working properly because my IDE forced me to cast to short unecessarily

#

I removed the short cast and it magically worked

static zealot
#

smh imagine having to debug your code

#

mine just works every time

quiet sierra
#

mine works 90% of the time

static zealot
#

I've never had to write 1 debug line, not even test it. I Just knew it works

quiet sierra
#

hacks

static zealot
obtuse gale
#

How to set Player Head in DeluxeMenuns

distant sun
#

wrong channel

static zealot
quiet sierra
static zealot
#

I don't want to

#

what you going to do about it?

quiet sierra
#

bully you

#

you're staff team

#

not following the rules

#

that means you suck as staff

#

imma report you to the fbi for sucking as staff

#

complete disrespect

static zealot
#

k

#

also what rules?

quiet sierra
old wyvern
quiet sierra
#

Stay on topic

static zealot
#

idk what you talking about

static zealot
# old wyvern

when your brain goes numb you can call that mental sleep

old wyvern
static zealot
#

too lazy to google as well

burnt moth
#

Is this recommended ?

static zealot
#

its not been updated in 5 years. so probably no

burnt moth
#

I see ...

#

even if I'm on 1.8 ?

static zealot
burnt moth
#

Well I've already tried it

#

and you have to use ProtocolLib

static zealot
#

oh wait nvm

#

the latest one seems to be more than just scoreboard

burnt moth
#

:derp:

static zealot
#

but these 2 seem alr

#

so u can try both

burnt moth
#

Okay, I'll give those a try then

#

Do I have to create a new board every time, if I'm on a different class ?

static zealot
#

what class?

burnt moth
#

I was using this

#

The scores went down from -1 to -15

#

but okay then

#

I'll give a try to the ones you sent

static zealot
#

btw last one

#

looks actually very good

#

and its updated 2 days ago

burnt moth
static zealot
#

yeah

burnt moth
#

I see

#

okay then

#

thanks ^^

prisma wave
#

Sinful

distant sun
#

๐Ÿ™‚

prisma wave
#

I mean

#

That's why it's not working

arctic pebble
#

@kindred hatch Hey sorry to bother you but is there a way to get the shopguiplus files from your update program to be plug and play or do i have to edit the main config to get them working

kindred hatch
#

Shops are plug and play, main GUI isn't

arctic pebble
static zealot
#

just another day ๐Ÿฅฒ

frail glade
#

@quiet depot You still up?

#

Trying to use CFR on something and I'm passing --extraclasspath lib.jar and I want to specify multiple. Is there a way to pass multiple library jars in the classpath?

#

I tried using that parameter twice but it just uses the second one and not hte first.

quiet depot
#

what u need libs for

frail glade
#

Because it says "Could not load the following classes" at the top and it talked aobut jetbrains annotation and bungeecord stuff.

#

So I wanted to pass in the jars for both of those so it properly runs on them.

hot hull
#

What's latest gradle version

ocean quartz
#

7.1.1

hot hull
#

danke

prisma wave
#

yo wtf apparently zsh (?) has tab complete for kill

#

that's sick

static zealot
#

o

#

kill alex?

#

xD

#

||yes I know that's the user name smh||

#

oh Konsole also has tab complete

#

kinda

prisma wave
#

that's not a konsole specific thing

static zealot
#

well I didn't say it is

prisma wave
#

tab completion is usually up to the shell afaik

#

true

static zealot
#

also

#

fun fact

#

I didn't know konsole has tab completion until like 1 month ago

#

and I'm using linux for more than 1 month ๐Ÿฅฒ

prisma wave
#

๐Ÿฅด

distant sun
#

do I need to create a custom world generator to decrease stuff like lava spawn rate?

static zealot
#

good question gaby. now tell me the answer

ocean quartz
hot hull
#

Yes Gaby

#

or if there's a paper setting

gentle shore
#

some1 know how to check which gui opened and if the item clicked is in the gui?

static zealot
#

whaT?

steel heart
#

Holy shit java got quite many bytecode instructions, thought it was like 5 or something

obtuse gale
#

LMFAO

#

Yeah this isn't a barebones brainfuck-like tape reader ๐Ÿ˜‚

static zealot
#

lmao

steel heart
#

Lol

old wyvern
#

Ah yes, classic sentient worldedit

eternal compass
distant sun
#
    public static <T extends Tier> List<T> loadTiers(final ConfigurationSection section,
                                                     final Function<ConfigurationSection, T> function
    ) {
        return section.getKeys(false).stream()
                .map(section::getConfigurationSection)
                .filter(Objects::nonNull)
                .map(function)
                .filter(Objects::nonNull)
                .collect(Collectors.toList());
    }```
Stream api is one of the best things ever invented
prisma wave
#

im trying

#

so

#

hard

static zealot
#

we know

onyx loom
#

mapNotNull ๐Ÿ˜Œ

distant sun
#

ofc

old wyvern
#

๐Ÿ˜Œ

#

Another haskeller in the making!

#

HaskellChat

prisma wave
#

ha

#

well

#

ive gotta do it now

half harness
prisma wave
#

Horiffic

half harness
#

๐Ÿ˜ 

prisma wave
#
loadTiers section function = map (function . getConfigurationSection section) $ getKeys section
half harness
#

wouldn't you need a $

prisma wave
#

ummmm

#

I'm not sure what you're talking about

half harness
#

๐Ÿ˜’

prisma wave
#

I've got an $

half harness
#

(edited)

#

dkim better than brister mitten at haskell

prisma wave
#

bruh I was on mobile gimme a break

#

oh

#

That code doesn't work with Maybes

#

Hmm

#

Ooh

#

[Maybe a] -> (a -> Maybe b) -> [Maybe b]

#

That sounds familiar

#

Kinda

obtuse gale
#

does 1.17 come with it's own mysql libary so i don't have to include my own?

prisma wave
#
loadTiers section function = catMaybes $ map (\e -> getConfigurationSection section e >>= function) $ getKeys section
#

hmm

steel heart
#

hm m -> (m -> hm mh) -> (hm mh)

prisma wave
steel heart
#

man its like a new world once you start to understand this monad monoid endofunctor thing

prisma wave
#

ofc it is

#

emily is also experiencing the magic

#

Although with flonure

#

Clojure*

#

Which isn't quite as exciting imo

obtuse gale
#

ah yes

#

flonure

obtuse gale
#

i DID write a factorial function in HASKELL

#

So, i'm writing a Double Elimination type system for a server i'm working on, and i need help working out how best to do it

#

without EVER reading any guides, taking courses and asking questions about haskell

#

and i am very proud of that

prisma wave
#

But yes very good

prisma wave
#

Also

#

We're currently discussing functional programming for the 18th time today

obtuse gale
#

functional, as in corexy stuff ;)

prisma wave
#

uhh

obtuse gale
prisma wave
#

Functional as in monads

obtuse gale
#

BM

#

what's a monad

prisma wave
#

What's a monad you ask? I'm so glad you asked!

#

Hah

#

Prefired

obtuse gale
#

lol

prisma wave
#

Clojure probably has monads

#

Maybe

obtuse gale
#

but what's a monad

#

please

prisma wave
prisma wave
#

Uh

obtuse gale
#

(:

prisma wave
#

Any type with 2 functions, return and bind is a monad

#

return :: a -> m a, bind :: m a -> (a -> m b) -> m b

#

Say the line bart

obtuse gale
prisma wave
#

โ˜น๏ธ

#

Anyway since you're now a haskell expert this should be easy

obtuse gale
#

uh

steel heart
#

clojure > haskell?

prisma wave
#

Not really comparable

#

Very personal preference

steel heart
#

from my view they look quite similar but yeah I guess

obtuse gale
#

well on clojure i know how to use the repl, i've learned a few of the standard library functions, data structures, records, and a few other things

#

on haskell i just know how to make a function and some basic pattern matching

#

"pattern matching"

#

kinda just like [n] and [n ns] or whatever lol, or 0 when i did the factorial function

prisma wave
#

pattern matching ๐Ÿ˜Œ

prisma wave
#

as far as i know the conventions and things are very different

obtuse gale
#

a lot of parenths

#

a lot

#

of parenths

prisma wave
#

๐Ÿฅฒ

#

just like alonzo church wanted

obtuse gale
#

lol

#

i have to read the style guide thing johnny sent

lunar cypress
#

clojure is similar in that it's functional, but within the functional world clojure and haskell are extremely far apart

#

Clojure was built with completely different goals in mind than haskell

old wyvern
#

Church Turing Thesis bad. Lambda calc >>>>>>>>

lunar cypress
#

Get the C syntax in your name right before you talk to me

prisma wave
#

๐Ÿฅถ

prisma wave
#

You know

#

I'm not convinced a lot of these javascript twitter accounts are real

#

Maybe I'm just a loser who never leaves the house but this just doesn't seem like how an american woman would speak

#

Original tweet was deleted but this is similar to what im saying

#

Idk

#

There's just something about all the trendy javascript twitter accounts that doesn't seem real

obtuse gale
#

that is NOT me

#

or maybe it is

#

unlikely

#

or not

lunar cypress
#

account gone

prisma wave
#

yeah ik

#

there are others though

#

All of the popular javascript webdev accounts

#

They just seem a bit unnatural

lunar cypress
#

idk any

#

Aside from the people who (used to?) make the ladybug podcast

#

they seemed real to me

steel heart
old wyvern
#

wut xD

old wyvern
#

ummmm, why is something from the ads package reading from the whatsapp messages database inclusive of the message...

errant geyser
#

Because fuck you and your privacy... unless the messages are encrypted and it just hasn't been removed yet

old wyvern
#

The messages in the database are raw

obtuse gale
#

love the name

old wyvern
obtuse gale
#

sQLite

old wyvern
#

I mean I cant tell for sure if this part exists in the actual whatsapp apk

#

Im going through a modified version

#

Override? Nah! All my homies instance of their way through it!

half harness
#

๐Ÿฅฒ

terse tundra
#

lightmode

timber oak
#

Quick weird question; is AI possible in Java?

terse tundra
#

yes should be

#

ever heard of the minecraft mod baritone

#

its made and java and uses a ai

timber oak
#

Does baritone use AI?

#

What the

old wyvern
#

ai is a concept

#

its language agnostic

#

What exactly do you want?

timber oak
#

Just wondering, I just think the concept AI is interesting, might wanna try it out so wanted to know if it's possible to make decent AI in java

old wyvern
#

as I said, it has nothing to do with the language itself. You can implement the different models in any language

timber oak
#

Yeah, makes sense

old wyvern
#

python has the most available libraries for ml tho afaik

#

for java you can check out d4j

timber oak
#

Yeah heard that Python's libraries are great for ML

timber oak
old wyvern
#

Just saying, but you probably want to go through some theory before jumping straight into a library

timber oak
#

Yeah, do you by any chance know some kinda of introduction to AI? I'm guessing there's a ton on YT

#

But it's not always easy to find a good one

old wyvern
#

3Blue1Brown has some explanation videos about it, but other than that I cant refer you much. I havent tried much in that domain

#

There you go

cinder flare
#

he made me kinda like and understand calculus

old wyvern
#

ikr he explains things very well

obtuse gale
#

He explains everything so well

#

And the visual approach is great

young pawn
#

hi, where can i ask something about the deluxemenu plugin?

obtuse gale
young pawn
#

Okay

vagrant bobcat
#

If I wanted do different classes for same command but with sub commands what would I do?

prisma siren
#

DM how to use CustomModelData, I followed the wiki to write the error

#

material: 'STONE'
nbt_int: CustomModelData:13
slot: 17

prisma wave
obtuse gale
#

If I may how often is the recent purchases database updated?

distant sun
#

@pallid gale

pallid gale
#

Which plugin?

obtuse gale
#

Deluxechat

obtuse gale
# pallid gale Which plugin?

Would I be able to send proof of purchase to you in order to get access to download the latest jar?
or shall I wait for the database to update with all recent purchases

jovial warren
#

entities have AI too

quiet sierra
jovial warren
#

no it's not

quiet sierra
#

Technically any algorithm is AI

jovial warren
#

AI mainly refers to the ability for machines to make decisions by themselves

quiet sierra
#

I can put an RNG-based algorithm on tic-tac-toe and call it AI

#

User likely wants machine learning tbh

jovial warren
#

yeah

pallid gale
obtuse gale
jovial warren
#

just out of curiosity, would anyone happen to know how persistent collections compare to something like a CopyOnWriteArrayList in terms of write performance?

steel heart
#

Are we talking writing when iterating over it or just generally?

#

Cuz thatโ€™s kinda not supported iirc or at least removing

jovial warren
#

I'm talking about writing to it

#

iterating over is reading, and I assume the read performance is about the same

#

CopyOnWriteArrayList, as the name suggests, copies the backing array every time you perform a write operation

#

on the other hand, persistent collections do some magic to maintain immutability whilst not copying the collection

distant sun
#

any idea if it's possible to change how often lava is generated on overworld? ๐Ÿค” possible without a custom world generation plugin

steel heart
#

Myeah, I would assume best case scenario for it to write is where it simply just uses a Lock to ensure thread safety

lunar cypress
#

I mean the copy on write collections

#

Although it depends in which context

#

because the purpose of such collections is to provide atomicity

#

which persistent collections don't have if you just reassign a variable

#

You don't need this in single threaded contexts of course, but in multi threaded contexts you'll have to wrap the persistent collection in an atomic reference or something for comparison

prisma wave
#

Persistent is definitely better yeah

#

Copy on write copies everything, persistent only copies whatever it has to

lunar cypress
#

But as I said, CopyOnWrite has a different focus/a property that persistent collections don't have inherently

#

But I don't really know how you'd benchmark this

#

Because I bet this varies depending on how many threads you have that access it at the same time

static zealot
#

๐Ÿ˜Œ

ocean quartz
#

t

static zealot
#

yeah changed it to tag

#

shh

distant sun
#

How come matt doesnt say anything about streams

ocean quartz
#

I mean streams aren't bad

old wyvern
#

O(n) lookup ๐Ÿ˜Œ

quiet sierra
#

I personally hate streams

#

I mean they're really good for readability

#

But do you really need to sacrifice performance

#

at the same time my code doesn't look the most readable of all

old wyvern
#

Time to head back to the stone age and write assembly

quiet sierra
#

Plugin dev in cobol

old wyvern
#

The performance difference is ussually negligible

quiet sierra
#

I'm the guy making all entities client-side to not tick servers

#

tell me more about negligible performance

quiet sierra
#

I optimized the hell out of a proprietary file extension to save 150kb on disk

quiet sierra
#

It was worth it

#

Lovely that only people that can help me with project related stuff are mojang staff nowadays

#

On an irc

static zealot
#

o

hollow walrus
#

why are people dm ing me for help

#

and texture pack and other shi

quiet sierra
#

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

hollow walrus
#

i dont wanna be rude so i help them

#

and why me?

static zealot
#

yeah we're asking ourselves the same question

hollow walrus
#

no no no

#

you are trusted

#

and i can understand helpers

#

but like im lvl 3

static zealot
#

๐Ÿ‘

#

probably bcz u helped once

jovial warren
#

currently trying to design a decent item metadata API, and was thinking about using a key-based system, where you can get/set metadata values

prisma wave
#

hashmap please

jovial warren
#

e.g. ```kotlin
val stack = ItemStack.of(ItemTypes.SOME_ITEM, 64) // It's an interface so I can store the NBT on the backend
stack.meta[MetaKeys.NAME] = Component.text("Hello World!")

prisma wave
#

KEYS AGAIN

#

Stop it

#

just use a string bruh

jovial warren
#

but then I can't have get return some type

#

MetaKey has a generic type, which enables me to have a get that takes a MetaKey<V> and returns V?

#

also, keys good

potent nest
#

heterogeneous containers ๐Ÿ˜Œ

prisma wave
static zealot
prisma wave
#

why

static zealot
#

bcz that's how it is

prisma wave
#

TreeMap

#

Keeps it sorted and O(log n) lookup

jovial warren
#

yeah use a TreeMap and order by priority with the comparator

static zealot
#

maybe another day

#

xD

#

spent enough working on it for today

prisma wave
#

Wait

#

That doesn't necessarily make sense

#

Nvm

static zealot
#

huh?

prisma wave
#

using treemap

#

if you need to lookup by priority often

jovial warren
#

oh btw, just another API question: should I actually expose the backing NBT data raw in the API?

static zealot
#

idk how often it looks for priorities. but I don't think its that often

jovial warren
#

I'm not sure, since on the one hand, that's probably the most wanted feature in the entirety of Bukkit, but on the other, it exposes something that could be considered implementation detail

prisma wave
#

Elaborate

#

What is meant by "raw" nbt

jovial warren
#

I mean like allowing you to retrieve the NBTCompound that actually stores the data for ItemStacks

static zealot
#

also btw this is the last thing you should complain about lmao xD. well you didn't see the project so I guess you can't really know that

prisma wave
static zealot
#

that I know

#

but hey. its not mine

jovial warren
static zealot
#

.

#

lag

jovial warren
#

maybe for getting the data directly instead of using the key system?

prisma wave
jovial warren
#

but I have no clue why anyone would want to do that tbh

prisma wave
#

if you can't think of an actually useful use case it's probably not worth adding

quiet depot
#

howdy folks

jovial warren
#

hello pig

prisma wave
#

good day

quiet depot
#

string bad

#

key good

#

user input in api bad

#

hard coded option good

prisma wave
#

sponge's Key system is weird

#

seems like they forgot methods and polymorphism are a thing

quiet depot
#

elaborate with examples pls

prisma wave
#

idk

quiet depot
#

sponge's key system is like half way there

prisma wave
#

just have player.getName smh

quiet depot
#

they do have getters for a lot of things

#

probably use more getters than keys

#

which is why i said it's half way there

#

d;sponge keys

ruby craterBOT
#
public final class Keys
extends Object```
Keys has 401 fields, and  1 extensions.
Description:

An enumeration of known Keys used throughout the API.

prisma wave
#

why use them in the first place tho

#

What's the benefit

quiet depot
#

frankly

#

it's just cleaner imo

#

for comparison

#

imo papi 3 is "all the way there" with keys

#

there aren't really any getters on things like player & server

prisma wave
#

I could do player.get(Keys.BIOME_TEMPERATURE) and the compiler doesn't even warn me

#

player.getBiomeTemperature() wouldn't compile obviously

quiet depot
#

well yes obviously that's not ideal

#

papi 3 tries to get around that by providing type specific key classes (e.g. PlayerKeys)

#

along with a general Keys class

#

when I say cleaner

#

here's an example from papi 3 for implementing a couple keys

#

that'd be a lot fatter with methods

#

now that I'm going over it I don't have any real arguments to say keys are better

#

I just like them

jovial warren
#

I mean, I don't like keys for everything, but I think keys are useful for when you need to store and retrieve arbitrary data that may not exist

#

for example, with item metadata, certain item types have certain metadata that other item types don't

prisma wave
#

๐Ÿ˜– ๐Ÿ˜–

#

it's the epitome of evil

#

Doesn't belong in statically typed languages

quiet depot
jovial warren
#

like potion items have information about what the effects are, how long until it expires, etc.

#

but a stone item isn't gonna have that

#

and I don't wanna do another Bukkit if I can help it

prisma wave
quiet depot
#

that's not true

#

adding a type parameter to the key type which ensures it can only be used on specific types would solve the issue

prisma wave
#

true

jovial warren
#

I mean, the key-based system is gonna be a little hacky for item meta, since I need a way to figure out how I should serialize/deserialize specific keys to/from the NBT data

quiet depot
#

e.g. Key.NAME should only be usable on things with a name, so we have an interface Nameable, and restrict that key to only things implementing Nameable, and we ensure that via the Nameable type parameter on Key.NAME

jovial warren
#

but I don't see a better solution

#

if anyone actually knows a better solution than a key-based system for item metadata, be my guest

steel heart
#

Feels like a good way to avoid excessively long hierarchies of interfaces

prisma wave
quiet depot
#

which is why I personally don't go that route

#

and just expect people not to be idiots

jovial warren
#

also, with a Bukkit-based metadata system, you actually have to make assumptions, casting metadata to various types depending on what the item is, which means you still lose compile-time type checking

steel heart
#

Myeah

quiet depot
#

and not try to call PLAYER_STATISTICS_TIME_PLAYED on a fucking grass block

prisma wave
#

we possibly have different philosophies here

#

i am of the mind that in a statically typed language the compiler should be checking absolutely everything possible

quiet depot
#

well there's also the train of thought that there's nothing wrong about calling PLAYER_STATISTICS_TIME_PLAYED on a grass block

#

it may not make logical sense to you, but to the api, it's simply a key that hasn't been implemented for that type

#

and therefore returns an empty optional

#

or null

#

depending on your taste

prisma wave
#

That's a java problem

#

And generics can still be safe

quiet depot
#

hold on bm

#

I think I can relate this to oops message passing

#

aren't objects meant to accept requests of any type, and deal with it?

prisma wave
#

in theory

quiet depot
#

and a key system allows for that

prisma wave
#

but that's pretty much describing polymorphism

#

And modern day OOP isn't really the original concept anyway

static zealot
#

=multi

quiet depot
#

that's not personally what I thought polymorphism was

compact perchBOT
#
Your XP Multiplier:
prisma wave
#

Objects communicate by sending and receiving messages (in terms of objects)

There's no specific implementation described here

#

It's conceptual

#

actually I may be wrong there, the wikipedia page for message passing distinguishes it from invoking a function by its name

foggy pond
#

For 1.13+ do you guys prefer Fabric or Forge
Since the general consensus seems to be that Fabric has the better API but forge has more mods

static zealot
#

yo @prisma wave funny thing btw. it is a tree map. I Just opened the project to check xD

quiet depot
#

for the exact reason you just said

#

I don't give a fuck whether I'm playing on fabric or forge

#

doesn't make a difference to me, the end user

#

I just want mods

static zealot
foggy pond
#

Fair enough ๐Ÿ˜‚

static zealot
prisma wave
#

Different sources seem to give different information on what message passing means

#

Nowadays it seems to just mean things like the Actor and Strategy patterns

quiet depot
#

well I can't remember my source

#

but I remember reading it as "send message, thing accepts message, thing handles message"

prisma wave
#

which seems like a method

quiet depot
#

methods are the way it's implemented in java

#

that's not to say it's the best way

prisma wave
#

But i don't think there's much to be gained by comparing modern languages to the original OO concepts, since they're so different

#

sure

quiet depot
#

no one ever said java's oop implementation is perfect

quiet depot
#

which isn't necessarily restricted to java

#

on another note

jovial warren
#

wow, Sponge's data persistence system is more complicated than I thought lol

quiet depot
#

wow, Sponge's insert pretty much any sponge api is more complicated than I thought lol

prisma wave
#

They made a mistake

jovial warren
quiet depot
#

well while their api isn't perfect

#

it's a hell of a lot better than spigot

#

so i like sponge

prisma wave
jovial warren
#

eh, it's better in some places, but not as good in others imo

prisma wave
#

which makes sense in the sense of message passing relating to dynamic dispatch and stuff

quiet depot
#

indeed

quiet depot
jovial warren
#

the data API is a bit over-complicated, I don't think entity metadata system needs to use it

quiet depot
#

dunno if I've used either of those apis

jovial warren
#

like getting given Values for everything

quiet depot
#

oh those I definitely have encountered

#

yeah not a fan of those

jovial warren
#

also, the item API seems to use a data query system, where you can perform a query to retrieve specific data

quiet depot
#

I have used the item api and I'm not sure what you're talking about

#

mind you my usage was probably a bit different to yours

jovial warren
#

where do you even get and set keys? isn't it with a DataView?

#

oh, no, it uses the stuff from the ValueContainer that took 5 layers of interitance to find

jovial warren
#

yeah

#

it uses the key-based system

sly sonnet
#

which engine should i use for papi javascript placeholders?
nashorn is not supported anymore
on jvm 15 and above at least

static zealot
#

it has nashorn and quickjs shaded in

#

and uses nashorn by default

#

but u can enable quickjs from config

distant sun
#

Cause: class org.gradle.internal.compiler.java.ClassNameCollector (in unnamed module @0x6a2f2f5) cannot access class com.sun.tools.javac.code.Symbol$TypeSymbol (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.code to unnamed module @0x6a2f2f5
yes

hot hull
#

@digital shuttle multiply your budget 4 - 6 times

distant sun
hot hull
#

Have you turned on your internet by any chance?

fervent tinsel
#

who look into n.m.s code deep and worked with changing items handling (Such as changing block preferred tools, item "special" blocks)?

hot hull
#

You don't need nms for that

bold yarrow
#

is there a direct download link for the placeholder api plugin?

fervent tinsel
hot hull
#

Oh, so changing block dura

fervent tinsel
#

pretty ye

#

i got tested by modifying block strength and durability, but it gives for me only instant break on low values

hot hull
#

There's like 90% chance there's a tutorial on it