#dev-general
1 messages ยท Page 129 of 1
I dont even think minecraft can handle that
this is good and all
but the id is generated in ComponentFactory
which is passed to each Component
but GroupUpdater's reinstate method cannot access the components through the KiteUser interface ๐ฆ
?
Talking to myself
@lavish notch Sorry for the late response, my time zone is different I assume. Here is my timings again. https://discordapp.com/channels/164280494874165248/695431668944732270/732772285546627164
is there anyway to fake a death?
player.setHealth(0)?
fake death
I mean
fake the death
but not actually die
Like I want to like do an autorespawn method
but the issue is
that most of the spawn plugins.. when the player dies.. it gets teleported to the spawn
I want that to happen
I don't want to add a spawn function to my plugin
I want to support all the other /spawn plugins
what
mean
lmfao
Idk
They complain stupid stuff
I have to write compatibility for other plugins not clearing the scoreboard properly
Then codebase becomes a mess because just chucking stuff that wasnt meant to be there
Its like
They want me to check the players protocol version
Instead of work on the server version
But then I bet via version would destroy that anyway
Lol why should I do this
kiteboard has an api now
they can do it themselves
shutup or do it yourself

no actually
via version should put a 32 long prefix into 16 prefix 16 suffix
๐
via version should put a 32 long prefix into 16 prefix 16 suffix
@heady birch shut up or PR
liskov
they will probably be like "no"
smh
Well done
smh
EnumSet is a Set?
yes?
can't intellij do that?
yeah
but ist too late
i did it manually
i could undo it
I think I will undo it
lol
BM why is JavaFx mean
javafx
Its mean
also im so unhappy
javafx
ask for danny g
birmingham
@heady birch โน๏ธ
hastebin is so annoying to setup 
barry boy
when is kotlinfx coming
wanna make it bm?
Why? xD
This is the guy that would be in the angry british sound effect that a lot of youtubers use. I was abled to basically translate (or subtitle) what he was saying from his crazy british accent. (I know, i accidentally spelled Birmingham wrong.)
original video : https://www.yout...
not in the slightest
lmao
Interop
niall lmao
I mean any library to be added will most likely just be afew extension functions I assume?
i live in SMETHWICK
you're not using kotlin right unless you have 300 nested extension functions using 30 different keywords and 18 first class functions
lol
damn looks like im not using it right ๐
Poor XxDanny GxX
i hope the gangsta didnt get killed โน๏ธ
you're not @onyx loom
this is not very cool
Kali you probably are using a lot of extension functions tho
is that javascript
Only thing kotlin provides on top of java are those
@remote goblet
yes
Its litrally java sdk + extension functions to make life a bit easier
you can literally do this in Spring
Only thing kotlin provides on top of java are those
the only thing?
I dont care for your spring
I don't think that's true
as in as a library
there is absolutley no reason to not use Spring in this instance
Your ignorant
In denial
There is one reason
Kotlin has a separate std lib?
yes
Ignorant and in denial
the fact i dont know what Spring is ?
like?
Sequence for one thing
anyknow discord.py
@remote goblet you trying to set this up? https://github.com/seejohnrun/haste-server
hmm true
and im stupid so idk what im doing
there's a ton of stuff in the stdlib that aren't extension functions, most are just top level / situational
and im stupid so idk what im doing
@remote goblet
all i know is that it don't like me 
all the Unit/Nothing/XArray classes, all the @Jvm annotations, things like lazy, Result, Pair, IntRange, Regex, etc
lots of stuff
Mine wouldn't work on memcached either, bardy changed it to flatfile or smth
ew
that'd explain it
oh no i just rememberd
exactly
how the heck am I gonna getlastcolors with hex colours
I mean there isnt actually much of a std lib
I mean
depends how you define it
the kotlin stdlib is big enough to be mostly self sufficient
thank
got it working now
but having interop saves everyone a lot of effort
time to change this entire design because goddamn i hate the default color scheme
the kotlin stdlib is big enough to be mostly self sufficient
Are you sure?
NVM Ori, mine uses Redis
"mostly"
It's probably possible to create something simple with just the kotlin bits, but why would you?
I'd say the kotlin lib is more subtle than java's, because it's usually in the form of top level functions that you don't think about (mapOf, all, toSet(), etc)
eh
thats from the kotlin team btw
being pedantic, it's not just extensions
but I see your point
well kind of
I know what you mean, I just don't know what your point is lol
Kali you probably are using a lot of extension functions tho
This is the only point I made? xD
lol same
This is the only point I made? xD
@old wyvern only reason why i havent used any yet anyways is because i just havent had the need to ๐คทโโ๏ธ
Going really basic... where did I got wrong?
(The red underlining)
nrm I'm just dumb intellect
lol
๐ฌ
Also, wHy?
?
@topaz bay @prisma wave Help
I have the bad feeling i designed stuff wrong
โน๏ธ sigh
You gotta give the wolves more food than that boi
This isnt funny maven
@hot hull dw I fixed my code lol
Is this a joke
I'm inexperienced k
Oops I built the wrong module thats why ๐
Thought maven had dies
@heady birch classic
๐
Like I don't even know anymoer
A year ago it seemed good
Maybe it is good
the whole component stuff is dated enterprise stuff
well not really dated
What's the best way to cycle through an index of items?
@lavish notch Can you check out my timings now?
for loop?
I figured @distant sun - Just thought I'd ask
@thick schooner Can you send your timings again
anyone worked with drawing images in java/kotlin
i have a base image and I am trying to overlay a users discord pfp
to send like a welcome message
I don't know why this ain't working
k
what do you expect that line to do?
like, if I passed ["Hello", "lol"] what would you expect ch to be?
How might I compare a char with a string?
Just compare the first char of the string?
Oh.
I'm wanting to process for example, c4ts to cats (4 being a substitute for a)
Eclipse is complaining when i try to compare a char, with a string.
naturally
yikes
why is letters a String[] in the first place? why not a char[]?
It's an array
i figured lol
what I mean is, why use an array of strings if all the strings are effectively chars?
letters could be a char[] unless I'm missing something
My inexperience
'a'
chars are 'a', strings are "a"
ayyy u taught me that too bm 

jesus christ
no
if niall tries to give advice in #dev-general of or #off-topic, never listen to him. if in #development take it with a grain of salt
๐ง
if niall tries to give advice, never listen to him.
that's better
is there a way to ssh tunnel with Hikari
so i can run stuff locally
while testing
why is gradle so good?
because clever people got fed up with maven so decided to make their own
very right @onyx loom
because gradle sounds like gr aid ul whereas maven is a bird. It aids you instead of pecking you to death
I'm going to sound stupid asking this question... but how are (...and I don't know the exact term) expandable (IE: Those configs where you can add Items to it, like DeluxeMenus) configs parsed?
Is it just a forEach loop, or ?
They can be expressed that way, yes.
If you take a block of code that can be used to parse a specific layout, all you have to do is tell it where to start parsing
In the case of yaml, you just tell it which root to start at
new Block(code)
(foreach over the keys)
Minecraft actually creates blocks like that btw
Kinda funny
gross
yep, gross
...and what config handler might you suggest I used?
Theres 700 lines of this
You dont know the half
@lavish notch wdym by config handler?
Did you not decide to use configme?
I re-call you mentioned ConfigMe previously
ConfigMe works best for static, simple content
Aight
In this case you probably want to use Bukkit's and / or something custom
I just want to have a config where I can list words, and replacements for letters (it's a swear filter I am making)
correct me if I'm wrong but ConfigMe is only for static content right? like "key.value: 3". You couldn't use it for anything dynamic on a large scale
since annotations are by their nature, static
yes
So something like...
words:
- WORD1
- WORD2
replacements:
g: q
a: 4
Those properties can contain anything
It literally can take entire objects
without relying on Snakeyaml to try and deserialize some DTOs
You can set the property to be a list of those objects
You can even make the property a map
Its honestly not really worth it to shade an entire separate library just to have comments
I want some something easy to understand, and supports comments
you shouldn't really be saving to a config anyway - it's for configuration, not data storage
Like I said, not worth
just use snakeyaml and only load from it
Also, are you doing single char replacements?
yes
I would use SnakeYAML, but it doesn't support comments.
@lavish notch im sure u dont really need comments for that, its self explanatory lol
yea
yes
although that's an awful example lol
It's 11pm, so I can't speak english lol
Another one whose brain breaks at 11 
y u no regex?
idk
I'm just trying to knock something up that works, not fussed atm if it isn't most efficient
Thats not really a matter of efficiency
I don't really know regex... so knowing it java is another thing.
Is english your native language?
Surprisingly, yes
lol
I'm also playing hypixel whilst doing all this, so that's what's killing my enlgish
Do you speak other languages?
Speak, not really.... but I do know a decent portion of French and Spanish, along with some Old Scots.
Nice
...and If I'm trying to be funny, I can say I speak Scratch.
I am so sorry to hear that
lmao
As far as programming languages go. I can program in Python, Javascript (kmn, ik) and some bash, and WD (Html, css)
kotlin ๐ฆ
Python, java, kotlin, wd, bash a tiiiiny bit
My dad made me write a bash script to build a spigot server on a raspberry pi for his "twitter friends"... which is why I know a some bash
build, I mean setup
wget buildtoolsurl
java -jar BuildTools.jar
java -jar spigot-1.16.jar
```pretty simple
true
@prisma wave This was on Raspbian Lite
so I had to install java
it also need the option of server version
Raspbian is sick
hm
shouldve wrote it in Java
shouldve wrote it in Kotlin
no
I know @errant geyser, hence why i now own like 15 raspberry PIs.
I'm stuck to the one, but it's all I need
Hes a little animal
Blocks all my ads
Hes a good boi
I've got a bunch of them in different robots... others running web sites, VNCs, idfk what else
Noice
Straying off-topic, you that youtuber Striker? (the one sponsored by That marketplace)
I'm about to make my little guy full time since my parents finally listened to me instead of moaning about the crap Wi-Fi so we're redesigning the network, going full Ubiquiti. Holy shit its gonna be nuts, networking stuff is so much fun
Oh I simply LOVE off topic conversation
Yeah, I personally dont like him
..and you've seen I can't even program in java?
Oh hello Sx
Ubiquiti gud
Ubuquiti overkill
I managed to obtain all the roles on his dumb discord
Lol
He legit asks for code snip-it...
what do I do? I get some github plugin - and send him a picture of that
Mack, can you look at it now?
Sure
It is a bit Sx, but our walls are t h i c c and most of the routers/AP's we've tried haven't been very good
He legit asks for code snip-it...
@lavish notch lmao System.out.println("Hello world");
Yes
or println("f java") ๐
println("go frik yourself")```
As for discord server owner, I invited him a discord were I have the role Fake Co-Owner
LMAO
@thick schooner Try https://www.spigotmc.org/resources/entitytrackerfixer-fix-1-14-4-1-16-1-entitytick-lag.70902/
๐คฆ
I have that.
thick walls...
@onyx loom
Could you not just hardline through that wall?
My raspberry pi keeps acting up
...as for builder, I legit sent him a picture of something my build team made.
He didn't even ask for like CoreProtect logs or anything
u can "code", "build" and u own a server
I can botch, that is what I can do
Sure I could, but we dont have a drill that can go thru walls, and then I have to have extra APs if I go that route. Better to have a UniFi system and be done with it imo
The only roles I'd say is valid... are Configurator, Bot Developer and MC Server owner.
Oh yeah! @onyx loom Guess what the requirements are for "MC Server Owner" role
Wdym a drill that can go through walls...
5+ players :kappa:
Wtf is the wall made of??!?!?
Proof you have a MC server of at least 3+ online players. (Not staff) - screenshot of proof.
BRUH
Damn
3?ยฌยฌยฌ?ยฌ?ยฌ!?!1?1?1?!
Brick, surprisingly
3 whole players
time for me to boot up some alts
I then wrote him an essay
Mackenzie someone else said there is errors unloading chunks but IDK how to fix it
Also... guess what the youtuber role requirement is...
what servers this
Wait what did I miss?
10 subs ๐
Link to your active channel and proof of ownership. (Must upload at least min of 4 weeks time)
depends glare, what are u after?
@frail glade Do you know of that youtuber, Striker?
No
oh boy
His videos are utter aids
never heard of her
And people apparently like them
and sponsored by that marketplace
@onyx loom Grab a pint of beer, we're just about to get started...
prefix: "&b[i changed prefix]"
I would laugh if I could get Graphic Designer by sending the top result in google images
I really want to now lol
Does anyone know where I can go for support for fixing my server?
The issue isnt just with plugins tho
kotlin circlejerking, any channel
What the....
.kt
๐ณ ๐ณ
I'm officially confused
elon is a legend
lmfaoo
people in 100 years better be learning about this amazing man in history classes around the world
just sitting in history and your teacher pulls this screenshot up
"He was so inspirational"
so inspirational ๐ญ
He might be good at Twitter but he isn't a good person lol
I mean... he's not a terrible person either...
lmao the shorts thing is a funny story
im pretty sure he did it to piss off all the people that are shorting his stock
@prisma wave how proud would u be if i told u ive used extension functions now ๐
in minecraft 1.12 i could use this.locx, this.locy, and this.locz. did that change in 1.16?
nvm... previous developer that worked on this did some weird things...
Interesting
he didnt add the () at the end...
@onyx loom very proud
thank
probleme
How do I add ConfigMe to my eclipse project?
gradle
thats the spirit matt
Teach me under minimum wage
First step, get IntelliJ

https://wiki.helpch.at/ check piggy's barn
how do I build https://github.com/PaperMC/Paper-1.7 or download paper 1.7.10?
I've installed Gradle... how do I use it? ๐
[Request] that makes the armor lose less durability with luck when it hits.
[Budget] $1000``` who wants $1k ๐ณ
I DID
Was about to respond to that xD
@surreal canopy I'd like to make $1k on what looks like such a simplistic plugin but I'm gonna just go ahead and say might want to have a more realistic budget.
fail $10.00 sorry
F
lmfao
weak
Appreciate that pro gamer move ๐
Seems more realistic ๐ I would add more detail to your request though.
that makes the armor lose less durability with luck when it hits.
Don't really understand what you mean by this.
How do I add ConfigMe to my java project?
@lavish notch they have the details in the readme dont they?
implementation 'ch.jalu:configme:1.1.0'
or copy the dependency block inside build.gradle and it will convert to gradle format for you
^
Does your project currently use maven?
run gradle init if you want to add it to an existent project, or simply create a gradle project
I using Eclipse... so where do I go?
Ew...
First step is to get toolbox
Use it to install IJ
And then make a new gradle project using the setup wizard
Then you can just copy over your files
k
Ok so I have a plugin where I can change an item frames visiblility, the issue is when I change this it only updates for the player who changed it, for the change to register for other players they have to unload the chunk and come back into it.
So basically how would I refresh/update the itemframe for everyone?
Please tag me with your replies!
any ideas on how to disable viewing of workspace in jenkins?
have been searching for ages on this in google
Apparently a company has design a robot skin more sensitive than human skin, meaning robots biggest weakness will be tickling

@quiet depot ye thanks now do you know how do I make the api always accessible
cuz I get 403 fsr
on my pc - works, on other pcs - doesn't work (403)
no
@lavish notch stay with eclipse if thatโs what you like no need to switch
Both are good ide
idk about that one
thats just false information
Its not they both have pro and cons
And from the questions youve been asking recently in #development I dont think you are the most qualified person to give IDE advice
I'm sorry, but it does not.
^
It's a bad way of learning.
If it works then its not
"if"
Pretty much anyone who learned that way will tell you its a bad way
^
Same thing as doing online learning
Thats not analogous
Youre jumping into a complex system of apis and libraries without understandings of the core concepts of the language
Its pretty much the reason so many spigot devs are complete trash
How do I use gradle in eclipse?
you dont
@lavish notch Did you not have any luck with installing IJ?
Or high school or uni
kek
Or in an informal school such as codecamp
@lavish notch it doesnt allow you to install?
It says I dont have an internet connection...
then just get an internet connection smh
but i do
Are you using a vpn or a proxy?
no
i kiled the tool-box process, now it wont start-up
I just killed the background process
Did you not restart?
Also, if you killed a java process, you might as well kill all java processes
the jvm is kinda messy with how it defines processes on an os level
I did restart
Where is my medal? lol
You deserve a prison cell for this
is there another way I can download it?
Lol
...how do I use gradle in eclipse then?
get IJ working
get intellij working
If you are stuck with eclipse, try buildship I guess
Just use intelllllllij
Wasnt he the dude who wasnt able to run intellij a while ago?
nope
It runs fine now?
๐
cc: @chilly jungle 
which do i want?
thats probably good
@regal cliff I guess there is this weird anomaly where it isnโt fixed
Or at least I never got confirmation from slime that the issue is resolved
Yeah but I think it has to do with other dependencies that hook into papi and vault causing the load order being weird but either way the task should disregard load order
Either way I think we can close it and if it needs revisited later due to whatever we can
I personally havenโt had an issue
And I test with a lot of dependencies

Hey quick question since you seem like you know a lot more than I do
PAPI parser go brr brr
Lol
Iโm tired of the warning in console plugin depends on x without being a dependency in the plugin yml
I mean that's never going to go away
Got any idea on a way to fix that without adding every plugin known to the plugin yml
Luck tried to fix it for LP and Spigot and Paper shot down his suggested fix.
Itโs just annoying the amount of messages I get due to it
Even though itโs no big deal but for some i guess it is
The warning is pretty useless and serves a very limited purpose. I've tried to reason with md_5 on this topic and got absolutely nowhere.
https://hub.spigotmc.org/jira/browse/SPIGOT-5546
tl...
But good stuff on your pr for cleaning up my messes and making that replacer improvement. Much appreciated for you to take the time to do that
Mhmm
Ye
Best ways to like stress test a server?
Ok I cleaned up all the papi issues
clip that issue you just transferred is already a thing in papi 3
also i'm looking into that dependency thing
@desert horizon if you want to add that contributor bot or whatever go ahead
I donโt know anything about it so donโt expect me to do it
So.. I've got intellij installed... where do I go from here? (Trying to use gradle)
If making a Minecraft plugin get the Minecraft dev plugin
Where do I get that?
"Minecraft Development"?
@versed ridge consider me disgusted
Done
Thatโll pretty much make your project compile as a plugin on create
From there do what u want
open gradle settings
...and?
@chilly jungle I don't have any access (afaik), so I can't really do it, but I linked a page explaining the main steps in the latest comment I made.
Idk? I would rather letting you guys make this than getting perms just for this single task.
I thought u had push access lol
@quiet depot Plugin
No. Removed a loooooong time ago
yeah, plugins, public or personal
both ig
aight
Might publish idk
have you installed gradle?
I mean I'm no longer in the HelpChat team, so it makes sense that I don't have access anymore
yes
hang on wtf
I have installed Gradle
where's ur gradle wrapper
As per the instructions in your den
You were a meanie
@chilly jungle debatable xP
it's a barn
you know what i mean
are you using the latest version of ij?
I downloaded off the website
install toolbox
navigate to the folder in the command prompt
project folder
Ehh... what's the default location?
i'm genuinly confused how you don't have a gradle wrapper
because the functionality to manually specify the wrapper/local distro on project init was removed ages ago
@regal cliff let me know when your ready and we will check /merge and then we can just deal with any issues after
gradle init right?
to use the local distro, you'd have to go to settings, change it, and manually delete the gradle wrapper
so I'm really confused
yeah see what happens when you run that
stupid thing
rm build.gradle
rm settings.gradle
i'm not sure if that's the command on cmd
if it's not, delete those files on ij
then run init again
ffs what's windows rm equivalent - two seconds
Idk what else needs fixed lol
1
1
that's linux dumb
try dir
or just use a bash terminal
yay
you have a wrapper now
hopefully you won't have to do this again
restart intellij?
ij is meant to automatically download the wrapper for you
no
go to project structure
file > project structure
sdks
click the blue +
download jdk
which option after that?
vendor: adoptopenjdk
version: 1.8
no host uses 14 on their production servers, so you'll be severely restricting your audience by developing with 14
downloading now
until 11 becomes a majority, 8 is the only language you should use for public/commissioned projects
Where do I create the src folder, and classes?
consumers should always use the latest version of java kaliber
my eclipse setup
it's not like ubuntu where you have a stable release every 2 years that you should use over the other ones
because unlike java, ubuntu updates are sketch
wait can't you just target java 8 with a higher jdk?
i tried it with someone else the other day brister, I don't think so
hm
I did some googling aswell, couldn't find anything
ah it was @twilit ledge
sorry not sorry for tag
src/main/java is where your java sources go
classes go src/main/java
src/main/java/packges of your choice
Yes
make one
Ok... and how do I make a class?
Interesting... IntelliJ should usually create a src/main/java directory... At least the newer versions of IntelliJ
Im guessing I broke Intellij
It does
waduhek
Gradle takes some time tho
@lavish notch You first need to have src/main/java as directory
It should appear in a few minutes lol
Otherwhise IntelliJ won't recognize .java as valid classes
what in the hell
mark it as the sources root
huh?
right click on src
mark directory as > sources root
@desert horizon yeah it should've generated that folder
it didn't even generate the wrapper though
idk what's going on
there we go
Malformed IntelliJ installation perhaps?
perhaps
probably ๐
he had trouble installing toolbox earlier
your package isn't main.java
hang on
take a picture of your entire intellij window
kek
click the x next to the project name
navigate to the project in file explorer
delete .idea
open/import project in ij
navigate to the folder
select the build.gradle
open as project
SwearFilter?
that's a project name
do you have a domain?
me.idconfirmed.swearfilter?
do you own idconfirmed.me?
Domain.. mackenziemolloy.ml, shitty site
well it is what it is
paste this into your build.gradle
remove the comment if you wish
plugins {
id 'java'
}
group 'ml.mackenziemolloy'
version '1.0.0'
sourceCompatibility = JavaVersion.VERSION_1_8
done
please read my gradle tutorial so you're not blindly copying & pasting
aight delete main.java
deleted
what if I told you there isnt a new package option
control + shift + o

idfk
how do i bring that up lol
u dont have this?
nope
open your build.gradle

take another picture of your entire ij window
now press the reload buttton
reloaded
lol indeed
what's the name?
ml.mackenziemolloy.swearfilter i believe
packaged ml.mackenziemolloy.swearfilter made
called... main.java ig?
bad naming but yea sure
well.. what would you call it?
SwearFilter.java prob
There we go...
Now down to what I wanted to do... how do I add ConfigMe to this project?
in my build.gradle?
yes
yeees
I have this