#dev-general
1 messages ยท Page 367 of 1
plz no
I played like gold rank skywars as highest
ye
oh
ohhh shit it's getting real
this youtube vid im watching just said "it's time to get functional"
lmfao
yes
You chose bow duels right?
Well everything is worse than bow duels
if im getting data from sql and turning it into json, makes sense to just use mongodb instead right
yeah Ig
{
"modelData": 100,
"name": "This is the models name",
"author": "SenseiJu",
"modelType": "HELMET"
},
im storing this
the only thing that "could" change
is the name
just gonna be a shit ton of these blocks
may as well use mongo, havnt before and will be nice to leanr too
well the purpose of SQL and Mongo are not the same
SQL thinks about data in terms of tables and being able to write queries connecting them with the relations they have, hence relational database
Mongo thinks about things in terms of documents
ik, i dont think my above use case requires me to use sql
someone said mongo is just good for logs
i mean i could
starmism would you say so too?
but ill just be transfering from sql -> json
i mean they're both good for logs, you're just kinda not utilizing sql to its full potential with an unrelated series of tables
well yeah
Use an ORM
but only reason I would chose mongo is cuz speed if what I heard is correct
oh I mean yeah it's pretty fast, but connecting a bunch of different tables of data with statements in sql can be much faster if they're complicated
It's really just about how you think about and model the data
relational db's are best when you have lots of relations that are easy to model with relations and that you can leverage when writing queries
yeah
for my use case, im litteraly just getting the json data and dumping it else where so sql is not really required
yeah you're not working with very relational data lol
not at all
relational db's are like the OOP of databases lmao
ill be using sql for user accounts n shit
but for what i need with my example, its pointless
anyone ever used a kotlin mongodb framework?
i see kmongo
mbv this
Man kotlin users really can't use anything without a "native support"
"uhhh does anyone know where I can find kotlin bindings for spigot 1.11.2?"
Why 1.11?
@prisma wave I can imagine you using Haskell frameworks in Kotlin tbh
lol
If it was possible I'd love to
xd
why, why not
imagine not using 1.11.1
java 11 and 1.11 work the best together
Hotlin
Makes sense
I would use fancy languages a lot more if I actually had a use for them
Can't write spigot plugins in any of them
Best you can get is scala
And Scala is... Scala
scala is nice
Meh
100%
I have been thinking about it for quite a while and cant make up my mind rly
it would be for deeper learning purposes then
Yeah I guess
isnโt there lotโs of assembly langs
yeah
ye
RISC could be fun to learn
and useful
not where i was going but sure
learn some x86_64 and make some shitty viruses
is risc the same as riscv?
RISC-V is an implementation of RISC
basically there's two schools of thought when it comes to CPU instructions
CISC for complicated instruction set where each instruction could do like 10 different things to get one result
and RISC where every single instruction only takes one clock cycle, so it doesn't do really complicated stuff for you
yo
i made malware
go check it out
lol
ill download it
also this trend with removing prefix on methods like just
value(var)
instead of setValue(var)
any opinions?
Don't like it, breaks Kotlin's property conversion
hmm I see
and properties are so nice i hate getters and setters in java
Yeah, for example on the paper update that adds Adventure, the event is message() since there is no get Kotlin can't do just message
oh so paper breaks kotlin interoparability sort of?
add an extension
make a pr
Speaking of which
docdex pr where u at
Nah, it's on purpose, Adventure is entirely written like that
matt, make a pr to adventure perhaps
make a new module called kotlin-api which just has a fuck load of extensions
I think ill have to just close the pr and redo unless i wanna die in the further oceans of git commands
itโs racist
๐
its raceless
There already is an extra-kotlin module, doesn't add much
But it's more of an inconvenience than a problem
this is so annoyinggg
What is Slimjar? xD
Oh it changed name
Ayy I wanna contribute
Please do xD
Do you have a todo list or something?
Ill have to set it up
will do tmr
Kind of have a rough plan
Gotta tear open pdm a bit more for more specifics
I can pr also
lit!
but if its java then Ig
lg?
I guess
yea its in Java
ew
I barely know kotlin apart from () -> Unit
I'll PR some clojure :))
Let's mix match every jvm language
uh
scala?
quercus?
coz dependency size
Just kidding xD
Is the plugin going to be written in Java?
That's the one I meant ;p
Yes we can do kotlin
kotlin dsl ? ๐ฎ
I have some experience on Gradle plugins
Awesome. yea the triumph one right?
Yeah
ill try to set up an org tmr and set up the todo
Nice
Night!
gn
gradle gang woo
im still learning :)
don't ask me the practical difference between compileOnly implementation and api
also wow peep the #816184744797929522 , that is one easy plugin
that is one easy plugin that already exists 100 times on spigot
but shh, he's willing to pay $10!
that could get me a copy of whatever paid plugin I said I didn't have like 3 days ago to Matt
bruh my gradle hittin me with NO-SOURCE
Starmism you still struggling to switch that plugin to gradle? lmao
okay yeah that's kinda a good idea
Wdym?
im getting close to 1000 commits on gh
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :customCleanUp UP-TO-DATE
> Task :shadowJar```
That's normal
Yeah gradle is speedy
jar does not contain plugin.yml ๐
Is it in the resources folder?
there is no resources folder wtf
ah yes the directory was messed up good catch
see now it took time
ooh and an error!
what's compile group: 'io.puharesource.mc', name: 'TitleManager', version: '2.2.0' in kotlin syntax
is it not compileOnly("io.puharesource.mc:TitleManager:2.3.1")
Yeah it is
is maven { name 'Puharesource' url 'https://repo.puha.io/repo/' }
not maven("https://repo.puha.io/repo/")
It is too
then why can't gradle find it ๐ฆ
what gradle do you use?
uh gradle? what types are there
kotlin or groovy ?
The repo is probably down
well fuck what can I do lol
There is no 2.3.1 https://repo.puha.io/repo/io/puharesource/mc/TitleManager/
oh wtf
yeah
hmmm
but the plugin version goes up to 2.3.3
version is repo version not plugin version
and the one in this guys' eclipse was 2.3.1 lol
they don't need to be the same
fuckk okay i didn't know there was a difference
he probably just used the plugin jar then
ya presumably
bcz he didn't use maven
you guys are the best tysm
or gradle
you should PR btw.
to that guy
after you finish
just added gradle out of nowhere lmao
Well he probably forgot to upload the new versions to his repo
you could probably add that in the gradle, no?
you can use the plugin jar in gradle too
but its not nice
bcz other will have to download the jar to build
from code
yeah i had to do it for another project
its easy just not nice lmao
btw who here made a bot with JDA? I forgot. Can I get a link to github?
how do I get access to Money from a command
ugh
why did you put all that in java?
you should've made a new package
and move them all in that one
that's what gradle told me to do ๐ฆ
I know his was like this
okay ill do it ty boss
I can add you to my private repo, but it's a mess
i made a bot that counts in sql
oh ty. I just need to see something. I think it was BBG btw
need to find a message from him to see his github
Blitz what is your gh?
BlitzOffline
its on my profile tho isn't it?
did I set it private?
on my profile or something
Too lazy to check
closed source ๐
wow
time to close source all my repos
I preffer to hide my bad code than get flamed for it
hmm
even tho it might be old
Yes, it's a personal bot, and wasn't even complete
plugin.yml should be under /src/main/resources/plugin.yml yes?
then why is it not in my jar ๐
how are you building ur jar
๐
ยฏ_(ใ)_/ยฏ
hmm it looks right
is this ur server ๐
that's strange
no its for a random guy who wanted a placeholder of money with no commas
um
and im forcing myself to learn gradle
u should rename ur package-
why?
but he's going to PR
yeah im just modifying a guys code
yeah
ah okay
i didn't write this shit myself lmao
what
yeah I just copied from his eclipse thing
he was using eclipse
oh
what happens if u unzip jar
then plugin.yml is invalid
why it say file not found then ๐
iirc if it says "does not contain" it either means
a) its invalid
b) its not there
weird
mmk mk
send me plugin.yml
You don't need this
oh sick okay
And what is this?
i have no clue, someone here gave it to me
i said "help i use maven and not gradle" and someone said "okay here's a default template"
that was his version bro
lmao
this was the same plugin.yml that worked apparently
does Money extend JavaPlugin?
yes
everything about this plugin is odd lmao
Ugh is Money the main class? I forgot
You learn with time
Took me a while to get used to it
And now getting used to kts
yea lmao
oh blitz you already opened a PR lmao
ooh and you included it as an int? that's pretty funky. is that for cross-plugin compatability?
huh?
I added 2 new placeholders
that's why
%.._balance% which is just the double it gets, %..._balance_Fixed% which fixes it (I just made it an int) and %..._balance_commas% which returns the old thing %..._balance% used to return
but I think I messed up the casting of double to int
not sure
I didn't even open it in IJ
I just edited the file on github
lmao
okay I'll replicate what you did but also ensure it works, then do a pr adding gradle lmao
I just added %economybank_balance_nfr% for no format lol
gotta have that backwards compatability eh>
what backwards compatibility?
Blitz I need a suggestion
the expansion is in the jar so its not needed
i dunno lol, so it doesn't mess up anyone who was using it before
well it'll unformat everyone's placeholders haha
rename it
what type of suggestion?
How do you think I should handle nicknames on my chat plugin? Basically the issue is that if I do /nick <r:.5>Matt for example from essentials, in chat it will look great using the placeholder %player_displayname% but everywhere else like essentials list, it'll look raw
Examples, chat:
List:
oh damn that's a good question. I'd say you make your own expansion in the plugin if you add stuff like /nick. And make your own placeholder and instead of Player#setDisplayName you do what essentials I think does and just set it in your own file
and set the dispaly name
using old colors
legacy colors*
or you could set the dispaly name to use the essentials hex formatting but idk if that works in /list tho
This is the best way I can think about doing it
Yeah that's what i thought too ๐ซ
and I think legacy colors in setDisplayName is best
so it works with everything else
and just use the library that converts hex to the closest legacy
I guess
I love the raw
but that will suck when they use Essentials's /nick or other plugin's /nick command
nah just only support 1.16 and up and use hex
I am very expressive
im sorry, but 1 million interations is no way in hell 30 nanoseconds right? Cause someone said that in #development
it looks bad raw
๐ ๐
ugh I'd say it could take that.
no chance
never worked with speeds tho
so I can't really say
like usually I just use seconds
with this laptop lmao
oh I just tested a for loop and it took 5514500 .idk what System#nanoTime is tho so that sucks lmao
it takes 3 milisecs for me
~ 3 at least
blitz how did you return an int in a method that returns String?
or did you mean just round it to the nearest full int
I did parse it as a string after
no you should floor it
not nearest
doesn't casting a double like 1.4424 to an int in java make it 1 ?
well that would be 1
Math.floor that bad boy?
I have no clue let me check
Oh I think the problem is I was casting a Double to int not a double
that makes sense
It seems like Math#round rounds to either the nearest int or double
oh do I not want it to be rounded?
nope
bcz what if he has 450.7$ but he's checking for 451$ the placeholder would say he has it
but in fact he does not
he has a bit more over 450
but not 451
oh shoot that's a very solid point
and yeah parsing a double to int does floor it
it basically just removes the part after .
including it
but the problem is that he uses Double
not double
return String.valueOf(Math.floor(bal));
yeah but also fix it
wait waht
what does fixed do?
bcz we don't want it to be a double
oh removes the decimal?
well with 0
it lets 0 decimals
with 1 it lets 1
wait
idk if toFixed
is a thing in java
tho lmao
it does not tho https://i.imgur.com/wfCUFll.png
oh fuck it don't
i was looking at round lmao
sheeet
what if I just cast it to an int?
cause it'll only have .0 after it
that is not the same as flooring though
> Configure project :
Project : => no module-info.java found
Anyone know how to fix this? (Gradle)
should just chop off the .0's eh?
yeah
flooring will round towards negative infinity, casting to int is just removing the decimals (effectively rounding to 0)
I think it is
yeah i know lmao
but they give you different numbers depending on the sign
can you?
Double#intValue
yeah you can
wtf are you talking about
oh damn I was looking for a way to cast it so bad
I'm talking about flooring vs casting to int
just do return String.valueOf(Double.intValue(Math.floor(bal))); @cinder flare
for the fixed placeholder
well hold on boss
?
Math#floor returns a normal double
and Double#intValue ain't a static method lmao
lmao
great, mission accomplished gang
just (int) Math.floor(bal)
return String.valueOf((int) Math.floor(bal));
got it guys
btw give me link to your github project before you PR. to see the placeholders
oh shit yeah I gotta fork it don't I
can I rebase my new work on a fork easily?
I guess just copy paste eh
fucking oof
idk how to do it using commands so you'll probably either have to learn
or manually
lets goooo
delete using website
im learning so much from a random ass plugin lol
does it work?
oh nvm
thank you IJ Error: Invalid or corrupt jarfile C:\Users\---\Desktop\Projects\AlphaBot\build\libs\AlphaBot.jar this is very helpful
and now it works!!??!!??
All placeholders work! :)
nice
no
๐ค
ah yes I can attest to that
and instead of setting up the folder as my username it did it as my email
I thought your name was BlitzZzZzZ <Surname that i don't know>
idk if I can just change the folder name
Sad
or would that just break a lot of stuff
bcz I have 2 users and mine is administrator
Oh apparently you can
a bit complicated but possible
It's not censored
His real name actually is ---
how depressing
you can run 1.8.8 on Java 11 though
not paper
i dunno he's using paper and it said they didn't support it
that's what I thoguht
it literally works
bro I dunno
I do
that's just what he said
ยฏ_(ใ)_/ยฏ
I can run 1.8.8 on Java 11 on both windows and linux so it's also not an OS thing
do I smell heavy reflection hacks?
ยฏ_(ใ)_/ยฏ
I think I just deleted my user from windows
holy shit
good thing I made a backup huh
and the restore button doesn't work. great
lmao
Just use the restore restore button button
Switch to Linux you pussy
Exactly!
Arch/Debian gang is the true way
@static zealot https://github.com/brunyman/EconomyBank/pull/20
whenever he gets back lmao
what looks better: yml Command: help Information: shows help Aliases: h or ```yml
Command: help
Aliases: h
Information: shows help
(this is what will output if I do /help)
bottom
that way you know in a nice order every way to do the command
Then the bottom can be multi-lined and however long you want
On the wiki but not available on 20.1.0 
oh
To use the annotation, add the jsr305 library to module dependencies:
It may have took 4 hours and 40 minutes to get everything back
but its worth it
now my user folder is named blitz
lmaooo
I wonder how many apps will break. So far none but I've only used like 6
2 hours
fuck my math is so bad
My user folder is named vaish
it used to be my email that I don't even use but on what my microsoft account is made. bcz that's how windows works... lmao instead of taking my username as my username it uses my email
Lol
mine is User ๐ฅฒ
meh
but that's bcz my pc is also crashing a lot lately
also I think there was a better way but I'm not testing it again lmao
get your daily people
wait what the fuck?
why is the daily 2 hours sooner?
1 hour
daylight saving
oh that makes sense lmao. I just thought funnycube decided to move the servers
btw Barry's Secretary has been offline for a while. Did glare break the servers? :))
@quick lava how are you?
wake up
Stupid Microsoft named my folder the beginning of my email
mine was the full email lmao
that's why I spent 2 hours and 40 minutes to change it today
OH NO
The cookies are gone https://i.imgur.com/3sxJhHf.png
so are the expansions
or extensions
idk what they are called lmao
oh no ๐ฆ https://i.imgur.com/F9Ox7nk.png
it doesn't know I changed my folder name
just a small thing I just noticed, you named the main package net.craftersland he had it net.craftersland.money
and also why does "balance_formatted" return the same thing as balance ?
I thought we agreed that balance will just return the raw balance
nah he had the package as net.craftersland as far as I can tell
Money is the main class
and balance_formatted returns the integer form, which happens to be the same as balance most of the time
afai can see https://i.imgur.com/fsmtOFc.png
there's no difference between those 2
or am I really that blind?
other than the sapces
commas
That's one heck of a PR lmao
yeah didn't realize the package was messed up lol
Happens
lmao
awe too bad git can't tell that I missed a version
it just has every single file removing everything and readding it lol
So I think I actually have to maintain a copy of my user file called my old username bcz some apps still look for it
I think I'll just save what I need and reset windows. I do have a lot of trash on it
yeah man, it's a yearly ritual to reset windows and clean that sucker up
I haven't done it in like 2
I just hate setting everything back up
like downloading browser, minecraft, IJ, steam, epic store, git bash, nvidia geforce, sublime text, winscp, and all the others
lmao
see that's why I wrote a powershell script to do most of that for me ;)
though its a little broken lmao
๐ข
I should really start putting all my projects on github tho and updating those that are behind
bcz I will lose them and I'll be so fucking sad
yeah man!
github is just free storage space
Legit
I was actually thinking of using 2 OSs but idk.
Lmao
I dual boot
whenever I need the serious dev enviornment, I swap over to arch
usually for GUI stuff, like my pong clone
cause getting that bad boy working in WSL is a painnn
the problem for me is that it just gets me randomly and if I have to switch every time I want to develop it would be such a pain in the ass
i mean yeah that's why I mostly use windows
Doesn't it run on SLFM?
SFML
tho I'm thinking of at least learning to use CMD or git bash if I can
Yeah whatever lol
but I dev C/C++ in WSL
Ah
because clang is a better compiler than MGWV or whatever
windows really fucked up their C/C++ compiler ecosystem
Clang is best
And msvc is really good too though, but it's a pain to set up sometimes
nah it's pretty rough
not LLVM based yikes
clang is the gradle of C build tools lmao
It is, but msvc also does things specifically for windows (of fucking course) that delegates to the os directly
But siege ๐ฅบ
lol dead game
i played a game today and left mid way through
well that just means you're a bad person
im never a bad person!
don't tell me it was ranked
na lol
it's a lot more fun when you're working as a coordinated team and not just 5 random people who happen to be forced to defend the same site
bro im kinda tempted to fork that shitty bank plugin, convert it to Kotlin, then improve it substantially
cause it seems like its kinda dead
What bank plugin
That one named "None of your fucking business"
Oh wow rude
lmao
ily2
Fuck you
When and where
Fucking knew you were gonna say that
๐
I mean who said I wasn't down ๐
Someone here got information about ssl certificates?
google 
Couldn't able to find about it
I got a domain from namcheap, transferred to cloudflare.
Added cname of www
But www version site dont have ssl
But non www has it.
menu_title_update_interval: 20 not working any more on newer versions?
Sir this is #dev-general
Me: adds new feature(s) to plugin
Also Me: can't be bothered testing new features so delays release of said features....
sm0rt
Specially since one or two of these features aren't exactly small...
one of cloudflare's tools lets you get an SSL cert when you proxy your site through them
How
go to SSL/TLS
Then?
leave it at RSA 2048
then enter your hostname, you probably want mydomain.com and *.mydomain.com
YES
xd
It generated,thats all?
yeah be sure to copy both of those before you leave the page
Where should i use them?
once you leave you won't be able to view them again
you use them as you would any normal SSL certificate
so if you're using nginx you want to make a file to store each of those in, and then use them in your config
etc etc
Plesk panel
never heard of it
but i'm sure they have instructions on how to add the certificate
Yeah so i need to add these certificate there and boom?
yeah basically
๐ค Thanks
but remember these certificates are only good for connecting to cloudflare
so if your website is not proxied by cloudflare, they will not work
They are
then you should be good, good luck ๐
yeah
you'll have to generate the crt file using your public and private key
Where to do that?
Bc i have two things.
What to upload...
Should i follow this?
yeah that looks like it'd work
you can try following the answers here too:
https://stackoverflow.com/questions/13732826/convert-pem-to-crt-and-key
they seem pretty similar to that site
Plesk is asking only crt
right
What is private used for then?
you put both your public and private key into the same text file
and then run openssl to convert that into a .crt
i think
Format of putting both things?
Begin
End
Begin
End?
yeah
just make sure you include everything including the -----BEGIN CERTIFICATE----- bits
i dont think you can do it on mobile
you'll need to use the openssl command on windows
(or linux
)
You mean the objectively superior unix command line xD
yes
totally not a Windows user
I do have an Arch Linux install on my other drive though
I can argue in terms of satefy of information.
i've never tried arch
i use centos for all my linux needs, and it's perfectly fine
๐ฅฒ
I like Android because unlike Apple, Google actually cares about developers
CentOS was great, Stream sucks though
IBM killed CentOS
Use windows,da best.
Contrary to what seems like semi-popular opinion, development on Windows still sucks ass
windows doodoo
I mean, I only use Windows for convenience
Might switch everything over to my Arch system soon
we need more arch exclusives
what's so good about arch
it feels kinda middle of the road
if you want to do everything yourself why not just use gentoo
The OS that tries (and obviously fails) to turn Arch Linux into a fixed release distro
Never used Gentoo
Arch is literally the barest of bare bones operating systems there is lol
i can see how you've never used gentoo
Lol
Arch gives you the utilities to install packages and comes with all the recommended Linux built in tools and that's it
How does it fail
does it have dinosaurs
You say that a lot but you've never actually said why it's bad
Because Arch isn't designed to be fixed release
Arch updates so often that having it as fixed release gets you insanely out of date, and you just end up reinstalling more often when a new fixed release comes out
Or you install just as often as other fixed releases and miss out on Arch's continuous stream of updates
Guessing
ubuntu best os
The words "Arch" and "fixed release" just don't go together
Manjaro isn't arch
That's just a fact
I've only ever had to reinstall out of choice
dinosaurs where
So I'm either extremely lucky or that's not true
Manjaro markets itself as a new user friendly distribution. It attempts to cater to the the same demographic of users as Mint(a conversation for another time.) and Ubuntu. The Manjaro maintainers are however very bad at doing this at anything deeper than a surface level. This makes the concept fundamentally fall apart.
Not stable lol
SunOS is a Unix-branded operating system developed by Sun Microsystems for their workstation and server computer systems. The SunOS name is usually only used to refer to versions 1.0 to 4.1.4, which were based on BSD, while versions 5.0 and later are based on UNIX System V Release 4, and are marketed under the brand name Solaris.
For what Arch is, it's surprisingly one of the most stable Linux distros there is
I've seen some in the Paper Discord even say that Arch is often more stable than Windows 10
Can't say I've had any issues with windows 10 so far
that's a pretty low bar o.O
True
if you say it constantly gets updates
Yeah I think Microsoft's finally getting their shit together
that's like the opposite of stable to me
I mean I rarely update windows anyways
Never experienced any of those issues
Fair
Considering how often I reinstall I don't want to go through the effort of reinstalling arch every time
Manjaro is perfect for what I need
Why do you reinstall tho
You don't have to reinstall Arch unless something really goes wrong
I really couldn't care less if some package is a week late to update
Either I mess something up or get bored
No but like
Messing something up is a very common occurrence for Arch
Just get gud
Unless you're a literal guru like me and know how Linux works
The last mess up was my windows install corrupting
And know that doing certain things will break your system
Was easier to just reinstall everything
rm -rf /
rm -rf --no-preserve-root /
When you make an operating system that people pay for that's less stable than a system that just throws out updates when they come out, you know something is wrong

One day I'll record that
Dare you lol
bet
main problems I had with windows were:
- excessive idle usage
- infrequent blue screens (probably countable on my hands, over a few years)
- occasional popup errors (I tried to find a picture, but I can't remember what it's called. Most commonly happened when shutting down)
- not cool. linux is cool, windows isn't
ah found a pic
Okay yea the excessive idle usage that I can agree with
- terrible legacy GUIs for systems settings / config
I wonder if thats a ram issue or something, maybe not if it doesnt happen with linux