#dev-general
1 messages ยท Page 274 of 1
I assume i loops from i to the number in the matrix-2
well assuming dim is a matrix
Yea dim is a matrix
yeah then that's probably what it does
no.
also I didn't decompile it
I just edited plugin.yml
which you can do with WinSCP
ok
ok
WinRAR.
I've decompiled deluxemenus
and other plugins in the past.
its not like I've understood a lot of the stuff in there
hmm anyone know how to install java 11 on raspberry pi/ubuntuorwhateverositis
linux i think
oh man I should update my dedi's java version but I got no idea how to do it xD
running sudo apt install default-jdk downloads java 8
nvm then
To install Openjdk 11 in Ubuntu, the following commands worked well.
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt install openjdk-11-jdk```
hmm ill try that
idk its just stolen from stackoverflow lmao
lol
it doesn't even say what ubuntu version or anything just that its ubuntu
i searched up "raspberry pi" so it brought me to pi forums and stuff
which led me to sudo apt install default-jdk
which didn't work
pi@raspberrypi:~ $ sudo add-apt-repository ppa:openjdk-r/ppa
sudo: add-apt-repository: command not found
```lol
๐ค
ah yeah because the odder add-apt command didn't work either
hm
wasn't there a command to see what version of linux you have?
maybe it makes the google search easier
idk, never use linux
i also just did sudo apt upgrade and i dont think its every gonna end
or sudo apt install
one of them
uname -srm
Linux 4.19.66-v7+ armv7l
xD
maybe read this if you got the power to do so: https://docs.oracle.com/en/java/javase/11/install/installation-jdk-linux-platforms.html#GUID-A35B89D1-7EBB-4463-B293-55C8E9713357 or just wait for a smart guy to wake up and just tell you the command xD
I think the second is the easiest lmao
maybe. maybe not. who knows
im tired ๐ซ
its 11:15 now
and my termius trial that I tried my best to not start ends in 13 days
hopefully theres like something online that can reset my trial
sudo apt-get install ./bellsoft-jdk14+36-linux-arm32-vfp-hflt-full.deb im thinking this would install java 14
๐ค
I was afraid I wouldn't understand how to use json but its actually pretty easy with GSON.
gson is ez
I've been rewriting a lot inside it for the past few days
like one of my command classes went from about 300 lines to 120
another went from 160 to 70
woah
my bot so far that i've worked on for about 4 days (and learned jda like 4 days ago) has:
- Configurable prefixes
- Embed announcement system
- Welcome messenger (and DM), note that it only works of DMs if the user is open
- Disabling of bot commands in specific channels
- Ignoring specific channels
๐
that's nice
I'm thinking of making my own bot or at least learning how to make it soon but right now I want to finish these java courses
pi@raspberrypi:~ $ java -version
openjdk version "14" 2020-03-16
OpenJDK Runtime Environment (build 14+36)
OpenJDK Server VM (build 14+36, mixed mode)
YES
I GOT IT
o nice
๐
[JDA MainWS-ReadThread] INFO JDA - Finished Loading! my bots online ๐ฎ
woah
custard
:DD -> ๐ฎ
uh
๐ฆ
it says finished loading but then it stopped
pi@raspberrypi:~/Documents/UniG0 $ java -jar UniG0-1.0-SNAPSHOT-all.jar
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".
SLF4J: Defaulting to no-operation MDCAdapter implementation.
SLF4J: See http://www.slf4j.org/codes.html#no_static_mdc_binder for further details.
[main] INFO JDA - Login Successful!
[JDA MainWS-ReadThread] INFO WebSocketClient - Connected to WebSocket
[JDA MainWS-ReadThread] INFO JDA - Finished Loading!
pi@raspberrypi:~/Documents/UniG0 $
hmmmm
๐ญ
i have no idea why
nvm it works now
okay ima sleeeeeeeeeeeeeeeeeeeeeeeeeeeeep
๐ด
oh wat
it doesn't work anymore
hmm
7zip >
how do i close ssh without stopping my bot?
?
literally just do exactly what I say
so rn I'm doing java -jar UniG0-1.0-SNAPSHOT-all.jar
screen -R bot
maybe. idk I don't really care much about this stuff
java -jar UniG0-1.0-SNAPSHOT-all.jar
thx
then press ctrl + a + d
pi@raspberrypi:~/Documents/UniG0 $ screen -R bot
-bash: screen: command not found
```um
so
sudo apt -y install screen
also btw you should definitely install java via sdkman instead of apt
it installed screen
everythings gone
what
yes
thanks so much!! ๐
and next time you need to install java use sdkman
okay
(or gradle or maven or really anything java related)
well im only gonna use pi for hosting bot ๐
do you have a desktop on that pi?
yes
smh
ew
oh
thats default
installed from NOOBS
i think its called that
well anyways ima go ๐ด now, thanks so much for you're guys help :)))))))))))))
in the morning you should definitely switch to an os without a desktop
๐ฑ never
What's not nice is I have so much shit to set up
Need to hook up my old drive and pray
@quiet depot Vim or nano for git text stuff?
I can't remember what I used previously
you probably used nano
probs
Since it's default
Any reason as to why I can't see my current user under Users dir?
Should show another, yet it doesn't
Ew light mode
Oliver, where does one set it to dark mode
No, we've had rain for 3 days straight already
It's too warm for snow
wonky shit Oli, so any clue as to why I can't see my user there?
Yes
It's annoying cause I needa organize shit
I mean you can still access the user folder from the explorer
Don't know where the folder might be lol but you can just hit up till you're in the desktop, should show the user folder
Had to refresh attributes, shows up now
Why are you relying on Windows for that lol
Yea
oof where tf is the ij 2021 roadmap
Suck my ass windows
This device is not working properly because Windows cannot load the drivers required for this device. (Code 31)
Just use linux lmao
seriously frosty for what you're doing linux would be so much better
but seeing as you insist on windows
My brain too small for linux
there should be a radeon icon in the task bar
bruh you've got us to help
also linux is super noob friendly these days
No radeon icon, downloading the radeon software rn
Yes
but correct is engine-x
njinx sounds better
My friends still do that 
am i the only one that says it like en-gee-eye-en-ex
Concerning
I don't get why open gl no work
You need thicc snow to make it
So it works with the igpu, just not with the gpu
Yet I have the latest drivers, I confusion
Anyone got any suggestions?
At least you get to live somewhere that snows
Which email you using?
im just gonna try to get them to add my school, youve just gotta fork the repo and then create a PR or something
the one with my school domain at the end
I recently renewed my licence too
its myname@schoolName.nsw.edu.au
Might be that someone removed the school
why would that happen
The ISIC card, the only internationally accepted student identity card which can provide proof, various benefits and more!
o
theres no .nsw domains in the repo at all
oh
NOTE: If an organization provides primary or secondary education only (i.e., no high or higher education programs), it will not be included in the list.
oh i can just authorize via github
oof
I love github student pack
since ive got the GH student pack
nah
I just added my uni email to my github account, applied, and waited for a day
btw they don't tell u if u have been accepted
mine might have been as well, I didnt check for a day tho
what's the repo you need to contribute, I gotta check what the school name is listed as lmao
and if you wanna add a school to it you go to jetbrains website and it generates a file you add to it then fork + PR
Yea I know, already did that last time
Ah yes my commit from a year ago
"How do you plan to use GitHub?"
Free file storage
lel
really?
Yea
meh I didnt
just use ur email
yeah just use ur email
Unless that's optional and I'm blind
i didnt need mien
it is only required if they can't confirm ur email
oh wow I do already have access
why don't they notify you via an email oof
No reason why they couldn't verify my email tho
I mean its not that hard to take a photo of student id
I need to grab my wallet, take out the id, take a pic, send that pic to my pc, upload it
EfFoRt
However, this is gonna be useful, so lemme go do that
just don't be a student then
lol
or just burn the ID and tell them someone stole it and ask them for a new one. ezz. They probably have the photo saved so they'll give the same one back but its worth a try
๐
how could I ask for a new one if I couldn't get to the office
is burning the ID a necessary step?
I feel like a better idea is to just leave the country
You need to pay 5โฌ for a new one
I would leave the country, but moneeyyy
A lot of mine is scratched so I hope they can validate it lmao
For us around 35 ๐ฅฒ
it says there should be a date on it
mine has no date, it's all verified digitally
You get a sticker each year
Validation of what?
Since a lot drop out, wasteful to validate for the entire thing :kek:
validation of existence
ah, we just have fingerprint scanners to verify students in a lot of places
Fancy
Only the guards really care about the Id
bruh, I mentioned warframe once, now I keep getting fucking yt ads on it
xD
That's nice
lol my old high school used fingerprints for payments
frosty that is nice
but ya know what is nicer?
vim
My highschool didn't use anything to confirm your identity. I mean they used the national ID. I did have the thing where I could have all my marks written but never ever used that xD
lol
I mean there is no reason to make a personal ID. when the national one is good enough
but yeah I could've not used these online stuff most likely
I can finally use java 15 lmao
o
Yo, I try cancelling the event when the player tries to put something in offhand to disable it but if they just spam click it hard enough, it eventually just puts the item in the hand
:/
could check the event, add to a map, then just runnable drop the item in that slot :p
Its probably only in the offhand in the client side
Try opening inv and clicking on the item
ya probably out of sync with server
hi
I have problems with the server i build
who can help me pls?
What problems...
In plugin essentials I write /bal but nothing hepend I use peperspigot 1.16.4
You need Vault installed.
The fuck you on about
๐คฃ
I have
COC anyone?
yes
Change ur name dumbass
I will not obey to this corrupt staff team anymore. They made me change the angle of my broom pfp then they made me completely remove it. I should be whoever I want to be
smh
@static zealot
smh
Good ol 2d arrays ๐ฅฒ
i will never get this my dude
oh damn. this is the gif I found first.
It's not
well almost
if you want 80% xD
if (n%2==1) n--
println(n*n/4)```
idk why it did only 80%
This input is fucked tho?
######
######
######
######
######
######
input size visualized, and it expects 4 as a result
Each tree is 2x2, so how the fuck does that work lol
It's a cucked input
@stuck harbor Come
@obtuse gale join
boop
im in
bois
its so annoying when i forget to leave insert mode in vim
derp
๐
Oh come on
man since I became Matt i'm to good
they didn't finish x
I go play wf then
im confuffled
damn 3rd
Still playin?
not rn, will wait till we got more ppl
Ok
i was afk
๐
@ocean quartz @static zealot Twins?
Nay
Nes
I'm fire he's water. we're the opposite.
Inverted twins
we're arch enemies.
lol

that will never change unless u change the laws of physics im afraid
Not likely
he doesn't change them. He is the laws of physics
If you have hot enough "fire" it wont extinguish
ah yes
I am the laws and the laws is me
ipsk
kspi
what's his clout score
solid
damn
๐ฌ
#bot-commands message
yes please
๐
๐
uh where does the mysql connector get installed by default on ubuntu? xD
mysql connector
eh?
driver for mysql
what

what are u on about?
nope
so idk, i don't have mysql on my local machine, nor do i use vanilla mysql
ah
u can search ur entire system for something easily on linux
find / -type f -name ""
if u know the exact name
man find has more detailed stuff
I see
@frigid badge Since I got a new pc, means I can make that todo thingy finally!
woah
I thought you were nicked matt
if you nick to Matt....
wut
๐ฎ
congrats
jesus christ optionals on java 8 suck
1.8 plugin ๐ฆ
null wrappers
rip
still don't know ๐
Optional<Table.Cell<IntSupplier,DoubleSupplier,LongSupplier>>
why must spigot and 1.8 and java 8 suck so much
and xmaterial doesnt even work
istg
xD
why must we suffer by supporting 1.8
can we just ban that shit now
please
make a virus that crashes your server if you dont run java 11/15 and 1.16
fuck1.8.jar
Just don't support those versions BM? Ez claps
very tempting
no 1.8 = no commissions tho ๐
exactly
and ive already added 1.8-1.12 support so i cant just suddenly remove it
Yeetus thy feetus.
legacy support is so annoying
time to get a new pc bm
just code one jesus
true
time to use vim
I will make vim take over this server
if it's the last thing I do
why do you hate yourself
hm
@old wyvern what u streaming down there ๐ฅถ
I dont think I have a very indian accent, not sure tho I probably cant tell myself
Anyway, no cant speak, its like 2 am here
Ill wake everyone up
Efe has heard me once, ask him? ๐ฅฒ
๐
my jar size is going to suffer because of the huge dependencies i shaded in
its like 100 mb i swear
๐ฎ
PDM ๐
make that bad boy 34kb
mfw the plugin alone is over 1.5 MB 
pdm isn't 1.5mb
iirc
im pretty sure i've used it and had like a something kb jar
PDM the entire plugin, leave only the main class in the jar kekw
need cool plugin concept
fuck1.8v2
fuck1.8 was never finished
im thinking a fuck 1.8 version that hacks into major servers servers and changes the jar
so its not even a plugin
i just run it and it hacks their servers
i mean, its not backdooring cause you are getting them help right
Exactly
What cant bootstrap do
like what do i need custom CSS for
cos thats what always confuses me
@obtuse gale you only need to touch css if you want to do custom styling
Thats what confused me, what's classified as custom styling
anything that bootstrap can't do
and if you want to know what bootstrap cant do
just check the docs
for anything that isn't there, it's safe to assume bootstrap can't do it
Not really
Goddamn it having an ssd nice, it used to take like 5min to start the pc, now it boots up in like 2 sec
@obtuse gale itโs easy to make stuff
the difficulties come in when making it responsive and clean
The hard part is designing it
oh yeah designing is hard ig but we have cube for that โค๏ธ
I need him to design me a portfolio site, but idk how much that'll cost :C
also frosty no more tiktok links pls
Okay..
thanks
i wish discord embeded them in
tiktok is just one of those platforms that genuinely give me cancer
I got it as a joke and now im addicted and I hate it
When it's not cringe content, or random people dancing I like it
But I get so much depressed shit on it so it's hard to stay positive 
is tiktok like youtube and google? does it actively listen to what you say to recommend stuff
Probably
If it's connected to the internet, then yes
ah nice
I mean youtube is fucked, I mentioned warframe once in here and now I keep getting ads for it
That's my rule of thumb
I meant like talking irl frosty
im pretty sure it does
I mean I know teams and zoom do that even when your mic is off so kek
why would zoom do it?
Why would a chinese spy app not do that 
does tiktok have ads?
I don't think so
Not for me
@pallid gale How much you charge for site desing
design*
Anyone got any idea as to why brave would be laggy? like chrome works perfectly fine, and brave just started slowing down after like 5min
Usually Brave browser is actually less laggy, but that's because it uses more CPU and Memory than Google
What's so good about Kotlin? Are there any pros and cons? I don't want to hear blank "everything".
It literally looks like python and javascript mix
extension functions ๐
Legit only thing I wish java had :CC
Why won't Deluxechat work on my server??
I mean I can get it to upload just fine
But my configurations don't wanna work
It just ignores it
Only 6 tabs open
I have 7 open at the moment
Oh frosty the are many things I wish Java had...
One of them is a WIP openjdk project I think
So that's good
Why does it always feel like windows is using 40%-50% of my ram just because it can?
Well how much Memory do you have?
yeah
Switch to linux as piggy would say
Yea but windows literally only runs at 1 gb
I want to switch to linux, because microsoft are crybabies and can't deal with the fact that edge is shit and force you to have it
In my experience, regardless of the actual absolute value, it always takes at least 35-40%
Like wtf
What are you guys running to do that?
Like literally
but linux does not natively support many apps that i need
I'm at 32% and I'm running applications that are using 10gb
Like... nothing at all
Just idle
tbh edge isnt that bad anymore
Have you guys updated your drivers rececntly?
Oh I am NEVER using something provided by Microsoft, they are so annoying
I legitimately use edge on my mac
Aside from MC ofc
I downloaded it, and its now my main mac browser
.\setup.exe --uninstall --system-level --verbose-logging --force-uninstall```
easy bypass
Cos chrome/brave/opera all have shitty touchbar support
replace 84.0.522.63 with your version
Matt are you able to assist me with my problem?
So safari and edge are the only ones with decent touchbar support
I'm literally stumped, I have no idea what to do at this point
and edge > safari so
If anybody is familiar with Deluxechat please help me ๐
Yea I already asked
Matt told me to post my problem there and I did, but I still have yet to receive a response
All he did was tell me to type my problem, which I did immediately then he doesn't bother to look lol
Hence why I asked if anybody knew how it works
I've already wasted an hour of my time trying to figure it out
he might not know the answer
I'm stumped, considering it was working just before that
Oh I see
I always just looked up "Who purchased Hypixel"
Then Riot Games came up
Guess a little more research would've been beneficial
Yea I'm letting chat distract me too
But I'm also waiting for a response in #deluxechat
You don't?
Oh you don't, why is that?
Gotcha
When the guy on stack overflow gives you code instead of tryna explain the answer :))
lol
You broke him
the first guy came and tried to explain what i needed to do then the second guy came and just gave me code that did what the first guy was tryna say lol
you asked a question on stack overflow?
wha
ive never done that
the solution i need is always there
stackoverflow worthy questions often come up in frontend web dev
because html css & js suck
malarkey detected
burn the heretic
all right ty
โข Replied in 352ms.
โข API Ping is 78ms
weird
That's on me, I've blocked Barry
lmao
ah
oh shit
lmao
CLOJURE
๐ฌ
maths knows elara is the way
why do i feel like thats close to valid syntax
is the let blah, blah, blah a thing
but
looks real to me!
real and true
Wow yugi! Seems legit!
yup!
@old wyvern thoughts on allowing let a = 3, b = 4 etc?
i can't imagine how that would be faked.
cool
Would the modifiers be shared or explicit for each?
I think first might be the better choice
i feel like if you need it explicit for each you will just do two lets
mhm
first is probably better

clion i think its called
Get the student license
How much is it
uh free?
I don't need it for uni, but I'd rather die than use devc++
Do you have github student dev pack?
uhh no we haven't gotten around to studying repositories and such
it doesn't have to be connected to the education you're getting
you just get it for free if you're a student
You can apply here directly to jetbrains: https://www.jetbrains.com/community/education/
Or probably the easier way, apply for the github dev pack: https://education.github.com/pack/offers
Still have to pay for my organization :/
Either one hour or 29 days goddamn
lmao
what
Can anyone help me to se if my code is clean?
xD
Sees lombok, closes
?plsnolombok
Why is Lombok bad?
- It's a compiler hack - the Java compiler isn't designed to modify code, so it can cause difficult to debug errors, or worse
- It requires an IDE plugin, so unless you've properly configured Maven, Gradle and your IDE, you'll get hundreds of compilation errors. This process takes time too, it's not easy
- Lombok'd code won't show in Javadocs
- The code generation is often unpredictable and difficult to debug, and often you'll have to do it "the hard way" anyway
- Java is supposed to be explicit, Lombok hides a lot of key functionality into a subtle annotation which can be easy to miss
- While IDEs support it with a plugin, it's usually more difficult to find specific things, like usages of a getter because they don't exist in the source code
- Finally, Lombok'd bytecode doesn't match the source code, so it causes a pretty annoying warning in IntelliJ
o
Atleast I saw it once when right clicking on a project
yes
I see
is lombok the thing that adds @Getter and all that stuff?
yes
Yes
ah
Lombok complicates code and is not at all significantly meaningful in my opinion
It doesnt add hte @Getter, you write the @Getter and it "Generates" the getters..ect.. during compilation
ah xD
Well it adds the getter annotation
yeah
yeah
Yes
what the fuc
@SuppressWarnings("unused")
public static RocketPlaceholdersAPI getApi() {
return api;
}
yes
removed
it is for the plugin api
Well it shouldn't be a static method tho either way
the user should define an own instance
ok
yes but how can it get the placeholders manager for the api?
have i to create a static getter for it?
Uh what? Why would users define their own instance for an API?
a lot of plugin has the getApi() method if i remember right
Yeah, that makes more sense to be, it's an api
A lot of the libraries I use manually include defining it using an instance
and passing it my plugin
Libraries != api
Also, the api should possibly only reveal an interface
The implementation can be hidden with the static getter are using
You don't do new PlaceholderAPI(this) you do PlaceholderAPI.parse()
- Use this and super keyword more often (makes code more readable in a certain extent).
- Use ServicesManager to provide API instead of static singleton (caller has to deal with your enforced static singleton somewhere)
- Use final more often (makes code more readable in a certain extent).
- Use @Override always (makes code more readable independently if it's in an IDE or on any other platform nonetheless does it also help when compiling).
- If you have a utility class, make it static. Utility methods are stateless and should therefore be static as they have no reason not to be static (exception with Math class as for instance PI where the constant actually benefits).
- Consider the term Main ambiguous in class names, especially in a plugin source.
- Utilize polymorphism more, example would be sub commands instead of nested else if.
- Use interfaces for APIs. An API creates functionality and specifies behavior, it rarely implements it. ```
Well libraries are standalone, so it makes sense if that is dependency injection
Yes, but the api is to give access to his own plugin's methods
Change to use @Override always
its gradually the same but sure
- use final and @NotNull ๐
an exception when @Override does not have to be present would be for deprecated methods
as they can be highly inconsistent from version to version etc
where is @Override missing?
onEnable

a, lol
func main()
- Consider the term Main ambiguous in class names, especially in a plugin source.
What name have I to put? ._.
MainCommand
this is the actual name
no, it is a command class
I guess if your command node is actually named /<main>
Sure lol
But reconsider that node name then
RocketPlaceholdersCommand or RPCommand? lol
First
ok
Long names are common, kek
https://www.spigotmc.org/resources/deluxeasyncjoinleavemessage-fully-optimized-async-everything-open-source.88129/ - Conclure/DeluxeAsyncJoinLeaveMessage
Lol
lol
HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor
I swear to god my class beat it
Yeah true
yo who wants to lose their eyes?
Me
Thatโs the reason why var was invented tho lol
ok. please stay around for another 5 minutes. I'll post my plugin on github and I'll ask you to review the code xD
Sure
I should really start using git kraken
github desktop? I know its a thing but piggy said kraken is better. but I don't use a desktop thing at all. I just upload files but the thing is, I have to manually go and delete files.
github clients are for the weak
I used GitHub desktop before when I used to use eclipse
but I don't think I can use gitkraken on already started projects (started on github)
CLI >
CLI and IJ is all you need
GitKraken always
what's CLI?
Command line interface
ah
If you're on windows you probably know it as git bash
so with git kraken, I made my changes I opened the repo and I press Stage All Changes, I set a commit message at the bottom and then press Commit changes. is that all
theres probably a push button
but ive never used it so idk
unless you don't have a remote added
that should be it
yea
Yo @prisma wave do you know how this works?
Is it a reference or instance?
The method itself is odd
so now if you wanna get your eyes melted here you go: https://github.com/BlitzGamer-88/BountySystem @steel heart
is it ok to have underscores in the package?
why would I commit ide files?
because a lot of people are stupid
Hmm, seems to be a companion object yeah
Thought it was interesting since it's not install(Locations()) nor install(Locations::class)
idk. I mean I wanted to have my full nick there. I didn't search it
bit of a grey area, i think java conventions say no but kotlin's aren't as strict
ok
well anyways. let me know how soon your eyes are melted
xD
also discord is dying again ๐ฆ messages not being sent
yea lol
var BOUNTIES_LIST = HashMap<String, Bounty>() ew
or it might be my interent connection. no idea


