#dev-general
1 messages · Page 146 of 1
:?=??=??*
no danke
wtf is that language i just google it and i have no idea whats happening
im not that good to do something like that
it would only be like 2 lines
not bad
csv?
comma seperated values
It comes out in a dumb Excel spreadsheet
Obv this is a joke, MySQL is fine
[09:06:50] [main/FATAL]: Failed to start the minecraft server
net.minecraft.server.v1_16_R1.SessionLock$ExceptionWorldConflict: /root/Modalidades/Survival/./world/session.lock: already locked (possibly by other Minecraft instance?)
I have this problem every time I try to start my Survival server
The fact you said
my sql
Made me believe it was
help me please
ookay sorry
End all java tasks
and then using hikari or what that is for database manager
You have an unstopped server instance running
hikari is connection pooling
ye that stuff
How do I finish all the java tasks?
the solution I found was to delete the session.lock files from the worlds, but when restarting the server it happens again
@prisma wave thanks
you have multiple instances running xangel
Is this on your local PC or hsoted somewhere?
@old wyvern Ooh nice, the grammar stuff was the one i was dreading on doing xD
😄
my grammar is even better
Ty for all the help so far Yugi!
😇
So I need to figure out something fancy to determine where around the spawner mobs should spawn, any suggestions?
frosty why are you on levels leaderboard top 3=??
Because kotlin good, java bad
lol
,,m,
So I need to figure out something fancy to determine where around the spawner mobs should spawn, any suggestions?
Like a 4 block radius?
,,m,?
then minecraft bad?
@hot hull idk, 3 block radius?
Minecraft is dogshit
minecraft = java = bad?
so mc isnt good
We WILL rewrite the client in Kotlin, some day
We all have a love and hate relationship with Minecraft
kotlin release date: 2011
Minecraft relase date: 17. maj 2009
Idk if it was possible XD
then they should have waited
wtf
delay the game for a few years
Yes, they should have infiltrated jetbrains
Still haven't decided on the radius, but I need to somehow mimic the default mc spawner spawn mechanics, ie: (X being spawning spaces, O being spawner)
X X X X X
X X X X X
X X O X X
X X X X X
X X X X X
And I also have to account that this is 3D meaning I have to be concerned about the height as well
I mean afaik Notch just meant mc as a random game, there was no real expectation that it would expand so much
👏
ahaha
as
Boi kotlin wasn't even a thing then
i see
the evil marketplace
ah
Kotlin was in the wombs then
i wanted to tell him too look into code of their plugin
HA
Boi kotlin wasn't even a thing then
then notch should've waited for it to become a thing
We don't talk about it 
ok ok
Gasper their code is shit so I'd rather not have to bleach my eyes afterwards
Frosty
Yugi
so good luck FrCsty
Does anyone know whether there is a Java library to parse Proguard obfuscation maps?
The kind that Mojang provides as well
I searched a lot and couldn't find anything, ended up using Mini's map viewer
how do I convert code from java to kotlin in IIJ?
I think there was a keybind
or something
shift + ctrl + alt + k
@steel heart If I wanna do the getByUUID I have to expose the MultiMap on the AbstractListener. Welp
How else do I get the thingies then
Have the multimap packageprivate perhaps
I will take a look later if anything seems a bit off road
It won't work if its package private since its in the listeners package
I guess I could move it
Wait where do you want to add that method?
the ItemActionManager
What should the uuid method retrieve?
The ActionItem with the corresponding UUID, or null if there isn't one
I'll do an Optional<ActionItem>
Okay, well does the Multimap store uuids by keys and actionitems by value or how was it now again?
Oh
The actionitem doesn’t seem trackable in it’s current state. Hmm do something I will figure something out if it doesn’t work
Seems like we might have to encapsulate uuid in action item totally
yeeeah I was just thinking the way I was gonna do it won't work
And change the key of the multimaps to actionitem where as the action item uses the hashCode from uuid
And equals on hashcodes from uuids
Hmm
Why the hashcodes and not the actual UUIDs?
Use the uuids then perhaps, that would also work wel

nice one frosty
My brain is melting 
I got a fan next to me and it's still hot af
Yourself?
😏
Ow
Any suggestions as to how to make non shitty stackable mobs?, was planning on having custom entity types and just giving them custom nbt so I can track it easily 
But open to suggestions
Ah
Unless you legit have a better idea
Well idk how you would check positions without move event. Task timer?
I have to implement custom entities anyways, so might as well make the system adjusted to that right now
You could obviously check on spawn but that wouldn’t cover everything
Scratch that I've got a better idea 
@foggy pond https://paste.helpch.at/qehefuluta.hs ❤️
What's Tridescent 
yo Frosty, how many years have you learned Java for?
frosty bad dev
❤️
hmm. I saw messages from you in 2019 that were quite interesting.
from who?
ur basically stalking him at that point
😒
I was just typing "how to code", and Frosty popped up, as well as Gaby.
Never knew both of them couldn't code at that time (2019), I thought at least Frosty would've been coding for at least 3 years now.
😆
Call out
That's pretty crazy, don't you need like 3-5 years of Java experience before diving into the spigot api?
nahh, who needs experience
Today I show you how to easily hack into any computer without the password. This one simple trick can be used to gain access to any computer or laptop in minutes. It doesn't take long & you don't need any previous hacking experience whatsoever. All you need is an iPhone. NOTE ...
I fucked myself because I dove straight into the spigot api, don't make the same mistake I did 
no OOP 😦
And I oop
13-15*
That's what people on Spigot said 🤷♂️
I mean I'm diving into the Spigot API first?
fuck it
Got any previous experience or completelly new to it?
but I'm probably gonna take an IJ course & study OOP.
Should definitely learn some java first
Why would you want a course on the IDE?
I'm completely new to it, but I've been looking at open sourced projects, and reading docs, and it's been pretty good so far.
learn kotlin instead
Don't start with kotlin
Java, then Kotlin 😉
This is what I'm planning to take https://www.jetbrains.com/academy/
Yea hyperskill is pretty good
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait
=help
Various Commands for Barry.
• General Bot/Guild Commands
• Miscellaneous Commands
• XP and Level Commands
• ChatReaction Help
smh
#bot-commands
It works :OOOO
Preference based 
kk
Is there a Java equiv of Kotlin's return@Whatever?
There are labels, but not quite like Kotlin
Right ok
Cos I wanna return from inside two forEachs, which is gonna be a bit of a problem lol
ooof
Something like:
whatever:
for (something) {
if (something is false) break whatever;
}
Just use a for loop at that point
Not great though
Yeah xD
Lmao
There is findAny i think though
No shit
Just use a for loop at that point
Hey, only doing this in Java because
A) You didn't wanna convert it
B) ^ Neither do I
C) Conclure welps a lot
either follow frosty's advice or use kotlin
like any sane person would
don't blame me for you making a bad design decision 
Well I mean, I would but I don't think I can convince Conclure to learn Kotlin
Sheesh 
¯_(ツ)_/¯
Didn't he say he was going to?

also just do that 1 class if it really matters
funny, loops & fp
Well this one method is technically possibly one of the most important ones of the whole thing but eh
Its a for loop now
The only reason this is possible in kotlin is because of inline functions
Java does not have those
indeed
Java bad 
Java isn't bad
Frosty bad
maybe
This guy has never used clojure in his life
i have
it's absolutely garbage
!false
good language
use lisp
Clojure is a lisp
hence why I said use lisp
Just use Frigga
^^^
Katsu convert it and maybe I will learn kotlin as well
Frigga bad
Scratch good
Yugi, you trynna start a crusade I see
Conclure lemme get this working, see what you think, and then I'll convert it
Sure
What does a crusade mean?
man i hate windows
Updates
I need the update
Smh windows
Who does that
Dark theme, a cultured boi 😎
🍉
Win7 good, Win10 bad
you can't use docker inside wsl
I have like months of updates waiting 💀
Frosty shut up
unless u use the new update
Linux good
win vista good, win7 bad
The only reason u use win7 is because of your boinked CPU
Win xp good
and I cannot live without docker
ms dos good
Enable the linux subsystem or whatever its called Lemmo and then you should be able to run Docker. I did it a while ago
did you read what I just said smh
you can't use docker inside wsl
as in docker desktop from windows to wsl
Leave me to not see things, ok
I'm making a gh pipeline for building and deploying a docker image for the ecloud
and to locally test it I use act
which does not work on windows (not well atleast)
damn thought u were talking about me then
No lol
ik ik
Look up Kali Linux
ik 🙂
ok
Glhf
Heynlo fren I hire you to doose da big create of the config builder thingy
I do fre on 🏠

Conclure, now I need to make my own spawner trigger events, started with using the default spigot one, but it's unreliable and frankly doodoo, so I gotta make that system from scratch


I'd say he's clean
ish
Ugh now i have to go through every single event listener and change actions. to getActions().
Oof
ew getters
Mitten he is actually cool since he isn’t lazy enough typing it out 
Alex u ruin proudness
Ok we can now get an ActionItem by an ItemStack using the UUID NBT
I ruin everything to do with java
I need to make my own custom block, doable? (Without storing data outside of the block)
You might not say that when you see the code, though its not that bad I don't think
Frosty you might have to store it outside
No it feels like you made a good job
there have been blasphemers since 2016 😮
we must find out who this was
You haven’t seen me rolling yet

Lol
This Deleted User is gonna face the wrath of the kult
Alright, have a look when you're ready https://github.com/katsumag/ItemActionsLib/tree/master/src/main/java/me/katsumag/itemactionslib 
Awesome
he was so scared he deleted his account
Lmaoo
for (T $ : ts) {
Utils.notNull($);
}
``` using `$` is the ugliest thing I've ever seen
lol
I mean they're not wrong 🤷♂️ @onyx loom (https://discordapp.com/channels/164280494874165248/695431668944732270/739183041314029568)
CRUSADE
hold on hold on

@eternal mica evidence?
Mitten might be me that did that
many people have said kotlin bad, but few can back up their claims
Wouldn’t say kotlin is bad
dude...
You do realise the reason why i put ~~ there is to joke with you
lol
Lmao don’t look in my core then
like
PubLIc fuN
Don't hurt Conclure 😦 He rewrote it, like, so it was WAY better than my core
no
(:::
I will hurt anyone who unironically uses $ as a variable name
^
LOL
you should be locked up
You can feel BM shaking
😬
His local Tesco better beware
I am FUMING
Then you def shouldn’t look at my core then
😡
Well it’s private anyways for your security
Actually I did switch a lot of them out
Challenge accepted?
return new ActionItem() {``` anonymous classes? for a core part of your functionality?
what arrow code?
hold one sec
whyyyyy
Sounds fancy
Idk tbh well, being able to change T1 and still have T2
??
Yes
BM, honest opinions. https://github.com/katsumag/ASpigotFramework/tree/master/src/main/kotlin/me/katsumag/aspigotframework/modules/worldbuilder
the builder classes aren't really builders
they're basically the factory pattern
so I would rename
ok
Also, builder pattern is mostly not needed in kotlin
indeed
Is there any situation where it would be used actually? cant think of any
Sure its not, but I wanna make it not-absolutely-aids-to-work-with in Java
JVM overloads kot
Anyway, renamed them
The point of builder is mostly to not have to write the million constructors
but since kotlin does it meh
@errant geyser the whole LayerAction class feels kinda wrong
i'm not sure why
but it does
Builder should ease it up to create Immutable objects right?
Or am I wrong on this one?
that's another use
I think you're right
Thats a side effect
the whole LayerAction class feels kinda wrong
i'm not sure why
Ok, I'll keep that in mind. Its just like, the cleanest way I could think of doing it while making it clear what each thing does
well yeah you shouldn't
in OOP and FP you should reduce mutability as much as possible
or just in general
Well kotsu still awesome work on that one 
Danke 🙂
Tbf this went down better than I thought it would
Now I just have to actually work out the command system
😎
Aayyyy
Conclure, there still might be a chance for me to be able to store it on the block, gotta see if block state is modifiable, considering the state dictates if it's a creaturespawner (meaning a spawner), so technically I'd assume you're able to modify/store shit
But, we're also talking about Spigot here
Yeah frosty
What to use for palceholders api to set placeholders for the string
PlaceholderAPI.setPlaceholders(Player, String) got deprecated
What is the correct way?
?
I want to go to sleep, can some one just write one simple sentence with the correct method to use
setPlaceholders(@Nullable final OfflinePlayer player, @NotNull final String text)
@hardy summit
Also #development next time
Use imgur
PlaceholderAPI.setPlaceholders(Player, String) got deprecated
OfflinePlayer
(OfflinePlayer) Player will be okay?
Yes
And what about
(OfflinePlayer) null?
That would return null
if (!(sender instanceof Player)) {
sendToPlayer(sender, PlaceholderAPI.setPlaceholders(null, "&a%server_tps_1_colored% &0&l| &d%server_ram_free%/%server_ram_max% &0&l| &e%server_uptime%"));
return true;
}```
Wellllll
Works for me
Casting null to any type just returns null, no exceptions
so (OfflinePlayer) null will work as null worked?
yes
Thanks
You wont need to I think
I need to, it shows deprecated if I dont
ok
Flex 
impressive
Its called Java?

dw about it :p
Can I somehow have an enum return it's contents directly, or do I really need another submethod to retrieve it?
ie. Enum.TYPE, instead of Enum.TYPE.get()
Use a class
Eh fair enough

Not using kotlin for this :((
It's taking me ages to do it in java, it'd take me twice as long in kotlin
It would be faster with kotlin probably
excuses
Makes sense
so many excuses
Oh shut up weebs

kotlin good, java bad 

ladies and gentlemen
after a full rewrite of the parser
frigga has loops
that don't repeat forever
😄
ayy 
Not a complete fan, but it'll work for now
https://paste.helpch.at/noruboboje.cs
Noice BM
Now time for me to work on mine 😨
hmm canceling if someone places spawner against spawner hm
ah i guess you havent implemented it yet?
hehe i have more playtime than you DU HHAHAHA
huh?
bruh
(not forked)
Yea quite a few
cube
cube who?
.,.
rip
This is even sadder
where do you check that?
Wakatime
wakatime
do i need to download that
Indeed Matt
It's a plugin for IJ and you check on the website
oh
java gud
CRUSADE
Sacrifices we gotta make
huge sacrifice
i dont care how pepl like KOTLIN but i dont like its style of code
u will be noted in history for this matt
CRUSADE
Many don't like Kotlin before trying, but once they do, they like it, Frosty used to be one of it's biggest haters

Though you people here are too crazy for it ngl
i dont hate it i just dont like their syntax
You get used to it
what don't you like about it?
i do need to calm down i agree
everything
but like
my first step has been taken towards normality
Yeah you all do xD
name change 
fun sum(a: Int, b: Int): Int {
what's wrong with that?
iu dont like :
:
:
:
Nooo Kali
hm
he does have a point katsu
circlejerk shouldntve lastest this long
It's a bit odd at first Gasper but a bit better than public int sum(final int a, final int b)
Less verbose
i mean:
val a: Int = 1
val b = 2 // Int type is inferred
val c: Int
wat ta frik is happeniong here
?
wdym
you really can't tell what's happening in val b = 2?
why is there 3 types of declaration
ur just declaring variables lmao
this one makes sense:
val b = 2
This val c: Int is a compile error
there's 1 type of declaration, with an optional type declaration
bm can u welp me
its litteraly on wiki:
val c: Int // Type required when no initializer is provided
yeah that's for use in a constructor or something
That doesn not work though
it wouldn't work as a line itself
ye
oh wait it does compile
lateinit var c: Int <- valid
val c: Int = null <- valid
val c: Int <- error
nah it works
you just have to initialise it
it's a compilation error if you try and use it without initializing
im not recoding my plugins into kotlin to much work it took to much time to do them in java heh
I mean on the example it's initialized under, it's not just val c: Int
im not recoding my plugins into kotlin to much work it took to much time to do them in java heh
You dont have to
Do what you want
Clojure good luck my code isnt everyone friendly its my own wierd style
fair enough
Gasper imagine not having your screenshots embed properly like honestly smh https://cdn.katsumag.me/Doggos/humphs.jpg
Yeah, plus you can have your plugin in Java and add Kotlin classes, it works just as fine
img doesnt load for me
It loaded fine for me
just taking its time
ah you mean embed images?
i just store them on my dataserver .
As do I
BRO
idk why they dont load always
Cute dog af
its just discord
:))
Though don't follow the hive mind, i recommend playing around with Kotlin, it's fun and pretty nice to use, but use what you like
^
oh and btw whjo said to recode my plugins (you wont be able to test them have some private repos inside of it)
you technically don't need to recode
and btw, what is the "hive mind"?
you can have java and kotlin files in the same project
eh
Ew
The circlejerk is good for xp, buuuut it can be ott
proud to be a jerker 😎
Blind followers
eh for that 50 users i have i wont like change to kotlin
but clojure has no flaws
Some dont
Was not reffering to you
ic
He's sniff sniff Clojure blind
well i do have one with a bit more users https://bstats.org/plugin/bukkit/HolographicPlaceholders/5834
noice
still need to update some stuff.
?
imagine not having a join plugin that downloads dependencies at runtime
couldn't be me
PDM ftw
Soon KM, soon 
Even tho it doesn't do relocation
Imagine having a working runtime dependency downloader.
meh
oof Glare
imagine
Imagine having a working runtime dependency downloader.
IMAGINE
couldnt be bm
that would be great
Still waiting.
Imagine 🇵 🇩 Ⓜ️
pex 2 waiting on u
eh my plugin is like 461 KB
pex 2?
pex lol
You own Permissions Ex?
PDM is getting attention
No, but I showed pdm to the developer.
And he took interest in it.
ah
Is there a website to see a graph of your github repositories per language?
yes I think one sec
oh god i dont wanna see mine rn
oo link
you could probably make one pretty easily if there isn't
effort
i just forked all papi expansions in the papi repo and theyre all java 😬
rip
i don't get why people do that
fork random repositories that they're never gonna actually edit
because why not
yes
bm, i did edit them
Alex why not try to make pdm even more known
True I guess
It's not ready for the attention I'm bout to give it.
uh oh
😮
not yet 
whats he planning 😬
howly my bot size is 27MB
Haha when you add when you add dependency injection
lol
Leave him be for a little while, he'll recover soon
:?
Aaaaand he's back
shutterstock lelelle
😂
No its not
Oof
that would probably break the universe
Black hole
Bukkit runnable not bad 😦
physics 🌬️
Bukkit runnable cancel
Spigot runnable good
TuinityRunnable
BungeeRunnable
Imagine using BukkitRunnables for thread hopping.
Quantum Theory of Recursive Dependencies
spigot
all of them except paper
Actually purpur
Purpur is actually really nice.
Wasnt it made just for mounts? xD
It does a lot of stuff with that being one of them.
Oh didnt know. What else does it add?
They have a pretty big wiki, you can always check that out.
NMSRunnable
CrashableRunnable
I just know about it from a friend who was trying to get the authors pets plugin
uh?
And we've got spawner stacking 
wtf git:
22:38 Push rejected
Push to origin/master was rejected
at least say why rejection
just make it accept it 4head
ask it nicely
wtf
22:39 Git Pull Failed
POST git-upload-pack (275 bytes)
remote: Enumerating objects: 4, done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
warning: no common commits
From https://github.com/NeutralPlasma/VirtusBot
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
refusing to merge unrelated histories
I'm trying to use Deluxe Tags with essentials chat. I've installed the placehodlerapi for it and put the {deluxetags_tag} in my essentials chat config. Still just shows the placeholder in chat
Get good 
since it didnt allow me to push
chris, #general-plugins
you're probably gonna need to force push
how
no common commits suggests it's a completely different project
wtf
bear in mind force pushing will remove all the history on the remote
but git push origin master --force
maybe wait though
yugi or someone might know a better way of fixing
Ooo, SpringBoot 2.3.2 is out.
anything interesting?
Lots of bug fixes

LOL
Oh no but I completely rewrote the grammar
ah
I'll probably change to a handmade one in the future
changed syntax?
of frigga?
yea
a little bit
nothing significant
but the grammar was a mess
and now it all works
ah 🍉 gg
merci
Oui oui baguette
Cmere baguette boi
Je vais pirater
noooo
java est mauvais
Not the hack pls
🙂
kotlin est bon
vrai
"So you can kiss my hardcore diaper-wearing ass!"
seasons: 5, 6, 7, 8
in which everyone laughs maniacally
jokes aside, s7 and s8 are truly up there with my favourites ♥
Lol
👀
indeed it is
Like wtf java update ur logo pls
Uh its just a symbol for its name
Could be fancier 
It looks ancient
I guess because it is
lol
Lol
But hey NetBeans would lose its reference if java changed the logo xD
True true
So im just starting a basic survival server for 1.16 with maybe 20 plugins or less and maybe 10 players or so, I'm wondering how much ram I would need for it

ok thanks!
@steel heart am I dumb or are we dumb?
We have no persistence for IAL right?
Like items already created after a server restart will lose their abilities
It would be a fairly simple fix but still
I wanna know if I've gone mad or if we actually overlooked that
I think yep, that’s why we should add the NBT stuff
I will make a massive recode halfly
Halfly?
Ah
I will create our own maps and some stuff
That sounds amazing
It will just become more solid (:
I'll do a temp fix in the event listeners tomorrow until you're free to work on that then 😄
Yes that’s awesome
Ok I've had enough of delusioned children believing they can buy "untraceable" IP addresses
Gn
One last thing
BM
This idiot
Uses ngrok
Thinks the IP he gets from it is untraceable

lmao
What is a good graphing librarby for jvm (preferablly kotlin) which has good rendered ui or how would I achieve something like @compact perch's graphs
java awt / graphics2d?
Does that have good built in data graphing capabilities ?
No
You will need a lib for that
Thats what I was asking for lol
Neither what Barry uses have graphs built in
So how does barry do it?








