#dev-general
1 messages · Page 395 of 1
Don't tell me 2mb
2.01
how many dependencies
um
what else
smaller than that lol
Spigot staff are so slow at accepting things lol
assuming you mean pdm dependencies
Why do you not just say the number? lol
2 depends
Has it always been slow?
Check the size
kt + mfgui
wooooooooooooooooooooooooooooooooooooooow
Sooo 1.5mb? lol
idk
bro when we are using dependencies externally like jar, we are referring to shit that is like 120 megabytes big
lol
or tbh anything larger than the spigot limit
I install 10 dependencies along with 120 megabyte file
containing binaries
my whole folder is 200 megs
no cap
lol
im not capping
you want to see image?
lol
wouldn't that include both relocated and non-relocated jars?
What are you shading? lol
ur mum
Fair enough
nope, without
I can list em
yo what the fuck why is the icon of sin so hard to battle...
/** VLCJ Maven Dependency */
VLCJ("uk{}co{}caprica", "vlcj", "4{}6{}0", DependencyResolution.MAVEN_DEPENDENCY),
/** VLCJ Natives Maven Dependency */
VLCJ_NATIVES("uk{}co{}caprica", "vlcj-natives", "4{}1{}0", DependencyResolution.MAVEN_DEPENDENCY),
/** Youtube Downloader Maven Dependency */
YOUTUBE_DOWNLOADER(
"com{}github{}sealedtx",
"java-youtube-downloader",
"2{}4{}6",
DependencyResolution.JITPACK_DEPENDENCY),
/** Jave Core Maven Dependency */
JAVE_CORE("ws{}schild", "jave-core", "2{}7{}3", DependencyResolution.MAVEN_DEPENDENCY),
/** Apache Commons Compression Maven Dependency */
COMMONS_COMPRESSION(
"org{}apache{}commons", "commons-compress", "1{}20", DependencyResolution.MAVEN_DEPENDENCY),
/** Compression Maven Dependency */
COMPRESSION(
"com{}github{}PulseBeat02",
"jarchivelib",
"master-SNAPSHOT",
DependencyResolution.JITPACK_DEPENDENCY),
/** Compression XZ Maven Dependency */
XZ("org{}tukaani", "xz", "1{}0", DependencyResolution.MAVEN_DEPENDENCY),
/** ASM Maven Dependency */
ASM("org{}ow2{}asm", "asm", "9{}1", DependencyResolution.MAVEN_DEPENDENCY),
/** ASM Commons Maven Dependency */
ASM_COMMONS("org{}ow2{}asm", "asm-commons", "9{}1", DependencyResolution.MAVEN_DEPENDENCY),
/** JNA Maven Dependency */
JNA("net{}java{}dev{}jna", "jna", "5{}7{}0", DependencyResolution.MAVEN_DEPENDENCY),
/** Fast JSON Maven Dependency */
FAST_JSON("com{}alibaba", "fastjson", "1{}2{}73", DependencyResolution.MAVEN_DEPENDENCY);
then we also got VLC binaries
which are around 60 megabytes
and ffmpeg
com{}alibaba
lol
which is around 60 megs
yeah lol
welcome
just write your own dependency manager 3head
slow
ahahha my plugin takes 2 minutes to load up
lol
wait what
The HelpChat Level Leaderboard.
lol ive never seen aBooDyy#9543 and kylematzen#1743 talk
Aboo has been busy for some time i think
Kyle was banned lol
o
kyle left iirc

Wasn't he banned from discord with Charlie?
oh idk if hes banned from discord, i thought you meant from here
Yeah I think both their accounts were banned from discord for the same reason
ic
Which Charlie?
Chazza
I can still chat with him though?
Not on the account that was banned
I don't remember exactly, something to do with "Distribution of cheats" or something like that
Was it the spoof stuff?
I think so
Breh
Anyone know this setting in InteliJ that makes the evaluator not show the classname or whatever is suppose to be here? I somehow set it wrong and its really annoying me now but i dont know what to change lol
Ayy, it worked perfectly, simply doing config(MyConfig) and it'll create the config
Then config<MyConfig>() and it gets the correct config, easily add as many configs as needed in just one line
I presume this don't work in java or does it
At least not this nicely, since there are no reified reified in generics
Java version would look like
config(MainConfig.create(this));
// get
config(MainConfig.getClass());
I mean not that bad
Best warning system for Discord bot in node.js?
jda
Link please 😄
jda is for java and it is a framework not a warning system
so I have advancedban installed on bungeecord and I want to use it's api on spigot, is there any way to do this? 🥺
=mystats
Your Chat Stats for this month so far are:
:fingerguns: • 7 Uses
=steal • 181 Uses
• #dev-general 299 Messages
• #king-of-the-hill 201 Messages
• #off-topic 159 Messages
can someone help me please?
Do you want to make a warning system or just use one?
which jep is this?
Make for my bot
ah it's the sealed classes one
yup
sealed classes good
in fact, probably better than Kotlin's, since they permit classes outside of a single file
public sealed class Shape permits Circle, Square {
public abstract long getArea();
}
```isn't it something like that?
yeah
man, why can't Kotlin do that
wait can you not use abstract methods in sealed classes?
you can
public abstract sealed class ewwwwwwwwwww
if it's sealed, that should also imply it's abstract
since we know it will have subclasses
Quick question that's somewhat related: Say you write a small game in Java, basically a 2D board game with a rectangular board. There are different kinds of fields: Forests, Lakes, Fire Stations. They have basically nothing in common except that they're all fields. How would you model this?
having subclasses alone shouldnt make something abstract 🤔
surely they all have at least something in common
they all have a texture
It's a "sealed class" situation
I didn't say it had a GUI
also that would be complecting UI and logic
yeah those should be abstract Ivan
they shouldn't know what they actually appear as in the world
they should just be data holders
it doesn't, but that's besides the point
Board -> Cells
Each Cell -> Environment and Position
Environment would be extended by Forest, Lake...ect...
Isnt that it?
for context, this was part of my programming finals and I lost points because I essentially used an abstract Field class and then in moves and other logic, I would get e.g. all Forests and such by type
They said it's bad to use instanceof or similar, but I fail to see a better solution. I didn't do stuff like switching on a field type to do different things depending on the type (that should be part of the Field class then) but really just "getting by type" and such
i think this is usually true if you're trying to make an abstract type in the first place, like for example Muffin would be extended by Blueberry, Vanilla, etc
but what about cases where you want to further extend the functionality of an existing class that already actually does something
Yea they probably meant you to override some methods from the environment class to perform any actions instead of switching and handling it
for example maybe I want to improve the LinkedList class to make it use arrays as well as linked nodes
i know i know bad example
idk
Or am.I misinterpreting your question
which in my mind would be stupid because then I'd have to declare methods in an abstract type that none of its children would implement (except 1 or something)
What do the diff environments actually do?
Like for example, forests have a state that can change (basically how much it's burning), also they keep track of things stationed on them
the others can't do that
sort of, the game is about extinguishing all fires, and the fire spreads and so on
it's very complicated
and badly designed
why not do what minecraft does with ItemMeta
Ah
have an item meta object in every field
and extend that for every specific meta type the block could have
you'd have the exact same issue
Maybe each cell could have an update function, where the other environments dont do anything but this specific one does
Yeah that'd be one option but I don't really see how this would be better
like it's less extensible
When you want to add a new field with new functionality, you'll have to declare it in Field
Wouldn't instanceof checks be less extensible eince youd need to add the cases separately from specifying a new environment?
and also error handling sucks because you want to see when someone tries to drive their fire engine into a lake
see I don't have "cases" or anything like that. I have a map where all fields are stored, nowhere do I switch over the type to do different things for each case
Have an "isWalkable" property for every environment that specifies whether it is walkable ig
Hmm
I feel like that would still violate o/c
with plain inheritance, you just add functionality and the places that want to use it can use it
Mhm
idk, here's the source if you want to see what I did https://github.com/JohnnyJayJay/programming-finals/tree/main/fire-breaker
Yeah my field is basically cell and cell content at the same time
If I can convince them that my use of instanceof is ok I can get a perfect score
😋
when you finally work out how to do something, man this feels so gooooooood
@onyx loom I just wanted to say the task you gave me is a very advanced one and I feel like I don't have the necessary level to complete it. xD
what task
to add hex support to his plugin using adventure. Tried doing it using minimessages and matt's msg library but I get the NoMethod exception and I got no idea what the fuck to do about it. I also had to go so I didn't give it to much time
this is why you get a single file that can add hex support and replace ChatColor.translateAlternateColorCodes
Adventure good ChatColor.translateAlternateColorCodes bad
Adventure is better than the BungeeCord chat component API and legacy string formatting combined
BungeeCord chat component API and legacy string formatting combined
those 2 combined don't make any good to begin with lol
btw this is just a flex. https://i.imgur.com/dsdgMLk.png
;-;
np 😩
its a free plugin
oh dw I'll still try.
i dont get why its closed source
exactly
I just wanted to let you know why its not there yet Kaliber
dkim spitting actual facts for once
it is lol
lol
I'll switch to mini messages even tho I don't like their hex formatting
😤
nah Adventure's hex formatting is nice
&#hex
use LegacyComponentSerializer
why wasnt matts working exactly?
LegacyComponentSerializer.legacySection().deserialize(text)
1 sec let me see if I still have the plugin in my server
ah yes, legacyAmpersand
yeah you can't use Paper's Adventure stuff before 1.16.5
just use Adventure's Bukkit platform impl
well the thing is my server on latest build and adventure is in the plugin
this the thing
well I use Matt's library.
@ocean quartz I swear that's a text 3 thing
but I did try implementing adventure myself
implementation 'net.kyori:adventure-api:4.7.0'
yeah if mini messages actually supports &#aaFF00
I'll use that
I just didn't know
Adventure does
wait so I don't actually have to use mini messages?
no need to use mini message, use Adventure
ugh but I don't get it. Matt said that's not what adventure is for and I need mini messages as well
or his library
I never used adventure before
tried going thru the wiki
MiniMessage is for basically writing XML-based tags for chat components
and mostly understood what's there
oh I see so I can just use this?
legacyAmpersand
ah thanks
oh so that's why its called legacyAmpersand
implementation 'net.kyori:adventure-text-serializer-legacy:4.7.0'
you know this is an ampersand right.. &?
lol
does spigot have a way to send text components or do I have to use Adventure Platforms?
wait
for anything before the Paper build that added it, you need to use the platform impl
if I had ChatColor.RED wouldn't i have to use legacySection?
this is Spigot, md_5 is a bitch
kk ty.
since iirc the section symbol is the weird one
you can serialize to bungee components
with the BungeeComponentSerializer or whatever
ChatColor.RED turns into §c iirc
also, bungee components bad
i have to use legacySection?
hmm I mean I'll just use Platforms. Don't think it will add that much to the plugin? xD
to support reading § as the sign, yes
nah not that much
you'll need to shade Adventure too
ugh doesn't it shade automatically?
if the string is taken from § based coding yes, but if it's taken from & color coding no
stop hardcoding messages you nerds
huh?
also I can just use this isntead of implementing the entire api?
Adventure is only present in Paper
imagine supporting anything other than paper
you need the API, that serialiser, and the platform impl because md_5
imagine supporting anything other than tuinity
also, yeah you should make hex only supported on DM running on Paper 1.16.5+
yeah but when I implement it this is my jar https://i.imgur.com/nAvSRrL.png so I don't think I need to shade
okay what is that
imagine a config file with a list of messages, you would use & color codes in the strings, so you use the legacyAmpersand
if you were to use § in the strings in config you would use legacySection
dkim..
- me.kaliber
- Eclipse
not mine and not eclipse
That's JD GUI
that's jdgui i think
that's just jdgui
heh
what's JD GUI?
lol
decompiler
what about ChatColors?
well I tried to see what the fuck is going on with the NoSuchMethod thing
not supported
legacySection?
since they are rubbish
use TextColor for using colours in Adventure's components
you don't use ChatColors in a config.....
NoSuchClassException: java.lang.String
Bardy, it's nice to check if you're properly shading/relocating stuff
or NamedTextColor for the legacy ones
i meant converting chatcolor -> componenets
if that ever occurs, something has gone very badly wrong
?????
dkim what even is the question
then stfu
ok
this happened to my buddy eric
woah thats a thing?
🤦
primitives aren't classes
calin would like a word
well yeah i know that... ||i think||
primitives are handled completely different from the rest of OOP stuff
yet
they won't be classes
Valhalla just aims to make them usable in generics
unless you mean something else
It is possible to do rgb in the message plugins DeluxeJoin?
wrong channel
thanks fefo and bbg
@onyx loom I've done it https://i.imgur.com/kEKrrG4.png
this is from panel. I'll try it in a sec
from mc
you're welcome 😄
man, I still gotta figure out how I'm gonna do block states in the API
any suggestions?
dkim for helpful role
helpful role is a meaningless role
oof
not fully
"other general roles"
u wot
hey whats wrong with my package 🔪 do u have a problem
@glad wadi if it supports json then yeah its possible.
just going to fully test it first and then pr Kaliber
I thought that was DM code lol
yes, i infact created deluxemenus
oh
Imagine not having access to DM's source
I have access to repo Kaliber. I can say you have not.
pathetic
lmao
why in the fuck
imagine DeluxeMenus not being open-source
flavour
pathetic
fake news
why not lol
Bardy, that's a touchy subject :p
it all sinks to the bottom
how
and then u have melted chocolate cup
Just wait few days so clip forgets he gave me access and I'll be releasing BlitzMenus
clip will smack you
it will support deluxemenus fully. Easy convert just move files to my plugin's directory
some ppl just want closed source 🤷
i think clip has 2 OS plugins - papi and ezblocks
ezblocks cus we forced him to :kappa:
we still need to finish that rewrite lol
AutoSell needs to be open sourced so people can PR an actual API 
also my suggestion to this free plugin (closed source) from october is still not finished 😢
sucks
closed source problems
Bardy you aren't no
how does that ||asshole|| get it and we don't lol
scrap krypton, ezblocks is more important 
Last time we annoyed clip to OS stuff it didn't go down easily :p
what happened
You would've known if you were here
iirc when i was in a vc with him he says he doesnt wanna because people will see his bad code lol
he gave us the code finally
oh that reminds me actually
Now we wait for Piggy to OS it instead
Classic 🥲
If I didn't show people my bad code I'd still be a dumb fuck I was two years ago
you know, fuck all of the legal stuff or making money or not wanting people to steal your code, there is one reason and one reason only why proprietary code exists
to cover up the fact that the developer who made it can't code
@onyx loom POG https://i.imgur.com/HbIt5Qi.png
to cover up questionable telemetry bad code, yes, absolutely
forks MagicItems
its archived @half harness
yep
kek
ill prob never work on it again
clones MagicItems to local directory so he has it forever
I archived the initial world gen, the deleted it cause fuck saving old code
"eclipse"
burn
LOL
mine now
bardy ur gonna have fun if u go through that
forked and cloned
LMAOO
its ok dkim, hes just gonna make u improve ur code, only positives come out of this 🌝
Observe this Classic Dkim in his natural habitat, not knowing you can create a folder with any name
@kindred hatch Check DMs weeb, otherwise Imma go spam your snapchat
clones and opens in IntelliJ
pls bully me with my latest repo
what
You getting feet pics if that happens
what
backup well?
TabCompleter1
no
why not u fixed some bugs in it
"some bugs"
what is ur latest repo
wot
That's the fixed 12 bugs, added 30 new bugs scenario
pog all messages support rgb now. Btw @onyx loom why did you have a different method for the /stats help command? I think that was the one. I might be wrong.
i type 'github.com' in search bar and github.com/dkim19375/MagicItems/settings comes up
different method for sending messages I mean
o
https://paste.helpch.at/qupodayibo.cpp @half harness how did you sleep at night
anyways pr coming.
hm
If I type github.com I get github.com
one of them is an extension function of List<String> and another for player, for the main commands it looks nice because i can have it all in 1 line lol
its useless but yeah
nice
Shockingly
thanks blitz
https://github.com/dkim19375/dkim19375Core ok bully me with this
last committed 21 days ago
welp
you should test it on 1.8-1.15 tho. and maybe with viaversion even tho I think adventure converts to closest legacy color.
I tested it on my live server so can't switch versions
np
bump :)
just blame java with ur bad code, ez
If so why'd you swap names Prevaranite is way cooler than Bardy
Prevarinite is the name of an old organisation that I kinda still use a bit
convert to clojure
no thanks
Prevarinite
rip prevarinite discord
Ah okay I see
get it right at least
bm can u link me the haskell thing again
rip lol
Kaliber how big was the jar before? xD https://i.imgur.com/M56e6U6.png
🥶
I should reboot Prevarinite, so we can finally finish rewriting EZBlocks
1.4mb i think
no one? :(
im looking
oh
SplittableRandom pls
private final static is what I'm more concerned about
what is splittablerandom?
RTD
RTD?
It's random that works in multiple parallel threads
read the docs
donkey
also, ThreadLocalRandom if you want thread local random generation
read the donkey
its better and faster in every way
well one of my plugins was last committed 4 days ago
oh yeah, the old classic fix one bug, make two more
in Krypton it seems to be more like fix one bug make 10 more lol
I still celebrate every commit to BJ 🥲
Fix one bug, break chunk loading irreparably
wtf
why
why tf did i throw npe
lmao
Cause it doesn't work 🤷♂️
ive already looked at this before dkim
and that is exactly why I make sure to keep a backup of the world I'm editing the data of
yeah dkim can't make it less than 2010. You'll have to take a look if you want. Adventure adds almost 600 to it.
why
🤣
not sure when you'd ever need a (T, U, V, W, X) -> Unit, but ya know, to each their own
I wish Barry had a counter on who triggers BAAS the most
QuintiConsumer
hmm I guess. But I personally don't really use PDM since I don't have multiple projects to use it its not really any use
cmon bardy, you never know when you need one
I can live with a 2mb file
who ping
same blitz but yeah - spigot 
too many caps apparently
lol
does it have a limit?
never knew
or do you mean the community
in general?
curseforge/dbo 
Spigot limit is 5MB and only matters for premium
also. 1 more thing I don't like about pdm is that it installs libraries and when I update they'll still keep the old ones.
I know I can just delete the directory
and let it generate again
but laziness

@prisma wave plannedFeatureList += this
or i have a better idea, fuck people using spigot and only support paper 
I'm sure it's a quick fix yeah
that's not a bad idea. xD
mutable 🤢
-_-
oh shit I forgot to clean imports before commiting
Because it's supposed to be a global repository that any plugin using pdm can access
You fool!
Yes
yeah I know but unfortunatelly it is not. If it was used by more popular plugins I guess but I can live with a 2 MB file myself
whats the haskell website
wesit
@half harness incase u didnt see
oh
thx
just click on the wiki one and hope it takes you there lmao
um
Oh what
attackers might be trying to steal your information from learnyouahaskell.com haha
. . . . .
¯_(ツ)_/¯
@dkimm19375
libraries should help to shorten code - now tell me which 1 is longer :kek:
oops
lol
classic worldguard support lol
http://learnyouahaskell.com/chapters @half harness
thats bc i forget

looks like perfectly fine enterprise logic to me wdym
that's going straight to the enginehub discord lmao
woah
haskell is True and False
not true and false
ew
also it uses / and not !
welcome to another programming language that isnt java
lol
doesn't python do that too?
visual basic does too iirc
probably all .NET langs do actually
i don't think f# does
C# uses lowercase
finally something good
that is a function
o lol
i made my assumption based off the fact that im pretty sure VB does, then i remembered that F# uses a lot of capitals, so i just assumed so
doubleMe daddy
make me 😉
the only time you use capitals in f# is for interop
doubleUs x y = doubleMe x + doubleMe y
```what
f# official conventions are the same as java's
o rly
well I PRd. But it takes a while to check the code apparently. lmao
pretty much
smh
oh matt is here
I'm always here
😳
spooky
how to generate xp
https://i.imgur.com/qOa3E8w.png
pog
👀
scala integration tho
im only coding in scala now sorry
why Scala lol
guys
scala best jvm lang
i beg you is there anyway u guys could help me with something?
whens that coming tho
?help
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait
sooooooo scala best jvm lang
so, for 2 years now i've been trying to open ports for my minecraft server
👀
2 years
2 whole years damn
and its literally impossible
yes
you gotta port forward
im not even kidding
u realize it takes 1 second
not much I can do about that, who you with?
which port did you forward?
who's your ISP?
what the fuck has happened to material theme
its paid now @onyx loom
25565 25566 25567 25568
DIGI
WHY
bastards
TCP, UDP, or both
the tricky part is that I have 2 routers, the first one is plugged into the wall and the second one is plugged in the first one
both
no
Is your server port correct?
yes
noooooooooooooooooooooooooo
please don't tell me that compact stuff is only available for premium users now
no
oh noo
can you connect to your own server using localhost?
i cant open the ports, when i go to canyouseeme.org it doesnt work
yes
bruhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
can u connect with ur local ip?
Kaliber search everywhere and show me the compact settings
like the 192.168.1.248
Sometimes ports can be closed by the ISP
well how do i solve that
first solve not being able to connect using your local ip
how
you probably have a firewall
but first let me ask this, is this for your friends/yourself or is this for public use?
wait what? Wasn't it free?
yeah
Wooah expensive
subscription now though
both
then don't use some laptop/computer at home
£12 for first year actually, then £10 second year and £7 every year after that
lets say i want for friends
not expensive, just stupid how it's subscription based now
just buy hosting
A man gotta eat
i came here so I can find help in opening ports
please
is there any way i can fix it
Call your ISP
prob firewall
as Matt said, might be worth trying to call your ISP.
tho I never had this problem with DIGI
you realize that your issue is pretty general and we can't really solve it cause isp's are specific
lmao

fuck that guy
But lemmo is right tho. You shouldn't really host public servers on your pc. I don't even recommend it for friends either. There are some very cheap hosting services if you really want to play.
wait, first i need to make sure i got this correct
I don't 
so, i basically allowed my second router through my first router and then allowed my pc through the second router
is that correct?
We don't know anything about how your network is layed out
so we have no way of answering stuff like that
u can still download v5.7.0 (which supports intellij 2021.1) iirc
it's open-source dkim
just saying 🤷
IJ 2021 be like
yo UltraPermissions is GNU GPL v3???
the jar has a LICENSE.. and it's GNU GPL v3
wow
Imagine using UltraPermissions.
lol ikr
the very same powerranks dev made a migration impl from PR to LP
@quiet depot Back in the day - like 2017 - PowerRanks didn't have UUID support, so change your username... poof, your permissions are reset. xD
ah it was called powerfulperms not powerperms
.nl lmfao
I always found the command structures similar
LP commands are very similar to PEX's tho
i see
idk if it was inspired by it tho
lets see how good I am. https://i.imgur.com/W3xFBU9.png
all I know is that "I thought there was room for improvement among the plugins already out there!"
is there anything missing from luckperms at this point?
I personally have a couple plans for the API and commands but it doesn't really lack anything
well yes
bulk update api
which is my plan with the api lol
what is with .nl?
netherlands probs?
I thought it were a free domain, but whatever xD
oh
it might be free for dutch people
or heavily discounted
perhaps they're just feeling patriotic
it costs more than my .com domain smh https://i.imgur.com/uWXas0N.png
lol
idk. onlydomains.com
namecheap ftw
wtf
LOL
now that's irony
2.53
xD
euros
commercial 
lmfao
NO
wat
also I just PRd to deluxemenus. Now that's a flex.
I see
RON best currency
lol
dkim are u stupid
do u not know what the pound or euro sign looks like
do u know what the dollar sign look like??????
€ this is obviously a guatemalan rupee
oh is that euro?
lmao
🤦
dkim its clearly yun
yeah lol
oh I was confused what you guys were talking about. I just noticed that dkim called euro pound. lmaooo
lmao
wrong dkim
well
um
great british pounds dkim
ok
/s
so thats why the currency is L
lol
am i the only one who uses google domains?
i have been for years now
since it started beta
cloudflare domains ftw
i can't respect google domains since they're still being stingy with .meme
hehe
meh
I do kinda wanna go back to porkbun
u would like porkbun piggy
icann accredited ofc
Africa tho
africa good europe bad
oceania isn't a continent
???
australasia :kekw:
it's not in a continent
hi efe
hi kaliber
hi piggy
hi iwanio
everything is on a continent
interesting.
it's on the tectonic plate of "zealandia", so if you want to call that a continent be my guest
||aw no one say hi to me :c||
but in my books, it's not a part of a continent
no I literally just said I don't classify that as a continent
some people do though
isnt that the shit thats buried between australia and new zealand
idek if its a real thing but i think i saw it in a yt video lol
australia is a continent
Yeah
lol.
nz isn't on a continent!!1
is europe a region then