#dev-general
1 messages · Page 301 of 1
KotlinLang™️MC™️ by BomBardy & Brister Mitten™️
BomBary
true
we got baited
lmao do they all just link to random languages
yes
took you a while
dang its generated every time too
yup
thats great
ikr
I was very lucky at first and got the same 3 times in a row and I thought its just broken lmao
loppl
lol*
Kolol
let's not lose focus on the task at hand
its dockerized, i will have to implement it
Cup
Whats that
Docker is so good
lmao

yesterday I almost ran a sql server
This guide talks about What Is Docker
then realized i can use docker for dbs and got very happy
generally one of an absolutely horrendous programming language that BM seems to like
F sharp
yes
Uh
Kotlin expert? https://i.imgur.com/qqlbyzV.png
What is that
A programming language
Wdym?
What compiled to
The same thing C# compiles to
hmm is there a way to host maven repositories for free?
You can use mine if you want
o
Which I think is called CLI
well I'll message you if I don't forget lmao
👍
The regex stuff was for kotlin?
yes.
yo legit question -
if i am using compileOnlyApi, an issue arises where they don't have the repo that the dependency is from, which can be solved by just having people use a proxy which has everything, but is there another solution?
Why were you banned
without shading ideally
why? Did I mess something up? was there a better way than Java Regex?
That is the same problem I had with pdm
The solution isn't nice
what is it?
Uh
You need to do something with the generated pom iirc
Lemme try find the post I used
talking over others, posting the Prevarinite logo, a few other things
nice
shame
yeah I may or may not have posted the link and told everyone in general how I stole it from Wix lol
Because Kotlin 
oh
val regex = "\\[(?<action>[^]]*)] (?<value>.*)".toRegex()
val (action, value) = regex.matchEntire("[action] value")?.destructured ?: return
oh Kotlin has its own Regex. I didn't know that
kotlin regex good
cache the regex though
can we talk about f# more
BM do you know where in PDM you do that pom modification if you can't find the article
well i ended up doing a shading type thing
ah ok. i guess ill just tell people to use the proxy repo url ¯_(ツ)_/¯
thanks
@ocean quartz Can you give some links to docs or something for Kotlin Regex Patterns? I can't seem to find any. I'm bad at even googling 😦
^
oh I see. I guess w3schools doesn't list everything about Java Regex
yeah ther's nothing about patterns there.
oh.
lmao
it links to this https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html
I didn't see that first time
lmao
Nice conclure
meta.setDisplayName("§6§lWishing Well Wand");
List<String> lore = new ArrayList<>();
lore.add("§7Right-Click a block to place a wishing well trigger.");
lore.add("§7Wishing Well Name: §l§4{name}");
Why do the åå's appear?
Don't use § for colors
probably because of §
yeah
use & and then the ChatColor#translateColorCodes
or whatever the methods is
but also don't use the section symbol
why is something that is in my compile classpath not accessible in the project
can't access Hologram which is a class in hololib:core
did
😮
im not being stupid right, if its in the classpath it should be available?
Do you mean the paragraph symbol? Why?
hes talking about the weird color symbol
Yes and I'm asking why you're not supposed to use it
doesn't it cause issues in certain cases
.....yes
i mean i would assume it replaces the &3 or whatever with like ChatColor.BLAH
And I'm asking what the problem with that is
cause it causes weird symbols..?
No
That just happens if you don't compile with Utf 8
Which you should be doing in any case
you gotta copy/paste it every time i guess is a downside
And what do you think that results in
i guess the toString probably puts the symbol in there
If you guessed a string with § you would be correct
Well... that's not an argument for changing it to something else, besides some people do have that symbol readily available
alt 21
its just compatability
"Even though I don't think Minecraft will change its ways of displaying colors, however, using ChatColor, rather than § will allow for compatibility with future versions of Minecraft (if they do decide to change ChatColor implementations)."
hence why i said it had something to do with versions
also it isn't too hard to do if you use the static import though. you can just directly use the fields
like RED + "error"
or just use kotlin extensions and make a String.color function 😄
lmao
lol
java needs that
yea its extension functions
yea thats what i thought
Idk exactly how they do it, but yes its a language thing
iirc it compile to a static method that takes the object as first argument
or something like that
yea they compile to static recievers
yeah
Yea that makes sense
It would be like StingUtilKt.color("blah")
https://www.spigotmc.org/resources/silktouchhands.88283/ tf 20k downloads?
in what, ~20 days
not necessarily static
but yes
when would it not be static?
if its not declared in a top level scope i guess
pretty sure he just copied an idea from a youtuber. I think it was dream or something like that.
no. I think PulseBeat its a pretty trash name imo
like a very gay name
yeah
extension functions can be in a class
yea
@prisma wave do you know of a way to add repositories to the generated pom? The stuff that is in the compile classpath isn't actually available to use unless the repository is specified in the build.gradle
@file:JvmName("StringUtil") so StringUtil.color("blah")
ye
any idea why this is grey? https://i.imgur.com/eEVIpVP.png
Cuz groovy gradle
hover over it
nice
i dont think theres a fix lol
fr
Nah dw about it, it's just IntelliJ with groovy gradle
if it works leave it
yea its working, its just not gonna like autocomplete stuff for you
Anyone wanna play with me ?
but .. why
Ask jetbrains
How can I detect if an item is inside a blocks coordinate?
use getnearbyentities
i kinda wanna make a "trash bin"
so every item that goes within that air block, gets deleted
well air
like
when the items go in an airblock
like
at a coordinate in the air
Its always in air
There are no condition where its not in air
even if its laying on the ground
Location loc = new Location( /* your world */, 43, 6, 32);
for( Entity ent : loc.getWorld().getNearbyEntities( loc, 1, 1, 1))
{
}
should i do all this in a entity move event?
there is no such event
oh
you need probably make a runnable
alright
Or use playermoveevent
what if noone moves tho lol
yea
i agree
and btw I have an array of coordinates I want to check for, like, I have a list of "triggers" that should delete items
Or you can use
PlayerDrop and Death event
Make a short runnable
every time
which cancel itself
when item is eitehr inside the coordinate
or layed on ground
d;spigot Item#IsOnGround
boolean isOnGround()```
Returns true if the entity is supported by a block. This value is a state updated by the server and is not recalculated unless the entity moves.
True if entity is on ground.
sec
public void test(PlayerDropItemEvent event)
{
Player player = event.getPlayer();
Location forbiddenZone = new Location(player.getWorld(), 43, 6, 32);
Location playerLoc = player.getLocation();
if (playerLoc.distance(forbiddenZone) > 100.0)
return;
Item item = event.getItemDrop();
new BukkitRunnable()
{
@Override
public void run()
{
if (item.getLocation().distance(forbiddenZone) < 2)
{
item.remove();
}
if (!item.isValid() || item.isDead() ||item.isOnGround())
cancel();
}
}.runTaskTimer(/* your main instance */, 1L, 1L);
}
this should do it
oh wait
You probably have to adjust the distances
on your needs
arrow code 🤮
main 🤮 lol you edited to "your plugin instance", i saw that
no finals 🤮
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
Oh no
👀
Lmfao
Me?
Ex*
Who are you
I am Donald Trump
Good for you
hi
hui
how do you edit deluxe menus?
okay tnx
Edit the yml files
I have a proposal
How to get dev role?
I type [Role] Develepor and it doesnt work
I can wait
it doesnt give you an automated response
it just dissapears after, but its submitted
You'll probably have to wait for a long time
It says invalid request
hi donald
Dont talk to him
Hello
good to see you again
how ya doin' donald
It's nice to see young boomers around the world
Senpai
😤
play with me 😭
.
@prisma wave hows the rocket going
I mean all you're typing is the role
I have to write more?
Matt was my request valid
What i write
Read the channel
Probably
kk
Then what i write?
You're still not following the format, it's right there in the channel
Role and proof
i applied before and i was close 😔
i applied before and i was not close 😔
Proof what? Applying for dev doesnt need a proof, i am not making a ban appeal
LMAO
proof that you are a dev 
read
.... My profile
Developer (Any language):*
- Link to Github profile with
proof that you own it.- 2+ Active projects of your
own.- An understanding and attempt
at following your chosen languages'
principles and conventions.
*No scripting languages
2+ Active projects of your own.
I have that
how can I make an extension for Player like itemInHand
link to your two active projects...
Then link your github with the projects
Player#getInventory#getItemInMainHand?

I'm probably misunderstanding ur question
One issue: the most active projects are private (my bots)
kotlin dkim
Ok let me apply
uh
either make them public or add contributor
I'm out
If the projects are private mention that in the application and add Piggy to the repo
matt 🥺
fun Player.itemInHand { return this.getItemInHand } ?
Yea but i dont want anyone to steal my code
My plugin is active and public
If you don't want to share the code with the server's admin, don't apply
shit
I was looking for a way to call it without () kali
Sorry, what is the question? Kinda lost in this chat xD
i used the docker to make the docker
you arent followin naming conventions

infix?
something like player.inventory.itemInMainHand but without inventory part so an extension
maven 😬 and committing .idea folder 😬
Just fun Player.itemInHand() = inventory.itemInMainHand
u tell us
naming conventions 😫
empty class?
its one he updated 3 days ago
Stop looking its a new project not done yet
ah that makes sense for the empty class
BM will like this one
Yeah, now just wait, it'll take a while
any way to do it without () matt?
infix i think gaby
Please look at other projects
wait no
infix is something different
ye
Yeah give me a sec
First commit 3 days ago
then lets look at Spiget
Sure
val Player.itemInHand
get() = this.inventory.itemInMainHand
you never name a class
with 1 letter
U
holy shit u can do that matt?
I forgot to rename it
🤨
I meant Utils
extension variables 🤨
yes lol
doesn't say fork 🤨
Boys, Piggy will review the code, you don't have to
cute matt
Another one is a fork
also, you using maven or gradle? 😂
Search CodedByYou/Spiget
val String.colored: String
get() = ChatColor.translateAlternateColorCodes('&', this)``` 
id prefer a function in that case
ty matt
You do yeah
Yw ;p
what was the shortcut for kotlin conversion of java code?
ctrl shift k iirc
alt too
It's all of those
all of the above
also just found out sonatype can be used as a docker repo as well (among many other things)
thats pretty cool
omfg
I cant believe it
I asked someone to play with me
Gave him the anonfiles link
and he managed to download malware
And have probably used it..
the hell is that
has those malware advertisements
"Your flash player is outdated"
Update it
And he dled it instead
some 8 year old probably 👀
Is my request good?

"Your", more like flash player itself is outdated and is now discontinued 😭
RIP to all the games on websites using flash 😭
I have adblocker and antivirus 
no...
no os is safe from malware lol
linux is as good as it will get
yup
iOS viruses 🙃
developers check their programs source code before downloading something 
apt install *
idk like 20 min or smtng mb
i do
No
https://streamable.com/krkf2d
I'm too cool for knockback 😎
cringe
lol
Synchronized Nonblocking IO
Wow, so engaging, so much skill, look at that outplay
wrong
No, sumo is engaging and fun

but reducing requires drag clicking
lmao
i can take no kb without insane high cps
sumo isn't all about cps
1.8 pvp in general isn't all about cps
i am well aware
@ocean quartz how can I add a body to get() =?
adding : DataType works
val Player.hand: ItemStack
get() = run {
return if (ServerVersion.CURRENT_VERSION.isNewerThan(ServerVersion.V1_8_9)) {
inventory.itemInMainHand
} else {
inventory.itemInHand
}
}```
get() {} should work
no =
ohh
its similar to like
fun blah() {} vs fun blah() = ...
val x = String => Unit =>
Another would you rather play here
Would you rather:java final String prog = {"prepare", "begin"}; if (host) print(prog[0]); else print(prog[1]);
or
final String prepMsg = "prepare";
final String beginMsg = "begin";
if (host) print(prepMsg);
else print(beginMsg);```
Could just do
get() = return if () else
too long for one line
latter
You don't need the return, it's an expression
Lmao
No, rather you would simply use the same noise generator with the same seed and pass it the actual x and z coordinates at that point.
Depends on what you want the license to do
none, GPL 
By GNU he means GPL
And most of the times MIT > GPL
No, because MIT means you don't have to credit
Yea
What's the point of a license if you can just use the work without credit 🤔
To allow to work without credit?
If your repo doesn't have license it falls into "all rights are reserved" and you can't copy, distribute, etc
Very sad
Where is that?
Oh solo learn
I think i understand why, it isn't available unless you make an account
While the other ones show up in the learn page instantly
ahh
While the other ones show up in the learn page instantly``` Wait no
wdym?
This is without logging in
@ocean quartz
Is that logged out?
Oh okay, it doesn't show on the "start learning now"
You need to go to the courses tab to see it
ah
when making REST apis should i have like convenience endpoints, that give me data in like a different format or something? Like something i could get from somewhere else but not in the right format or whatebver?
@prisma wave https://stackoverflow.com/questions/49419971/kotlin-get-list-of-all-files-in-resource-folder 
?
yeah that doesn't work
not for classpath
already tried that
getResourceAsStream seems to return a JarURLConnection, but if I do available, it says 0
probs a dumb question, but how I get access to RadixEngine within my src module
yeah...
no
the parent can't depend on modules
actually no
the other way around
implementation project(':RadixEngine')
Doesn't look like it

Made a common module for my root, less fuckery
indeed
This is what I have so far and my brain is seriously starting to hurt https://github.com/op65n/TerrainGenerator/tree/render
I'm starting to get pissed off that scanning the classpath for files in a directory is so fucking hard
or just anything I try doesn't work
if in doubt, bring the vanilla server out
whp needs a .gitignore
wow
elaborate
I need to read all the tag files from Mojang's data generator
they're separated JSON files, with a file for each tag
so I need to get a list of JSON files inside each tag directory and iterate over them, for each one storing it's name and deserialising it's content from JSON to an object
I can do the iteration and the content, I just need a way to list the files
version independent?
what? the tags? currently only supporting latest
I ain't hard coding them if that's what you're implying
tempted to just make MineKraft use it's own formats for the files and create a conversion tool for it tbh
just get the JarFile and scan the entries in that
.mk
if I could get a File object from a directory in the JAR, I would be fine lol
or a Path
CodeSource
since then I can either use listFiles or walk
that's not how it works
MinElarft 🙂
Files only represent things that are actually in the File System
use a JarFile and loop over the entries in that
how do I do that?
fun fact you really want to use a jarfile over a jarinputstream
they have different semantics for some reason
(well zipfile vs zipinputstream, jar doesn't have any weird stuff afaik)
make a JarFile, use the Enumeration it provides
yeah but what do I set as the name?
wdym
or the file
do I need to provide it with a file object that corresponds to the file on the system?
o.o
yes
amazing
how do I do that without hard coding?
god it's all in 1 file
get the CodeSource
one has moved ze problem
how does one get that?
nvm that
what do I do with JarEntry?
- what will
JarFile#entriesreturn? what kind of entries? classes? resources? - what kind of name? relative to JAR? absolute? just the file name?
all of them
what kind of names?
because just the file name ain't gonna work
since 1. the tags aren't all in the same folder and 2. there's no way to distinguish block tags from item tags for example other than the directory they're in
then how exactly do you expect this to work
idfk
I've literally tried everything
I've tried class loader, custom scanners, org.reflections, file paths
what i mean is
if you've just said you can't distinguish them, how do you expect to distinguish them
then just hardcode the directory names?
that's why I need the list of files in a specific directory
and check that in the JarEntry
yes?
so the name of the JarEntry is relative to the JAR then
e.g. tags/blocks/acacia_logs.json would be the name of a JarEntry that's in that path in the JAR
mhm
right, okay
test time
NO WAY
Alex
you are a literal god
and Piggy
you are also a god
thank you
didn't want you to feel left out xD
@old wyvern https://github.com/Lazersmoke/civskell
oooh
oh hey BM
I got to the point where I can see the chat message in console
still sits on joining world though and throws a bunch of NPE's seemingly for no reason
classic haskell yes
I dug through the source of the client and there doesn't seem to be any reason for that at all
r u making ur own client or smth 
try/catch 
pk is plugin message, pa is change difficulty, qg is player abilities, qv is set carried item, rw is update recipes, pn is entity event and qk is player position and look for reference
yeah no, that's not gonna work
lol
these are logs from the client, I'm making the server
ohh
I swear I've already told you this at least twice
😂
you must have the memory of a goldfish with dementia after a night out
🤣
]oh nice
any idea what could be the cause of those nasty NPE's?
I am Kaliber
no idea
but this is on the client's end
ah
null usually causes npes
Piggy you're too fucking smart
@prisma wave guess
you're not sending something the client expects
nope
ok wtf
The client is stoopid
the px packet never reaches the client
hex codes fully work in dchat as far as I can tell
px = login
what are people complaining about
Piggy, user error as always
a.k.a the join game packet never reaches the client
theres a lombok button 👀
disable the plugin 🙂
uh
Just wondering, what would the maven-compiler-plugin be in gradle
no u

compile is in the java plugin
Atleast the boiz are loyal, where as these hoes aren't
Ok ty
whos the hoe
his ex 
doesn't matter 
ikr pig
just fall in love with the computer
I'm a mineman again Pig
we love to hear that
Like this right
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
(If I want 1.8)
no
oh
download more groovy
and go like
plugins {
id 'java'
}
sourceCompatibility = JavaVersion.VERSION_1_8```
and that's it
cool kids don't set target compat
then use the kotlin plugin
k
compilation is provided by the plugin of whatever lang ur using
Gian left me on delivered on sc, I'm sadge
Yeah
frosty u need to isolate urself
frosty delete the app
😂
just don't use em
no
bruh I'm alone all day, I need some human interaction apart from discord
yes
yes
well im talking about the other ones
like the ones where they post a story all day and shit
wouldn't even be surprised if more people used discord than snapchat at this point
yeah discord has more users
lol
xD
my irl friend group still uses instagram to chat with each other
well at least some of them
I've migrated a bit under half to discord
We switched to discord
mind you the people that I've got using discord are the ones with pc
Cause everything else is fucking shit
I'm not sure I'll ever be able to convince the xbox half of the group
Shoot them.
ps4
Good.
i mean both are trash
PC master race
yes
But far more expensive
dude my friends play fifa on ps4 and think they've reached the pinnacle of gaming
XBox Series S
Is sooo cheap
give up
for the hardware components
OmG gUyS i BoUgHt ThE nEw FiFa, mEsSi HaS aN eXtRa HaiR oN HiS FaCe
Fifa is currently EA's only game that works
wot
Without lootboxes
lol there's kids at my school that play these card opening games
EA is screwed
fifa points?
where you literally just open cards
there's no game
it's just opening cards
fifa cards*
There are also idle games
Where the game palys itself
you only invest the currency your char earned
🙂
but just opening fifa cards on scratch
But at the end
i can't comprehend it
it's like buying everything on amazon beta with your paypal sandbox account
how is that fun
(btw amazon beta isn't actually a thing that I'm aware of, just imagine it was, I imagine they have an internal tool)
oh yikes that doesn't actually make too much sense because you can't use paypal on amazon can you
oh yeah cyberpunk, has the source been released yet?
GWENT was released
And the guy sold it
screw them
what did they do
hypocrits
Running an anti DRM campgain FCKDRM.com
And also using DRM solutions if they need it.
They even took the website now down
And of course countless other issues which has been revealed through the active development from Cyberpunk.
Acting as employee friendly, but have crunch like any other company and still tries to hid their hideous acting.
omfg same lol
no you're just extraordinarily weird
nah, I just find it annoying to have to switch between apps every few minutes
The problematic I have. Everyone is using WhatsApp
whatsapp is good
yeah WhatsApp is good
its literally the only social media i have with my friends outside of discord
We have groups with students there.
discord for gaming - whatsapp for anything else
||I've never heard of WhatsApp||
dkim u have problems
kaliber does its featureset even compare?
He is deaf
no
Thats why he never heard anything of it.
I feel like you guys are only saying it's good because of the extremely low bar set by every other app
but its ease of access make s it worth while
like discord is probably the most featureful chat app out there
it's great for everything
ofc
eh
Telegram is actually very close to Discord.
whatsapp and discord don't have the same purpose
indeed.
I'm trying to hire everyone to telegram.
Parents who just learned what WhatsApp is and how it works
Don't really like Telegram, but I'm looking to migrate to something else as well
signal 🙃
Extremely close to Discord.
i just use imessage to talk with my parents lol
I think they use messenger usually
but fuck that
not everybody has imessage...
imessage 
wechat though 
Imessage could never have its success by limiting it for a certain brand.
But that's something Apple would never admit.
i dont like apple bc it always has its own thing instead of universal
you can still message people on android through imessage though right?
Even their shitty television subscription service
ye i think so
Will never have success
i wouldn't know, the only people I message are my parents and they both use iphones
u cant play games through imessage tho
Apple products are ideal devices for parents. As beginner devices
yeah, one direction
oh
one direction
well I don't like a response anyway lel
You don't have imessage on Android
Thats why no one uses it
wat?
I think so yeah
My parents are using Messager from Facebook, WhatsApp and Instagram
just they can't use those special thingys
yeah johnny already said you can bardy
and you can't either
all facebook products xD
Messenger is good
but zuckerman
Facebook messenger ew
Billion dollar company A bad, billion dollar company B good
wot
it doesn't say im on intellij in discord rp 😦
it's for old people n3w0rk
messenger became shit when they removed images, nicknames and other shit due to the new guideliness
and not comfortable to use.
Which is a retarded move lmao
Since when did they remove that
using facebook unironically 
image storing should I say
Have anyone seen Facebook Gaming?
n3w0rk the way I see it, is that facebook is the entirety of the internet for a lot of old people
You can still send images, (sometimes)
But previously it was used by youngs
Before their parents occupied it
and the youngs left to insta
yes
facebook was a big thing back then, catering toward teens and college students
then a few years pass, and a new big thing shows up (instagram/snap)
GitHub issues are the best social media
true
Github release was a blessing
lets all move to github as our main social media app
its literally perfect, u can message people and share code 😍
how do u message people on gh?
Perhaps Snap is a US trend
issues
issues
But it died
:kek:
oh
🙂
in europe very quickly
i'm in aus
n3work it didn't lol
It did.
Where you from
Make a private repo, add the person you want to speak to, then use issues for communication
Everyone uses WhatsApp, Insta and TicToc
tictoc
BM, even better, commit description
lmao
