#dev-general
1 messages ยท Page 228 of 1
No, I didn't say.... whatever
sir you confuse me
Yes you are confused
silly boys
๐ณ
@lunar cypress AoC++ means you have donated?
yes
oh nice\
@prisma wave I'm expecting a christmas pfp
ooh good point
christmas tf2 pfp
not me tho
and artistic skills 
I applied a filter
clown is not creativity
bruh
not yet
Soldier
wat lol
your butthole doesnt hurt right
What are your thoughts on this
scary
keep it
put it on
Jesus
he looks sociopathological
amazing. but still not as good as some paint art
some?
Feel free to make some ๐
can't on gifs. Gifs are to outdated for Paint
yeah its hideous
it was the best thing I could find
at least more christmas vibe
@forest pecan thats only the api
bruh
his api is so weird
just paint every frame and piece it together in an online gif maker
xD
ikr
but importing models from texturepacks
is so hard and ugly
actually let me write some nice code for it
just honestly fork it
and make some changes to it
its too much work to start from scrath
Wait wat
https://i.imgur.com/SI72Ph6.png just put the deprecated methods in annother class so you can't see them
and that's a linus tech tip
Explicitly specifying types ๐คฎ
for testing purposes only
actually part of the kotlin style guide lmao
https://i.imgur.com/Dc6GWTd.png better? ๐ฅบ
oh god
Nullability ๐คฎ
bREUH
Why you using kotlin if you want shit nullable
because being null is cool
A complete waste
to each their own
you don't actually need those private vals first of all, so you should rather do what you're doing there in a constructor
Also, nulls are fine (in fact, the entire point of having good nullability is you using them)
But kotlin has operators just for this
namely ?
I'm almost brand new to kotlin too
just started using it because it's close to swift
wait so elvis operators ?: are just a concise way of doing if not null do this else do this?
Just do !! everywhere
class Pixel(x: Int, y: Int, path: String) {
val byte: Byte
init {
byte = File(path).takeIf { it.exists() }
?.let(ImageIO::read)
?.let { Color(it.getRGB(x, y)) }
?.let(MapPalette::matchColor) ?: 0
}
}```
This is what I would do, based on the current specification
that's actually really interesting
you can do the same without let and with interim variables instead of course
right
null!! is a new level of cursed
what in the world xD
would there be any reason not to do it like this in comparison to you doing it in init{}
class Pixel(x: Int, y: Int, path: String) {
val byte: Byte = File(path).takeIf { it.exists() }
?.let(ImageIO::read)
?.let { Color(it.getRGB(x, y)) }
?.let(MapPalette::matchColor) ?: 0
}
Nah, that's fine
I guess I could even do it another level up and remove the class
fun pixel(x: Int, y: Int, path: String): Byte = File(path).takeIf { it.exists() }
?.let(ImageIO::read)
?.let { Color(it.getRGB(x, y)) }
?.let(MapPalette::matchColor) ?: 0```
Not a great idea to keep opening the file for each pixel though
^
yea, I was just playing around with maps, there would be optimizations to this in the future
you're correct, init was redundant there
and converting that to a function is also good
I'm learning! lmao
And I'm telling you you're on the right track
now instead of the path you could pass a BufferedImage and the performance issue would be solved too
yea that'd probably be better
Or, even cooler:
fun BufferedImage.pixel(x: Int, y: Int) = ...```
oh bet
Big brain johnny
if you're really feeling it you could overload the [] operator too
operator fun BufferedImage.get(x: Int, y: Int) = ...
image[x, y]
debatable
ok then
wait so how would you get the BufferedImage variable
if you're just using BufferedImage.whatever()
it's this
Thought the method should pixel the image not to get a pixel, mb
just getting a color to turn into a byte with the MapPalette#matchColor() method so I can draw pixels to a map
with MapCanvas
you may be interested in https://github.com/johnnyjayjay/spigot-maps
I'll take a peek
Consider also using knightzmc/pdm, I think you will find it helpful
fun BufferedImage.pixel(x: Int, y: Int): Byte = MapPalette.matchColor(Color(this.getRGB(x, y)))
fun thisIsOkay() {
val example: BufferedImage? = null
example!!.pixel(0,0)
}
So this would be the intended use?
yeah, that'd be how you'd use it
does it work without failure yet
Probably
thanks for the help <o/
the confidence. i like it
I didn't even know matchColor existed
its better than "probably not"
Need to integrate it there
everything's deprecated in MapPalette which kinda sucks because they don't tell us why or what else we should use
but whatever
For images I've just used drawImage
I'm trying to make full hd images not just 128x128
Well, my library can kind of do that too
oh bet
not quite yet though tbf
It only supports 1:1 thus far
I'm not sure if I want to implement image resizing algorithms and all that jazz myself, so I'm looking for another library that can already do this
can't you kind of do that in java with graphics2d or whatever it's called
Well the issue is mainly that in the end you still need to get it on 128x128 pixel maps
so the question is how you resize and crop it in such a way that you come close to the original resolution but don't need a ridiculous amount of map items to be accurate
I guess that makes sense
Making issues and PRs on your own repo is so depressing lol
straight mood
Nobody wants to contribute ever ๐
This man seriously opens issues on his own repos, now that's committment
committment
coommiittmmeenntt
I mean, it's a really smart thing to do.
Helps you keep track of things that need to be done.
Agree, it's a bit boring, but more organized
just dont have a buggy plugin. ez
No clue what bugs are, couldn't relate
its always @ elara mitten come join clash, but not @ elara mitten how are u ๐
He's gotta eat dinner and then he has to look at a PR for a bit.
Definitely cheated on that one xD
@old wyvern Huh, so sortDecending managed to pass the last one
Ooh okay that makes sense, i made the check cuz couldn't think of anything else
ah
yes guys my code is very clean and beautiful and it almost works xD
xD
ye I can't do more tho.
haha 5th place
da heck is that
@ me when you guys finish
sure
raichu when?
uh
never, pika is better
Ill try to find one
what about pichu
neither
shiny pikachu
the christmas lights are being powered by his blood
their appearance
@ocean quartz
@ocean quartz
@ocean quartz
@ocean quartz
@ocean quartz
@ocean quartz
Arent they exactly the same in the games?
aww shortest
And do they actually exist outside the game? like in the show?
same as what? no, they look different
I'm not too familiar with the anime, but I do believe they appear there
ah might just be me misremembering
I need some ideas to code. Iโm updating my plugin from 2016 and Iโm really back into it, but idk what to add to it.
Relatively simple stuff Iโm a moderate coder
Not super advanced
I need to go xD
rename em?
I did but the question still remains
fuck 75%
lol
๐ฆ
YOU know the sacred rule
py is not allowed on shortest ๐ค
oh ok sorry
( sorry if this was too mean LOL )
its too dangerous to be left alive
naah
Bro
wha
if (result) {
System.out.println(false);
} else {
System.out.println(true);
}```
bruh
if yes yes, else no
lol
ok new one
@old wyvern
That is pure comedy Pulse
"You learn something new everyday"
which one?
they all got deleted ๐ญ
oh? why?
cause they were too good

its a joke btw lmfao
i was posting horrible shitty code
which made a bunch of the support elves pissed
frosty would know lmfao
lol
lol
wait
what the fuck
why 75
what did I miss? xD
omg
fuck
I forgot to check if min divides max
I bet that's why the 75 ๐ฆ
im so dumb
yes
lmao
xD
i thought the original question
was asking about two characters that are the same regardless uppercase or lowercase and doesnt matter which index they are
so i used two loops
but that didnt work
so then i used a map
but that didnt work
then i read the question again
and then i found out what i was trying to do was wrong lmfao
yugi: -20 characters
therefor the name 
bro thats so dumb
lmfao
but that means
some languages
bruh
thats biased
lmfao
why do you think we dont allow py xd
import java.util.*;import java.io.*;import java.math.*;class Solution{public static void main(String a[]){Scanner i=new Scanner(System.in);String w=i.nextLine();char[]b=w.toCharArray();for(int j=0;j<b.length;j++){if(j>b.length-1)break;if(Character.toUpperCase(b[j])==Character.toUpperCase(b[j+1]))System.out.println(true);}System.out.println(false);}}
@steel heart
KEKW
or at lest some of us cough @old wyvern ๐
conclure
you forgot that it has to be b.length-1
and also there is String#charAt
so there is no need to convert it to a char array :)
for (char a : word.toCharArray())
Gaby you rly went for that lol xd
xd
lmao I tried to make it at least readable
im waiting for yugi
it just needs to be right and to compile lol xd
usaco?
ye used this badboy instead j>b.length-1
lmfao
lol nty xd
nice for you
welp
COWVID-19 nice
js failed me
f
F
lmfao
nice code tbh
ye
fuck
I could have made it even shorter
||d
```java
import java.util.;import java.io.;import java.math.*;class Solution {public static void main(String args[]) {Scanner in=new Scanner(System.in);String string=in.nextLine(),r="";char[]a=new char[]{'a','e','i','o','u','A','E','I','O','U'};for(char c:string.toCharArray()){l:for(char b:a){if(b==c){r=r+c+"p";break l;}}r=r+c;}System.out.println(r);}}
dont look
uh
uhhh regex ๐ฆ
^
why two maps, isnt it already a string?
Is there tickets?
just ask
So Im coding a Hub Plugin at the moment and I want to make it support PlaceholderAPI like pinger, etc
How can I do that?
First you need PlaceholderAPI plugin as a dependency
I already done that!
I'll take a look at that, thank u
cya
I don't wanna make custom placeholders, how can I like import the already made placeholderAPI extentions to my plugin
The eCloud ones
that's exactly what I linked you to
PlaceholderAPI.setPlaceholders(Player,String)
That was so hard on an iPad
this parses a string
oo
1,2k what
I feel dumb rn but when I put PlaceholderAPI.setPlaceholders(Player,String), what do I type for the string?
Like the pinger or placeholder?
someone make a clash
the string you want to set the placeholders on
โThis is a string with %some_placeholder%โ for example
^
String str = "%player_name%";
String parsed = PlaceholderAPI.setPlaceholders(Bukkit.getPlayer("Conclure"),str); //will be "Conclure"
And it would replace %some_placeholder%
You can make one
idk how 2
Iโd do it but Iโm on mobile lol
lmao
Ohh alr
So I did this but doesn't work
String str = "%pinger_isonline_<IP>:<PORT>%";
String parsed = PlaceholderAPI.setPlaceholders(players,str);
} ```
you've gotta clash when theres lots of ppl
^^
ooooooooof
DId you replace <IP> and <PORT>?
Yes
ok
I replaced it with my ip and I did the ip in the config
Go on the server and do /papi parse me %that_thing% and use the placeholder youโre using as well as the ip and port
See if it works
Could you send how you are using parsed
Ohhh, I think I got it
I got it to work
Alright, thank u James
@surreal quarry, can't I do if parsed.cotains("Offline") { statuscolor = ChatColor.RED; }? to check check if its offline or online to change the color depending on the status of the server
statuscolor is a private chatcolor veriable
Yup it works
I play it lol
\๐
sad now
depressive state
release album with every title in lowercase.
black instagram profile picture
pain.
yeah actually that's too far
i take it back
ok thank you
you're welcome
now go listen to some juice
i'd love to
rich and blind if u ever wanna be sad
amen
rich hickey and blind ๐ฅฒ
YES
@clear fossilerupme
nice one
i need help
There is no time to wait! Ask your question @obtuse gale!
lol
where can i go?
what type of help?
if you need development help then #development if you need plugin configuration or setup help then #placeholder-api / #general-plugins / #general-plugins-2
#placeholder-api then
why is floor rounding up and ceil rounding down
ask there
what? are you sure?
ignore that questions @static zealot
k lmao
I'm dyslexic on Tuesdays
I need help
There is no time to wait! Ask your question @prisma wave!
I need help
There is no time to wait! Ask your question @forest pecan!
@prisma wave I need help too
ok
oh shi
I need help
There is no time to wait! Ask your question @forest pecan!
I'm not special
feeling and make believe are underrated too
There is no time to wait! Ask your question @forest pecan!
need help
what album
deathrace
they're actually straight fire
this is why we need a music channel
My favorite off the album is the bees knees doe
ew
ew u
I only like the first half
before he switches the flow
it's just two songs glued together
ok
death race has a lot of mediocre songs i think
goodbye & good riddance is probably the best overall
Oxy is my favorite juice wrld song
fax
on another note nicki minaj made another song
and spotify goes another day without a dislike button
only nicki minaj song worth listening to is majesty because of eminem's feature
he pops off highkey
ikr
He should've just made that a song without her
one of his best features
it's kind of a marshall mather lp2 vibe
crazy to think juice passed almost a year ago now ๐
๐
BM are you used to making unit tests?
king von died a few weeks ago and xx is going on two years now
yeah i do it pretty often now
whenever i make a new project it's usually
- make a decoupled class that obviously works
- waste loads of time unit testing it even though it's literally 3 lines of logic
- couple it, unit tests break
- cba to do any more
How would you do it for maybe like a parser
Like I have the input: &c*||~~__**Hello**__~~||*�!
Which will turn into this:
just check if it's a palindrome or nah
make a parser, parse, do an assertion comparing the results with a known list?
val parser = Parser()
val result = parser.parse("blah")
assertEquals(listOf(blah), result)
``` ?
hmm this is pretty good
hmmm yes
If i'm making a sort of Hologram pool for reusing armor stand entities, how do you think I should handle reloading?
- just kill all the stands onDisable, and recreate later
- some wacky persistence shit that i'd rather not do
- just check armorstands near a location and assign them
Elaborate on what you mean
when a chest is full, it gets a hologram
gonna pool the holograms so i'm not creating and destroying a ton of entities
when restart, Map<Chest, Hologram> is cleared
either remove all holos and replace, wacky serialization shit, or check near each chest for an existing hologram onEnable
will probably go with 1, since performance isn't really an issue onDisable
Just remove and create on enable
It's really minuscule performance strain even with thousands, just so long you update them async
Wdym you can't?
you should probably kill them onEnable, right? ex. the server crashes and leaves armor stands where ever
onDisable*
no like kill them, then when none are existent, set them
can you rename rename entities async?
Yes
Only adding can't be done async
yea world modification
Yes
syntax blocker
read that wrong
what is it
lmaoooo
FrozenTabCompletion
no thanks
no
I don't want any of your plugins anymore Frosty
because I have to update them myself and fix the bugs
lmao
frosty i would have to disagree
they should run perfectly fine on a 1.5.2 server but they don't
yes
DJ converter ๐
developer error
Worked fine for me, so again USER ERROR
they don't run on any servers lmao

Blitz, does atleast FrozenActions work as it should?
@static zealot doesn't stop colin commands
Bruh you goddamn liar
https://www.spigotmc.org/resources/spigot-syntax-blocker.85599/ use something like this
the dev even provides a paypal link if you like it
=whois @obtuse gale
@lean arrow
697978050079621200
Apr 9 2020
Online
**Spigot: **BusterDev
Interesting
what's this
don't look at my spigot
old news
https://i.imgur.com/2lly1In.png ๐ java ๐ 101 ๐ with ๐ buster ๐
What the fuck
i love it!
xD
da hecc is that supposed to mean
๐ฉ
that's exactly the point I was trying to get across but those guys didn't get it
(str/join " " arr)
NO
Thy shall burn in hell for thy sourcery
๐ฉ
Thanks
why isn't there an easy way to calculate exp to levels and levels to exp? ๐ฆ fuck math someone else should do it for me
Experience (EXP or XP for short) can be obtained by gathering experience orbs from mining, defeating mobs and players, breeding, trading, fishing, completing advancements, and using grindstones and furnaces. Experience gained during a player's life affects the player's score on the death screen. While having no direct effect on the player charac...
thank you
How do i preload chunks
use ChunkMaster, Chunky or WorldBorder
all those 3 are plugins you can find on spigot
what about a 1.8 one which isn't worldborder
no idea. I only ever used ChunkMaster
Buster just one small thing tho. I had all that I just realised. I still need to revers all that so I can get how many levels there are if you have a specific amount of EXP
which now that I sit here and think about it, isn't that hard. I just red a lot of posts instead which had a lot of complicated shit xD
Hi, can someone help me to why my sever isnt running
server.txt: https://paste.helpch.at/unimapafom.bash
Latest Logs: https://paste.helpch.at/olavefekin.sql
I orignially had this on an online hosting, and i downloaded it back to my pc to local host
Please @ me when replied thanks
[20:55:07] [Server thread/WARN]: **** FAILED TO BIND TO PORT!
[20:55:07] [Server thread/WARN]: The exception was: java.net.BindException: Cannot assign requested address: bind
[20:55:07] [Server thread/WARN]: Perhaps a server is already running on that port?```
@inner osprey ^
@static zealot how do you speed up how many chunks gen per second
what plugin?
worldborder
don't they have a wiki or something? never used it
Prolly getting a better server is the only way to speed that up
@static zealot What do I change?
do they not have the ability to change speed? ChunkMaster does
Change the server port I guess.
in your server.proprieties
rn its 25590
try something else
Ah, needed to remove server ip lol, and yeah change port too thanks :)
๐
having trouble with deluxesellwands, when i try to sell this happens in the consle
dm eme
please if you have problems with plugins move to #general-plugins or #general-plugins-2
this channel is for development discussions.
@static zealot check ur dms
you said Yo. xD Is that suppose to mean something?
OH YOUR GOD
IntelliJ doesn't halt the entire computer when I type Material.!!!!!!!!
or open the fucking file
yeswssss
and memory doesn't skyrocket
what?
POGGIES
I understood nothing

I fucking hate this
Why doesn't Spigot just add some methods for exp calculation?
I have to do all this fucking math
I took 2 hours off to play some Tomb Raider thinking it'll be better after but nah
๐ฅบ
is it just me or the new release of intellij is seriously faster in literally every aspect?
Trying it now
Omg the Kotlin auto complete thingy, is actually fast again
It used to be so slow
cries in 2018.3
๐

Haven't even got day 1 yet lol
Pathetic.
noob
smh
nums.zip(nums)
.first { (a, b) -> a + b == 2020 }
.let { it.first * it.second }
.apply(::println)
Surely this should work
fugly
typed on mobile
interesting
Supreme code https://github.com/Frcsty/AdventOfCode-2020
time taken I'd assume
Ah
CoC anyone?
Don't got a mouse rn
whats all this advent of code stuff ive been seeing?
Huh
Would anyone know how to make a nice looking health system for a scoreboard, I have images for examples
the join code for the leaderboard ...
You're already in it
..
Go to leaderboards and private leaderboards and you'll see it I think
No
yes
anyone at all know how? xd
#783231030860972032 < Tap
I mean, there are multiple numbers that pass the condition
yea
but you have to send only 1
why do I feel that the input is different from user to user?
Uh 2020 Yugi
hmm
https://cdn.discordapp.com/attachments/778124374917120041/783631996324020224/unknown.png @hot hull like this tho
Not 2000
lel I did that too
my bad
Gaby I think it's the same
but I did it manually, so not an easy typo for me
no it's not frosty
more wasted time D:
xD
Lol
I've got the two inputs on my repo Gaby, go check
phew
Join fellas 1015595-664c60a4
If anyone wants to join
you guys shouldn't have repos for this
Piggy, don't look at it if you haven't done it
these things should be competitive and closed source
Cant they sue you for that as well?
I remember project euler having something like that
1472 1686
1757 1983
1404 1801
1663 1890
@hot hull
only first 100 problem solutions are allowed to be publically posted
aight will make it private ๐
idk if adventofcode cares, but most ctf's have strict rules against it afaik
mhm
how hard would aoc be into a week or two?
good question
hopefully not too hard because I'm starting at the end of this week
We'll see Yugi
@hot hull post the damn code smh
day #1 is a complete joke tho
ยฏ_(ใ)_/ยฏ
What code Gaby
yeah lol didn't even need code
mhm
for the leaderboard
I joined an hour ago frost
Piggy, pin this instead
:9
:))
If anyone wishes to join our Private Leaderboard for AdventOfCode 2020, you can do so by using this code
Code: 1015595-664c60a4
Link: https://adventofcode.com/2020/leaderboard/private
put a link in the message
@hot hull link in msg pls
Smh
thx b
On mobile so it takes a bit to do stuff, danke Gaby
๐
week 2 on the weekend might already be pretty spicy
I see
@fluid crag can you add me I tried adding but it said you have to add me
@distant sun New update is using a lot less RAM ;o
minecraft update ?
IntelliJ update
It's really good
2018.3 

Frosty what was the reason you can't update again?
Matt where is your Christmas pfp
Matt, potato pc
You can use Eclipse on any low end computer 
Next to yours
IntelliJ?
ye
You can now use the Material class without the whole thing halting 
Try updating now, it's running so much better
Frosty how much RAM
Why not
I like it
k gud?
lol
@ocean quartz I physically cannot, I've told you several times already smh, if I could I would
Noob
how much RAM
The cpu
32 bit in 2020 ๐ฅถ
Yeah we use 128 bit here
It's a 9 year old pc, give it a fucking break
Lol
softdrive
wat
Absolutely not
Well you probably will be able to now
Super high mountains as well
who

code go brrrrr
@hot hull ayyyy
๐
How are the points calculated? Cause if it is time then that's a scam
I have no idea
Paper java 11 ๐










