#dev-general
1 messages ยท Page 280 of 1
Smh
yeah
I'm 99% sure its pulse
hmm
who the fuck is craig
100.99%
its piggypigglet
You're just racist ๐
if you're piggy
piggy acknowledges ?
What do you think of let
imagine being the annoying kid xD
lmao
xD
nob
NO
he's not even listening lmao
FUCK U
liar
you are the liar
i am amierca
you responded in 4:52:334 minutes
not anymore
yes i lost my presidency in 4:52:334 minutes
he's just a grumpy old man now
๐ฅฒ
adolf trum
touche
nah. you're just dead, reincarnated, dead again and now reincarnated
i dont practice jesus
I practice jesus
jesus doesn't practice you either
i practice america
adolf whats ur surname
ur mom
I am the president of the united states

was*
**am
deal with it :}
yes deal with it
pls do with all respect
hello
lol
yes ma'am
๐ฉด
anyone using JDA. is there a way to check if user is administrator?
because I can't seem to find in javadocs
You would work well for our bacon factory
d;jda member#haspermission
boolean hasPermission(@Nonnull GuildChannelย channel, @Nonnull Collectionย permissions)
throws IllegalArgumentException```
Checks whether or not this PermissionHolder has the Permissions in the provided Collection<Permission> in the specified GuildChannel.
True, if all of the specified Permissions are granted to this PermissionHolder in the provided GuildChannel.
permissions - Permissions to check for.
channel - The GuildChannel in which to check.
IllegalArgumentException - If null is provided
gonna buy that from you
check if they have
Too many mittens
d;jda permission%administrator
public static final Permission ADMINISTRATOR```
epic
hey the mitten industry is big in america
is it?
damn IJ taking its time today
guys i am america
who do u think manages the bacon factory?
hell
i own the bacon factory
but
hell, he IS the bacon factory
cannablism
If you say so ๐
what does ameriacc taste like?
fat
ah yes
tastes like diabetes
wait but I can't run the .hasPermission on User. fuck
You need a Member
oh I assume I can get a member from a user. will look more
Yeah I don't remember the method but it's probably something under Guild
yeah found it
lmao?
australia versus united states of america
australia good usa bad
but our butt fat
Literally any country is better than usa
wow
xD
hey
objection
ok :)
missle go boom boom
south sudan > usa
obviously
Lee
is mars going to have countries
Most probably
no but the america does
america
First one being Musk-at
hey
should copy america over
but instead of states having names
america 1
america 2
america 3
yes
all the way to 50
I agree
Maybe we should leave america behind
^
would anyone miss them?
yes
would we though
yes
not rly
Fake news
is google going to create a new service called google mars
lol
o.o
yes
Yes
Good idea!
hey indian man
But which one?
play some music for me
ELARA
:O
spacex will govern all of mars!
not the language
hey
This looks perfect
Elara should be used on the ship to transfer humans to their new world
should've called elara imperfect spheroid
make america great again
lmao
import elara/space/ship
let ship = Ship()
ship.launch()
๐ฎ
๐ *
^
i will not die until america die
i will die when america dies
we are best friends
One can only stray away from the impure for so long
let launch() => {
// todo: launch
}```
launch :: Ship -> IO ()
๐ฅฒ
MONADDDS
import elara/space/america
let ship = America()
ship.launch()
Love it
see donald trump can use twitter to code the nasa
yeah tf why don't we just move america
america.launch() ๐
xD
america.location = void
sorry ๐๐
:smiling_face_with_3_tears:
im going to fire the missiles
let eval(Country c) => {
if c.name == "America" => None
else => Some c
}
Is that
Is that a
MoNaDs
๐คค
๐
interesting choice of words
intersdsaurting words of cashdice

?
i am america
This is america
๐
lol
xD
lmao we are all america
I KNEW IT
what?
we are all america on this blessed day ๐
i was just saying we were all america
yugi is donald trump
at last
o
deffo
See
I never knew Donald trump knew so much about Monads
I have 4 hands
hes typing
lol
but im now
Actually artificially grew two arms and attached it to myself to type as 2 persons today morning for my new personality, i.e, trump man over here
Yes im Yugi
see
im not typing at my other account
right now
i am typing on this one
true
the fuck you say to me you little bitch
?
isn't that from ninja or smthing
lmfao
im tyler blevins
seems like everyone is dead. so bye
no
gn peeps
nah I ain't going to sleep. I'm learning to use JDA. xD
no
Set<User>
}
class User{
Long id;
Set<Ticet>
How would I find all tickets by ID of user with sprong
you dont
very funny
conclure, pulse
Hey
๐๐ฟ
thats where he went
Mhm
yoo
Hi lol
sup.
Hi pink bois
whts dat?
basically its a global xp booster
=multi
cool
so also sorry i was kindof being a btch in the other server i am just lowkey mad at the fact thaty its taken about a year and ahalf to just contact a java developer who could help make my plugin for free or even for pay...
hmm how do you make a player delete their own message with JDA?
nah its fine
tbh you had the right to be upset there
spigot discord is like a war zone
Yea
Yeah I do
I'm busy with a current media plugin atm
but you can still pitch me an idea
if u want
tysm!!!!
public static String FromInteger(@NotNull Integer Integer) {
if (Integer == null) throw new IndexOutOfBoundsException("Number");
String String = java.lang.String.valueOf(Integer.toString()).toString();
return java.lang.String.join("", new StringBuilder(String).toString().split(""));
}
die lol
No
Bruh
@obtuse gale hi c:
Fefo\
hi human
imagine\nif escape codes worked in discord
lol dumcord works as it pleases
you can use escape codes for " cahracters
who is expert in PDM
what's the question
Im getting an error

ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait
I didn't ask to ask
I asked if someone was an expert in pdm
because BM is offline
ยป Give the helpers some details
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
โข HelpChat Paste - Usage
โข Hastebin
show heretere you aren't using HDL
what is HDL
wait whats the pdm issue
im not an expert but i might be able to tell you the issue
not anymore, im trying hdl
kidding, I thought I fixed it but I didnt
also i think the whole exception was relevant
[21:25:22 ERROR]: Could not load 'plugins/MyPlugin-2.0.0-SNAPSHOT.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: my/plugin/code/api/thing/ClassThatNeedsToBeLoaded
The line I gave is the only relevant line because the rest of the information in the exception doesn't provide any new information
It's just tracing back to the java classloader
thats not a pdm issue
Yeah, that code is being loaded through PDM
Apparently not though, since it's not being downloaded
send your build.gradle
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
โข HelpChat Paste - Usage
โข Hastebin
thats fine
im gonna assume that the pdm 'blah' is actually the right dependency and the repository is correct even though you have removed it.
when you build, look through the whole build log and see if pdm gives an error about the dependency not being found
yeah repos correct. all builds fine
It did
Wait
No repository found for dependency Artifact{groupId='this-is-the-blah', artifactId='blah', version='1.0.0-SNAPSHOT', repoBaseURL='null'}
yea
without having the link to the repo and the actual dependency i can't help much further unfortunately
you don't, if the dependency is in a repository you have listed, it will find it
@hallow crane your maven repo is empty
there's no artifacts published here
I just cleared about 2 minutes ago to try and re-publish
well thats why it can't find the repository
you don't actually have the dependency published
The only time i've ever experienced that message is when my repo is down or i haven't published the dependency
job slow
New error, stackoverflow in PDM task
Execution failed for task ':pdm'.
> java.lang.StackOverflowError (no error message)
Yeah
Repo looks all good. But after debugging I can confirm it's happening on my personal repo dependency
alright, thanks for taking a look
ngl hdl looks kinda cool
photoshop
yea pdm's design is much better
U talkin about the same HDL I think of?
@quiet depot Is there an IJ setting so it always generates the class as final?
Gucci, thanks
can i make it so the json that it produces is formatted nicely instead of just one line
or is that not good for whatever reason
d;gson gsonbuilder#setprettyprinting
public GsonBuilder setPrettyPrinting()```
Configures Gson to output Json that fits in a page for pretty printing. This option only affects Json serialization.
a reference to this GsonBuilder object to fulfill the "Builder" pattern
jackson
well im using this with spring
with a will there's a way
jsckson bad
im not even touching jackson im just returning a Set<Thing>
thing is, gson makes everything so ridiculously easy
let alone it's undeniably sophisticated
thought of creating a standalone queueing system and was thinking of using Spring for the standalone queue server, is that a bit overkill?
also, converting from Kotlin DSL to Groovy DSL is annoying lol
mhm
if you pick Kotlin and Gradle in Spring Initializr, it gens you a Kotlin DSL project
ye
I'm kinda on the fence really
I usually use Groovy DSL though
I prefer kotlin dsl as it's more pedantic
all that @prisma wave "DSL bad" has got to my head I think
lol
obviously
kotlin dsl sucks
it's ugly
thats the main reason why I learnt kotlin
why...
because it's fucking nice
not at all
look
how disgusting
void setup(String... names) {
names.each {
include(":$it")
findProject(":$it")?.with { itt ->
itt.projectDir = file("modules/${it}")
itt.name = "${rootProject.name}-${it}"
}
}
}
in groovy
would look significantly more pretty in kotlin I think
someone tell me how kotlinCompile works in Groovy DSL lol
I seem to not be able to remember
kotlinCompile {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "11"
}
}
```I got dis but it says it can't find `kotlinCompile`
yeah I have it
I think Spring Initializr wasn't designed to be used in a module context
yeah
mmm jvmTarget
something Spring puts there that's actually kinda useful
lemme just remind myself of what it does
-Xjsr305=strict employs strict nullability apparently
String is yeah
java.lang.String
Integer is the class form of the primitive type int
because it doesn't need to be
you know how a string actually works right?
String is just a frontend for an array of characters
String is just a char[] with some fancy methods
Just like Integer is an int with fancy methods
if (answer == "yes") {
answerToQuestion = "yes"
} else {
answerToQuestion = "no"
}
inject classes?
or rather create ones
and then just forcibly put them into java.lang
meaning
no imports
you can create classes in java.lang
just create classes with the package java.lang
I am pretty sure a LinkageError or smtng will be thrown if it finds a class with that package
the JVM doesn't differentiate between the JDK and your custom java.lang class
yeah it probably will
to the JVM, all classes are in the same space
Why is java.lang implicitly imported 
I wonder why
Example of classes that aren't?
what I meant is the package isn't imported, the classes are
:wesmart:
ffs god damn you cube
LMAO
=joke
Why don't you find hippopotamuses hiding in trees?
They're really good at it.
ffs
char* ๐ฅฒ
very true
An array isn't an array, an array is just a pointer to the first element in the array
Boom
true
Damn you spigot and your shitty config stuff
๐
@ocean quartz How fucked would it be to add a auto update on an interval function to mf gui
runnable and call update() ?
Didn't want to mess with it because of how easy it is to do it yourself and how hard it is to implement internally
hmm could set up an internal scheduler using a scheduledexecutorservice to just schedule tasks then the given command would be wrapped into BukkitScheduler#runTask or smtng
wtf
im getting Cannot resolve method 'send'
but the method is clearly
define in the class
with public visibility
public void send(final int[] data) {
long time = System.currentTimeMillis();
long difference = time - lastUpdated;
if (difference >= delay) {
lastUpdated = time;
ByteBuffer dithered = type.ditherIntoMinecraft(data, videoWidth);
library.getHandler().display(viewers, map, width, height, dithered, videoWidth);
}
}
player = new VLCJIntegratedPlayer(getPlugin().getLibrary(),
file == null ? extractor.getUrl() : file,
player.getWidth(),
player.getHeight(),
callback::send);
Constructor is correct, callback is:
ItemFrameCallback callback = new ItemFrameCallback(getPlugin().getLibrary(), null, 0, 5, 5, player.getWidth(), 0, dither);
but this part of VlCJIntegratedPart constructor:
--> callback::send
Tells me this error: Cannot resolve method 'send'
what the fuc
that does send return
and what is the last param of new VLCJIntegratedPlayer(getPlugin().getLibrary(),
file == null ? extractor.getUrl() : file,
player.getWidth(),
player.getHeight(),
callback::send);
Vlcjwhatever constructor?
kekw
Is it an IntegerArrayConsumerVoidSupplier?
Yeah
Callback#send
oh oops
you may wanna send that class as well
Does it compile though?
well intellij wont compile if theres an error
which line do u use the
new VLCJIntegratedPlayer(getPlugin().getLibrary(),
file == null ? extractor.getUrl() : file,
player.getWidth(),
player.getHeight(),
callback::send);
``` ?
False
That's factually false
for me i cant run any shit
an what
i have to fix all errors
before i can run it
or do you mean like compile like maven clean package
or gradle build
Not all the time, if IJ is being stupid it's IJ being stupid but gradle/maven will still run regardless
using both gradle and maven???
btw

line 80 and 86
I think I know what the issue is
how did I forgot about method reference in cases like toArray(Object[]::new) lol
wat is it
You're trying to use a ternary to return either a File or a String
file == null ? blah : file
That's a no no
That is it
only highlights the method reference
Believe me that is it
It makes sense in your head but not for java
The return type of a ternary has to be one only
big brain fefo
And when you mix crap like that it will tell you the wrong stuff
that was it lmao
Mhm
although it gives the wrong error
like wtf who gives a method not found error
for this

well IJ does that in several other scenarios
when you got multiple errors, it will point out other weird stuff as well
jesus fuck that was not worth the effort
finally replaced strings with byte arrays
saved about 30mb with 3 javadocs loaded
of ram
oh
strings from your code or?
ahh we did the same optimization in elara
nice p1g
they're all ascii too
kinda wack how troublesome it is to integrate your own hashing function into hash maps/sets
had to use trove4j in the end
d;nonnls
public interface NodeList```
NodeList has 2 methods, and 1 implementing classes.
The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. NodeList objects in the DOM are live.
The items in the NodeList are accessible via an integral index, starting from 0.
See also the Document Object Model (DOM) Level 3 Core Specification.
where's it from
its jetbrains annots
import org.jetbrains.annotations.NonNls;
o i need to add those to docdex
If a method parameter is annotated with NonNls, the strings passed as values of this parameter are not reported as requiring localization. Also, if the parameter of a property setter method is annotated with NonNls, values of that property in UI Designer forms are never highlighted as hard-coded strings.
would be epic
yeah
well conclure
yes pls

make sure to read the top post in that thread
there's crucial information u need to provide
ye I c ๐
yeah someone asked for it cuz they wanted to use the bot in their college server, and their college uses processing
I learnt greenfoot
no
greenfoot is for games
feels bad lol
very
I was teaching kids how to use greenfoot in primary school
primary school ๐คจ
i find that a lot of high school programming classes are actually horrible
yes
@steel heart thx
@obtuse gale did you have any luck messing with docdex's algorithm?
What the fuck is my math teacher telling me
???????
just
literally
square root

and make right side 1 and -1
I have not, I fixed a bug on LP that's been there for as long as I've known the plugin last night, finished at 6 in the morning and went to sleep lol
And it's not even 12 yet ๐ฅฒ
what bug?
Lemme reference an issue
uhm no, I just thought something could look slightly better
https://github.com/lucko/LuckPerms/issues/2842
https://github.com/lucko/LuckPerms/issues/2774
And many, many, many, many more duplicates and discord questions about the same thing
ah yeah
Was always dismissed as "make sure the user has all the privileges blah blah"
that issue sounds familiar
did it exist in 2017?
I think that's when I last used luckperms
Mm if it used the same method to check for tables existence then yes lol
I literally had to change one thing from one line lol
But it took a long while to debug because it was someone else who had the issue, and then I was able to repro
That issue is a luckperms issue, I've seen it happen to perfect systems
Now the issue is no more
fix?
ah nice
so... can whoever coded Barry add a streak leaderboard?
lol
Barry coded Barry @random cove
Sentient
anyone here know how Thymeleaf works?
I'm trying to do the simplest thing (use <link> to add external CSS to a webpage) and it just doesn't work
I tried th:href="@{css/master.css}" in the link (what I found on Google) and still nothing
I need help, on armor it displays Armor toughness, i want to remove that effect ๐ any help?
Add the HIDE_ATTRIBUTES Item flag @digital mortar
but will that remove the effect?
ah but is there a way to remove it?
i assume so
if you find out can you @ me? ๐
Change the attribute modifier armor_toughness 
if we're talking editing it in spigot plugin
declaration: package: org.bukkit.inventory.meta, interface: ItemMeta
im not editing im just wondering if any of you figured it out ๐
pretty much yeah
i want to disable it bc armor takes forever to break lel
yeah well that would be your way to go
@hot hull Did you see my reply?
Nein
Didn't want to mess with it because of how easy it is to do it yourself and how hard it is to implement internally
what do you call a person that made a request? My brain is dead rn.
requester
ah is requester fine?
probably
ty

Any hosting recomendations for servers in US-East or around that area like canada
IRequestContextOrigin
Factory.newXXX
IllegalArgumentException: There are no employees!
gamestop ^
Would i be good running a small network on OVH VPS?
isn't ovh expensive?
public void getNull() {
return null;
}
public void variable = getNull();
```:P
void method dkim..
๐คฃ
you had one job
๐ฅฒ
dont think so, getting a VPS isnt too bad
if u go for a dedicated server then i think its a bit pricy
but thats to be expected
dedicated servers are nice tho
Brister Brister
I mean if its small network you can go for cheaper dedis. Piggy gave me link to a store that sells old OVH servers.
don't remember the name tho
๐ฆ
not massively
gonna look now
wtf are Xeon D processors
i aint even seen them before
idk.
Damn that GAME-3 dedi looks really nice
I personally host at OneProvider. they're cheaper but not that good.
What about using SSD's over hard drives
ye thats what i was thinking
we have 2 servers
mine is basically just a small map
and my friends is towny
That is, in my opinion, the best improvement you can invest on a computer
That one is a very drastic improvement
hmm
oh
server cpus by intel
far better yes
amd literally dominates intel with their threadripper/epyc lineup
threadripper is more for workstation than servers tho
nvidia lol
no amd did not win anything.
only money. because that's what they want just like intel
they're not the hero in this story
all companies want money?????????
yeah but people start treating them like they're some kind of heroes for beating the "GIANT" that is intel
please do your research. Just because they have a few cpus that beat intel's at performance/cost doesn't mean they're all better
AMD are not some sort of underdog
yeah newer ones.
its great that there is competition within the consumer market now
yeah. that's what I want to hear but when consumers start threating them as heroes
that dissapears
no company should be worshipped, full stop
i dont think anyone is worshipping them here
all efe said was that amd currently has the better products, lol
and I reacted like this because I've seen people that actually worship them like heroes. it goes same for nvidia
I just wanted to note that
in my opinion no one should have the power (money) that some have
that should be common sense
uh, who do I contact for dev role if I have a private repo on github?
@quiet depot I think
anyone awake for some COC?
well for you
tru
Dkim, there is a thing called time zones
what time is it for u
1:40 am
๐
so if anyone wanna join I ain't pinging because I know people sleep
wait its only 10:40 for BM so @prisma wave @onyx loom
@ocean quartz you're going to sleep or can you play?
i afk
weren't you going to sleep?
welp anyways. its time for sleep. gn
๐ค
Yes. and I wake up from the sleep I never went to
Sorry, not gonna sleep but not feeling playing it either
Hello, I am trying to redirect a vanilla minecraft command to another command in my plugin
Is this possible and, if so, how would I go about doing so?
plugin commands automatically have a higher priority than vanilla commands iirc
Alright so lets say I want to overwrite /locate village to point to the nearest outpost I pick
I just register a command for /locate
?
Assuming Lemmo is correct, yes
just write a command with the name locate and it will override the default
Thanks to both of you. No idea how happy that makes me ๐
np
lol
gets banned for abusing the bot
lmao
"Don't abuse our bots features or commands."
its not abusing if its true ๐ฅฒ
No
then wdym local packages
is it still possible to make python discord bots play music from youtube?
i watched like 5 videos from 2020 around January and it all said that YouTube dll or something was discontinued so they cant anymore. is this true?
Would you prefer:
if (statement) {
//stuff
} else {
//another stuff
}```
or ```java
if (statement) {
//stuff
}
else {
//another stuff
}```
a
i need help
There is no time to wait! Ask your question @shut tide!
c
if (statement) {
// stuff
return;
}
// other stuff
my mc launcher i snot working
Reinstall it Dante
imagine being one of those who uses b
or even worse, c...```java
if (statement)
{
// stuff
}
else
{
// other stuff
}
allman bad
I agree
Get gud.
alright then, mine is D
I swear though, if anyone writes code like this
sx did ditn he
I think he probably still does
Sx did yes
sxtanna uses allman in Kotlin
allman and Kotlin are 2 things that do not go together
especially because the official conventions are based around K&R OTBS (one true brace style)
also, anyone who writes these as well ```java
if (statement)
// stuff
it should be on the same line or in braces
also, don't you just hate it when someone submits a PR to a project you're a collaborator on and they change all the formatting to their own style?
and you just sit there like
just reviewing a PR for Iridium Skyblock and this guy's turned single-line if statements into these```java
if (statement) {
return;
}
yeah I don't mind them, but it's piss annoying when someone starts unwrapping them for no reason

