#dev-general
1 messages · Page 66 of 1
It's not

Oh hi josh lol
Remember a few months ago you were tryinna learn java how's that going
1.8 Spigot API is missing a variety of methods and a lot of the old methods that are 5 years old are now deprecated in the latest version of the api
if they were deprecated they probably have a reason
They are stated if they are deprecated
@topaz bay the worldedit worked first time (kinda) :D
@remote goblet sorry for tag is that a schematic?
yea
Can I give some advice
Make an iterator looping through all the blocks, find the chests location add maybe 2 to the coords and teleport the player there
I might not even use the chest honestly
I mean put a item on there what will be replaced and teleport the player to the blocks location
It'll stop the player from falling into the void
Yeah
You paste it differently than me
I use fawe to do it, but you're just using w/e
FAWE is broken so i'd rather not kek
Will you change to fawe once its fixed?
You could write your own system to paste it ;)
No i wont be switching
cause fawe wont be fixed lol
it's been in its current stage for a while
gotta love this gui framework
I would use a ItemBuilder as well with that https://paste.helpch.at/nipeqosime.cpp , just excuse the poor indentation
ItemStack newItem = new ItemBuilder(Material.LIGHT_BLUE_STAINED_GLASS_PANE, 0).setName("&aName").setLore(Arrays.asList("Lore1", "Lore2").asItem();
and you can manipulate the class to add Item flags
nope
@remote goblet lovely
I like it cause it doesn't require a lot of mental capacity
Tell Nicole she's doing a great job!
Whoa, that's pretty cool.
thats cool but it requires a mental capacity
It doesn't lol
It requires
Nor does it actually require this
a brain
I don't think I ever have a reason to manually go that fast, I just allow pagination stuff.
This part is just a high level designer
Someone could help me?
i still love the can someone help me questions
like maybe idk
maybe tell us what you need help with
@topaz bay When it comes to IJ, what kind of keybinds / shortcuts / tools in it do you use that prove to be the most helpful in terms of cleaning up stuff, etc.
Ctrl + A + Del
@frail glade go to BED
Xtanna changed profile pic and I am not okay with it
What does it present to you? 😂
Now he looks like a human instead of some discord bot
and I am not okay with that
Also UntouchedOdin0's discord nitro subscription ran out and his name is not purple anymore which I am not used to
Which I also am not okay with
Decided to drop support for 1.8-1.12 for my plugins on spigot, bad or good decision? 
good imo
it's just such a bother to test shit on those versions tbh
And develop stuff in those versions
@prisma wave Do you know a good http library for Kotlin. Without to much random stuff?
I've heard good things about retrofit
never used it though
Or there's one else that I can't remember
give me a second
It has to support gradle
99% do
it wouldn't be very good if it didn't
https://github.com/kittinunf/fuel this looks decent too
coroutines support
Aight, thanks
np
@runic flume the most straight-forward and simplest one is khttp, imo. It's basically a replica of python's requests
Okay
It's good for little and simple rest interaction
When you build in debug mode, does intellij really need to build every single class each time 😦
I hate that debug option
why
I accidentally click it all the time and it freezes intelliJ >:(
yeah
How do you accidently click it? 😄
well
you goits directly next to the build button
its like snapchat and it's dumb call method
i dont use snapchat so i wouldn't know 😄
I made F5 my run shortcut so I don't need to click up there
(F5 because I was used to it from using Geany for C, old times yikes)
HashMap is causing a stack overflow
That sounds like fun
How do you guys speed up hot swap? it takes so damn long now. To the point where it's unusable.
I dunno, takes like 5-10 seconds maybe for me
I'm at the point of questioning if it's even worth using because of how slow it is.
bear in mind it's more suited to small changes
1 or 2 classes at most
if you're editing a lot you may as well just recompile fully
wew
@prisma wave i'm only changing 1 class at a time and it decides to index search the whole lot.
odd
I have found a new command on Minecraft I hate
/tellraw
:(
/tellraw @p ["",{"text":"%player_displayname%","underlined":true,"color":"dark_aqua","clickEvent":{"action":"run_command","value":"pw %warp%"},"hoverEvent":{"action":"show_text","value":["",{"text":"Open Playerwar GUI"}]}},"",{"text":" just teleported to ","underlined":true,"color":"gray","clickEvent":{"action":"run_command","value":"pw %warp%"},"hoverEvent":{"action":"show_text","value":["",{"text":"Open Playerwarp GUI"}]}},"",{"text":"%warp%","underlined":true,"color":"dark_aqua","clickEvent":{"action":"run_command","value":"/pw %warp%"},"hoverEvent":{"action":"show_text","value":["",{"text":"Open Playerwarp GUI"}]}},"",{"text":" using ","underlined":true,"color":"gray","clickEvent":{"action":"run_command","value":"/pw %warp%"},"hoverEvent":{"action":"show_text","value":["",{"text":"Open PlayerWarp GUI"}]}},"",{"text":"/PW!","underlined":true,"color":"dark_aqua","clickEvent":{"action":"run_command","value":"/pw %warp%"},"hoverEvent":{"action":"show_text","value":["",{"text":"Open PlayerWarp GUI"}]}}]
``` had to design a message for someone using tellraw and it ended up just being annoying and toxic to make
Yup.
Fuck tellraw
Yup.
I mean, it's easier to work with when you don't use it raw.
that is ugly but if you use a beautifier it looks way better and actually makes sense
Well everything in that format is just so it can be typed in minecraft
I much prefer it looking lik ethis
why are there empty objects everywhere
wish I could tell you
I don't know tellraw in the slightest, i was just going off what they had originally had lmao
when you forget to update github for a while
Not bad
Json > all
@remote goblet Weak
Bro how do I submit my answer in #chat-reaction lol
I mean your answer was wrong kek
actually ive never heard of that wow
lemme readup on it
this is build in typescript/js right?
WELCOME TO THE KORM FIELDS
LMFAO
lul
soz had to
Are you spatools on GH?
let me guess
maybe undergo a name changexD
xD
damn
Hibernate
rip xD
Its not really an ORM
yeh
But less trash
json is stupid
but makes more sense
Its clean af
shie
Does this work with Api controll and communication and is it able to be encrypted succesfully like JWT has?
the project is just a reader and writer from/to the format
Protocolbuffer is interesting an interesting project
has potential actually
It provides functions for from/to many sources/destinations
string, file, reader/writer, and input/output streams
hibernate
i like
so i can basically just depend this and i can throw YML out the door for spigot use?
Yes
Yes
The only "downside" is that I am too lazy to create tooling
Sxtanna swing is not bad
I hate swing
Swing could disappear and I would not have an issue
Mostly how gross and outdated it is
Which tbh, fuels a lot of what I make
Replace outdated for "time tested" 😅
which you could probably tell from looking at my github
xD
oh the joys of programming
😮
oah i love those arrays Xd
thats just pure chipping away at the keyboard and dyingfrom the inside
xD
What font is that
fira
Wizards are a human feat of engineering
Gotta love it when 2 people give you errors for a plugin that’s tryna run inventory click event asynchronous
i just api'd inventory shit. cant be bothered to write those my self. to much braindmg since i dont like it xD
yeah you know when your kind of brainstorming with some code design then you just decide meh and delete it
Lol
if(ass != 'ass'){
Noose();
}
LOL
I am quite fond of the scunthorpe problem. And I will not rest until she is defeated
how does it read /-\ as an a what in the word
By doing something I wouldn't dare do on the JVM
Brute force extreme regex
((\b)|(\A))((a|(a|A|@|4|Д|/\\|/-\\|/_\\))+(s|(s|S|5|\$|&|§))+(s|(s|S|5|\$|&|§))+)(\b)
Anyone got any smexy methods for formatting from seconds into 1 hour, 23 minutes and 20 seconds
the patterns are generated from that map
The performance is absolutely terrible on the JVM, but GoLang on the other hand...
This would probably take several seconds on the jvm
@hot hull Hello what is your budget
0$
@hot hull I gave you a thing for this
You did?
aah like tht @topaz bay ait cool
@hot hull oh maybe it wasnt you
I gave someone a thing for this
it should be in #development
It used Duration
Got an aprox clue how long ago
It literally supported only those time units
wrong one smh
smh
windows.... 7
At least the code is clean 🥺
@heady birch lambda
LAMBDA
....
kms
Lmao
the only businesses on xp are retail stores in europe
Java 8 does not work on XP
wot do fok you writing in 6/7 for
My windows 10 does not run very smooth, 7 was alright but couldnt install net 6.4
Some people who use it will run on xp i expect
Targeting 20 year old platforms is probably not the best
Why are you targeting less than 3% of the userbase
you are focusing your time on a target that will probably be 0.1% of your userbase
man your time alocation sucks XD
Wait, is THAT why youre using swing???
LOL
I just now put that together in my head
- Jidecomponents have a nice docking framework for only 399$
no because we just do microservices with different frontends that are powered through xamarin for mobile use (or anything alternative)
It looks really nice
I wish they would add a native docking framework to it
I think swing lacks some basic components that fx has like the datepicker
Just create an api that can do whatever
And make a frontend that communciates with itlol
Java apis are pretty relient
I'm almost sure I've seen several docking libraries for javafx
Yeah I tried a couple, unless I did it wrong
😂
"probably i just suck"
Thats my favourite thing to say whenever someone comes to me with an issue
I personally blame you for this.
it makes me get better /shrug
is gradle better than maven ? 🤔 if so why ?
And then theres always the one that exceeds both: Ant.
Or in Sxtannas example, NetBeans
I need a nice way to pass around context in my wizard
Its kinda juist what you are used to
its not better or worse
same as just using git or blank ssh
Learn java and make it yourself kekW
Damn, only ~550kb for my prison server's plugin
With a somewhat custom Ranks system, custom mines system, custom chat system, custom crates s ystem, and some more
dunno
i think the difference would be the toggle ability
lol
People usually request it since half the spigot plugins outthere don't even work
that's why I said
Also eeee
Learn java and make it yourself
just jdecompile and rebuild most of it and fiddle someparts arond and they work
most of them are so easy to rewrite with 0 skill
for personal use its fine lol
I made one in less than 2 hours
well still quite long o.o
Took me 8 months to make a hello world plugin
2 hours isn't that long honestly
I made amob money drop plugin in 35 minutes xD
Maybe another 15 minutes to add json messages
But that's like 1 event Shrinc, weakling
true xD
Json is easy af lmao
Aight, time to try 5 new GUIs I just wrote
json is still dumb
was more config setup than actuall programming xD
Just use the lib papi uses
Time to fix 4 of them probably not working
Exactly what I'm going through rn, trynna make this config actually usable
yuh yml is horrible
json is like the way to go
nah
I'd share it, but private commission so you can just imagine it
share what
Yes json is 100% bewtter than any other
the neat config
also compatibility spoken
3rd times the charm
yuh xD
Im Dutch xD so sometimes i have a hard time, but generally im quite ok in english haha
I made it in like 3/4 classes
ehm
Yuck class naming
No
Like this is horrible to look at xD
good
with respect
like whatever floats your boat 🙂
its good fun
you dont have to be a proffesional if you are having fun 🙂
You can be a proffesional and still have fun
Whats yalls opinion
its more fun when you dont get scolded by fellow programmers which is right frosty xD
When you open a gui with a command, send a message in chat or not?
why would you
inventory blurs game screen
you could say "inventory opening"
but its not really necessary since its a logical thing
thats my opinion
add a toggle
It's fun when you are scolded by other programmers though
i dont really get motivated by "this shit is unreadable come back when i can"
(Not that I'm a programmer tho or know shit about java)
welp it makes you a programmer
but being a software engineer is the next step
and the next step is being a full stack engineer xd
which makes you programm basically 24/7 without breaks to become
When i do programming i do it in bursts
so for a week or two i'll be doing it all the time
then the week after I hate it and want nothing to do with java
Lol haha
so I do something else for the next two weeks
i know that feeling
and switch
but thats just when i document analyse and make design documents just to figure out what i need and dont need
🙂
I usually try to document shit, but most of the times just give up with it
welp
Try working out analysis documentations
just plan it out firs
so you figure out what you need
and what goes where
layering and such foor OOP and protected communications
set up UMLs
for like certain parts of complex architectures within your software
and then just go liek a jetengine with the code since you basically psuedo'd your architecture
Ah yes
It's really nice but once I forgot one requirement and had to change my whole system, I think I shelved the project by then
I mean configure it jesus
this is horrible so far
Why do you do your brackets like that 😭
Ah I see so it's not the theme, it's the bracket style y'all dislike
I hate both of it
Show me your theme
You're being greedy and using two different themes
I use IntelliJ default
that's horrible
There's no contrast in that, which is why I changed to this
Also, Ori, would you prefer to have it both the same color so it's impossible to see what's what?
Yes
well
not "the same color"
obviously
but blue and black are fairly different
🤷
the scrollbar is a good separator
The orange is nice, but I dislike cause it's hard to distingush the two
"onAsyncPlayerChat(AsyncPlayerChatEvent )"
please kill me
Okay
just name it onChat
okay
fuck
it's habit from JDA
onMadGuyWithAFishChat
JDA cries at you if you don't do the public void names right I think 
jda does that for a reason
yeah it's a habit
I like long names like that
also, its an abstract class
I dont care about the name of it honestly
The longer name thing only helps when it actually provides detail
Hibernate with its findUserByUsernameEqualsIgnoreCaseAndPasswordEquals()
Which would then have parameters whos type lack any information at all about its usage right?
s1, s2
It would be username and password
But it's jpa so it infers the method and writes the sql and all that
@topaz bay look at the plugin that was posted in #694758128415408208 👀
lmaoo
I've done something really odd sxtanna do you approve of this, it works pretty well actually
So I have WizardPage<T>
Where T is previous page type
lmaoooo
oh
so I can do getPreviousPage().getPreviousPage() and instead of giving me WizardPage it gives me the actual type
well that's ruined my day
Lol
why the fuck Ori
before you question it, i didnt write that
Its not his
just as a reminder
I was boutta flame u
Looks like frostys brackets though
Not dumb enough to not know you can use |
also printing stack trace 🤢
Use the logger, add a nice friendly fuck you message as well
😮
To really tell em they goofed up somewhere
Ah yes
"%player% fucked up the config, you should leave"
@lunar cypress Packages are not first class in Java
They have almost 0 impact on how you resolve types
If you are asked to retrieve similar shapes from a bag, are you going to compare the color of them? Or are you going to compare the shape?
I've done something really odd sxtanna do you approve of this, it works pretty well actually
So I have WizardPage<T>
Where T is previous page type
so I can do getPreviousPage().getPreviousPage() and instead of giving me WizardPage it gives me the actual type
@topaz bay
Of course its not how generics are meant to really work 😐
why though?
Page 1 might have a text box, page 2 might have a radio button, page 3 might need to create an object from the previous pages
Yeah it's dirty
I call it the Niall Pattern
It needs a wikipedia page
Anybody know why a pickaxe would vanish whenever i join? It has custom nbt on it but that shouldn't make it just vanish.
question how to find ur Database server address.
its for litebans
i have database but when i check the server address it says localhost
in phpadmin or in cpanel
the database uses the ip of your machine
welp im using cpanel on one of hosts and i create a data base in cpanel
the database is not on my pc
Oh, sorry lol
I feel this
Our Android repo’s history contains over 100 commits from its Java days along the lines of “Fix NullPointerException crash”.
I've never read more relatable words
Developer happiness according to NPS increased by 129 points
That is absolutely fucking disgusting
God imagine being forced to use Java
And then the ray of hope that is kotlin comes and saves the day
ngl this is sounding REALLY circlejerky
I have no issue with that

Me neither
are bStats graph is automatically updated?
Yes.
oh okay, it just need some time, i get it, thanks.
How much java knowledge do you need before learning kotlin? I wanna try and learn it, but I dont have much java knowledge, what is needed before learning it?
@obtuse gale Kotlin is it's own language
You don't really need to know any Java
but it helps right?
Knowing any programming at all helps
yea, ive noticed once you learn one languages the others kinda look easy
like its just a matter of learning syntax
It makes your life so much easier
i dont want to learn kotlin because I like liking java :o
No one really "likes" Java
i like java
I prefer java currently over anything else
Question: Why does java even really exist at this point then? Is kotlin just an new thing or is it unknown m like why doesnt everyone use it?
Java is extremely widely used
java exists for the same reason python still exists
Its not going anywhere
Java is used everywhere
any time soon
yea but why is it extremely widely used
I mean I like Java, just prefer Kotlin
For example that animation I posted in showcase would have been so much harder to make in Java
Because of its nature
platform independent
compile once, run anywhere
compile on any machine, run on any machine
Its like... the perfect language
In theory
LOL
is kotlin not platform independent?
Kotlin is a frontend language
It compiles to three platforms
The JVM, JS, and Native
The JVM and JS target are ofc, platform independent
But the native binaries are targeted
TIL
i want to ask if i want to make a gui with some items and then you click one of them to open another gui how i acn do that with deluxe menu ?
i found it
@quiet depot sry for mention but i cant found it can i add aliases on deluxe menu ?
Ask in #general-plugins and wait patiently for an answer. No need for a tag
ok thnx ❤️
Y u asking in dev chat tho 
What if he is master coder
bruh my intellij is literally using 2 gigs of ram
plus im running and entire bungee network of 3 servers plus proy on my pc....
plus 2 mc clients
16gb of ram isnt enough lol
why are you doing that though
Vps exists
Code a pro plugin and sell it 😎
lol my coding is messy af
Oh Jesus you should see my comments in code
at least you comment
Yes but you would lose braincells because of the comments
And free hosting services like server.pro exists
do they let you upload custom jars?
Huh
shut down* not removed
Lmao
Smh same shit
no lol
bruh
I need more monitors
imma go see if i can find a fourth monitor somewhere
??
🤣
can anyone help me in #general-plugins ?
Anyone know if its possible to rig up a macbook air as a fourth montior lol?
Pretty sure no
yea, according to gogole the thunderport jack is output only 😦
I can probablyt hook something up over wifi but eh
Why do you need 4 monitors?
flex
Talking to some dude on my plugin's forum post
and he says that minecraft versions past 1.12.2 have become worse in performance
Is that true
Cause to me it seems like it is extremely stable compared to 1.9-1.12
well if he thinks so he should be able to tell you why
yes they are
To me 1.15 seems to be the best version performance wise
1.8-1.9 are pretty laggy to me
1.12.2 is my most favorite of all out there
As in I get like 30-45 fps for some reason
Cause someone is angry that I am dropping support for <1.13 for my plugins lol
Or upset
Because I find developing for older versions boring when I have to basically re-write stuff over and over again, and I want people to drop old versions and just move onto later ones
Developing for older versions is pain, specially 1.8
Amen.
how do you run 1.15 easier than 1.8 bruh
Same thinking ^
Shrooms
My laptop is literally the worst rn
Everytime I want to code plugins in 1.13+, I have to be at 1.12 for testing, then modify small things that will be compatible with the latest
Cant even flatworld it and load basically nothing?
hey anyone know why my essentials or vault turns money to "$#E7" at the 10mil mark?
happens on the FB scoreboard and when giving money
but on /balance it shows normally above 10mil
ciao
It's not faster jeez
where were we
Or I mean
it is faster
I don't think so
it's faster for development
Faster to write
You just got lazy hands
technically the execution could be slightly slower but I think it's neglible
alex, you got any examples
of what
I can feel the win of 1v2 here
kotlin being more compact
Why is that good
i'll change sides if you like
😦
😦
😦

because the amount of java boilerplate significantly slows down development
what happened funnycube
Biased
no its facts

oh the sheer seconds lost
Add up all the seconds over the timeframe of the project, will soon go into minutes and hours 🤷♂️
Imagine the confusion
Who needs null checks, dont write code that can null smh
confusion?
Imagine kotlin lol
imagine java lol
imagine jvm lmao
imagine programming lol
jvm good
@prisma wave i'm sure it's CoatLin
it's not lol
imagine brister mitten 
i went to bed questioning that lol
CaughtLin
It's KoSucksLin
jk ❤️
Just use scala smh
ew scala
Okay tbh idk it depends on the situation :]
why we arguing over this
it's fun
let's just all use Skript
True
we all have some degree of superiority complex
this let's us establish whose is the biggest
lmao
😦
Thata one nice thing about sponge, no skript
Can we get an f in the chat
F
L
F
T

F E E T
up for me lol
In other news frosty, merged all the changes in the wiki
so everything should be up to date
once it comes back from the dead
Probs what broke it 😛
Last updated 2 months ago
Nah, other ones are down aswell
my favourite thing about kotlin is that when you decompile it back to java it's not even valid java
oof rip then
?
if you decompile a kotlin class to java it's not even valid lol
I swear 50 lines of my project are try and catch's
ew
That sounds like a bad thing
welcome to fawe
Please tell me you don't do this
try {
}
catch (IOException ex) {
}
try {
}
catch (Exception ex) {
}
try {
}
catch (TralalaException ex) {
}
lmao
that is... amazing
Still can't forget what I saw the other day
try {
try {
try {
try {
operation();
} catch(NullPointerException e) {
throw new IllegalStateException(e);
}
} catch(IllegalStateException ex) {
throw new RuntimeException(ex);
}
} catch(RuntimeException exr) {
throw new Error(exr);
}
} catch(Error err) {
err.printStackTrace();
}```
now this
is a try catch block
oh
o
that was a huge waste of time
did it work?
I guess it does what I intended
lol
errors 😄
eee why this take long
just release it
just release it
same here dw https://i.imgur.com/F3NmOr9.png
wdym just release it dude
?
Pay me like 100 and I'll make it free
spigot bad
brister pay him
absolutely not
Was talking to you
i'll take your burger king away
I mean you did say you would the other day, so still waiting 🤷♂️
New pro code
Kotlin decompiled looks fun
It's awesome just delicious
Who you trynna kill with that Conclure?
Brister ofc
poor alex 😠
tbh arrow code is underrated
false
Now you just needa make a bow
It has such power on devs
and ur set
lmao ofc
it's hideous
not as bad as my code is it now brister
I consider making a plugin with only arrow code and statics 😮
Sir
arrow code is the best code
the no object challenge
fly plugin
I wonder how you would do listeners and commands
Lmao challenge accepted
reflection brister
I can't create anonymous objects?
ik thanks
Challenge make a big plugin in one class
yikes
Wym, I can have more than one class???
Matt yes
pleaxe Matt do it
Hahah truu
and all it does is says "welcome" when someone joins lmao
yes
what on earth
oh no
the formatting oh god no
Imagine using griefprevention
pfft not even 4k lines weak
that is great code
it's not even formatted
Who needs formatting
why's the onEnable so far down?!
It can only enable once it has suffered enough
there's commands within the onEnable class 🤮
I think so yeah
i'm gon smack u up kid
Other than GriefPrevention's allman
what contest?
it's good code
Oh shit xD
I'm ready for it
you can never have enough
Hi everyone!
In 2017, me, Rens4000 and Remceau hosted two plugin development contests:
-...
I think we could make it have more than 3789 lines
10k?
hopefully the cube doesn't get mad at me for sharing this: https://discord.gg/67knsu4
contest discord
that lagged my discord
oh wow
/ban Piggy
thanks piggy
Someone ban this nerd
whenever people send discord links it lags my discord 😦
oh no
that's gonna get me banned :P
Ori yikes
I'd say "it's gonna get my role-request denied" but it also got denied because I was mean to glare (i think it was glare)
It was Glare's dopleganger
cri
=profile
fr?!
=lvl
it's literally my lvl bg
piggy that's abuse
can we talk about the fact it says "Hey!, Unfortunately
=lvl
yikes
cant use it in this channel
ha
i hate that bot
25
In theory this should work right?
for (int i1 = x - 2; x < 3; x++)
{
for (int i2 = y - 2; y < 3; y++)
{
for (int i3 = z - 2; z < 3; z++)
{
}
}
}
oh god
what level are you alex
:>
31 i think
got any better suggestions to make a square?
@prisma wave Wanna have a 4 week break from the server?
for (int i1 = x - 2; x < 3; x++) {
for (int i2 = y - 2; y < 3; y++) {
for (int i3 = z - 2; z < 3; z++) {
}
}
}
``` kekW
no reason, just annual leave
dOeS iT mAtTeR
everyone say bye to alex, he'll be back in may
my pc sounds like it's about to blow up how hard should i kick it
i hit the fan
Like 7 newton's of force
it's making a scrapping sound is that bad
yes
fycj
it's very bad
yay
Probs your harddrive shitting itself
if you die
void method doesn't cound as an object right?
i aint going to your funeral
no
probs
not unless you're in kotlin
Ok good to go
fun
fun
i mean I put 10TB into this pc idk why it's shitting itself
yes sir
you smart
Lol
harsh
oh damn
Lmao
i needed a new fan so
you don't have anything saying it wasn't a spelling mistake :wonk:
You are evil