#dev-general
1 messages ยท Page 430 of 1
Seems like a you problem
so minimizing everything every time I want a folder is a lot of work lol
plus, if you get PowerToys, you can just do Win + Space to open a better search than the default windows one
doesn't win + space change the keyboard language?
Yes, by default
i mean I speak english
and have an american english keyboard
but also you can rebind it to whatever you want
ah
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
โข HelpChat Paste - Usage
โข Hastebin
@cinder flare
I dont think I see anything going wrong specifically
Also didnt get that message on this boot
sda sounds like someone didn't know what to type so they just did the whole asdf in the keyboard
lol
well okay, it wasn't responding so something about your sda drive was funky
weird
whenever i type random keyboards sometimes it comes out as sadsadsadsadsad so it looks like im spamming sad ;-;
lmao
Lol
https://paste.helpch.at/risonezela.groovy am i doing something wrong here? its just publishing to a local folder
https://paste.helpch.at/ajihoqelic.groovy full file if its helpful
what are you running exactly to build it
i do
hey how do you use sdkman on windows
i'm just assuming it'd tell me if that was why it wasnt pushing
have you read through this @boreal needle https://docs.gradle.org/current/userguide/publishing_setup.html
many times now
same thing
i don't think you can
I just met someone on valorant who said they only know Swift
nice
Apple development ๐คข
so deleting paper from .m2 worked
if ya wanna pull your hair out because you forgot how to format api things in java class clap your hands 
what
wdym
Javadoc?
^
If you do /** in intellij
it should help get you started on the comment
for the arguments and stuff
i just alt + enter
Smh
like javadoc but people put it above methods
dude you could literally type /** and enter
alt + enter?
no no no
i forget that format
dkim you make things harder then they should
lol
I believe IJ has a whole setting to generate the template class wise or whatever
wait really?
well even less people are going to use it if you dont jd it
lol
woah
true
i didn't know that existed
but for example my dkim19375core lib
i doubt anyone uses it
tysm
np
I got like 20 methods to sort out
you need to fill in information about them tho
i put some simple javadocs in itemmovedetectionlib
just in case someone decides to use it
how do you do the returns thing or dont ya
Lol
Like sometimes it says "returns boolean"
wdym
L
-_-
Thats what she said
dkim open for prs?
for which repo?
i dont mind PRs, but you'll have to tell me because i never check if any PRs are open ๐
He has too many
wat
which repo?
/**
* @param paramName Description of the parameter, or as everyone does "The param name"
*/
public void method(String paramName)
Ur lib
uhhh i mean i guess yea, i made this a long time ago so don't expect the code to be good :p
Alright thanks matt! ๐
intellij autofills that ๐
at least alt + enter does
you think /** doesn't?
๐คทโโ๏ธ
dkim have you tried it before
why else would he be asking
finally documented it all (i think) pls nobody request more api features
๐ฎ
@lunar cypress any idea why emacs would just print "aborted" when i try and open a file with C-x C-v ?
i select a file, press enter and it just gives that
can navigate through directories fine
i think it's telling you to use vim
:e /path/to/file
that probably works in evil mode
wtf is evil mode
emacs mode that gives you most vim keybinds
oh
crap image not loading
yeah no embed lol
maybe it's your virus url
works now
hey it's the default one with the screen capture tool
havent figured out how to change it yet
or if you can
just use sharex and it uploads to imgur automagically
C-x C-f works?
ah yeah that works ty
Ok C-x C-v works for me, which buffer are you doing this in
yeah you probably can't kill that
ah that makes sense
imagine having write protections
why do i feel like this won't work on wayland
i've got double-niche here
won't know till you try!
and that's why I added :x!! to my vim
sudoifies my vim session and lets me save anywhere >:)
Aeson hell
torture again?
ffs
yes
I've been trying to get this to work for some time now
wtf trans maybe ๐ณ
I want to smash my head open now
both sound fun
open rider
it gets to the project screen and then dies
Does rider not work normally?
lmao
the rightclick menu comes up
so
it's probably just not rendering properly
which is nice
welp
fixed it
is 857k triangles for a car model alot
I can hear that gif
๐
IJ, you good?
rookie numbers
I had to up my allocation after this latest update.
I had to up too, might need to do more
I mainly only run into problems when I'm working on MCBanners since I have to have like 6 instances of IJ up.
it saddens me that DataOutputStreams are slower that ObjectOutputStreams
How big difference?
Gotta love it
is that because of the method in spigot
No idea
Likely gonna sound stupid asking this but on some servers I've seen prison mines get filled in a chunk format is that possible with fawe?
What version was PDC introduced?
14 possibly?
Yeah i think so too
Stop supporting legacy ffs
I don't want to support it but
No buts
Many butts
https://github.com/KyoriPowered/adventure-docs/pull/28 wonder if this will get merged, doubt it lol
javax.annotation ewwwwwwww
your face is ew
Hey guys, i need some help with the PlayerFishEvent. DM me!
Dude it's not mine
You have been dmed
ofc not
The tuinity guy seems to have reaction spammed it xD
ยฏ_(ใ)_/ยฏ
you dropped this \
Broken arm
floating hand
Ill admit I have no idea what this means
In his github PR the backslash escaped the _ so it didn't appear, thus the arm is missing
for (i in ((page - 1) * 7) until page * 7) {
sendHelpMsgFormatted(label, commands[i])
}
```this is what i use to make my command help page have pages, how can i get the max amount of pages? `commands.size / 7` doesn't work, `(commands.size / 7) + 1` doesn't work either
you sure?
ah ok
make sure that isn't doing integer division and use ceil instead of +1
Yeah
val pages = ceil(totalItems / itemsPerPage.toDouble())
everyone else has 500 stars or more for servers ๐ฅถ
i didn't know minestorm was that high
lol
well we need to do something about that don't we ?
What servers?
what
clearly stars are always a sign of quality
cause people in this world are dumb
PepeLaugh https://github.com/vlang/v
Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. https://vlang.io - vlang/v
lmao
man vue has more stars than react how
seems pure
pure as nature
@static zealot What is the serializer you use for converting Component to ugly String?
Let's try
nah its fine. talk. its probably smarter than whatever I'll say
pee is stored in the balls
oh I never knew
wow gradle is weird
do tell
no dont bring that meme back alive
Think LegacySection would work for inventory titles? Like keeping color and format
ohhh for inventory?
should
I use a special serializer
fefo do you have ligma
they did surgery on a grape
Imma try both
the one that serializez to &x&x&x&x&x
who the hell is steve jobs
๐
well for rgb the unusualRepeatedXPattern or whatever should be used instead lol
useUnusualXRepeatedCharacterHexFormat
who even thought that &x was a good idea
pulse do you have sugon
Gotcha, ty
an orange broken "secure" hashing algorithm
are you sugondese
no. but I know Joe
why does that not surprise me
lol
do you have ridon?
I do
Damn
Well I guess we are all 12 years old again
yes
ligma balls
You ever watched Naruto? Yurso is one of the best characters
Yes
gonna do it in #off-topic see if anyone falls for it
yoo what was the best hosting website called again?
someone removed the FAQ
or I'm just blind
Huh, legacy section did the job
o nice
"vanilla"
lmao
yeah lol
I think it is the non rgb ones yeah
the one fefo sent tho works
coc anyone?
I've used it
8+" only
but pls link me the hosting website
the one with "good hosting"
what
So how does the useUnusualXRepeatedCharacterHexFormat work?
what
that gives you like 512 Mb of storage
well if fefo is smart enough, he'll tell you
if not I'll look for it
in my code
Is it in the LegacyComponentSerializer?
instead of serializing to #rrggbb (or &#rrggbb) ir uses the stupid af &x&r&r&g&g&b&b pattern
yes, but you have to build it with the builder
#dev-general message @static zealot
the stupid md5 pattern only makes sense if you look at it from a computing perspective
I forgot the name
Still doesn't look right 
val specialSerializer = LegacyComponentSerializer.builder().hexColors().useUnusualXRepeatedCharacterHexFormat().build()
this is what I use
and from my tests it worked
how come?
Ah yeah that did it
you can just keep everything nice and tidy in a loop parsing in pairs with & + the actual color code, no regex, no splitting, no nothing
yeah found the link. thank you very much
helpch.at/host directs to it lmao
Gotta love it
you could do the same with alternative sane formats like &#rrggbb
arguably simpler
but not looping in pairs though
spigot doesnt loop in pairs iirc
ah
yeah its much better than what they had when they went to the moon. Imagine the things you can do with this
Ah i forgot about this beauty when running on spigot ๐ฅฒ
well it looks for the color to translate + the next char so it grabs them in pairs
lmao. The todo message is still there xD
If things keep going like this I'll actually leave it there
oh lmao
hahaha
xD
they know lmao
the &s are literally ignored
๐ฅฒ
oh damn
ah yes
who even uses bungee chat anymore
i used to until is discovered the blessing that is adventure
bcz they have not learnt the ways of adventure
I love that lmao
ig for simple stuff it makes sense
eh..
nah it's always worth using adventure
cause an orange poor hashing algorithm doesn't want to use adventure
why does it make a string
I turned off the useUnusualXRepeatedCharacterHexFormat to see how it looked and oh .. my .. god
the same orange poor hashing algorithm insists on using buildtools too
lol
oh jesus christ that's
ooh what resource pack is that
not good
didn't he not liek your spigotclip
or whatever that was
what do you think lmao
it looks like the beta resource pack everyone used
Mizuno's Craft
lol
why isn't this a switch
Looks beautiful in 1.12
xD
well I mean if whoever makes the menu is thinking about that stuff can use some nice colors and make it look nice on 1.8-1.15 as well
the unnamable
Matt are you hotswapping?
Ah I truly love this version
Yeah
lmao
matt just don't
Aight it works on the unnamed version as well
I mean it's the method signature
Prolly a typo someone made and they thought it'd be funny to leave
lol
lol
Oh boy, now time to rework the item builder
@gusty glen Mind if I steal your idea of the pdc { } on the item builder?
lmao
ofc not ๐
Nice now to pretend I am working on it and procrastinate
stoopid
At least i'm honest xD
being honest wont get the job done
player.inventory.addItem(ItemBuilder(Material.BRAIN_CORAL)
.amount(5)
.setLore("${ChatColor.LIGHT_PURPLE}Working great")
.setDisplayName("JOOJ JOOJ")
.addLore("AAAAA")
.pdc { it.set(NamespacedKey(plugin, "abc"), PersistentDataType.STRING, "dsadasijhiujd") }
.amount(10)
.build())```
At least my ItemBuilder that I made in 15 minutes works
No need to bully ๐ข
setLore("${ChatColor.LIGHT_PURPLE}Working great"
๐คข
matt please do components there
not like I'll ever use it but whatever
I don't see problems doing like that when using spigot api
I mean, if it's on the API and it's not deprecated, there's no shame in it
Doing things in the adventure way means that I have to shade Adventure lib, and also means that I have to write more code to achieve the same exact thing
@ocean quartz method for name and lore that accept strings, idc what you do from there
It is deprecated
d;paper player#sendMessage(String)
void sendMessage(@NotNull @NotNull Stringย message)```
Sends this sender a message
message - Message to be displayed
Ah paper 1.16 docs
I see no depreciation
and also, this
Why string? ๐ฉ
I mean you can just do Component.text("String")
Or I can use a string and you add an if there
if isPaper setDisplayName(component bla bla)
Arguably String is already a component ๐คก
I mean that'll be a thing, but you should use component
It already suppots 1.8-1.16 for the title, you pass a component but if it's old version it'll turn into string
I mean, just accept string and turn it into a component xd
And you call me lazy xD
lmao
I also call you stoopid but thats not my point
components suck tho, so much extra work
Esp for small things
objectively true
Let me do it Matt
its OS isn't it?
and even in larger things it quickly becomes hard to read the entire string
This way you provide backwards compatibility
he'll just refuse your PR if he doesn't want it lmao. And you've worked for nothing
You'll still need to shade adventure to have backwards compatibility though
You as in the user or?
Yeah
On latest paper it'll work fine but for older or spigot it'll have to be shaded
Why would I shade adventure for a 1.12 plugin
For compatibility
Smh
Dont you also check if the server has support for components? Just add an extra check ๐คฃ
I mean would you prefer to always check and create two inventories one for older version and one for new or pass one component and let it handle the rest
I prefer to pass a string xd
Like i told you before that won't work, if components are referenced even without using it'll throw an error
I really wish paper added adventure support when 1.16 launched
I mean i can add a string method but you'll still need adventure
Whyyy
Because Java
That part of code wont be reached
But will be referenced
if (ispaper) meta.setDisplayName(Component.text(string));
else meta.setDisplayName(string);```
I swear this works
Boom ClassDefNotFoundException
ispaper + 1.16.5
The check is there the difference is that it serializes the component to string to work on old stuff
It's not me lol
It's the changes from paper
Finish your things and I will do some tests
SMH
If you dont want it I wont insist, just so I know of I was right or not
Sure thing
Also, make sure to fix setGlow to actually use the boolean ๐คฃ
Noted
Totally remembered i had to fix that
Im sure you did
its all on Trello isn't it? xD
How do I make a website (vue frontend, nodejs / express backend) unhackable?
that is actually true though
Be smarter than every hacker in the world
you use the tag unhackable: true
Really? I thought it was hackable: false
@ocean quartz trello link ploz
No wonder my credit card keeps getting stolen
I have a bad memory
nah that's just me buying po||r||n subscriptions
Oh ok
why is this format familiar?
ugh
I am serious about the website unhackable advice though
bcz I made it
for real
probably wrong place yako lmao
It needs to be actually unhackable
the optional and required part is
PAPI? Idk
nah I mean wrong channel
but not serious all the time
onHack(() => {
disallow()
});```
also yeah was about to say. nothing is trully unhackable is it?
It needs to be as unhackable as the US power grid
this week*
I only did it once, it was too easy
yeah
Lel
Thatโs too many lines of code to write
just jquery it
I mean, even the pentagon got cracked ๐คฃ
?.onHack(() => disallow())
who even knows if that is valid js
man why use all that shit when you can just use a css tag ...
smh
unhackable: true
I don't use trello
Well it has to be as unhackable as the pentagon and US power grid since that's the standard I am upholding
Control the program with your mind
ah
just make a div of the entire page unhackable and the rest hackable
May I ask what the website is for?
It is for the U.S. power grid @sweet cipher
<div class="unhackable"></div>```
```css
.unhackable {
display: none;
}```
Check projects on the GitHub page
๐
When the website loads, just ask if they are a hacker, if they are, steal their social security
cut their power off
I'm on my phone, you search it xD
yako #development if you want serious answers
fine
i idd
Ask Trump then, he knows how to do everything
Which trump do I ping?
@outer folio
@serene cave
@mellow valley
wrong ping
Let's talk about taxes, that should summon him
I don't think pulse is on right now
For taxes? ๐
yes
10$ per life per year? how does that work? I pay 10$ for each life I want every year?
so if I want 9 lifes it'd be 90$/ year
?
If you are living, your rate is $10 per year
If you live for 18 years you pay $180
If you die and come back, that's another $10 /year on top of your existing rate
A death tax should be introduced too, so if you die, you're paying 100 dollars or we brin' you alive!
yeah yeah
Pay a good pentester, fix expoits he brings up
Wouldnt be unhackable ofc, but should be good enough
You could also try invite diff unrelated people to attempt
and also there should be some up to date guides for what you can do to improve security
yoo where's Niall?
@heady birch
you alright?
oh he was online 2 days ago I missed him
pog i reached 4k lines in my bedwars plugin
Overall? :o
well .kt files
for a sec I thought you were talking about hypixel
?
oh
didn't see the plugin part
Is it bad I still use intellij 2020?
yo found the best candidate for https://github.com/Jaimss/terrible-plugin
?
someone in #general-plugins asked for a copy of KiteBoard
lmao
well I think he was joking
but someone send him this
compile it and send
lmao

?
why do you put ? to everything
ill answer ur question once u stop putting ?
i mean.. yes
It's a habit
update = good
Wat
It gets the job done, I'm not a pro coder or anything so
Just don't ask
I ask now
hi conclure
Hi @half harness
I said kekw Infront of my parents.... :/
lol
Lmao
Yeah. How you think that went down
I also said omegalul once
"kekw"?
Yes
lmaoo
Verbally
"kek-uw"
I mean Iโd be proud
I have been known to shout OMEGALUL in public at meals
uhh
What an accomplishment
I feel sorry for people I eat with 
Lol
I've got to the point where I don't care if people look at me
I see
Which one
man 29 days since last commit?
one

Develop plugin and show pig
Terrible plugin
Dude I have been updating pmines
we need to revive it
I should've pushed a update today but I cba to write the change log 
Dude I have been updating bedwars
Iโve been procrastinating
Wot
toW
Idk if that's safe to Google
Uh you donโt know what it means?
Dw about that
um
I fat fingerd
what is that image
Basically procrastinating
is that a snake? @pale shell
Maybe
lol
lol
Wot
was testing something
You scream kekw at home??
-_-
Idk itโs quite long I guess
It's my big playlist with all the songs I've liked over the years
Yes, if even has my 2014 cringe playlist lmao
Public?
i have a command to setup a bedwars game, but it can either be edited or be setup, how should I make this while making it DRY?
val game = hasPermissionAndValidGame(sender, label, args, false)
val builder: GameBuilder?
if (game == null) {
builder = plugin.gameManager.builders.getIgnoreCase(args[1])
if (builder == null) {
sender.showHelpMessage(label, INVALID_GAME)
return true
}
}
```this is what I have so far, but then I'd be nullchecking every time i want to change the data...
and also using !! a lot
if i have an entirely separate command, I'll prob be having a lot of repeating code, and having like 15 methods isn't very ideal...
Why did that format in such a nice way
kotlin
It came up colorful
yea i did ```kt
TEXT
```
u can't escape in ``` ?
not inside
Use codeblocks for formatting code or configuration files:
```<language name>
<your code here>
```
For example:
```yaml
test:
- โhiโ
- โthereโ
```
Produces:
test:
- โhiโ
- โthereโ```
theres nothing to escape though
Expose the situation more
\ ``````
basically, my GameBuilder class: https://github.com/dkim19375/Bedwars/blob/master/plugin/src/main/kotlin/me/dkim19375/bedwars/plugin/builder/GameBuilder.kt has all nullable variables, because, obviously, the player can't setup the entire game with one command/same time.
Then it turns into https://github.com/dkim19375/Bedwars/blob/master/plugin/src/main/kotlin/me/dkim19375/bedwars/plugin/data/GameData.kt (nonnull variables), and https://github.com/dkim19375/Bedwars/blob/master/plugin/src/main/kotlin/me/dkim19375/bedwars/plugin/manager/BedwarsGame.kt for the game instances.
So I need the /bedwars setup <name> command to apply to both GameData and GameBuilder. (or alternative)
Cant the map lists and sets be empty instead of null?
yea
The amount of nulls in here hurts me so much, please someone end this pain
lol
yea
Why the fuck is build nullable?
wdym
fun build(): GameData?
in case any of the data is null
Probably in case of failure
I mean if it fails throw
^
throw exception?
Someone must love npes with that many nulls
Arguably use Optional
You literally made every single property NOT null safe
Late init?
Dkim the dry thing?
That doesn't explain the issue at all, keep going lol
what do I do if I want to get the lobby location?
You just get it?
but what if it's not initialized
THROW
Then why have a builder?
not throw
??
In the build method, you could just check if canBuild returns true or false, if it returns false simply return null or throw an exception like Matt said
because I need a way to store the data since they can't send all the bw data in one command/moment
Dkim it really doesnโt make sense to return null, throw or return optional is probably what I would do
Null
Omg are you actually creating a conversation like feature? Where they'll have to type all the data?
:/
what
Anyways what was the dry thing?
they can't send all the bw data in one command/moment
like this:
there are commands
in that plugin it's /bw admin <arena> spec
in my plugin its /bw setup <arena> spec
same with lobby
and spawner
etc
...
nah im trolling
And why would you do that with a builder?
You want to have a mutable way of constructing an arena which serves as a template for creating a game instance?
because where else would I store all the data? since GameData has all nonnull variables?
yes
i think
You might wanna rethink this entire thing, there are so many things in there that make no sense to be nullable
Using the builder pattern was the wrong choice then
the only diff between GameData and GameBuilder is that GameBuilder has nullable variables
what should I do then
Just create a class which has its state mutable
wdym
Then just setters with unit/void etc
GameBuilder isn't exactly a builder

it's just GameData but nullable
thats literally the only difference
i just didn't know what to name it
so i just named it GameBuilder
Like (java)
class BlueprintDraft {
Data data:
void setData(Data data) {
return data;
}
Blueprint toBluePrint() {
return new BluePrint(data);
}
}
that's what I have
Yeah
so what do you want me to change?
the only diff between this and my class is that the name, and that it has set instead of properties
and it doesn't have a canBeBlueprint
Instead of returning null throw upon creation but have a method that checks whether itโs buildable or not?
okay, ig ill do that since u guys keep telling me to, but still, that doesn't get rid of any of the nullability
how?
the variables are still var lobby: Location? = null
and i already explained why I can't use lateinit
Yes but when you create, if itโs still null throw?
what error should i throw, RuntimeException?
Dkim, assess what properties are required which are not
See which are needed upon creation see which will need to be changed later, once you organize it let me know
just wondering if theres a more fit exception
IllegalStateException
ok
wot
Nvm
May I ask about the dry then is it fixed?
im thinking about doing something like this:
val game: BedwarsGame? = hasPermissionAndValidGame(sender, label, args, false)
val builder: GameBuilder? = plugin.gameManager.builders.getIgnoreCase(args[1])
val editor = DataEditor(game, builder)
when (args[2].toLowerCase()) {
"spec" -> {
editor.prop.spec = Location(blah)
}
"spawner" -> blah
}
editor.save()
opinions?
wait
maybe like this
Uh well hasPermissionAndValidGame
lol
u can ignore that
that just checks perm and gets game from args
i do that a lot in my command class so i just made that to reduce duplicate
Okay, I mean I would go with abstraction instead but I guess fine
Yeah
maybe i should rename it to data instead
Even the builder is nullable
..and I've explained why
You might as well code in Java lmao
Java + Lombok
lol
Let's not go so far
omg. what is this abomination
Yeah (:
idk, but I feel I would do things differently
Same
what should i do
I would start with using Haskell
lol
why not?
I tried to help him but
wot
Was the reply
I'm confused what you meant by
assess what properties are required which are not
and also
See which are needed upon creation see which will need to be changed later
'wot' basically meant 'what do you mean'
"Assess" means "evaluate"
Check which values you'll need on the first command
Which you'll need later
Idk how else I can write the same sentences to make more sense lol
smh Matt. You a bad teacher
I am
You literally said that it can't all be done in the same command lol
dkim, why not just rip off the command and make the creation all on the config file?
Dkim, they'll need to do many commands right?
yes
there is no definite first
lmao
Someone shoot me
..okay, still confused ๐
I'm not a fan of having complicated things set by commands
Have you assessed which values are important first or not?
it messes the code too much
Yeah it is a terrible idea
commands should be used for simple things only imo
well, none of the values are important until its time to build the game...
๐
None at all?
Are you sure about that?
in my plugin its /bw setup <arena> spec
What is<arena>?
and then /bw save <arena> builds it
i have a Map<String, GameBuilder>
i just do map[arena]
Arena name ?
Oh lord
do you want me to make a Set<GameBuilder> instead
i didn't know which one is better
Map is fine
then why did matt say "Oh lord"...
If you have an arena name, then why is the name nullable?