#dev-general
1 messages Β· Page 231 of 1
ebic
dear god

Does anyone have any good plugins for Skywars?
boomer
@prisma wave How would you turn this into functional forEach? Can't think of anything of the top of my mind
for (component in selectFormat().components.values) {
if (component is MessageComponent) {
appendMessage(component, ChatPermission.formatsForPlayer(player))
continue
}
append(component, player)
}
Guys
this really
hurts my eyes
My solutions for Advent Of Code 2020. Contribute to akaritakai/AdventOfCode2020 development by creating an account on GitHub.
All those streams
:(
Dude..
stop using the wrong channels lmao
xD
okay
i swear i will never put my shit in the wrong channel again
if u help me this last time
It's pretty simple, none of your questions have been development related, so as long as it's not dev-general or development it's fine

after i figure out this 1 thing
for essemtials ... /give player creeper_egg
Error: unkown item name: creeper_egg
/i creeperspawnegg?
694 exp to go till tier 7
ogay
I mean Essentials has like x30000 aliases for items
yeah
/i ogay
its not creeper_spawn_egg either
what's your server version ?
ah well gl with that 
wdym
/minecraft:give player spawn_egg 1 0 {EntityTag:{id:Creeper}}
because "minecraft:creeper_spawn_egg" didn't exist back then
/minecraft:give player 383:50 1
That's not essentials
pretty sure /minecraft give was a thing in 1.8
it was, but named item IDs were not
/minecraft:give fortheboysusa monster_egg 1 0 {EntityTag:{id:Creeper}}
gives me a stone block
yes Aj
lol
Delete .git
is that it?
[19:53:49 INFO]: fortheboysusa issued server command: /minecraft:give fortheboysusa 383:50 1
[19:53:49 INFO]: minecraft:give
[19:53:49 INFO]: [fortheboysusa: There is no such item with name 383:50]
orr will intellij still think its there
Legacy is lovely
and I think named item IDs were introduced in 1.7 or 1.8
yes
alright i yeeted the .git,
now i told ntellij to reenable VCS, how do i set what repo it commits to and shit
or 1.9 no idea but yeah in 1.12.2 is not a thing anymore
git remote add upstream <url> 
You could have changed that in remote area
you just noticed?
lol
ye
@obtuse gale Weeb
yes he doesn't
How do you set a potion effect on a player?
lmfao
Or if it's code related #development
And everyone watches anime, my favorite is Cory in the white house
I don't ...
I tried watching one but it was trash
so I just quit after like 1 and a half episode
and that was like 3 years ago or something
not everyone π
That was a joke 
This is cory in the white house
:)))
Anyways, anime is great if you watch good ones, like Full Metal Alchemist, One Piece, Demon Slayer, but watch it subbed, don't get into dub, you'll lose a lot of the experience
ye the thing is I tried watching a netflix anime lmao
%server_tps_1%
Damn, you need to watch more good anime if you didn't think that was a bad ending
They did my boy Madara dirty
you don't ... you can just hold it in hand and do /createkit Something
it will automatically create the kit
btw guys meet me in #minecraft i have changed my ways
clojuremoon
blitz i did that while holding the item, when i type /kit cegg it says- that kit is improperly defined
then you can't use eggs in essentials kits on 1.8.8 I guess
@oak raft Wait, were you talking about original or the post time skip?
Oh, yeah that was the bad one
I need to find another Tv show to watch
Blitz, watch Demon Slayer, join the weeb culture
nah
like sure it wasn't that good but it wasn't bad
I just watched one of the worst and best shows at the same time
the show was the worst and the best at the same time
xD
I just finished watching*
The main villain was too strong, so the only way to defeat it was to throw in random bullshit of bringing back Kaguya
Even the author said he was running out of ideas so he threw in a rushed solution
I have like 100 shows and movies in my list but I don't feel like watching any
I think I'll just re watch venom since its on netflix now
k lmao
wow! epic!
Fair
π
Have you watched The Boys?
Yeah s2 is out
also Mandalorian
I'll watch that as well
I forgot about these 2 but they're good shows
I got a few spoilers from the boys tho π¦
I watched Corridor Crew's latest react video and they reacted just to the boys
Yeah, pretty cool the head explosion effect
is there any efficient way to check if the player walks over a block
i really dont want to playermoveevent π°
kekw
guys I think i wrote the world's worst O(N!) code for the PlayerMoveEvent
@EventHandler
public void onPlayerMove(PlayerMoveEvent event) {
Map<UUID, Participant> participants = game.getParticipants();
Player player = event.getPlayer();
if (!participants.containsKey(player.getUniqueId())) {
return;
}
Location pLoc = event.getPlayer().getLocation();
pLoc.setY(pLoc.getY() - 1);
Room[] rooms = game.getArena().getRooms();
Map<UUID, Map.Entry<Room, Integer>> playerRooms = game.getPlayerRooms();
for (Room room : rooms) {
for (EntryWay way : room.getEntries()) {
for (Location loc : way.getEntry()) {
if (loc.equals(pLoc)) {
int originalValue = playerRooms.get(player.getUniqueId()).getValue();
if (originalValue == 2) {
playerRooms.get(player.getUniqueId()).setValue(0);
playerRooms.remove(player.getUniqueId());
} else {
playerRooms.put(player.getUniqueId(), new AbstractMap.SimpleEntry(room, 1));
player.sendTitle(ChatColor.GOLD + room.getName(), "", 20, 20, 20);
}
break;
}
}
}
}
}


There are different kinds?!?
yeah
I'm sure you know the Method breakpoint
but there are more
bruh day 7 
Damn Fefo seriously gonna pass us all
dude look at this shit #off-topic message
Sheesh
what is day 7 :((
it's uuuh it involves regex :)) or at least my solution did
tbh it was easier than I though it would be
specially part 2
ye idk. Its the fact that I have to read 3 pages xD
Fefo, can you quickly just tell me the instructions
Nvm read it myself
you store bags
Should be fairly simple with regex
Yeye bag inception
and you have to count the number of bags that contain one bag
or that contain bags that contain that bag
etc
A
Very
my very first attempt threw a

Ofc it did
||You'd get the second group, after contains, split it at , and then just parse properly||
Effort tho
@obtuse gale

lmfao
?docs
Day 6 was so easy
tfw ur bot breaks and somehow yeets discords rate limit out the window and does stuff at 300* speed
Time to try this day 7 challenge
How 
@obtuse gale Now what.. https://cdn.discordapp.com/attachments/737281436222226512/785492936112472104/unknown.png
Huh?
I guess just looping until the bag can contain gold?
You gotta check how many bags recursively contain the shiny gold bag
I've made the terrible mistake of trying to do 7 in c++
I used 0 regex in this :))
Smh
lol
This doesn't seem right
'4' Bags Can Contain A Shiny Gold Bag.
Class.h
class Class {}
@obtuse gale pogchamp

Another one
Methods tho π₯Ά
public:
void doX() {}
Try a breadth first search instead then
It was very good to know that there were no circular inheritances in that entire input file
Relieving
Made shit fuck lots easier
Day 7 is ew
rEcUrSiOn
which stores arraylist of bag
and then do a deep recursion or dfs
yeah it is
im learning about this anyways kekw
imma try with stack recursion
arraylist π€’
I already did lol

floodfill/bfs
when you recurse through each "layer"
of the search while returning
to the original cell recursed
yeah that won't happen
.
no
i dont think you understand kekw
it means
you recurse through each of the children first
instead of recursing through deeply
and then the children of the children
you recurse through children first
no
thats dfs
they are different
bfs is recursing through each of the children
in order
then once finished recursing through the children like all of them
you then go to the next layer
to those children
and for each of the children
you get the children of children
etc
you dont recurse deeply
.
I just did my thing
and it works perfectly
well yes the problem is inherently recursive
Mine almost works with the example
Does the input data give you a certain like
I too used the example to test 
π
Fefo, I mean I don't even know how I'm going to parse all the data since it'll always just overflow..
lol
not sure what you mean by "its always that one"
if i gave an example it would be easier
pulse im waiting
and I think my solution is more of a bfs approach
yeah
by the looks of it
how do I start one then
use a Queue
Push every child of visited element onto the queue
and the element being polled with be the next
why not stqaack
now replace the entire file with your input
there ugo coc

join or ban
LIFO vs FIFO
yeah
lmfaooo
Last In First Out
It's too much data for it to handle
First in last out
And also what the fuck
is this input
vibrant bronze bags contain 3 dim olive bags.
Smart
yes
Gay or FIFO
both

taken
but I didn't use no stack no queue 
aye
hmm what did you use then?
just use a ConcurrentHashIdentityDequeueQueueMapStack?
huh?
lol
name
BristerMitten
I meant what did you use to iterate
Invited you
You need to follow him
Wut is this
I originally was going to have a root Set<Bag> and the bag object have Set<Bag> themselves, containing the ones they would contain
Tree
Then I was like "yuh uuuh" and encountered something and I ended up with the bag class having no set and had a "root" Map<Bag, Set<Bag>> outside 
although I probably could have done the first approach
but I had to sleep 
bruh you need to consider spaces as well
kekw
so I assume you just used recursion finally?
yuh
yea thats dfs
How so?
kek
lol
I didn't go through the branches one at a time
bfs -> breadth first search for each layer
dfs -> depth first search deep recursion
in proper order as well
yeah
ofc kotlin has nice shit for this
recursion doesnt really allow bfs without maybe a queue argument or something
well first I check if the current bag can contain the shiny gold one
if it does k cool 
if it doesn't, I check if
o wait
it is dfs 
Well I mean this is what I have so far SPOILER!!!!!
||https://paste.helpch.at/uviquruxew.java||
Rip gtg
looks a bit overkill no?
I mean it works, just can't handle that much recursion
Enterprise
xD
lol
No clue how I'd make a queue for this tho
simple
initialize a queue
add the first element, i.e, the shiny gold thing
Yugi, you lost me a this
then do a while loop till the queue is empty
lmfao
xD
Basically on every poll add all the childen of the polled bag to the queue
Queue q
while (q is not empty) {
current_element = q.poll()
q.add(current_element.getChildren())
// Do what you want with the cur element
}```
ooooh I know why I didn't do that
because I would have needed the actual instances
for the children nodes
bags
w/e
tf was I thinking
Can't I just Thread#sleep till it's finished :kek:
As in pausing after every loop
or will it kill my pc


and made your way up?
yes
I thought of that as well, storing the parents instead of the children
Yugi, I honestly am not sur ehow to solve this
but I'd rather have the children :^)
Y'all sound like a bunch of kidnapers rn
lmfao
is that the code advent thing?
Yes
too late to start now?
Nope
Can someone parse this for me since logic works, 
plz
Ye
lol
my what
your input data
This is his input
how do I know the results are correct without putting them in your thingu :^)
If yours were correct, then mine are as well
The syntax is the same for everyone, just different sequences
Tell me the number and I'll tell you if it's correct π

ye
a few days ago I found out about terminal ANSI escape codes, colors, decorations and cursor navigation
I was like 
Ye itβs big pepe
;
->
gay
I wonder if there's a language that could detect all possible errors at compile time
No runtime exceptions
depends on how you define error
there can't be a program that can verify the correctness of any other program
that's theoretically impossible
can you detect a specific set of errors with static analysis? sure
Who the hell is jolheiser on the leaderboard
Frosty can you make me a faq? For doesn't work or it's not working
elara 
Any potential runtime exception, not bugs
So a language without any runtime exceptions
All errors have to be handled
what about things that are out of your control
like I give the process no memory
Good question
because if you can look over that Rust is basically such a language
the second one that comes to mind for me is Elm, dunno if you know that one
similar to Haskell
there are no exceptions in rust. when you get a result type, you need to handle the error case or it won't compile
Yeah similar to Go
Although stricter?
I guess that's close enough
Upon thinking about it, Rust + Kotlin seem to do most of this. But there are still some things that could slip through
how does kotlin do this
Index out of bounds, using things before initialisation
Null safety
I don't mean Kotlin does it
it's even less restrictive than java
I mean a language with features similar to Kotlin + Rust + other stuff
Compile time overflow checking, out of bounds checking, referential transparency, no "lateinit" values
@hot hull did you solve day 7? 
Etc
No Fefo, I told you, stack overflows galore

Tail recursion
I've no idea what y'all talking about with your different acronyms, I don't use recursion, nor do I ever want to again
How you getting Stackoverflows without recursion
8
Bruh
I see how it is
I love this moment I realized how what I did works as something I said it didn't 
CHANGELOG
IDE. Gradle Integration
KT-42561 "Could not get unknown property 'sourceSets' for project" when running JVM module with included MPP module
KT-43511 Task 'MainKt.ma...
Damn, that was quick.
Is there any way (with IntelliJ) for me to edit a spigot plugin's code while it's running?
uhh
that requires byte code manipulation
if you want to edit code while a plugin is running you need to use a library like bytebuddy, asm, etc
Android Studio lets you modify and patch classes while the app is running
it's really neat
its very good
anybody knows what the f is going on here?
the issue that is going on is that you are using eclipse
^
...
Eclipse == tried that Indian tutorial on yt
dude stfu

Make me π

Is there a way to report someone for scamming on here?
Yes, message @compact perch
Report the person in question and provide as much info as you possibly can, chat histories, screenshots, etc

Thanks, done.
I assume that having some values saved and just updating them on /plugin reload or whatever is better than getting them from the file each time they are needed right? xD
and restart of course
well yes answer is yes of course
or attach a Watcher to the Path to the file and when it changes, update the values

oh god
day 8 please no
an assembly language parser 
it's simple as fuck tsk tsk I've made way worse things than this
yo in knotlin, when only executes the code after the first true check and it breaks right?
Yes
If you're on the AoC leaderboard, and your name happens to be jolheiser, let me know. Otherwise I'm removing that dude
reEE
Description:
Web server failed to start. Port 42069 was already in use.
no π its π not
Calm down, Jerome.
o... not many people know that
Yeah, you mentioned I was the first one to notice it or something awhile back.
o yeah....
Did you know they have a podcast now?
didnt one of them commit suicide?
I believe so, back in 2015.
yeah....
The others have a podcast called SuperMegaShow.
o... ill check it out
Just realized we weren't in #off-topic , my bad.
Can I make IJ so I can run a command or smthn and it uploads the compiled jar to my web server?
@obtuse gale you a furry now?
no
google it
As nouns the difference between fury and furry is that fury is extreme anger or fury can be (obsolete) a thief while furry is...
here
few-ree vs fur-ree
I know what fury is Blitz, but Fefo's more likely to be a furry than furious
the pronunciations of both are identical with my accent
What would be a good term that represents something which is non persistent, just in memory and might be changed next runtime
data
getDatumId
that doesn't clear anything up at all
yeah ig
an index?
Actually, I use it for keeping track of inventories during runtime
but I was just thinking that the name getId is ambiguous
How does one setup IJ deployment so it uploads a compiled jar to my server...
if fhtats how deployment works
So minecraft-mp.com has this system where you can add ?username=username-here at the end of the vote url and it will set the value on the Username field located on the site. Is possible to do the same for a site that doesn't have such system? Maybe with an iframe on our website or something (I'm talking about topg.org)
bruhhhhh I just realised my code could be so much neater if I did something
but I didnt and now its like too late to change

dumb question here lol
Where should I put my .jar app on my VPS...
like whats the normal place people put their apps on their VPS lol
home folder of the app user
lol what
wheres that... atm all i see is like /var /usr /bin /etc stuff like that lol
~
~ is your home directory, at least on debian based dists
so see what that is
cd ~
pwd
Lunix
pwd after cd ~ just prints /root
is that where i make a new folder for my thingo
oh i see
Oh right ok
thats the path ig?
yes, that is the home dir of the root user
although you should perhaps not put it there
yeah ik im not meant to use root buttttttt
some people put stuff like this in some /usr directory, /opt or /dev
I usually use /opt
I use /π/π₯²
/
/π₯Ά/π₯²
say goodbye to the emojis βΉοΈβΉοΈβΉοΈ > /dev/null
βΉοΈ
βΉοΈ
I was trying to get a resource from the jar
so I did the thing
and it kept returning null
no matter what
an hour later I realize I never embedded the file in the jar π
lol
sounds like something a furry would say, mad sus
efe is mega sus
^
anyone thought of final + NotNull + Objects.rnn + assert + lombok + Contract ?
what is a good plugin to reduce lag
PermissionsEx
KEKW
20_teaBesluP ok nice name
ty
Uhm
well have you tried
Aikar's Arguments
and also have you tried using a high performant fork of Spigot
what
should i just use papermc
but like are there any specific plugins like ClearLag to reduce lag
oh so suppose i setup a server on a free hosting website like aternos should i add plugins (to reduce lag) if so what plugins
development general
?
if (!developmentTopic) leave();
oh ok
yes, we are in #dev-general
mind blowing facts with fefo
what do i need to ask for when ordering a custom plugin
i've heard you have to ask the dev proof of something but i forgot what it was
general aspect wise, to make sure it's an original plugin made by the dev i hired and not just an already existing plugin that was modified
Hey, Im curious if there's a plugin that gives permission on entering worldguard area and removes it upon leaving it for 1.16.3 spigot? I can't find one, but this seems to be a quite common issue π€
bump
tried what xd
Idk how you were getting Stackoverflows
I managed to do part 1 recursively with like 3 lines
And no errors
Yeah it was frosty I think
how fast are your day 7s?
runtime, I mean
oh lol
Pretty fast
its pretty small data
recursion

its recursion in a loop
Because I gave up doing it in C, tried it in datalog (where the first part alone took like 30 seconds), now I wrote it in just Clojure and it's 15ms
Isn't that iteration then?
well you keep adding to the set
and you keep recursing through each of the children
of the elements
Yeah, I tried C++ at first, realised I knew literally nothing, and then tried Scala and then Kotlin
you can say both ig
C++ is worse in that you really can't jump into it
in contrast to C
?
Afaik C doesn't have any predefined data structures
oh
Oh you mean as a data structure? no
Yeah, I found that out pretty quickly lol
it only has string handling, syscalls and utils for memory allocation and such
that's it
Linked lists are fairly trivial to implement though
Yeah
Well yeah, but struct is for you to define own stuff
yeah
but so far I've managed without anything other than arrays/pointers
except for day 7 lol
Yeah it's possible, just tricky
Tried implementing a hash table, took me ages, parsing was awful and so far I've only gotten segfaults
π₯Ά
For the others it was fairly trivial without other data structures
Bullshit lmfao
no bullshit at all
I'm saying C++ is a lot more bloated and there are many more language features you need to know before you can become productive
I wouldn't consider it bloated, the STL is huge yes, but so is the JDK
What does the jdk have to do with this
There is a tool for everything and there are libraries everywhere
yeah, and that makes it a lot more complex
for memory management alone you have like 4 different ways of doing it
You don't have to know how pointers work to use an std::vector, do you?
dude
Smart pointers are a thing
You don't have to guide them through the nastiness of memory management
It's good to know if you want well "performant" code, yes, but it's not a requirement
You are?
no?
C++ is worse in that you really can't jump into it
in contrast to C
I'm saying there is less mental load
That by itself implies that C is easier to learn than C++
no
C, while it requires more effort, is simpler
it doesn't
How does it not
do you know what words mean
there's less to consider in my experience
I'm wasting my time
C++ seems to have a lot of syntax and keywords, whereas C is significantly simpler to get an initial grasp of
C++ is epic
(also I do think C++ sucks, but that is unrelated to my point)
While C++ might be easier to use in the long term, there's no denying it's harder to initially learn
yes
ease is not static
it can get easier or less easy progressively
the bigger your applications become
fucking pointers and references
I'm not sure where to ask this in here, but what permission would I need to input for players to open a custom gui shop? currently the command is /ceshop but i'm not sure what the permission would be to allow players to do that. Any help would be appreciated, thank you!
#general-plugins #general-plugins-2, but check the plugins website/spigot page for permissions
Idk about infinite but you arenβt ever going to hit the limit. Also idk why you would want an infinitely long name
Thanks!
hmm interesting
you'll most likely run into some limitation of your file system first
Why do you want an infinitely long name lol
I need to describe what my class does
You probably wont run into a limit doing that
bet
how do I code plugin with yml?=??
GitHub Dark Mode 
Ooh finally!
No longer need Stylus
π©
β¨ yes β¨
No way thats awesome
the github dark mode
takes everything i once thought was good for dark mode
onto another level
GitHub phone users had this for so long π














π | grep good-emoji


