#dev-general
1 messages ยท Page 245 of 1
Plugins like EssentialsX or GemsEconomy for economy, LuckPerms or GroupManager for "chat" and permissions, etc implement it and provide the actual system
thats unfortunate lmao i have a lot more work to do
lol
thanks lol
Huh, i thought apply would infer the variable as it while with would do it as this, but both does this 
also does it i believe
Yeah
This stuff gets confusing, the difference between also and apply is just
Also: block: (T) -> Unit
Apply: block: T.() -> Unit
One extends the other receives
PECS Kotlin version? ๐
What is PECS? xD
Producer extends Consumer super
For generic wildcards
Dammit
Oooh, i don't think that's the same thing, the equivalent to that in Kotlin is probably in, out, where
where 
From the docs an example of where:
fun <T> copyWhenGreater(list: List<T>, threshold: T): List<String>
where T : CharSequence,
T : Comparable<T> {
return list.filter { it > threshold }.map { it.toString() }
}

Same
Haven't really gotten into generics in Kotlin yet but<? extends T> would be <out T> and <? super T> would be <in T>
I see
I might one day try to do something in kotlin
but I like verbose languages lol
Do it, it's fun
Once you get used to the syntax it's pretty hard to go back to Java
For me the main things in it are extensions, the primary constructor with default values, the when, and smart casting
Everything else is great too but this are the stuff i like the most
when is like switch on overdrive
so question if I wanted to be the "backend" for vault would I make a class that implements Economy and provide the logic for those methods myself
ah thank you
Basically you extend AbstractEconomy (and override everything lol) and register an instance of that class as Economy in the services manager
You will want to loadbefore Vault instead of (soft)depend
And register that shit on PluginEnableEvent for Vault
so plugins that depend on economy will have it provided already
awesome thanks
make an issue pls
I wanna make cool website but I dont wanna do frontend
cool websites are 99% frontend
just use bootstrap then
Just get gud Aj
yea
Holy shit it's snowing!
We've had jack shit snow lately
lol snow
anyway
like bruh why is there a white background and a black border there
like tf
?
you're not meant to use caps on abbreviations iirc
i'll need to check the conventions
make it DatabaseObject then
idk atleast to me DbObject is ew
Do let me know what thy conventions state
yeah there's no convention
hmm
@ThisIsADatabaseObject
@ObjectOfThyDatabase
Ah yes let's just start using medieval naming for shit :))
smexy
Anyone have a second to look at some sort of TOS I made for my private plugin commissions & give some feedback? Is only 3 dot points but want to make sure I havenโt missed anything & that itโs fair
Go ahead and paste that bad boy
1 sec
- I will answer any questions you have about how to use this plugin. (In-game commands, setup, config files, etc)
- I will fix bugs or do small tweaks free of charge for 3 months after payment is received. After 3 months has passed I expect that you have thoroughly tested the plugin and are happy with the way it functions and therefore will discontinue support.
- I do not give provide source code with most plugins nor do I allow you to decompile any plugins I make without explicit permission. If I have sufficient evidence of you decompiling I will not fix any further bugs or make any further changes for you. If you wish to purchase source code this can be discussed.
point 3 is stupid and should be removed
it's unenforceable, and unnecessarily limiting
Aight
yeah
Sigh
I always provide source code with the binary
"with the binary" ๐
as far as I'm concerned, once I send it, that code is theirs
I legit just based it off another few devs
I may have written it but it completely belongs to them
Anything else?
i'll show u my tos 2 secs
tysm
seems my site broke
lmao np np
imagine having a TOS, couldn't be me
xD
https://piggypiglet.me/#tos - if you've visited my site before and this link isn't working, force reload it (ctrl + shift + r)
it's relatively open
things like support timeframes I discuss with the client
Hmm yeah rightio
Would it not make more sense to have a the in here?
Failure to complete
theproduct in accordance to the provided specification, and unwillingness to resolve said issues.
:sad:
I need to make a portfolio site at some point
what a steal
the pleb should probably start charging for these designs
oh yea I gotta do something rq
they're great
Which color are we feeling today?
aqua
-#ff3231
b
c
ew
yea it's a gif so it sets the background to black ;C
didn't i colour those hearts?
is it a panda?
yes and yes
wew
pig i found ur christmas avatar from last year
is this it?
indeed that
lol
o
What did you think it was?
I thought you were just vomiting stuff all the time
lmao
@quiet depot ๐คข https://paste.helpch.at/ozefixiqaq.java
@hot hull is that your code?
Yes
please tell me this is at least 6 months old
cache your methods dude
oh those are private
o ur calling them
So much nicer :c https://paste.helpch.at/oxilehokol.php
i'm stupid
I mean I kinda wanna just yeet legacy support lmao
Then I don't have to fuck around with reflection
what plugin is it?
Actions lib
I mean it shouldn't ever throw an exception, since it'd error out before it even reaches that
k
emphasis on shouldn't
has anybody complete AOC?
Pulse has
what's the image?
Assistant of corn
Yeah, I will, will probably cover bitwises later as they're not very useful at first
@distant sun! https://github.com/Frcsty/FrozenActions
Oh god
lol
frosty do I need to remove ur dev role
yes
What, why
Imagine reading my messages eeee
link them
yeah nah cba to scroll
?
Also cough (Made by BM iirc) https://github.com/Frcsty/FrozenJoin/blob/master/src/main/kotlin/com/github/frcsty/library/util/DefaultFontInfo.kt
idk what you are talking about lol
The naming conventions..
Is not what I mean lol
Talking about what Piggy said :p
"UPPER_X" "LOWER_X" @quiet depot ?
Indeed
or CAPITAL_X and X 
i am proud to say ive never made anything like that
whoever made this was someone much more masochistic
I'm like 80% sure it was you
considering gaby's one literally has the author in the javadocs im gonna say it wasn't me
or maybe i converted it
but i would never write anything like that
You converted it yea, meaning it's your fault as well for not following conventions!
absolutely not
i was probably so disgusted i refused to look at it
use a hashmap btw for the getDefaultFontInfo
Hmm, perhaps
what
Or am I losing my mind I canโt remember honestly

I havenโt looked at it recently
hello developers. I'm a developer ||not|| and just wanted to say hi. ๐
I swear inline if statements go in that order though
than?
that's not a conclusive statement from that code alone
return ? state โFalseโ : โTrueโ
yes
Does it?
wait no
Then Iโm losing my mind
condition ? true-branch : false-branch
a ? true : false
yes its true then false
Interesante BM
what did you test exactly?
picked a random character 10000 times, compared linear searching and a hashmap lookup
it's very much a microbenchmark
oh, well ok
you don't even needto benchmark that
yeah
I was just curious
since with small things it's gonna be neglible, whereas this enum has quite a lot of constants
fair
could be even faster with an Array instead of hashmap in theory
How would you model that with an array
just use the chars as an index i guess
ew
yeah
Big ew
still im curious
Did you get a result yet?
maybe not
I love how everyone immediately judged my GameState class :(((
๐ฎ
needless to say you shouldn't do it that way in practice for other reasons
yeah it's messy
i would never do anything like that
except possibly once or twice in elara's lexer
Jucky
yeah doesn't seem to make a massive difference
even on a large scale
it was an interesting experiment still
The more you know
anyway back to what i should have been doing
Sleeping?
what video
bm wants to make java tutorials
gonna try and make a java/plugin course that's actually good
johnny it'd be awesome if you could take a look at the script and stuff
^
ill probably redo a lot of the slides
Java 11, Spigot 1.16 Pure Section Install JDK, write a basic hello world with sublime + CLI Introduce variables and basic types (primitives + String + Object) Basic arithmetic operations Move to a proper IDE Strong typing, type conversions (casting, parseInt, etc) If statements and basic Boolea...
but this is the plan so far
for structure
Hmm you gonna write all that?
bm accept my edit request pls
i have no idea how to do that
not all in advance, but yeah
ah okay
1 sec
google docs is good but the UI sucks compared to word
ok added you pig
thx
added yugi too since he requested it
Db stuff pl0x, ktnxbye
curriculum looks well thought out
thanks
Do the requests not expire on docs? xD I think that was from yesterday night during the suggestion mode
bm didn't you have the scripts for the first few episodes?
or was it just the powerpoints
I had the powerpoints and a few notes
apparently not lol
welp
yeah, i wanna start with the basics but use spigot to teach the more advanced things, as it's a good example of OOP in practice, and a much more visual environment to learn with
making plugins is more exciting than a CLI number guessing game
certainly
I see you trying to make FJ BM!
Making these will be a lot of effort
yes!
Have you made plans on timing and so on yet
episode length
oh right
Yeah that and when the stuff comes out
probably fairly short, 5-15 minutes for simple things, maybe 20-25 for something more detailed
You should definitely get a few people to help edit the video notes/script
well you guys are pretty good candidates lol
I'm happy to help with the scripting side of things
where's docker and kubernetes, smh those are very basic things
lol
sorry ๐
and extremely relevant
lemmo you're in charge of the sys administration series
I honestly can't take this seriously if you don't introduce the divine religion of Haskell in the first 3 videos.
lol
I agree
Oh god
Haskell is a must
Every episode "this would be a lot cleaner if it was in something like Haskell btw"
Final Episode: Upgrade to Elara
obviously
Kek
just whenever you get an error because you forgot something: "Yeah fuck oop let's use haskell"
BM, for learning the spigot api, you could go through my challenges https://github.com/PiggyPiglet/Challenges
good idea
meh
but the effect is the same
it can be both
essentials + kitpvp
what are your thoughts on a format? because my original intention was to have a slideshow which works on its own, if someone doesn't want to watch videos, and then I just narrate over and show how it's done in an IDE or something. But maybe it would be better to go video only, with the slides just being for notes + graphics
Ew!
ooh need a lesson on arrow code bad
-,- Call to undefined method Closure::handle() no u
And those variable names, absolutely hideous
it might be hard to integrate the slides into a video
timestamps
yeah that's what im worried about
i bought an unreal course that had slides for the theory and then they switched into an IDE for the coding bit
which seems like the best way of doing it
I think one of the most important things is definitely writing the videos in text form up front. Not necessarily a 1:1 transcription but rather a textual tutorial for the same topics. That way you have an additional resource you can update later on (which is much harder with videos)
Very good point
And this is how MittenCourses.com became a thing
oh god
oh no
Please put up a banner on the front page that says "The problem with kangarko's courses is that you eventually run out of people to scam"
lmfao
Just quoting historical figures
or write an angry blog post about how mean everyone is to him
"The death of the internet, someone wrote a mean thing about me"
lmao
"The problem with 'a certain someone, who shall not be named for legal reasons, whose name has similarities with Kangaroo''s courses is that you eventually run out of people to scam"
xD
don't say Kangaroo describe it
"Kangaroo" is IP
the name of a creature who has a large population in australia and loves to hop around
a creature, hopping from one post to another to plug his paid course
it has a sack for babies
๐คฃ
"The problem with 'a certain someone, who shall not be named for legal reasons, whose name has similarities with the name of an animal defined by "a large plant-eating marsupial with a long powerful tail and strongly developed hindlimbs that enable it to travel by leaping, found only in Australia and New Guinea."''s courses is that you eventually run out of people to scam"
perfect
lmao
lmao
"The Death of HelpChat"
lmao
Can I make a guess?
All across the world we see one trend. Governments want to ruin hobbyists and small entrepreneurs, forcing them to go out of business by imposing restrictions and lockdowns.
HelpChat has recently seemingly joined the team.
idk can you?
its a kangaroo ?
Exactly
omg I'm so good
inb4 he says we're secret agents
lol
probably
I wonder if he pays someone to write that
like how do you come up with it
ugh
he definitely wrote that himself
you can tell because there's no structure or actual point at all
it's just him whining and quoting people
I haven't actually read it though
Edit: See below for our reply to SpigotMCโs recent statement. All across the world we see one trend. Governments want to ruin hobbyists and small entrepreneurs, forcing them to go out of business by imposing restrictions and lockdowns. SpigotMC has recently seemingly joined the team. I woke up yesterday, and trying to login into Spigot,... View ...
you're not missing out on anything
You aren't missing much Lemmo
I'd rather finish with this crap:
https://i.lemmotresto.com/2020-12-28--08-47-54am.png
if it wants to fucking work
ffs
php ๐ฅถ
yes end me pls
imagine not using rich presence
I don't use it since it's work
Lemmo
imagine not using rich presence at work
I use it for hobby projects
Ever heard of spaces!
@prisma wave I didn't see that until now. Please end my life
it's amazing isn't it?
SpigotMC has recently seemingly joined the team.
frosty it's php, aesthetic is irrelevant
how the hell
"Judge a man not by his shady business tactics, but by his total plugin downloads on SpigotMC." will be the introduction of his next article
can you compare spigot
LITERAL tyrrany!!!
and the buyer count of his course johnny
spigot HATES small businesses!!!!
huge if true ๐ก
I sadly know someone who bought his course
Fortunately he has enough braincells that he chargedback
good
Like 200$ you know how much pizza that is
eh not really a fan of chargebacks for anyone that isn't a legitimate scammer
i got up to the thatcher quote and stopped reading
btw frosty how is the lambo
Piggy, I mean he is a legitemate scammer, 200$ for a course which teaches you absolutely jack shit
oh he did get a refund? Last time I checked the TOS said something along the lines of "if you don't make a decent effort with the course (which we will be evaluating) you don't get a refund"
200 bags of haribos
Lemmo, it's snowing, shoulda bought some winter tires
tf?
not kidding
ah too bad
hold on let me check if they have new TOS
they would literally monitor how much and when you watched the course
Ok, it's still mostly the same but I think they've put it slightly more leniently
A place without ads
oh the irony
Bruh bruh bruh bruh
they still don't seem to have an imprint
how the fuck does he say that md is envious ?
I donโt think that further explanation is needed.
yes it is
but look, I threw together some screenshots of md using the word idiot!
owned ๐
ben kangarko DESTROYS triggered spigotmc user with FACTS and LOGIC
I love this โIโm a superior and youโre a peasant, Iโm not going to deal with your garbage.โ
lmaoo
This is a public insult to the entire Minecraft community and the thousands of developers spending hundreds of thousands of hours coding their plugins.
lmaooo
fuck
why the hell am I still reading this
it's a cesspit

wait a second
this is so fucking bs
he sais: In 2020, the USD value has plummeted
but google says $1 in 2019 is equivalent in purchasing power to about $1.02 today, an increase of $0.02 over 2 years. The dollar had an average inflation rate of 0.89% per year between 2019 and today, producing a cumulative price increase of 1.79%.
which is the same as 2018-2019

so either he is stupid or he can't google
wtf is he even on about at this point
In 2020, the USD value has plummeted, and numerous authors making a significant income from SpigotMC simply asked to have the price cap increased
but
that's startup tech bros for you
@quiet depot if the course is going on the HC channel (not sure if it is or not), do you want me to use my discord or HC for support? or both ofc
but like the value of the usd had the same value decrease as last year
what course?
java course
oh you making a java course?
ooo
nice
How long does it take for spigot to take my payment?
no idea
I bought the guilds plugin but I can't download it lol
give it a while
it's almost definitely gonna be free on youtube or something
not much. I know paypal sometimes just holds the payment for 24 hours
should I make a ticket here?
ah. ok nice
what plugin you bought?
Guilds [30% Holiday Sale] 3.5.5.5
ah
if you decide to put it on the hc channel, both I suppose
Shawn nothing we can do.
if paypal / spigot is the problem there's not much we can do @vague canopy
keep in mind if it goes on hc, youโd still get full credit, like name in title
I know this happened to glare a bit lately or something like that
Yeah fine by me
only problem is that I kinda need the plugin asap
if it gets big, any issues with me making a patreon for 1 to 1 support or something?
well there's absolutely nothing we can do.
not even glare himself has anything he can do if PayPal put the money on hold.
10 minutes ago
ah maybe.
probably spigot yes
give it a few more minutes then ig
if it's not there within 30 minutes maybe contact spigot
Wait what the fuck?
this feels like a scam
I wanted to write a comment and connect with my spam google account but it doesn't actually connect me, it asks me to enter a password
but its https://disqus.com/
K done
lmao
lmao
nothing more to say
lmao
wait
he deleted my comment?
ah nvm
this website is weird
my comment is at the bottom now
itโs yours, you can do whatever you want
okay, just making sure
kangarko ideology has been inserted into u ๐
no
๐ฎ
can someone test discord.bristermitten.me real quick
it's working in wget but not on browser
ye is fine
takes you to my discord?
i tried to clear it but probably
edge > chrome
this ain't it lmao
this aint it cheif
yeah definitely not
use firefox or use death
;-;
it's literally based off of chromium but faster
Just make sure to switch the search engine to google
It's not based off of chromium, it is chromium lol
ยฏ_(ใ)_/ยฏ
ayyyy new server icon
ok
@prisma wave what is that plugin you use to make your code more colorful becuase it looks cooler
u need to change the theme in the settings then
settings > material theme > theme (> atom one dark
)
i did that
ss?
idk dw about it
send a ss
thats darcula theme
not any material themes
settings > material theme > theme (> atom one dark
)
^
Appearance and Behaviour
okay done
i selected atom one dark
Yeah
welp ok
that works too
OMG
im in love
๐คฃ
this is the best theme
how do i get this o pycharm as well?
the same prob
Exactly the same process
lets go
afaik material theme is available on all jetbrains IDEs
IJ and Pycharm are pretty much the same project with slightly different UI, so most plugins work across all of them
IDEA is a cool company
false
i need help
There is no time to wait! Ask your question @obtuse gale!
lol
add placeholders
what is that
theres a wiki ๐
that seems like lots of plugins absolutely require it
no
im banned on hypickel
not all bans are hacks
๐
no this was years ago
but ur still banned?
how long?!
isn't it just 30 days
bc your supposed to get perm muted
not banneed
but back then it was a ban
so that sucks
perm ban?
yeah
how good r u at pvp :>
amazing
really?
yeah
okay les go
wuts ur ign
Encription
tell me when ur on
im on
k
@half harness
invite?
why is that stuck on my screen
u exit
btw i get like 20 cps
same
yeah
;-;
butterfly clicking
i butterfly
i can get up to 30
but cant double
my mouse can triple click sometimes
i invited u
sorry i was in a duel before
@half harness
maybe we should move to #off-topic
anyone understand this kappa
basically
you need to add the ability to generate different numbers in different cells
for example in the GUI menus
Yea not possible tho
oh no
yeah i have no idea either
๐
The rng gives a random player, but there can't be twice of the same player
o
But that's not possible because the placeholder has no recollection of other spots
What is that on?
papi rng expansion
@prisma wave Have you ever tried any Kotlin sql lib?
Would love to use something like Android's Dao but sounds like a lot of work to make it for sql stuff
Yeah i saw that one, but didn't like it too much
there's probably a hibernate kotlin variant
Normal hibernate works fine with kotlin too
I mean doesn't need to be exactly a Kotlin thing
so just an orm
Time to use Korm
I know was just a joke xD
u forgot the /s
sounds like a Korm rip off
Did someone say K||t||ORM
why would EditSession#getBlock be throwing an NPE
Because we dumb
at com.boydti.fawe.bukkit.v1_8.BukkitQueue18R3.getCombinedId4Data(BukkitQueue18R3.java:360)
?
good luck with that
Does it not work out of Android?
It probably would but as far as i know, it's only for local storage, not mysql
So the issue is availability of MySql usage?
Basically yeah
Alrighty
What's wrong with hikari?
u
This is nothing to do with Hikari Frosty
If i made this i'd likely use Hikari for it
Ohh, you wanna make something like that
is there a way to make guilds go to max 5 people in it
Huh?
@vague canopy Head to #spigot-linking then to #guilds
Any way to create a tag/release on github using IntelliJ?
dont think so
k
in gradle how do I always use the latest version for dependencies?
bc I want my plugins to always use latest core version
group:artifact:+
noooooooooooo
nonnnnnnnnnnnnnnnnnnnnnnnnnnno
nononononononononnonon
no
no
noooooooooooooooooooooooo
im just answering the question ๐
no excuses
Although when it comes to annotations slap a + on that bad boy
?
elara buildtool is gonna ban +
im confused
Uh oh
implementation 'com.github.dkim19375:dkim19375Core:0.0.0'
never use latest version instead just bump the number when necessary
what do I replace 0.0.0 with
Just keep the version as 1.0.0 and just bump the release
do i need to copy paste my explanation from earlier
no frosty shut up
No buts
I'm too lazy to update my projects
because gradle builds are supposed to be reproducible
if you're always using the latest version, your build might suddenly break because one of the dependencies changed
so most of the time you should put a specific version
plus I prob will forget
Let the man break his shit Lemmo ;(
no
why would it break?
make him learn stuff
i did give the answer ๐
why will it break though
lets say your plugin is using MyAPI.blah and you're depending on the latest version of MyAPI
the makers of MyAPI suddenly release an update that removes MyAPI.blah, and suddenly your build breaks because it's still using the latest version
its not like its gonna update when I don't know
because itโs the latest version which could introduce breaking changes
@half harness if u are to update ur core with many breaking changes, ur plugin that depends on the core will then break, due to removed methods, deprecated stuff, etc etc
the makers of core = me
thatโs exactly what itโs going to do
if you put the latest
umm
but are you going to remember to update every plugin using it?
i gave the answer
kaliber told you
๐
oh
lmao
๐
huh?
up
dont do that though
?
bad idea
yes
the mathematical symbol for addition
implementation 'com.github.dkim19375:dkim19375Core:0.0.0'
implementation 'com.github.dkim19375:dkim19375Core:+
...
do not use that
donโt do it
under almost any circumstances
IKKKK
ok
i think i know
just making sure ๐
ok
don't use + btw
- bad real version good
yes
0.0.0 has no code, its just to setup jitpack and all that

dw ill replace with 0.0.1
that has 1 static method - a sout
(to test shading)
so basically all I have to do:
add id 'com.github.johnrengelman.shadow' version '6.1.0' to plugins
run Tasks -> shadow -> shadowJar
right?
{
dependencies: () => {
shade("spigot-api", "1.16.4")
provided("placeholderapi", "1.blah")
}
}
this will be elara build tool
probably
not
unlikely
idk
yes
ah yes, lets shade spigot api ๐
yes
shmart
50MB jar file
:))
pdm >
And I'm on mobile!
elara build tool will have automatic pdm integration yes
obviously
elara build tool doesnt have support for shading, only pdm
