#dev-general
1 messages ยท Page 140 of 1
Jolly ๐
Everything lmao
Fuck
I just read that
nice finger reveal

My wifi is shit today
Mr Frosty please help me I am dying of not having access to AdvancementAPI
I think you'll find you're dying of not using clojure
^
lol
gross
oh no
visual basic 
Uhh cant seem to find anything about that now
imagine using curly brackets in your language
I swear this is some mandela effect shit
Frosty I will do anything, what do you want from me, that isn't monetary?
What is?
Thats the first thing I said lmao

he doesn't even commit the correct ide file
he ignores .idea (which contains useful stuff sometimes)
smh
and commits the most useless ide file ever
I forget to check that off sometimes
And I'm too lazy to make a gitignore
there's such thing as a .gitignore
let IJ do it
ij's gitignores are so much bloat
Theres a plugin i think
there seems to be just about a plugin for everything in ij
plugins ๐
you know what REALLY sucks?
theeclipseplugin marketplace
It froze every time I tried to search, and you had to scroll down about 10 miles to see each plugin
well yeah eclipse sucks in general
but like
...
the marketplace sucks in particular
one of many I'm sure ๐
it's syntax highlighting starts to lag the editor on large files ๐ฆ
I was trying to edit a 60mb sql dump today, and I had to disable syntax highlighting
might be a pebcak issue, couldn't find anything on the web regarding it
You'd think it would be able to handle large files pretty fine
odd
I think the sql syntax highlighting might just be badly implemented
although not sure if that's possible, pretty sure syntax highlighting is abstracted through textmate
anyone here good with bbcoding?
whats that
BBCode or Bulletin Board Code is a lightweight markup language used to format posts in many message boards. The available tags are usually indicated by square brackets ([ ]) surrounding a keyword, and they are parsed by the message board system before being translated into a m...
When do you guys bugtest?
Whenever you feel it's time to, or is there something specific?
Whenever something needs to be tested
lol
When you can't figure out what's causing issues you debug 
if a problem arises, debug
it's just part of the development process, it's not a distinct thing
de-bug
Unless your a massive coding house with seperate jobs for each task
then assign to debugger
that's dumb
I pretty much just want to make sure I'm not like missing some huge thing
Debugging implies I have bugs in my code, pft
I want to avoid thinking "wow, how the hell was I doing that for so long" later down the road
de buggy
Test Driven Development helps here
There should be some event where you have to make a plugin based on theme but your not allowed to test it until you present it
so I'm asking questions about relatively simple topics now and then. I learned a good amount in school, but I didn't really--
inb4 nullpointerexception
Remember this, school teach all the wrong things usually 
If you didnt learn kotlin then your school is lacking
I can relate to this a lot
I learned a good amount in school, but I didn't really--
honestly, what they did teach was pretty accurate
the problem is what they didn't teach
They didnt teach you exception handling?
they didn't teach clojure ๐
wha?
Yeah, a lot of things were left out for me too
Also to answer your previous question
I bug test as soon as I make some changes, like i compile and restart the server every few changes
they did. I was replying to the message about making a plugin without testing
so whenever it needs testing, yeah kek
what-- what am I looking at. I googled clojure and nothing makes sense
@errant geyser You got 3 sec to tell me your GH
language might be hot
katsumag
3
My IT class literally skip 50% of the array lessons, even on Pascal smh
but the lisp is yuck
Linked on my pf Frosty
katsu, no public forking/leaking code, deal?
Absolutely
imagine not being able to implement pattern matching INSIDE the language
@errant geyser 
https://github.com/Frcsty/AdvancementAPI/invitations
wow
excitement noises Thank you :)))))))
Fuck no
๐ฆ
honestly clojure just looks hard to read
It needs lots of cleanup katsu, so have fun
@subtle lynx until about 28 hours ago I thought the same thing
it's just different, you get used to it
I'll do my best Frosty
Also, don't go convert it to kotlin lol
^
damn it
It doesn't Skyy
Make the wrapper for the wrapper in kotlin sure, otherwise don't, because 1.3mb size addition isn't nice.
wait but it did
Fair enough
I meannnnnnnnnn
Make the wrapper for the wrapper in kotlin sure, otherwise don't, because 1.3mb size addition isn't nice.
@hot hull thats why pdm exists
shut up
I could have just proofread and fixed it, but it's easier to just use kotlin on some new plugin that does something useless than it is to read through code that was already sub-par when it was Java code
excuses
^
Gotta be prepared 
IAL has like 20 something so I can't talk but still
Still sad about the fuckwits at mojang
what about em
Oh about not being able to change the "advancement complete" text?
This would look 400 times better if those fuckers had some braincells 
ยฏ_(ใ)_/ยฏ
This would look 400 times better if those fuckers had used clojure
that's better
Challenge complete!
lol
or kotlin tbf
also https://imgur.com/a/OaV9gSU
I'm waiting on my book.
what makes clojure so "good"? (real talk)
concise
Probably for the best KM
Hes trollin
Imagine if MC was written in kotlin
imagine
I prefer choice
I think it's nice although jokes aside I prefer kotlin
@prisma wave
being concise isn't as important as having readability tho
it's still readable
its not
well
When does that language competition start BM, and is there anything I should really know beforehand or do I scour yours and Sx's langs GH repos?
any language that you don't know isn't very readable
()()((+)()((()_}{}{}{}{}{()()()
What do the paranthesis even do
not true
(++{}{}\{}{}()()()[]ff[][][)
well... how would I make a function then?
defn
normal lists are (1 2 3), but function calls are exactly the same - just (function-name parameters)
defn
define... n-
statements as elements apparently
(println "Hello World")
it should be a little bit readable
what does n mean
it's short for define I think
define... n-
@subtle lynx What?
Have fun Kali
private fun <T : Event> createAction(body: (T) -> Unit): ListenerAction<T> {
return object : ListenerAction<T> {
override fun perform(t: T) = body(t)
}
}
fun <T : Event> createListener(plugin: JavaPlugin, action: (T) -> Unit) = RegisteredListener(plugin, createAction(action))```
but the basic principle behind Lisps is that everything is code - the code you write is just code, which sounds obvious, but it means that you can mutate and analyse code programatically at runtime
which is quite cool
hi
hello
Hello
hello
isnt that just reflection with extra steps
i have a question
There is no time to wait! Ask your question @wanton sentinel!
isnt that just reflection with extra steps
lesser
in clojure, you define functions with defn. There's also a def in clojure if you do a quick google. My question is wtf the n means.
Hey BM on that note you should probably write a get-started guide on Clojure I can read
im trying to make deluxuemenus tp me to antoher bungeeserver
defn just means define afaik
thx
Hold on lemme find it
Why are these your "most relevant" messages according to discord
KM, now I'm not so sure about what I said earlier, cause it kind of doesn't make sense that only half of it would be client sided and the other half server
Does it?
lmao
they're very relevant
@hot hull not particularly, but what are you talking about?
advancement displays
Well I mean noone does apparently
The part implemented in client and server are mutually exclusive right?
https://discordapp.com/channels/164280494874165248/695431668944732270/736360334947909713 @errant geyser in case you haven't found it yet
Client manages how its displayed, Server can send the displayed text
Yeah I just got it, thanks
See if that were the case, I'd be able to edit that, but from what I found the "Challenge Complete!" aka toast "title" is entirely client sided
Well, Scala also has java interop, but its shit
Since the server doesn't send anything containing that to the client
Wait could we write a program in clojure that'd work in kotlin 
See if that were the case, I'd be able to edit that, but from what I found the "Challenge Complete!" aka toast "title" is entirely client sided
Yea, thats because they have it made specifically for advancements
I do agree that they should have had generalized toasts when implementing that
Its mojang
Wanna make a minecraft client from scratch in unity that can work with the current servers? ๐
What do you expect really
But with extra shiz
I mean I've never made a client
nor know how to even start
Start with a main function
FrostClient wen Frosty? Should edit it so you can change the advancements title

I meant most of the game in this case xD
but ofc we dotn have to make single player
so the world gen and stuff can be ignored
I mean katsu, resourcepack 
eeeeeeeeeeeeeeeeeeeeeeeeeh yeeeeah but FrostClient
And in Unity, so better gfx 
If you have a non vanilla client and server, is it still Minecraft?
unity bad kotlin good
Aka bad
different as in?
kotlin ๐
The UI sucks aids
There is only 1 choice in programming and that is kotlin
it doesnt? lmao
All software should be in kotlin
It does man
Try to learn before you comment on something
I uh, have made a simple game using it
There is only 1 choice in programming and that is kotlin
@prisma wave kotlin good clojure ok java bad
a simple game doesnt mean you know how to use the engine properly
just ok
It does have its issues, but the UI isnt one of them
Absolutely
Yugi, I'm not on about the engine, I'm on about the damn programs aids white theme Eclipse lookin UI
Whats White theme?
i only say ok because of what ive heard and its capabilities
The program?
but lisp ๐คข
Unity is dark grayish by default
Clojure is very capable
im not sure where you found the white
for loops are just a normal function
Yugi you can't change that if you have the free version
Its not white in the first place mate
I doubt I can even run Unity 
or rust
I mean
or clojure
technically right
Just use kotlin
@prisma wave
C# seems very close to it
But I mean C# is always nice to know so 
C# bad because of those damn naming conventions
@prisma wave
Thats relative to who uses it
This is white?
@errant geyser
Mine's whiter than that Yugi iirc, its still loading though
No idea what you have m8
never been white for me
If you are talking about VS you can change the theme as you wish
But also I just don't like how that looks, just my opinion
But also I just don't like how that looks, just my opinion
If its just your opinion that does not make it bad
I'm aware. I said the UI was bad, I should've specified imo, but I didn't think that'd exactly offend anyone.
Yeah its that whiteish colour, i don't like it, again thats just my opinion though
Looks grayish to me
change it to dark mode using hex editor
Can we take a moment to talk about the latest #727778089697804288
Yea hes been on about that for a long time
kek
Why doesn't he just post his problems in helpchat
omg
Ah yes the guy who asks for free shit in #727778089697804288 every month 
^
bargain
I think I explained to him as politely as possible
just make an anticheat in skript. no programming language knowledge required 
He can go f himself if hes an idiot
Kali
did i sin
You trynna start a crusade?
Wait, since the paper team has meetings with mojang, ya think I can tell em to consider asking them to make the toast title thing server sided 
Give that a try I guess
if i want to replace all cases of a regular expression with something that uses the regular expressioin, how can i do that
trying to replace the regex for a hex code with a color based on that hex code
and i have a method that converts a hex string to a color
i just need a way to get all the hex strings out of a message
Use a matcher and use while?
replace all cases of a regular expression with something that uses the regular expressioinwait what?
like if it contains #333aaa or something i want to replace #333aaa with a color from #333aaa
so like something.replace(regex, getColor(whateverTheRegexWas))
ew no
replaceAll takes a regex
Use a Matcher
but ill try what frosty said
You first want to find and extract the match
well all matcges but yea
If you want to call an external function on it
Not enough .clj
Otherwise, if you just want to use it in the replacement string without modifying it, you can use $1 for the first group, $2 for the second and so on
How sucky is my explanation? https://discordapp.com/channels/289587909051416579/555462289851940864/736612642499723315
what servers that in
that link leads nowhere for me
Sure I can do that in a bit, Have to finish some work first
why tf do I get https://bin.bardy.me/zvF1kLs9.cs this error if I'm running the bot via a JAR file, but when running it within IJ with the Spring Boot Application runner thingy it works fine?
and it's got an application.yml both embedded with it and literally in the same folder as it
@covert aspen 10$ per plugin or?
10$ for all of them 
And do you code btw?
yea
@heady birch I call upon thee
same
Anyone got any cool ideas I could use advancements for?
spamming people to use clojure
An rpg quest system
Integrate it into fuck1.8
Make fuckskript.jar
Integrate it into fuck1.8
@obtuse gale hccce integration when
Ahhh
it ends in like 6 days, hurry
Oof slright
Iโve actually gotta finish fuck1.8 first
To make the integration somewhat decent
Does it download and boot the latest setver jar
You canโt switch out the server jar while itโs running
Make it download Paper too ๐
Make it download a seperate program to end the server jar and download new one and rrmove old
I have to on disable make it copy over another jar file, then run it, which does the switcheroo
Well yea
But then the worry is if itโs not fast enough before the server auto restarts
? Why would it autorestart so fast
I mean some servers just shut down and immediately restart donโt they?
String.MAX_VALUE
sys.exit(100)
you mean exitProcess()
oh wow
also @prisma wave you able to help me out at all btw?
lemme just get the message link
anyone getting their code reset when they reload deluxemenu
and then the error message (insert name) is not a valid menu
cuz i am
and its infuriating
any help pls
Not the right channel
@heady birch will thee answer yet?
He is a busy boi what with eCloud and whatever
eCloud isn't being rewritten yet
It is being
Yeah I was gonna say am I going insane
You just can't see it cause you don't got access 
it will might be rewritten after PAPI 3 is done
from what Piggy said
and I have access to the PAPI 3 repo Frosty
repo means nothing since nothing is being done in it
the ecloud has already been started
theres some logs of it in #papi-updates
quite a while ago tho
THere's a whole lot of Niall complaining in the channel 
do me 
Sx, imagine having an expansion
Sx can I just say
Now that's weak
That table generator is HOT
@topaz bay hot
Hey Sx can I get the code for that table generator? ๐
oh wow...
I have a little library of stuff I'll use like once
I just realized I dont actually do anything special when theres no found expansions
WEAK programming
F
lol
Fucking weak
bad
@errant geyser its in papi
Whats the class?
Its also about to change a bit, so wait for the next push in like ~5 mins
Ok
Its in CommandECloudExpansionList
Cheers
CommandEcloudExpansionListFactoryGenerator
lol
Oh god don't let Niall name ANYTHING
Enterprise Logic
this is actually pissing me off now
it doesn't make any fucking sense
you run it with the built-in runner thing -> works
https://paste.md-5.net/axamikuhif.java
This code won't kill anything, right? I haven't done much with File so I'm always hella nervous
serverFolder.getPath() + "/" + world.getName() whatever that is, it'll delete
okay cool
rip
ew
I don't fucking miss Spring
long story short, Multiverse 1.16 is b u g g y and I no like so I'm writing my own janky world handling for a minigame plugin
Bardy don't let Niall hear you say that
Or you'll be banished from NiallSupportโข๏ธ
if he solves https://bin.bardy.me/RvNavmsp.cs I'll take back what I said
or if someone solves it
idfc who
also @prisma wave didn't you say you've worked with @ConstructorBinding before?
it fucking isn't null you 6 head
@errant geyser btw, if you fiddle around with the lib, just be weary that the entire advancement class will change tommorrow cause imma be putting it into seperate objects (cleaner
)
it literally has an application.yml both inside the JAR and outside the JAR with defined values that it can read from
Where did 5head go ๐ฆ
idk 8 head
and now we skipped 7head too ๐ฆ
@hot hull ok, I'll wait until tomorrow to start making the wrapper then
also, thanks Captain Obvious
get outta here
I mean you can make it, I'll try to make it as straight forward to change it as possible (just gonna divide the different sub aspects of the advancement
He was there for mental support.
I prefer emotional support
@errant geyser sorry, I got distracted by tik tok...
Not sure I wanna look at that code any more
rewrite it 
when you want to get started working on implementing metrics or building a REST API but you're stuck on https://bin.bardy.me/RvNavmsp.cs
god... github really fucks continuation indentation
yw?
?
what's continuation indentation?
ah okay
for me, .map is in line with >>
you wanna see?
That green inner <> is disgusting
in the viewer thingy it looks like that for me lol
yeah the raw has stupid indentation
this is like 8 char indentation
lol
also, maybe it's my Stylus theme that shows it like that sx
though idk why that'd make a difference to the indentation
also, the reason why it looks like it does for me is because GitHub's indentation seems to be 2 for this file
in the raw it's 8
that's like a pagination of a pagination of a pagination of a pagination of a pagination of a pagination
?
lol
pagination is splitting something in to pages
and when you paginate it comes out like that
a list of pages of content
what in the hell
LMFAO
I know what pagination is bruh
I just didnt know what you were referring to
just had to make sure
...
I was referring to the list of lists of lists of lists of ...
Yeah, I figured that out
You should also probably know, the programming term for that is partitioning
pagination is a type of partition
๐
alright Captain Technical
oh man
That reminds me of the great language clojure
Which has a function called "partition"
oh hey, about time you showed up
never
https://bin.bardy.me/RvNavmsp.cs @prisma wave gl
I run that every time I run shadowJar
funny how it only occurs when I run the jar
and I even extracted the jar and the classpath application.yml is in there, and I've even tried giving it an external config (which it's supposed to pick up automatically) and still nothing
With Clojure
@topaz bay ikr such a shit language lol imagine not using kotlin lol xd lmao
fail
imagine not using Clojure
imagine imagining
What a sad life that would be
ikr

Ngl those indentations are kinda wack
Its purposefully over indented
@NotNull
private static int[] findSpacing(@NotNull final List<List<String>> rows)
{
return rows.stream().map(row -> row.stream().mapToInt(String::length).toArray()).reduce((l, r) -> IntStream.range(0, Math.min(l.length, r.length)).map(i -> Math.max(l[i], r[i])).toArray()).orElse(new int[rows.size()]);
}
LOL
Oh the joys of 1 liners
Tell me instead in case I get it
so, you know how I'm using Spring, right?
well, guess what Spring comes with built-in that I wasn't using
Everything I can think of
ah
๐

ha
You have a small brain anyway 4head
Clearly
ssssssssshhhhhhh
What brain

Yeah... this... this is good...
what
Look in prevarinite
gotta beat kali one way or another
ok
u sure my logic looks ok or do I invert it? Its after 9pm, my brains borked again, send help
I need this done by tonight too, otherwise I'd already be gone
is loc the player's location?
Yeah
what's BASE_LIST
var BASE_LIST = mutableSetOf<Base>()
Cos it gets reassigned remember
No like
I add to it when I register a base, on startup, it becomes the result of loading it from a file
I realise now I can improve that
gimme a sec
Got it
Now what
Its now val BASE_LIST = getSavedEditSessions()
wdym?
either you're accidentally removing a value somewhere, or you have multiple instances with different BASE_LIST values
its contained in an object so it should be the same across all instances
Well
If it even has an instance
objects have instances
wait what
they compile to singletons
I was under the impression they had a single instance
they do
And so were effectively static
which is still an instance
they're static in the same way that a plugin's main class is static
which is to say, not really
but they are singletons
SomeObject.blah compiles to SomeObject.INSTANCE.blah
The only way to have a separate instance is to load the class from a different class loader
^
Ok so its not that then
you're accidentally removing a value somewhere
is still a possibility
just print out the contents and make sure it's what you expect to see
oh hey @topaz bay you might know this: any idea how I can put stuff in the extended commit description on a commit?
like separate from the short desc
do I just separate it by lines?
only 1 instance?
Of what
yeah it just contains an instance of Base BM
@jovial warren it should just be whats on the next line?
Yeah just one instance
ah okay
well there's your problem?
this is why you don't expose mutability everywhere
smh
life would be so much better if FP was the norm
????????????????????????????????????
@jovial warren https://github.com/PlaceholderAPI/PlaceholderAPI/commit/e57a0600f1673750ad1b6b3b1516d616ac96507f yeah it is
you asked me why kotlin return BASE_LIST.first { loc.distance(it.getLocation()) < 20 } always returns the same thing
maybe because there's only 1 element in the set???
also, you probably want to sort by distance and get the minimum
Yeah but, on the guys server, there's more than one
And it always returned the one that wasn't closest to him, but the first result in the set
Even though I've just shown it keeps the same set across all calls that I can see
@topaz bay like should it directly be on the new like like this: short desc start of long descor with a separation in between, like this: ```
short desc
start of long desc
how do you hope to reproduce this bug if there's only 1 object in the set?
@jovial warren empty line
so second one
Exactly my point, I can't really test or debug it since there's just me and I don't have any alts
yes
okay, cheers
How do I log in as a seperate player with that though?
I've never used offline mode or whatever
hacked client
just start the game multiple times?
all the alts you want
or that
ez pz
Ah
I do have a second .minecraft folder so I can start it twice
I'll see what happens, thanks anyway
I do have a second .minecraft folder so I can start it twiceWait why
Just get a random cracked launcher
magic launcher is great for that
How long do github edu apps take?
Ive read that theyre normally pretty quick but its been 11 days. They have rejected it then they annulled it and made it pending again
mine took a day or two
Did you have registered school or manual id?
What did you use?
Manual id because my unis email wasnt registered with gh
Manual id as in?
School card and some letters
That should be fine I assume.
they accepted me with just a letter saying "he goes here"
so I don't see why that wouldn't work lol
@prisma wave
Lmao ๐
but that was pretty much what it said
Ah
So it wasnt a letter just saying 'he goes here'
I just used uni email and it accepted in less than a day afaik
yeah email is pretty quick I imagine
Mhm
Probally some automation
I had to PR my schools domain into Jetbrains/swot, took 5 days to be approved, then applied, within an hour got my license
I literally just had to send them a screenshot showing literally all of my details
my GH literally took 1 day to be accepted
and when I say everything, I mean literally everything, from my full name, address, age, form, tutor, school photo, literally everything
Can you use swot to verify github edu
How lol
or maybe it was other wayround I can't remember
ah rip
what's the dockerfile
@topaz bay how did you get kotlin scripts working for papi? trying to use clojure but getting similar ClassNotFoundExceptions
its on github
Oh actually, thats outdated
hm
What I have should work, but I added more
it's those damn classloaders
clojure only uses the thread context classloader for some reason
which is quite annoying
nope
case (params.toLowerCase()) {
"name" { player.getName() }
"uuid" { player.getUniqueId() }
}
ez
lol
i don't mean the script engine btw
I mean writing an expansion in Clojure with java interop - but the problem seems to be related to classloading
nothing new there
๐ฆ
Question related to DeluxMenus. In game you can do /tags create with the deluxmenus i have. Does anyone know where in the plugin folder of DeluxeMenus it stores all of the tags that were created?
believe it's directly in the config, lemme look
ye it's at the bottom of config.yml @stray oak
My confiq.yml only says this: debug: false
check_updates: true
gui_menus:
ranks:
file: ranks.yml
jobs:
file: jobs.yml
warp:
file: warps.yml
tags:
file: tags.yml
I was trying to create them in the tags.yml but it only allowed me to create one. But in game I created a bunch for my server and there not in any of the yml's
Probably at #general-plugins will be better
okok thank you

I am trying to create a spawner that spawns items. However, I have not found a way to change the ItemStack of the spawner, and it defaults to spawning Air
spawners can spawn items?
Youโd most likely have to create the spawner system yourself to make an item spawner
Yeah youโd literally just have to drop the item yourself in a world near the spawner

As garbage as their code is, I recommend looking at EpicSpawners for an idea of what I mean
But do not copy it, itโs absolute trash code
Can't you just create a custom spawner object?
Do you guys listen to music or watch tv while you code? Looking for something to increase my focus
I watch dr phil
I listen to music like all the time so 
Whats broken with it
What isn't is the real question 
?help
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait
I just dont know where to start with the login page
Like I could setup a post mapping
But i tihnk theres a fancy way with spring security
Ive done it before like ages ago
wheres niall when you need him
@empty flint yeah I listen to music. I love rock/metal but usually when I code I listen to like, Fall to Light by Lazlo and similar songs for some reason
It helps that I have a discord bot music player thanks Bardy so I can just slide into a vc with it, no more effort required since I loop my songs on it
angry spotify premium noises
I just have 2 YT playlists of music, and I have my bot play one in my server and loop it
No ads

laughs in high audio quality
laughs in it is high audio quality for a tier 0 server
cries in just been rate limited by YouTube
laughs in people?
laughs in ad blocker
laughs
la
lol
and back to messing with this goddamn vps
Sounds like a cry for help
Can someone explain to me, like he used the right thing the first time, but then just what? gave up?
Any suggestions when it comes to formatting time 
Banned Until: 1596892774222
Banned until: 2020-08-08 (12 days, 21 hours, 51 minutes)
Above is mine, bellow is Litebans, but since it stores a bigint, I gotta format myself
wdym you gotta format yourself?
new Date(1596892774222)
oh
mhm
forbidden
Y'all can't say this isn't sexy 
Is pterodactyl behind panel or something else? @remote goblet
give the poor bot a profile picture frcsty
The format looks so weird on phone...
i dont know 


yes