#dev-general

1 messages · Page 220 of 1

prisma wave
#

Or just a bug

distant sun
#

I should have all the required modules though

prisma wave
#

¯\_(ツ)_/¯

distant sun
#

from what I see I think I miss an env value

#

os.getenv('WDM_LOG_LEVEL')

frigid badge
#

noob

#

you badly want to cheat the school system huh

distant sun
#

shut up

hot hull
#

lol

distant sun
#

it WoRkS

prisma wave
#

something is actually wrong with me

#

i've been debugging why WE RandomPattern was only producing the same block when I added the same block twice...

steel heart
hot hull
#

big brain

hot hull
#

@prisma wave slow

prisma wave
#

nah

#

Can paste, scan and load a 50x50x30 region in about 1.5 seconds with very few optimisations

#

actually more than that

#

91 x 16 x 91 to be precise

#

132000 blocks

steel heart
#

Would be curious if you could do that faster

prisma wave
#

potentially

#

most of the overhead is obviously fawe

steel heart
#

Yeah

prisma wave
#

but fpm should only add a tiny bit onto that

steel heart
#

fpm?

hot hull
#

Fucking pizza maker

prisma wave
#

fancy private mines :))

steel heart
#

ah

hot hull
#

Close enough

steel heart
#

my brain isnt working today

hot hull
#

BM, ditch fawe do it yourself

steel heart
#

That could make it faster

hot hull
#

Also cache anything that can be cached

prisma wave
#

nah I don't wanna ditch fawe

#

But yeah

steel heart
#

cache the cache fingerguns

obtuse gale
#

Fuck fawe

prisma wave
#

I'll do some benchmarks soon to see how long is spent on each bit

steel heart
#

yeah

hot hull
#

Make fancy patterns tho BM

steel heart
#

non cubic regions

hot hull
#

For the loading, so you can delay it, meaning speed won't be an issue

prisma wave
#

Wdym fancy patterns

hot hull
#

Like placing layers by layers, and then more fanciness

prisma wave
#

Oh

#

Could do

steel heart
#

the animation of how the blocks are regenerated?

hot hull
#

Yes

#

Would remove the need for speed

steel heart
#

thats partly true

#

but it would be elegant af

prisma wave
#

The benefit of using FAWE is I don't have to deal with that

hot hull
#

You can also cache the calculations then, ez claps

prisma wave
#

And fawe probably has better optimisations

#

You can also cache the calculations then, ez claps
That's exactly what I'm doing rn

hot hull
#

Good good

steel heart
#

cache the cache that calculates the cache of the cache

prisma wave
#

On an initial paste, it calculates all the locations and then stores them relative to the schematic origin so they don't need to be recalculated

hot hull
#

Yus yus

steel heart
#

so

#

4head.who = frosty

prisma wave
#
Found free location in 11ms
Pasted plugins/FancyPrivateMines/schematics/paste1.schematic in 4664ms
Scanned region in 1ms
Filled mineable area in 26ms

so yeah fawe is taking up like 99% of the time

#

which is strange considering it pastes instantly with //paste

hot hull
#

I'm telling you, ditch fawe

prisma wave
#

i don't really wanna make my own though 😦

#

that's like

#

a lot of effort

hot hull
#

Worth it tho

prisma wave
#

is it though

#

surely fawe has many more optimizations

hot hull
#

I mean if you go for the "animations" then don't bother, otherwise do bother

prisma wave
#

but fawe is already fast

#

it shouldn't be necessary

static zealot
#

and buggy 😦

prisma wave
#

not on 1.8 fingerguns

hot hull
#

If you can't achieve maximum speed on 1.8 you're weak

prisma wave
#

Define maximum speed

hot hull
#

Server go brrr

prisma wave
#

i've shaved it down to 1.5 seconds

#

for an incredibly large schematic bear in mind

half harness
#

why not just instant

#

and make 2 second server lag

#

:>

static zealot
#

ye why not?

#

2 seconds that will be enough to crash it and just break the paste. half pasted half not and no way to do /undo anymore

#

its the best when that happens.

half harness
#

oh

#

but

#

the

static zealot
#

make it a requirement that the server has 16 GB RAM for the plugin to work xD

half harness
#

ye

#

😄

prisma wave
#

time to find out if this "mf-gui" is worth all of the hype

hot hull
#

It is

prisma wave
#

i will be the judge of that

hot hull
#

However not being able to construct a menu directly from a file is a flaw

#

As in having already built stuff for it

ocean quartz
#

Lazy

prisma wave
#

that's unfortunate

hot hull
#

No u Matt

ocean quartz
#

Yeah me, i am lazy

frail glade
#

Elara, have you finished going over the relocation PR?

prisma wave
#

kind of

#

i'm highly considering a rewrite

#

just trying to find the willpower lol

frail glade
#

Just do it smh.

light venture
#

How quick was elara thonking

hot hull
#

Fast as fuck boi

frail glade
#

As slow as the developer that does PDM PR reviews.

prisma wave
#

☹️

hot hull
#

Yikes

frail glade
#

You think I can add "PDM Relocation Support" to the December giveaway?

#

I'll set it for Dec 1st

prisma wave
#

I will try

#

Although Piggy's PR doesn't fully implement it

ocean quartz
#

Going to do big changes to the gui lib, i'll make the paginated gui be aware of it's pages, instead of calculating every time it opens
Will also return the added slot, I think Frosty wanted this to be a thing
And maybe i'll add the load from file xD

frail glade
#

Ooo

hot hull
#

How bout you integrate an xml property file which determines the format for the file somehow

ocean quartz
#

I can try
Was thinking about doing it with yml instead

#

XML is really ass

#

Also finally separated it into modules so i don't forget to remove my commands framework before publishing kek

hot hull
#

Yea I mean yml for the actual file for it, but xml or something to define how it get's parsed/the files format

frail glade
#

PlayerVaults 3.0, powered by MF-GUI.

hot hull
#

If that makes sense

ocean quartz
#

Ooo okay, i can look into that

#

Being renamed to triumph-gui now too ;p

#

Finally organizing my stuff

hot hull
#

Cause like why be confined to a single format/style when you can let the user change it

#

I still need gh folders to be able to organize my shit

static zealot
#

loook its TriumphDev himself

ocean quartz
#

Hell yeah

#

Wanted it to be just Triumph but already existed on gh

static zealot
#

ye

#

but

#

it'll not do what it says

#

that will kick the player instead

#

of opening a gui

#

👍

ocean quartz
#

Yas!

light venture
#

pog

ocean quartz
#

We should try doing that thing again, where we have a repo, and have to pr anything to it with a limited amount of lines to make a random plugin

frail glade
#

I hate that it's started that.

normal talon
#

happend to me twice today

static zealot
#

Matt that was a failure. It's not worth it

ocean quartz
#

That's because the channel was hidden and stuff, could be made more public

surreal quarry
#

yea that could be fun to try again

jovial axle
#

weird question everyone, I am looking for sites that always present the user with a captcha, I am having some fun with ML and my model needs training material

#

hope this is not against chat rules btw

umbral mica
#

What does this ML do? this sounds kinda malicious ngl lol

jovial axle
#

well it is somewhat but I could not think of something else to make something for

umbral mica
#

😐

jovial axle
#

if u got a suggestion please lemme know

half harness
#

what does ML stand for/mean

obtuse gale
#

Machine Learning

half harness
#

o

#

thx

obtuse gale
#

np

brave bear
#

does anyone know of any good command APIs out there for spigot?

umbral mica
#

Cloud ❤️

brave bear
#

any links for it i cant seem to find it?

umbral mica
#

gg that's quite the social media preview City has lol

brave bear
#

thanks

steel heart
#

It’s the best cmd framework in my opinion

#

Except it’s fat

frail glade
#

I do agree with that.

#

I feel it could be overkill / scare away people with smaller plugins.

hot hull
#

mf commands fingerguns

quiet depot
#

rpf fingerguns

prisma wave
#

yeah Cloud is definitely more complex than most command frameworks

#

Especially with registering all the different parts

static zealot
#

oh I always used MFC never even looked at other command frameworks

prisma wave
#

ACF is still my favourite

static zealot
#

anyways. Can you guys recommend an "actions" library?

prisma wave
#

doesn't Gaby have one?

#

If you mean like [BROADCAST] hello

static zealot
#

ye

hot hull
static zealot
#

but for commands as well

#

oh

#

I think gaby has only broadcast and message

prisma wave
#

Or Gaby's is called ItemActionLib afaik

hot hull
#

That's katsu's?

prisma wave
#

oh is it

#

Lol

#

close enough fingerguns

static zealot
#

oh wait

#

doesn't gian have one?

#

I'm pretty sure I saw one last time I saw his gh let me check

hot hull
#

Everyone has one

static zealot
#

I don't .. xD

#

I should make one tho

prisma wave
#

Oh nvm IAL is for something else I think

hot hull
#

Mine is best tho

prisma wave
#

Obviously

static zealot
#

Gaby's is called Util-Actions

#

only broadcast and chat

#

actions

#

so yeah

hot hull
#

Well mine has delays and chances as well

prisma wave
#

bring back FrozenJoin

hot hull
#

And it's made in kotlin fingerguns

static zealot
#

oh

#

that's a win

hot hull
#

However I don't think it'll work with java tho

static zealot
#

yep gian has an actionutil as well

prisma wave
#

it's no [other JVM language that may or may not exist yet]

static zealot
#

he has chances and delays as well xD

#

but frosty's is in kotlin

#

thoo

hot hull
#

Gian's is ew tho, cause it doesn't properly sort the actions

static zealot
#

soo

#

xD

#

oh yours looks good Frosty. I think I'll use it

#

oh centered messages

#

as well

#

xD

#

Should I start becoming a narcissist dev and name all my plugins BlitzPluginName ? xD

prisma wave
#

it's better than DeluxeProUltraSuperPluginNamePlus

static zealot
#

oh wait

#

DeluxeProUltraSuperBlitzPluginNamePlusSupreme

prisma wave
#

😳

obtuse gale
dawn hinge
frail glade
#

Just name them like you would kids.

static zealot
#

and an check MUST HAVE check

obtuse gale
#

Advanced

frail glade
#

Darrel, Johnathon, etc.

static zealot
#

oh

hot hull
#

lol Glare

static zealot
#

that's a weird idea

#

but

#

I think I'll actually start doing it

#

xD

prisma wave
#

or name them UUID.randomUUID()

obtuse gale
#

The supported versions list is just every version of minecraft, 1.0 - 1.16

static zealot
#

check MUST HAVE check DeluxeProUltraSuperBlitzPluginNamePlusSupreme check MUST HAVE check

frail glade
#

Check MUST HAVE Check James! Check Does the dishes! Check

static zealot
#

and the description: doesn't actually do the dishes

obtuse gale
#

Under that add large bold red text

static zealot
#

and abov

#

e so they don't see it

#

also make a + version that will be the same thing just has a + in the name and costs like 20$ xD

prisma wave
quiet depot
#
  • Better handling of GC:
    Program will delete itself on boot.
prisma wave
#

Real GCs delete themselves before the game even starts

lost forge
#

What about be the best way to do above head names in 1.16+? Using Packets or ??

hot hull
#

yes

lost forge
#

Thought so, never touched packets before... Guess it's time to learn how to do it 😛

hot hull
#

If anyone has used Hibernate in the past here, do I still need to handle db creation, table creation and all that jazz, or will it do it for me once I save an object?

quiet depot
#

yes

prisma wave
#

Database creation you need to do

#

Table creation hibernate handles

hot hull
#

Ah okay

hot hull
#

Given up on hibernate, cause I don't think it makes sense to use it here

prisma wave
#

The language I use is Python, with the discord.py API. This language consumes less resources than JavaScript or even Java.

I'm not sure about that one

hot hull
#

Go vouch for my offer service, thanks

prisma wave
#

Add clojuremoon reaction please

static zealot
#

you are welcome frocsty

hot hull
#

I’m trash at coding java but anyways this dude called Frosty is actually pro god Gucci elite
monkas

#

"Gucci elite"

steel heart
#

Yes

onyx loom
#

@prisma wave im here for ur service

#

what message

light venture
#

pog

prisma wave
#

Frosty's offer services

hot hull
#

Someone ban Sellinq please

light venture
#

vouch

onyx loom
light venture
#

it’s helpful rank

prisma wave
#

I can't either

#

The only person who could do it is piggy

#

Because he has perms, nitro and is in elara discord

lavish notch
#

Is there a way to initialise an array that's dynamic?

#

so I don't have to set a size, and I can free add new values to it

hot hull
#

Why not use a list?

lavish notch
#

teach me

hot hull
#

wdym, just yeet array away, make a new List and voila profit

lavish notch
#

give code

#

Initialize it, and append to it

obtuse gale
#

List<T> list = new ArrayList<T>();

#

list.add(t)

lavish notch
#

cheers

dusky drum
#

talking about apps, i made disocrd bot in lua

#

6.5MB ram usage

obtuse gale
#

probably 80+% of that is the command prompt itself lol

prisma wave
#

Yeah Lua is super fast

frigid badge
#

omw to make one in assembly

onyx loom
#

🥲

prisma wave
#

Is Lua dynamically typed?

dusky drum
#

prfect code

#

haha frosty dont be ill?

prisma wave
#

That's actually pretty nice

#

Compared to most of the Lua I've seen

#

It's like python without the gimmicks

quiet depot
#

oo lua

dusky drum
#

i made it look nice, 🙂 learned java due to Fivem 😄

#

its really easy to make something in lua be easily expandable.

quiet depot
#

I used to make discord bots in lua

dusky drum
#

which api did you use?

quiet depot
#

with discord4j

dusky drum
#

ah i use discordia

quiet depot
#

environment I used allowed me to use java apis in lua

dusky drum
#

interesting

quiet depot
#

worked very well too

prisma wave
#

JNI?

quiet depot
#

nah

#

just a lua interpreter in java

prisma wave
#

Ah nice

quiet depot
#

I THINK

dusky drum
quiet depot
#

i'm not 100% sure on that

dusky drum
#

with Luvit.

quiet depot
#

oh nope, I just checked

#

it compiles lua to bytecode

dusky drum
#

i like how easy it is to setup commands any way you want them XD

quiet depot
#

yeah I've heard of discordia

#

i'm too much of a java fanboy these days though

dusky drum
#

XD

quiet depot
#

@prisma wave fun fact lua is right up there with c on terms of speed if you use luajit

#

according to a quora post I just skimmed through

prisma wave
#

Wow

dusky drum
#

lua god

prisma wave
#

That's quite impressive

#

Although Julia is arguably better

dusky drum
#

.,.,

quiet depot
#

and undoubtedly slower

dusky drum
#

haha

quiet depot
prisma wave
#

I think Julia is actually faster than C in some cases

quiet depot
#

oof

#

just imagine how great the world would be if lua focused on being a scripting language

#

instead of purely embedded

dusky drum
#

eh

#

i mean its op for storage stuff you dont need to predefine stuff just ha

member = {
  name = "ababa",
  level = 0,
  xp = 0,
  -- maybe add more stuff?
}
-- add more stuff any time
member.owner = true

OP!

prisma wave
#

So it's dynamic

dusky drum
#

yes

#

i just dont get it why users do this
WHY IS every = in same like line?

hot hull
#

You know what's also dynamic

#

RAID SHADOW LEGENDS

dusky drum
#

no

#

go away

quiet depot
#

erm

#

lua is both

prisma wave
#

That was Sxtanna's favourite thing to do

#

Ah

#

Fancy

quiet depot
#
● Allows static and dynamic typing in the same code
● Provides optional type annotations
● Uses local type inference
● Does not influence run-time semantics
● Unannotated Typed Lua code is Lua code
● Aims to be sound
● Rich enough to preserve some Lua idioms```
dusky drum
#

ye i love how you dont need to change variable type 🙂

quiet depot
#

ok frankly I don't know if this is a proposal or a description of lua's type system

hot hull
#

Piggy, u got any advanced db storage shit on your gh

quiet depot
#

just rpf

hot hull
#

I need inspiration

frigid badge
#

I mean how many models we talking about

dusky drum
#

gotta try make music player in lua hbahaha

frigid badge
#

if not much you can easily make a small impl

#

if quite some use an ORM

quiet depot
#

@prisma wave yeah nvm that pdf is just a proposal

#

it's fully dynamic in that case

hot hull
#

Lemmo, not worth to go with ORM for this cause it's like barely any

dusky drum
#

omg there is lavalink for lua wtf.

quiet depot
#

well frosty don't look at rpf then

#

cuz it's db stuff is an orm

hot hull
#

I just need some guidance to do it "properly" cause right now whenever I do stuff with dbs it's a mess

frigid badge
#

all my os gh projects are shit so i got nothing for you

#

but It isn't too hard

#

just come up with a design on paper

quiet depot
#

@frail glade not sure if you still use taskchain but this was posted earlier in paper today, and people say it's nicer to use than taskchain https://github.com/rest-faucet/task

hot hull
#

I know it's not, just hard to do it properly

#

Piggy, I saw that, looks neat

quiet depot
#

yeah it does

#

might implement it into rpf

hot hull
#

sync/async changing is neat

quiet depot
#

I don't even understand how that works

hot hull
#

No finals, ew

frigid badge
#

it runs a timer every tick lol

quiet depot
#

is that how it works or are you just commenting that?

frigid badge
#

just commenting but that's also how a part of it works

#

why does it keep finished tasks in memory

prisma wave
hot hull
#

So noone got any good examples? fingerguns

dusky drum
#

wat ta frik

dusky drum
#

omg

#

yes

#

give me replyes

hot hull
#

It pings, so heck out

dusky drum
#

Fianly something good! REPLYES!

static zealot
dusky drum
#

...

dusky drum
static zealot
#

it is not a global toggle tho so you have to disable it each time

static zealot
#

but

#

so they update it

dusky drum
#

wouldn't it be better the other way?

static zealot
#

what way?

#

no

#

it'll be better

#

to be able to toggle it

#

and stay the way you want it

dusky drum
#

or that ye

static zealot
#

so just go upvote

#

my post

#

on the link I gave above

dusky drum
#

ye

dusky drum
hot hull
#

Yes

dusky drum
#

how

hot hull
#

wdym how

hot hull
dusky drum
#

oh you use ... dots to click

#

...

#

i just used arrow

oak coyote
#

ooooo

oak coyote
hot hull
#

So noone kind enough to supply me with some inspiration for properly doing DB stuff

prisma wave
#

Do it

hot hull
#

:c

oak coyote
#

Does anybody know any good web-developers that they can vouch for?

#

I am going to do a #772310219590074398 but i was just going to ask here first as you may have some ideas

hot hull
#

Oink oink probably

half harness
#

who is oink oink

heady birch
#

@half harness @quiet depot

half harness
#

o thx

#

double ping 😂

static zealot
#

xD

heady birch
#

There haha

static zealot
#

good one

prisma wave
#

Good news everyone... Andrey Breslav has "stepped down"... Now hopefully we can see some innovation and prosperity in the kotlin language...

static zealot
#

What?

prisma wave
#

Andrey is no longer in charge of Kotlin

#

At last

static zealot
#

no idea who that is but ok I guess

prisma wave
#

former Lead Language Designer for Kotlin

static zealot
#

k

prisma wave
#

looks like karma for removing Tuples is finally catching up to him...!

heady birch
#

Roman said in an interview with CNN, "I like rust, a great language, great syntax you know. I can really see that syntax making it's way into Kotlin.

prisma wave
#

good to see!

#

some really great, maybe even the greatest developments coming for Kotlin!

heady birch
#

The Department of Transport, declined to comment of Roman's statement.

hot hull
#

lol?

heady birch
#

The Department for Environment, Food & Rural Affairs, on Monday, said it "disappointed" with the announcement.

hot hull
#

This is gonna be fun

prisma wave
hot hull
#

So I was gonna use a loading cache, but I think I'm gonna just use a map and have the data for that specific player loaded when he joins, and cleared when he leaves

heady birch
#

ConfigurationSection already loaded wholly in memory. Caching is stupid.
Well

hot hull
#

You're a 4head Niall

prisma wave
#

I look forward to seeing how Roman handles the ConfigurationSection problem that plagues many developers

#

Hopefully some sort of language feature

ocean quartz
obtuse gale
#

or just use asyncprelogin..?

heady birch
# hot hull 😮

Lol.... static class to dispatch your task. WHO sets the plugin instance? I cant think of anything worse and more problematic

#

Tasks {
static Plugin plugin;
} 🤢

prisma wave
#

what have the WHO got to do with Minecraft..?

heady birch
#

World How-To Organisation

hot hull
#

Agreed Matt

#

And Niall, I'm confused af as to what the fuck you're on about

heady birch
#

You need a plugin instance to schedule a task

prisma wave
#

BukkitScheduler requires Plugin instance... WHO providing plugins?

#

Bill Gates...?

heady birch
#

Tasks - thanks for a good laugh

#

IM JOKING

hot hull
#

Go work on Kiteboard weeb instead of making 0 sense

prisma wave
#

Makes perfect sense

hot hull
prisma wave
#

😐

ocean quartz
#

Niall

val PLUGIN = JavaPlugin.getProvidedSomething(Task::class.java)

What is the issue?

hot hull
#

the CHAD would finally be able to use his sleeps

prisma wave
#

static instance

hot hull
#

And what is the issue with that? (For this usecase)

heady birch
#

yes thats right my NEW ZERO CPU solution- we make use of ADVANCED, STATE OF THE ART. technology(scheduleAsync) so there is ZERO LOAD on your server.!!!

ocean quartz
#

Also so Roman Elizarov is now the main guy on Kotlin, nice, he seems like a nice dude

ocean quartz
hot hull
#

BM seems to think there is ;C

prisma wave
#

Glad Andrey has finally been punished for his crimes

#

I disapprove of static in general

#

But I am aware that it's necessary

heady birch
#

Poor design in my opinion

#

Your class should take a scheduling interface

#

🙂

prisma wave
#

kotlin

#

Extension functions + receiver

#

Interface

heady birch
#

This new reply feature is quite Nice

heady birch
hot hull
#

If only you could perma toggle tagging

ocean quartz
#

Yesterday the toggle wasn't resetting so i am assuming it'd a bug

old wyvern
#

Also, this reply design is so.... weird

ocean quartz
#

Ikr

#

I thought it was going to be like Slack's

old wyvern
#

😂

old wyvern
#

damn

ocean quartz
#

It would, but DI is preferable

#

Which thing?

#

That uses reflection and bunch of other stuff, it's not that great to keep using

#

DI is not that hard

hot hull
#

It doesn't

#

If you're that hecking lazy, use a di framework

ocean quartz
#

Use Kotlin fingerguns

heady birch
#

DI = Way better for testing and stuff

ocean quartz
#
public class Class {
  private final Plugin plugin;

  public Class(final Plugin plugin) {
    this.plugin = plugin;
  }
}
class Class(private val plugin: Plugin)
prisma wave
#

All it does is obtains a classloader and casts

hot hull
#

Doesn't matter, fugly

prisma wave
#

Indeed

ocean quartz
#

Imagine if the language had ifs

hot hull
#

lol

ocean quartz
#

The chad man, he knows things we don't

hot hull
#

We all love CHAD don't we

heady birch
#

😠

prisma wave
#

Foundation is a TRIED and TESTED framework

heady birch
#

Css framework? Lol

prisma wave
#

Kangarko

heady birch
#

Oh. Is it good?

ocean quartz
#

Hell yeah

#

The chad only makes good stuff

prisma wave
#

Obviously

#

It features a clean codebase with no flaws whatsoever

#

ZERO anti-patterns, ZERO bad practices, ZERO potential bugs

heady birch
#

JUST util classes!

hot hull
#

@heady birch What's your rainbow expansion

heady birch
#

🤨 I dont have a rainbow specific one, there is animations but is deprecated

#

I want some people contribute perhaps

hot hull
#

Is it OS?

#

-papi animations

heady birch
#

No but come on, rainbow is so easy, depends on which rainbow you want

ocean quartz
#

Niall doesn't do OS 😞

frigid badge
#

new requirement for dev role is OS so imma remove your role Niall....

hot hull
#

It's gotta be a placeholder since tab

frigid badge
#

lmao

ocean quartz
#

lmao

heady birch
#

Lol

hot hull
#

Just saw the message, kek

heady birch
#

Which rainbow? Can you make your own placeholder? I'll just give you the code

#

@frigid badge Remember you said about making an animations expansion (before I did) all those years ago? What was your approach on it? perhaps you would want to do it? Or not if your busy

frigid badge
#

yeah ik I wanted to but scrapped it since it depends on the plugin requesting the placeholder

hot hull
#

Where's Glare today 👀

frigid badge
#

the plugin requesting the placeholder needs to update a certain amount for it to be a good looking animation

#

but it would be easy to make just only applicable to certain plugins

heady birch
#

Yeah, the interval is set by the plugins

#

And sometimes people expect it to work in plugins where the interval cant be changed

#

@hot hull Which rainbow where you looking at?

hot hull
#

Don't worry, already got it

#

OS the expansion and I'll dabble if I have time

ocean quartz
#

Aight i need some opinions
I am working on this chat plugin and I want to have a system similar to PAPI's extensions
Where you can add custom chat placeholders like for example {item} or {inventory}
The idea for the extensions is pretty simple, my question is:
I want to have default extensions like the item and inventory ones, should I have the jar inside the resources and copy it to the folder on first run or have it be in the code? thonking
Idk what system would be better for users, i know that adding the jar would be more JARring (sorry for the pun)

heady birch
#

I quite like B

#

Generate if its a new install, they can remove the included modules if they dont want them

ocean quartz
#

So add the jar to the folder on first run, if they delete then it'll be disabled?

#

Could also add a regen defaults command

#

Hmm i guess i'll do that

obtuse gale
#

so i made a deluxemenu idk how to give it a perm

#

so people can open it

ocean quartz
static zealot
#

yep

ocean quartz
#

Ah yes config devs

ocean quartz
hot hull
#

Lol

distant sun
#

lol what 🤣

midnight pilot
#

hey guess

#

guys*

#

could I get some help with my mods real quick

ocean quartz
#

Making a mod?

obtuse gale
#

yes Matt

#

make a mod for me

#

forge 1.5.2

#

I'll pay you

#

a total of $0.00

ocean quartz
#

I know this seems quite useless, but i think it's awesome
Reading from the config, if the entry has "%message%" in it then it'll map into a MessageComponent if not then it'll map into BaseComponent

hot hull
#

Fairly neat

hot hull
#

Option A: A phat fuck you to IJ
Option B: rename method to doesntHasHaveNoPermission

#

Choose option for me, thanks

old wyvern
#

A, ignore

hot hull
#

Understandable

distant sun
#

🤣

onyx loom
#

weak. imagine only having 104758mb of memory

heady birch
#

This gives rust programmers the opportunity to shame C developers lol. "Let's say, hypothetically, you were to develop the equivalent computer program algorithm in the Rust programming language, the situation demonstrated in the above "meme" would not have occurred in the first place"

hallow tide
#

lol

#

i never touched rust tbf

#

but i touched c++ but like only the surface

quiet depot
hallow tide
#

whats wrong in it?

#

🙂

heady birch
#

yeah seems fine

quiet depot
#

getName is inherited from HumanEntity, not CommandSender

hallow tide
#

ah

heady birch
#

is a HumanEntity not a CommandSender? Idk

#

Probably not

hallow tide
#

i thought it is

quiet depot
#

it's not

#

player is a commandsender, and a humanentity

#

but humanentity is not a commandsender

hallow tide
#

ah

#

how does your program work

#

like in reads thru the javadoc and take info?

quiet depot
#

yes

hallow tide
#

webscraping i see

quiet depot
#

I know why it's not working, I've just got no clue how to fix it

#

because technically the program isn't wrong

hallow tide
#

the thing i hate most cuz its sooooo annoying

quiet depot
#

technically the javadoc is wrong

distant sun
hallow tide
#

i cant just get how people have the time to make a webscraping program and debug it lol

quiet depot
#

oh my god i'm retarded

#

nvm my program is working fine

#

literally perfect

#

great

distant sun
#

@quiet depot OS? 😮

quiet depot
#

ofc

hallow tide
quiet depot
#

okie dokie just pushed

#

so, we've got indexing working for classes and methods now

hallow tide
#

so there was no problem?

quiet depot
#

nah I was just being a bit special

distant sun
#

that's hot pig

quiet depot
#

this shit is so complicated

#

and memory hungry

#

with only classes indexed, for javadocs 1.7.10 - 1.16.4, I hit 1.7gb

#

I wonder how big methods will make it

#

can't test right now though because I've only implemented methods for the new javadoc type, the html looks different on old javadocs

distant sun
#

why not save them in memory for a period of time instead?

quiet depot
#

because we have a dedi

#

with enough ram

distant sun
#

aight big boy

hallow tide
#

what a great excuse

#

that means no one can run it locally with 2gb ram 😦

quiet depot
#

yep

#

I might implement a hard file format for it though

#

because it takes quite a while for these indexes to actually generate

heady birch
#

Spring

hallow tide
#

i have 16gb ram that windows likes to eat and never give me back when i want it

quiet depot
#

niall spring can go fuck itself

#

I can make a setup just as good as spring can, without spring

hot hull
#

Such profane language

heady birch
quiet depot
#

with 25x more fun

hallow tide
#

if only i understood OOP more

heady birch
#

Piggy has announced he is taking over Ecloud2 development 🙂

quiet depot
#

niall how long do you think it'd take you to make this project with spring?

heady birch
#

What does it do

quiet depot
#

scrapes through a javadoc and generates an index on everything

#

google for javadocs

#

then provides a json web api

heady birch
#

I dont know, spring would handle all the http stuff, json api

#

Couple hours to implement the actual business logic

distant sun
#

docdex > spring

heady birch
#

Maybe a day

#

@prisma wave

hallow tide
#

O.o

quiet depot
#

according to wakatime i've spend 18 hours and 39 minutes on this

#

since nov 17

distant sun
#

how are you so good smh

quiet depot
#

gaby i'm sure you could make something just like this if you put your mind to it

heady birch
#

But seriously we need discussions on ecloud 2 because I dont see it going anywhere

prisma wave
heady birch
#

Was hoping you would back me up using Spring in a project lol 🙂

distant sun
#

tbh most of the times the way the project is structured is what confuses me the most @quiet depot

prisma wave
#

oh

#

of course

#

spring good

quiet depot
#

I've been trying to improve my package structure

#

make it a bit more logical

distant sun
#

like, the code can be something basic but with all these names and such is difficult xd

quiet depot
#

which names do you struggle with?

heady birch
#

Do you prefer by feature or layer?

quiet depot
#

I do both

distant sun
#

what's bootstrap?

quiet depot
#

bootstrap just relates to the initialization of something

hot hull
distant sun
#

ah, ok

#

guess I need to learn how to structure stuff better

heady birch
#

How many LoC 🙂

distant sun
#

that and other 200 other stuff

quiet depot
#

gaby better is subjective

#

I didn't go out of my way to learn how to structure

#

it just evolved over time

heady birch
#

Agree ^

quiet depot
#

you'll see the same sort of structuring concepts in my projects from years ago

hallow tide
#

i used a html serialiser package in javascript, AND I HATE IT, it made <p> have a child called text and that contained what i wanted 🤦‍♂️

#

took me hours to debug and find out that is the cause of me getting null lol

quiet depot
#

I'm not finding debugging too bad, my main issue is with the complexity behind the indexing and searching mechanisms

#

okie dokie

#

anyone got any suggestions for a better algorithm than levenshtein?

hot hull
#

Piggy's algorithm better

quiet depot
#

might just try a ratio instead of a weighted ratio

#

yeah that works way better

distant sun
#

holograms created using HD api are temporarily, right?

prisma wave
#

yeah

obtuse gale
#

Aa yes AsyncPlayerPreLoginEvent

#

Aka APPLE

quiet depot
#

lel

#

got another issue now

#

using ratio causes a stackoverflow

obtuse gale
#

Lmao

quiet depot
#

it's not even a never ending recursion stackoverflow

#

there's just too much happening

#

got another way of implementing this method indexing though that should involve a few less recursions, so hopefully that fixes it

hot hull
#

get gud nub

quiet depot
#

u git gud

hot hull
#

Can't, I think I've already fucked this whole project structure again

quiet depot
#

good on ya

static zealot
#

nice

hot hull
#

Not really good, but mk

static zealot
#

we are just being a supportive community frosty ... smh

static zealot
hot hull
#

Gaby, :C

distant sun
#

Jk bud xd

hot hull
#

Did I mention this was the third iterration of the project

distant sun
#

third iterration?

obtuse gale
#

Irritation

static zealot
#

I love irritations

prisma wave
#

imagine if this was real

hallow tide
#

lol

#

why -Su 😦

prisma wave
#

idk

#

i don't use pacman very often

#

maybe -Sy is better

hallow tide
#

Ah

prisma wave
#

no idea

hallow tide
#

Idk i just use -Syu

prisma wave
#

¯_(ツ)_/¯

hallow tide
#

-Sy could get you partial upgrades

prisma wave
#

yeah -Sy seems to update check too

hallow tide
#

i just go safe and do -Syu

#

and i run a dualboot between manjaro cuz i need windows for school :(

quiet depot
#

what programs do you need it for?

prisma wave
#

I usually use yay as a wrapper

hallow tide
#

microsoft office

#

i could do all this stuff in linux, but what if my teacher says lets use this and i will have to reboot or boot up a windows vm and do it in there

#

like libreoffice exists but it also messes up converting to ms word format, i once submitted an assignment in linux and i got it back with the checkmark images in the wrong places and stuff

#

i use manjaro package manager and pamac :)

heady birch
#

Too realistic tbh

#

I would 100% spin up a vm rather than use WINE

surreal quarry
#

wine sucks

heady birch
#

I would 100% install a virtualization platform instead of use WINE. 100% no doubt

hallow tide
#

oh yea agree

#

vm WAYYY better than wine

#

even tho i use wine for gaming 🙂

frigid badge
#

I just docker it all

heady birch
#

Good one, lemmo!

tawdry ore
#

hey, i have a core i need made for my server, spending 500+ the code comes with a few other plugins made- anyone intrested?

prisma wave
lavish notch
#

how do I check if a Material.matchMaterial(STRING) is invalid? (the string)

prisma wave
#

it'll return null

lavish notch
#

Well... yeah

#

but how to I test it, as .equals(null) returns an error

prisma wave
#

because .equals() dereferences a null pointer

#

hence npe

#

just do a normal null check?

#

i.e ==

lavish notch
#

Gotcha

heady birch
#

null.equals(obj)

prisma wave
#

is this some sort of joke

lavish notch
#

elara.equals("real?")

prisma wave
#

yes

lavish notch
#

What if that didn't return a boolean response? :o

hot hull
#

It returns a perhaps

lavish notch
#

Yes

hot hull
#

Which is the middle state of a boolean

#

Shrodingers boolean

prisma wave
#

qubit

lavish notch
prisma wave
#

what

lavish notch
#

That's the error

#

Commands.java (Line 113) is that if statement

prisma wave
#

Well then it's not in the config?

#

I'm not sure what you're asking

lavish notch
#

Basically I'm wanting to check if it's value is []/empty list

prisma wave
#

isEmpty...?

steel heart
#

isList?

#

isSet?

#

== null

surreal quarry
#

@prisma wave what are you using for making the mines? is it just normal changing of blocks or like worldedit api or something

prisma wave
#

FAWE api to fill a region, it just generates a WE RandomPattern from the different fractions

surreal quarry
#

nice

prisma wave
#

merci

#

ima make it customisable so you can add different block types and things

hot hull
#

That's a chocolate

surreal quarry
prisma wave
steel heart
#

File#rename or smtng exist

#

What

#

Not what I’m aware of

#

Or maybe by reflection

#

But you could just create your own file instance, change the name

hot hull
#

Why would you rename it tho lol

#

Makes no sense

steel heart
#

Big pp

hot hull
prisma wave
#

no it isn't

steel heart
#

That’s what she said

hot hull
prisma wave
#

me

steel heart
#

if (pp.size() == Size.SMALL) op.setSize(Size.BIG);

ocean quartz
prisma wave
#

isBukkit() = true

#

🙂

hot hull
#

Lol

steel heart
#

isSpigotApiGood() { while(true){}return false;}

ocean quartz
#

Pretty simple way to detect if it's paper or not, might just copy this and remove paperlib, since i don't use anything else on this plugin

#

This is decompiled code from paperlib Frosty

hot hull
#

You saw nothing

ocean quartz
prisma wave
#

wrong channel?

steel heart
#

Hole shit

hot hull
#

Oh god mein eyes

compact light
#

is something bad :o

ocean quartz
prisma wave
#

elaraScriptEngine = "1.0"

#

looks cool though

ocean quartz
#

Still wish i could add pdm to it

steel heart
#

Matt

#

Give me

ocean quartz
#

Perhaps

steel heart
#

I will donate good code

ocean quartz
#

Has one "downside" though, unless you are using my plugin.yml generation it'll not let you build

#

I can change this later, but right now it's required

prisma wave
#

how come?

steel heart
#

Wait is this a gradle plugin?

ocean quartz
#

Yeah

ocean quartz
#

Not that great, i'll definitely change that later

#

If you want to try it though id "me.mattstudios.triumph" version "0.1.4"

prisma wave
#

ah okay

#

what does it need the main class for though?

ocean quartz
#

Needs it to generate the plugin.yml

steel heart
#

So can we choose how to add it to the classpath like compileOnly, implementation etc?

ocean quartz
#

Right now it's hardcoded, if it's spigot/paper it'll be compileOnly, if it's libs it'll be implementation

#

BM wanna see something dumb?

prisma wave
#

absolutely

ocean quartz
prisma wave
#

ahahahahaha

steel heart
#

LmaoI

prisma wave
#

beautiful

surreal quarry
#

lmfao

prisma wave
#

wait you cant change it at all?

ocean quartz
#

I don't think so, probably would need to ask for an admin to do it

prisma wave
#

that's pretty unlucky

#

I guess you could delete them all and republish them perhaps?

ocean quartz
#

Lazy
Might ask them on slack

#

This is valid gradle syntax right?
spigot = "1.16.4", "implementation"

prisma wave
#

probably

ocean quartz
#

It'd be the same as spigot("1.16.4", "implementation")

prisma wave
#

groovy syntax is extremely flexible

#

yeah

#

possibly without the =

ocean quartz
#

Might try doing that then

steel heart
#

spigot version: '1.16.4' scope: compileOnly

#

maybe?

ocean quartz
#

Could try that too

steel heart
ocean quartz
steel heart
#

Yea

ocean quartz
steel heart
#

hmm

#

also maybe add like a fast way with
test "1.16.4:implementation"
and if version is undefined use latest, if scope is undefined use implementation

prisma wave
#

warning for some reason
Literally everything in Gradle

ocean quartz
#

Ikr

#

Another way could be:

triumph {
  implementation {
    core = "1.0.9"
    cmds = "1.4"
  }

  compileOnly {
    spigot = "1.16.4"
    nms = "1.16.4"
  }
}
prisma wave
#

Not a fan of that

ocean quartz
#

Yeah too crowded

prisma wave
#

That means you have to specify the configuration by default, when it should only be necessary in specific circumstances

#

Convention over configuration as they say

normal talon
#

is gradle better than maven /

surreal quarry
#

yes

ocean quartz
surreal quarry
#

depends on the plugin

#

no

onyx loom
#

u cant have 2 instances of the same javaplugin

obtuse gale
#

You can't

#

I can

onyx loom
surreal quarry
#

for example if you want to support PAPI placeholders, you need to use PlaceholderAPI's placeholder method.
if you want to support some anticheat you need to figure out conflicts with your plugin and resolve them
etc

obtuse gale
#

😎

static zealot
#

me too

surreal quarry
#

i was giving an example

onyx loom
#

is this its javaplugin class?

surreal quarry
#

he probably used skills later on in the class to prevent conflicts with his plugin

ocean quartz
#

Then it's Skills.getSkills()

onyx loom
#

?

ocean quartz
#

That class is actually really weird

surreal quarry
#

you can't just instantiate a class and expect your plugin to now provide support for that other plugin. you need to find where the two conflict then fix the conflict

onyx loom
#

lol yeah matt

surreal quarry
#

its got public (static) properties with getters and apparently he made an instance of the class

prisma wave
#

Static block

#

Just... A strange use

#

it gets called when the class is first loaded

#

Like a static constructor

ocean quartz
#

@steel heart @prisma wave Fixed, the problem is with kotlin, having the fun spigot and having the property spigot

#

I wonder why it's not blue thonking

prisma wave
#

Ahh I see

#

I guess properties have higher priority for groovy

ocean quartz
#

Yeah

steel heart
#

spigot "1.16.4:implementation"

#

also ?

#

maybe

ocean quartz
#

I don't like that one too much

surreal quarry
#

is it also going to have like a paper option if you wanna use the paper jar

ocean quartz
#

Yeah

steel heart
#

I mean yeah

#

but just for nicety and flexability perhaps?

ocean quartz
#

Both possible

surreal quarry
#

why would you ever need a scope for the spigot/paper api

#

shouldn't it always be compileOnly

steel heart
#

could be api

ocean quartz
#

Flexibility

#

Allowing multiple options

steel heart
#

sme1 might wna shade spigot

#

who knows

ocean quartz
#

Should i keep it like this then?

obtuse gale
#

I do

steel heart
#

sure

obtuse gale
#

I want to shade spigot

#

And relocate it

steel heart
#

I like the colon separation but ig

#

if you hate it dont add it

onyx loom
#

wait u guys dont relocate spigot?

steel heart
#

fefo kys

#

jk

obtuse gale
ocean quartz
#

I wonder how i can make it blue, like the relocate fun from shadowJar thonking

obtuse gale
#

no

#

Yeah

#

One day

#

Mm

#

fghhdjdj

#

Glad you do

ivory notch
#

How does World generator work?

#

Not the generator itself, but how to change the generator when loading a world?

#

I cannot found anything about it on spigot javadocs :/

ocean quartz
normal talon
#

true tho

ocean quartz
#

@steel heart Works perfectly now
Just need to remove the required task

steel heart
#

oo nice

ocean quartz
#

Changed that too, works fine now noice

#

Aight, it's published if you wanna use it id "me.mattstudios.triumph" version "0.1.5"

steel heart
#

luv u

static zealot
#

what's that?

ocean quartz
#

A gradle plugin that makes it easier to get spigot and my libs, plus it has a feature to create plugin.yml for you

static zealot
#

oh nice

steel heart
#

Matt cam you add cloud to it as well?

#

And commodore

#

If it doesn’t exist

ocean quartz
#

Hmm that wasn't really the plan, it was supposed to be just my libs, hence the name, i can though i guess

steel heart
#

Ah my bad

obtuse gale
#

add cloud pls

#

and commodore

#

and minimsg

#

and the lp api

#

and papi

#

and paper mojang api

#

and paperlib

static zealot
#

and bungee api

obtuse gale
#

and uh and uuh uh

#

yes

#

and bungee api

quiet depot
#

pornhub api