#dev-general
1 messages · Page 537 of 1
maybe not
yes?
you are sick in the head
😩
nice
what could you possibly mean
i will personally make sure germay losers
🤔
i will get involved
fuck of
how did you send this screenshot without internet then huh
FUCK OF
fuck of what?
deus ex machina and allt hat
using wifi
Erdem please stop. Don't make me mute
of
ok
jokes on you, I took my wifi card out of my PC

ok 😦
so I need that cute RJ45 cable
fuck england
dont worry mate i will unmute
noob england
say that to my face
true true
I think that already happened around 1950ish and beyond
goods
using football scores to settle a debate 😌
idiot brister
oh is that soccer
yes
makes sense why it's so close
saying football instead of soccer 😌
walk go
football is a concussion sport 🙂
soccer is too I guess
SHUT UP
but less downtime
idiot england
what, it's not your problem
im sorry who are you?
bri ish boi
ingerland
kes
my bad
This reminds me of that tweet "What would you do in this situation [picture of exploding earth]" and someone replying "I would intervene"
first world war?
yes i think that's what i was referencing lmao
is it time?
yes
=mute @frosty hill global
You've muted Cést | ErdemYT#0001!
Keep going this way a trusted doesn't need to mute you and Barry can do it 
👋
Ah Blitz come on
oh no it was this
Let him do it on his own smh
get inolvolved.
police violents
soccer*
that was 2 edits smh
got em
die
By get involved do they mean they'll become police and be violent too?
another day wishing americans didnt exist
The downsides of internationalism and multi-culturalism 
bro what
what would you do without me
be happy
holy shit
I'm an internationalist as long as americans shut up 😌
"foot"ball
whelp
soccer. bcz they have high socks xD
guess I'll go grab my toaster
Handegg
ah yes good ol david beckham
You've got weirdly shaped eggs
hey man I dunno, I don't even like american football ngl
I'm much more of a soccer person myself
football please
see but to anyone I would talk to in real life they would think of something else
and I do not want to go to any more uni football games
well you're not in real life here
teach them differently
this is a simulation
nah i like it
and besides what are we gonna call american football
obviously not hand egg
american football
"the shittier version of rugby"
ya it kinda is
trust me I'm not defending football here
but the word soccer definitely has a good vibe
well actually we do call it american football
ya but we call it just football
and literally any person in the united states will understand that
you don't know all of them call it that
Biggest GDP and can't give citizens healthcare and cheap education smh
xD
Star you're walking on mined ground
when line go up = more people
please turn around
stop or we will get inolvolved
actually I can
all I need is a plane ticket and a knife
that doesn't mean I Will
damn good luck flying to my town
you're also gonna need a car and a full tank of gas
and 3.5 hours of your time at least
Yikes
dw. I know how to parachute
i mean good luck seeing my town from an airplane
hmmm
don't turn the location of your phone off please
well hey if you ever stop by, we can totally hang out
xD
only if you'll start calling it football
oh shit bro are you on my snapmaps
no that's not going to happen
💯
you're gonna need to rewire 300 million people's brains
hey while you're at it, bring in metric too
but not celcius
@oak raft is this true
Remence is canadian?
yes
Yeah we call it soccer
we are no longer friends
🖐️
Because we call it by the right name? 
"football" lmao
god I have never been happier to have a homie here
EVIL
mate.. how can you say you call it by the right name when it was named by those who invented it?
Ok listen it's as simple as this
foot... ball...
no
you use your foot to hit the ball
that's footperson
see Remence knows what he's talking about
lol
damn it feels good to have an ally
Yeah these eu guys don't understand 😤

wtf are you thonking at
The Western Hemisphere is a geographical term[1][2] for the half of Earth which lies west of the prime meridian (which crosses Greenwich, London, United Kingdom) and east of the antimeridian. The other half is called the Eastern Hemisphere.
you know some part of europe and africa
Is there any part of eu that calls it soccer
is there
or is it all football there
i am in the western hemisphere 😊
Longitudes 20°W and 160°E are often considered its boundaries."
k
talk to me when you're within that zone
alr
👍 😃 😄 😂 👌
talk to me when you're in a continent that includes the word "america" in it
why would i want to be there 🤣
we shall never talk again. unless you're ready to apologise sir
this guy just blocked half of the total messages in this discord smh
🤔
plus damn, look at how pretty my fc banner looks
take it easy blitz
😌
will do
wtf blitz has more than me
since when
im not having this
i will type SO MANY message
23 almost there
=xp
u had more boosts, that's why you're top #1 😢
=xp
yeah but i thought i had the most messages too
maybe there we lots in staff chat
last time i checked im pretty sure i had more, but obviously didnt have staff then so
yeah. I have quite a few in staff chat
any channel that u can see
4.7k in staff chat
=xp
guys the lady at Taco Bell was really nice today
ok
I left her a good review
ok
ok
Ah no longer boosted back to the ugly orange
hello there catboy
We support need to riot for a new support color
you only have 188 in staff chat lm,ao
bm u need to start being a more active staff member smh
i miss having a changing colour
I kinda like orange
oh damn Matt spells color right
🙄 staff chat is dead
man see internationalism can bring good things
SHUT up
bro you should've seen it a few hours ago, we were popping off
talking about something BORING im sure
I agree. even I am not staff anymore. We have tried diplomacy but funnycube has rejected us
One Language, Three Accents! In this video, we're showing you the differences between American English, British English, and Australian English. First, we'll show you the difference between an American accent, a British accent, and an Australian accent by reading some simple words that are spelled the same in every country. Then, our native sp...
it was basically me defending the virtues of mathematics
A lot of the times I prefer the american spelling
the thing is... even in romanian there' stuff we say differently
even though you're not in the western hemisphere
i think it is quite clear that this server is FASCIST and EVIL
yeah I totally agree
we should go on strike
soon I will be taking over tho
my plan is already in motion
Riot we must
Support should be pink
me being trusted is part of that plan right...
right?
did the blocked guy say something? xD
you mother fucker
no. you're not fit for that position I'm afraid
bruh
this is the second time today I am inching my toaster closer and closer to my bathtub
Remence brought it back for a sec
when you're ready to give up and call it football call me
We'll see what we can do then
No please
oh damn I see
automatically
Sup
also what's with all that white?
that's the wikipedia page for "Western World" lmao
light... theme...? 🤮
i dunno
or the wikipedia night mode
there's a night mode?
oh too much work
wtf is wrong with you people
its 2 clicks ... xD
both
I'm sorry but please how can you like the british pronunciation, like words like "schedule"
!!!
skedule
it'd be the bri ish way if it was spelled shedule
but it's not
there's a c in there
How do you pronounce enum then :0
So how doe you pronounce chaos?
right because english is a consistent language
tell me this, how do you pronounce scary
wait which way is which
kaos
british is sKedule i think
uh, like the beginning of enumeration?
ok i say british way
the fuck are you talking about
Shenum
So you're saying ch can sounds like k meaning skedule is right? 😮
are we boutta hop in Room 1 and start pronouncing things
yes
cause that is not the american way
dear americans
if it's pronounced "she-dule" then why does this exist
https://github.com/okkero/Skedule
to pronounce schedule
kotlin
next question
🙄
i say skedule
what do you say
that
WTF
British way is shedule lol
I thought bri ish was she dule
oh
ya
it probably is
It is
aaaaaaaaaaaaaa
we fucked it 🤣
stupid
Lmao
VICTORY
You were arguing against yourselves
raver schtewpid

Same story goes for school then?
skul
shool 😌
oh dear god
Ye
skool tho
what if kotlin users named everything
Funny clip from Megamind where Hal, voiced by Jonah Hill claims the queen of England is just a fantasy.
😌
Here we go again, another day, another scammer. This time a scammer decided to use a live payment processor to test validity of cards to scam. Not very smart and he'll pay because of it.
Hope you enjoyed the video!
Join my Discord server and come say hi:
https://discord.gg/engineerman
Check out some code on my GitHub:
https://github.com/realt...
You can just add enchants as lore, and add the item flag to hide enchants
Yeah add the enchants as lore
np
Also yk why this won't work?
new BukkitRunnable(){
@Override
public void run() {
switch(counter){
case 1:
lore.clear();
lore.add(ChatColor.translateAlternateColorCodes('&', "&4The Shot Heard Round The World"));
lore.add(ChatColor.translateAlternateColorCodes('&', "&42021"));
meta.setLore(lore);
customBow.setItemMeta(meta);
counter = 2;
break;
case 2:
lore.clear();
lore.add(ChatColor.translateAlternateColorCodes('&', "&fThe Shot Heard Round The World"));
lore.add(ChatColor.translateAlternateColorCodes('&', "&f2021"));
meta.setLore(lore);
customBow.setItemMeta(meta);
counter = 3;
break;
case 3:
lore.clear();
lore.add(ChatColor.translateAlternateColorCodes('&', "&9The Shot Heard Round The World"));
lore.add(ChatColor.translateAlternateColorCodes('&', "&92021"));
meta.setLore(lore);
customBow.setItemMeta(meta);
counter = 1;
break;
}
}
}.runTaskTimer(customBows, 1, 60);
The lore just never changes
I just want the lore to change color every 3 seconds
you might need some break statement
Added break; to every case at the end but still the same
Colors in the lore won't change
Changed it like that
To add the break; but didn't work
Try accessing the meta inside the switch case
Wdym?
Sry shouldn't ask for help in this channel
C:\Users\kamer\IdeaProjects\OTroll\src\at\orange\otroll\OTroll.java:7:43
java: cannot access net.minecraft.network.protocol.game.PacketPlayOutGameStateChange
bad class file: /C:/Users/kamer/Downloads/spigot-1.17.jar!/net/minecraft/network/protocol/game/PacketPlayOutGameStateChange.class
class file has wrong version 60.0, should be 52.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
WHen I try
PacketPlayOutGameStateChange packet = new PacketPlayOutGameStateChange(new PacketPlayOutGameStateChange.a(5), 0);
You need to use java 16 when working with 1.17 nms apparently
Look up AdoptOpenJDK
Thank you
Now I get
C:\Users\kamer\IdeaProjects\OTroll\src\at\orange\otroll\OTroll.java:7:43
java: cannot access net.minecraft.network.protocol.game.PacketPlayOutGameStateChange
bad class file: /C:/Users/kamer/Downloads/spigot-1.17.jar!/net/minecraft/network/protocol/game/PacketPlayOutGameStateChange.class
class file has wrong version 60.0, should be 52.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
@tranquil crane
Oh fuck sry
I didn't change it under project my bad xD
Did you actually change the java version to the right one in your ide lol
Yeah lmao
woot
hello, how could i get the location from inside an ender portal? i can't get the clickedblock than add numbers to the x, y, z
Why not?
Its just some math and a few conditions
eg if they click the middle frame just check if the other two are on x / z then check where is the opposite side of the portal and the space between the clicked side and the other one is the portal
Why do you have 2 web browsers opened lol
mozila is for something else 😄
better yet, why do you have pycharm open? 🤮
there's worse languages in this world, for example h🤢skell
lmao messed up that emoji
Absolute lies, you shall not be allowed to bad mouth great sir simon in these premises.
there's also fucking xml
For "definitely" not "educational" content
fuck off matt 🤣
xml fine. declarative 😌
Yugi bout to say maven is faster than gradle
Depends
How tf did you spent 'horrible' wrong?
What exactly is horrible about it?
whats it depend on?
On what you're trying to turn into json
My lib will not do any json
i know
that's why i said gson
but
ill show u what im trying to convert
a Property<String> and a Property<Map<String, Data>> (into 1 json string)
Data consisting of String, Int, and a Set<Int>
Intellij seems to suppourt spring a bit too much 😳
wdym
I mean just pass it to gson instead of making it a property
yea ik, i just put property there since thats what ur yml lib uses
its suggesting the methods name by the repo's data class
the only thing im worried about is the Set<Int>
when i used bukkit yml it broke with Set
not sure whats gonna happen with gson
Spring good
😌
btw bm, I should be managing the users myself right? Everything I read about this topic seems to contradict each other on different websites
The spring docs seem to be specifically for thymeleaf users
Up to you
It's possible to do Auth without any database, by making people authorize with something like discord or github oauth2
yea that isnt an option, I dont think they would have those accounts and this is supposed to be hosted on their intranet
Hmm
then yeah I suppose managing yourself is the only option
you can use thymeleaf + spring security which is really easy
Thymeleaf is only for the frontend templates right?
Im only using spring for a restful service, the frontend is in javafx
oh yeah
thymeleaf is just for server side frontend rendering
So maybe not appropriate
Easiest way might be JWT
How would that work?
ok I think I found something on that topic, giving that a go
any1 that can recommend a good google dark theme extension?
tytytyty
Uh?
😖
ik not here lol
Can you use github actions as a replacement for Jenkins artifact storage?
I want to have a place where anyone can download my release jars from CI
Actions and releases, yeah
Can you do it automatically with releases
Why can't I paste pictures in either of these channels? D:
Instead of manually
actions can publish to releases, yeah
Idk ask cube or something
With gradle?
mhm
@pallid gale Can you allow sending screenshots etc. in #minecraft and #general-plugins please? Just like in #development
imgur exists 🙂
🙂
Tier 2 yeah

even tier 6 can't
D:
funny enough embeds are allowed in #minecraft

no one who isnt staff can 🙃
so iirc coroutines are used for suspending functions, can they also be used for blocking actions too? (so coroutines = async, won't affect main thread)
or should i use java executorservice
you shouldn't use coroutines if you expect a lot of regular blocking
java executor api works fine I think
You can use the IO dispatcher which is pretty similar to an ExecutorService
But gives you the "coroutines" syntax sugar still
🤨
Why do you need it to block specifically?
why
can't think of anything atm, thought of it randomly
Coroutines api also provides a way to suspend till a blocking operation completes
actually
while(block) {}
🌚
i remember how i thought of that question
but lets say I did ```kt
CoroutineScope(Dispatchers.IO).launch {
while (!online) { }
println("online")
}
🥶
yes
why would you do that
example
i know that i can just call the function when i go online, but this is supposed to be some sort of example
give a real example*
There should always be a more coroutine-y way of doing any real problem
yes, it is while (!false) { }
Lmao
You can modify that to get similar effects
val onlineDefer = CompletableJob<Unit>()
CoroutineScope(Dispatchers.IO).launch {
onlineDefer.await()
println("online")
}
onSomeEvent {
onlineDefer.complete(Unit)
}
whileM
o
Is that a thing
which?
interesting yuhi
whileM
😮
bm dont
😌
?
how would i await?
did you mean start(), yugi?
No, I meant await
method doesnt exist
well there's no await() /shrug
Could call it on invokeOnCompletion
Im pretty sure it was await
Might be an extension
Gimee a min, Android Studio taking its good time loading up
is there an url for last successful build for github actions like on jenkins?
Could be an android function
oh sorry I was right the first time around
its a CompletableDeferred<Unit>()
val onlineDefer = CompletableDefer<Unit>()
CoroutineScope(Dispatchers.IO).launch {
onlineDefer.await()
println("online")
}
onSomeEvent {
onlineDefer.complete(Unit)
}```
but can't i just use a custom setter?
a custom getter?
setter*
For what?
var online = false
set(value) = {
if (value) println("online") else {}
field = value
}
onSomeEvent {
online = true
}```
like that
not sure if i did it correctly
but something like that
Sure
Whatever you're doing should probably be invoked separately
Having such effects on a setter may end you up with a confusing setup later on
What is the equivalent of PDC before 1.14? Is it just straight out NBT with no API?
Yup no api for it before 1.14
Oh no, gotta rewrite my entire plugin lmao
ARGHHHH
ffs
So how would something like this be done with no API?
NamespacedKey key = new NamespacedKey(customBows, "Custom-Bow-Identifier");
PersistentDataContainer tagContainer = meta.getPersistentDataContainer();
tagContainer.set(key, PersistentDataType.STRING, "Super-cool-bow");
no u dont
I need to rewrite the PDC parts
u just dont support anything below 1.14 😎
Been working on a few projects that were originally written around the 1.8 era and use a lot of NMS and it's been such a blessing to update them to 1.17 because I can literally replace 100 lines of code with 4 lines.
Create your own version independent abstraction and have implementations for different versions
I got ViaBackwards but that's not enough
via backwards has nothing to do with this
I understand just about 0% of this :))
I'm far from experienced enough to do this I think
Heres a very simple example
https://paste.helpch.at/atiretaxus.java
hey @ocean quartz hows ur gradle plugin coming along? i wanna use it 😖
Both classes are the exact same? Simple and Legacy?
Then you create the appropriate implementation after checking the version you're on
en bee tee A pee eye
It's already public i think i pinged you about it ;o
How do I get server jar version though?
id("me.mattstudios.triumph") version "0.2.0" ;p
Have you tried googling first?
omg thank
Sorry u right, thanks for the help! :))
👍
I need to be better at just asking google lol
Petition to add let me google that for you command to Barry!
yeah Valdemar
being a good googler is a crucial skill towards self teaching
But some things like the way to handle multiple version like this I wouldn't have found on google https://paste.helpch.at/atiretaxus.java
=randommattlibrary
Yas
Import dev.triumphteam.helper.* so you don't have a shit ton of imports at the top xD
Btw I should make it public right?
looks like u have 2 methods with the same name and same param types in the same consecutive order
yes
or no?
it just needs to be public
hey @ocean quartz what was the annotation thingy for the plugin.yml?
Yes
Nahhh he needs that to work on the JS expansion 
😵💫
😳
@BukkitMain
btw glare, it seems some people are still having the gcclib issue
Im assuming qjs still requires the lib but just a lower version that more people seem to have
💀
Yugi how would you get the meta required for the PDC from the Object value?
Might just have to switch back to nashorn after all
wdym?
Placeholderapi groovy expansion 😎
Oh, thought I could do it all from the params you made
haskell expansion soon??
I'll just add another param then
😳
y not replace javascript expansion with groovy
Lua might be worth it tbh
basic expansion
Because too many users to replace just like that
Nashorn does work
It just needs to be shaded in
I can't make a constructor for an interface right?
We went with qjs for the test because it was faster
ic
it needs to be in the implementations
why not switch to Skript expansion
oh lord
Oh yeah Yugi, i was searching about kts and there's hardly anything about it
Only found one old repo and it had so many errors :weary:
Currently it does use the injectable part of slimjar to get over an issue with papi
not runtimed tho
the jar is included
doesnt sx have an implementation already of that?
Actually let me check if he does
this one matt, https://github.com/PlaceholderAPI/KotlinScript-Expansion
It doesnt have as well features as jsexp tho I think
But it can't implement more than one class? And the interface can't implement any classes ofc
Just bare minimum suppourt
What?
can i have a 1-class kotlin code review :))
You write different constructors as per the need of the implementation
Sure
Yeah in the classes and not interface though right?
its a small class
so im not sure if theres much i can improve
but
¯_(ツ)_/¯
actually
why not send the whole lib
Huh interesting alright imma try updating that one
What's up with that api annotation?
wait are you updating the Kotlin scripting papi expansion???
just to suppress the unused warning lol, not sure if its the best name as API
https://github.com/dkim19375/DkimCore
btw this is the whole repo
Yeah
Yes
Trying at least xD
Lmao
And chat when 😤
when papi3 is out
¯_(ツ)_/¯
Matt, if you want to try, you can reuse the jsexp source and just change out the evaluator for a kts impl
ill just be happy when we can deprecate JS entirely
@ocean quartz ☹️
Alright alright I'll work on it 😩
Sure thing ;o
Pretty sure the kts expansion is mostly done
It is?
probably not for modern versions
It looked like it barely had classes doing bare minimum
oh wait, it does work, just needs to fix the injection of the kts jsr
Yugi can you help in #development whenever you got time please?
https://github.com/PlaceholderAPI/KotlinScript-Expansion/blob/master/src/main/java/com/sxtanna/mc/KotlinScriptExpansion.java#L112
this is only where it would break ig
also just a suggestion matt. ik having + in gradle is kinda bad, but it could be cool for the functions to have a default version parameter so it uses latest to cut the boilerplate even further 🙂
hello
hi pig
yes
lmao that dude again
whos that kid
xD
idk someguy from devden spamming everyone
lol
lol

well yes, custom = good, right?!?!?
Sure thing
😃
Try 0.2.1 ;p
streaming stoneblock if anyone wanna join vc 🙂
I wish I didn't have so many libraries in my plugins lol. I want to stop having to runtime downloading stuff but I'm just over the SpigotMC limit.
Didn't know this was a thing ;o
How much over are you?
there's a..spigotmc limit?
I think I'm like 200Kb over if I fully shade Kotlin
oh you mean jar size limit
so yeah you're gonna need runtime
Luckperms' methods are good for runtime downloading
Lmao
Too bad pdm doesn't work on Java 16
Luckperms does
Dk what ya refering to but java got
var x = """
pog
""";```
var is a disgraceful keyword and shows the downfall of humanity and programming in whole
it shows lack of intelligence and lack of motivation to do the best

it is a good thing in languages that were built to be dynamically typed
but not java
no
Yes lol
Too bad
because it wasn't built to be like that
What
I hope you know I am messing with you
var is a disgraceful keyword and shows the downfall of humanity and programming in whole
that sounds legit
🥲
Regex replacements, kotlin also has text blocks, and it works on jdk 8 😌
jabel makes it work on jdk 8 with java too 😳
Ooo that's actually pretty cool ;o
Pretty much a similar compiler hack to lombok xD except you dont need a plugin to stop ides from complaining
Woooooooooooo
thanks, works 😌
😌
soon triumph-gui-kotlin, whenever yugi can work on it
Nice nice ;p
If Yugi pushes what he has I can try finishing it ;p
last question with the BukkitMain annotation, where would i change all of the info, like depend, author, description etc?
On gradle add the bukkit extension
bukkit {
depend = listOf("vault", "papi")
}
why is mfgui hosted under BM server?
It's bm's kotlin extension to it
oh ic
it doesn't have it's own Kotlin extension?
😌
i thought you were its creator Matt
Not yet, Yugi was working on it
soon™️
but bms have been available for over a year now lol
Ah Yugi, a true renaissance man
Ikr, Yugi is awesome
i just recently updated them to the new version of mf gui in the meantime
Has his hand in everything that matters
Matt, do you know if I actually need org.jetbrains.kotlin:kotlin-stdlib-jdk8 in my implementation?
Wasn't that for versions before Java 8?
I think it's the default now, the gradle plugin should auto add it to the dependencies
Told you!!
Tytyteydtsy
That's really weird. My jar size increases if I remove it.
tfryguh the amount of times i had to release a new version of my lib because i forgot to add open to everything 😩
i wished there was like an option in build.gradle to automatically add open to certain classes/packages
(since i want to make the majority of things in my libraries customizable and "extendable")
Wait. I may have just gotten it under the jar limit by removing an extra snakeyaml implementation.
Stonks
Why is everything open? 
so that if i want to change how some of my code works it's simple to do
:)
I guess, i feel like if you wanted it to be extendable maybe abstract classes would be better?
i just want to make the extending optional
so if you want to change something
i don't have to add a million variables
you can just simply extend the function and do stuff
plus i'd still have to make the functions open
with abstract classes
Fair
@NonExtendable yikes

I mean I will probably limit the end user once I get j17 from extending shit
random question - but what benefits do you get out of java versions higher than 8 in kotlin?
I know about record classes and stuff, but that's all specific to java, you don't use that in kotlin
Kotlin changes things based on the version, you'll get performance boots, for example the string concatenation it'll use the jvm one from the lastest versions
Record support, etc
Mostly backend related things
oh
Alrighty, we're about 100Kb under the limit of Spigot.
are there any things that I'd notice? like maybe some QOL stuff
ooof
Which means any new feature could tip us over.
wait whats the limit? i've heard it was 3mb, 5mb,
lol
btw for my data file, should i turn off pretty printing?
could be used for debugging idk
¯_(ツ)_/¯
gson seems cool
leave it minified i suppose
hm
you can always go to onlinejsontools.com if you want to read it yourself in a pretty fashion
???????????
tf you mean uglier lmao
yaml has like 3 or 4 ways to define a collection of things
wdym collection of things?
e.g. a list or an "array" or a set or whatever
oh
with triumphconfig you don't 
not talking about triumphconfig but sure
4.5MB
How can i run an action if a variable is true, but only runs the action once every second?
a while (!runAction) {} doesn't look very nice
(and then once i run the action i set the variable back to false)
imagine having scheduleAtFixedRate 😌
lol i'm sure coroutines have scheduling of some sort
i mean if they don't that sucks ass
lol
You can delay inside the loop to make it run only ever x time