#dev-general
1 messages · Page 595 of 1
also crashes the client 🤔
wait lemme try seeing which one crashes
if you use & it will always be 0
but im not sure why | is also not working 🤔
WAIT
i commented out that line and it still crashes
(also, create constants and name them accordingly - that will make it easier to look into in a few months)
true - although atm im just writing this all in the command function so I didn't make constants yet - but thats a good idea 👍
I am writing comments though 😌
okay so
setObject(0, 0x20) // Entity data - invisible
```this line is crashing it 🤔
hmmm
wait
no both are crashing it
just git gud
D:
okay so both of these lines crash the client
🤔
great
dkim life be like
i mean it sounds odd that the method is called setObject but you're giving it an int
or well, byte
plus this is in the crash report
nope just setObject 🤔
setObject(x, (byte) z) should work then I guess
YES
TY
finally after an hour
😤
wait
YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS_ _ _ _ _ _
👍
yay barry decided to let me shout
:D
just another conversation with dkim. lol
lol
new issue
if i move too fast the hologram doesn't catch up to me
D:
should i just spam teleport packets
atm im doing move & look packets
how about you tell me what private server you're on?
lamo. you ain't got github pack?
😭
cool. no whitelist
i added u to whitelist
wait
there we go
@jovial warren mind if I just rip off your bardy bot and add its functionality to my private bot? xD I can't deal with lavaplayer rn
that's cool
thanks
and I change the values 1/2 way through
because fast refresh 
gotta come up with more UI components to copy
that make for good panels
(since this is meant to be for a discord bot panel)
buttons
or did you do that and I just don't remember seeing in #showcase ?
bcz from what I can see you don't even have a way to add buttons using your embed creator thingy
just exposing @half harness
D:
Sure, as long as you comply with the licence. BardyBot uses Lavalink though, not Lavaplayer, which will require a separate node to handle the audio
lmao. I love banning dkim from his own server
@static zealot
asked?
me
alr
we can play the halloween one
halloween?
yes
I suck at parkour
what parkour?
whats that
magic
say it or I will send the FBI to your house :)
lunar client
mod?
lunar client is a custom mc client
eliminates the forge mod loader so its pretty fast 🤩

Hear me out: Minecraft plugin development, but with Python /j

being honest and not understanding the joke or trick is posible
Jython is a thing (sadly)
eww
ok
for doing discord rpc on minecraft mods, what fucking library should I use? and if I use Jagrosh's one (the one that Origins Enhanced uses, dont ask lol) why the fuck I cannot get it working?
1.- sorry, bad luck
2.- not here my boy
is there a server ican find buildings on?
dont think so
I mean you can ask in #904591269005770762 / #904591268515029032
most certainly not in #dev-general lmao
In a world too often governed by corruption and arrogance, it can be difficult to stay true to one’s philosophical and literary principles
@gentle sparrow
Yes?
“Crisis of subjectivity”
People relying on their inner beliefs for moral guidance rather than socially acceptable beliefs
Society would devolve into a giant power vacuum and a bloody multi sided war for control
And there’s no confirming that the winner is the most morally ethical person
That’s a rather specific question though
May I ask why you raised it?
are you familiar with someone that goes by the name of "Titanic"?
I can’t say I remember any encounter with someone like that
Could one have an encounter with themselves?
Of course they could
It’s important that everyone takes time to reevaluate and reassess their stances
While talking with others can sharpen your beliefs since you take into account things you hadn’t thought of before
Thinking about them by yourself can make yourself certain they represent you to the best they can
Thank you for your words
what's the maven dependency for placeholerAPI?
is it possibel to have a world that's only in memory and doesn't take up a folder anywhere?
nope
oh
Dkim missed that "and""
I just found out something cool about yaml, if you use the same list or object in two places you can make it shorter with anchors
list: &some-anchor
- value
- value
- value```
Which can be reused with `key: *some-anchor`
YAML anchors, aliases, and overrides are features of the YAML language that help keep your code DRY. Anchors and aliases allow you to reference data for reuse. YAML overrides allow you to provide a custom value for an alias. This guide gives you examples for using YAML anchors, aliases, and overrides.
lmfao
ISO 8601 supremacy
Interesting
does anybody know what " curl: (2) Failure establishing ssh session: -5, Unable to exchange encryption keys" means
I'm using a FTP action deploy and its not working for this specific host, but it is working for other hosts. It was working on this host before though and then randomly stopped working
and yes i've tried googling it please ping me if you respond. thanks
Doesn’t FTP not use SSH keys? I thought that was SFTP
this maven don't seen to work https://paste.helpch.at/siguxaxuge.xml
The repository URL should be https iirc
I got this from PlaceholderAPI wiki to setup expansions
both work but https is good
also. papi is 2.10.10 now Ironic
so do it https instead of http and get the latest version
yes I know, it will not let me use 2.10.10
The wiki uses https in the example.
I copied and pasted, so not sure how I got it wrong
when did you copy it? before it used to be http but its been updated for months now
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
Cannot connect to the Maven process. Try again later. If the problem persists, check the Maven Importing JDK settings and restart IntelliJ IDEA
I resetarted IDE and it's downloading now
wow. imagine listening to what the warning says and it working. xD
2.10.10 still in red, but 2.10.9 works
I rebooted last night and it did no good, this fork has been a nightmare most of the maven lines didn't work
only got one more to figure out I need the maven info for groupmanager
oops forgot about McRPG
did you know you can use generics this way in java? java public void <T extends Event & Cancellable> cancelThis(T event) { event.setCancelled(true); // do other thing with our event T } kt version kt fun <T> T.cancelThis() where T : Event, T : Cancellable { isCancelled = true // do other thing with our event T }
Yep, it's p sick
I think they are called "intersection types" internally
Or at least that how the compiler api exposes them as
almost an union type, but without union :/
Union types exist too, they are used for example in multi-catch blocks catch (IOException | SQLException e)
We are used to a very basic notion of "types" tbf
Types like those can actually be captured by var as well. I forgot the exact statement, but I think it was johnny that mentioned that
var obj = new Object() {
int i;
};
obj.i = 123;
v pog
wat about it?
oh the fact that its not a custom class?
yeah
it is, hence the var
actually kind cool ngl
oh
heh
Java 9 I guess?
9 I think?
or 10?
Java 10
I think primitives work too
aha
it compiles down to the type known at compile time
wow what did i just say
it compiles down to the type known at compile time
i'm a genius
Var for fields wen? 
No, you bad
WHAT
YES!
?ban @ocean quartz
I'm trying to make a tournament API for myself to use (to manage the data, connect to MC servers, and have a discord bot attached).
I feel like this isn't enough data, but I guess it is?
is there any glaring part of a bracket tournament this is missing
(for internal use only)


😮
lol
the decompiler just doesn't know how to reverse it, but it is obviously known in the bytecode as it is just an additional class file
wtf is tat Bytecode?
yes
I tought it would have more raw bytes, less text
well that's how IJ shows it lol
a
it's obv just a bunch of, well, bytes
damn I thought I broke my h key just now
it wasn't working
and I just changed all my keys out
a
tat
ah
I challenge you to write something in bytecode
anything
even just a sysout
watch me
okay. I will.
It's actually not that hard
learning bytecode and the class file format is actually a very interesting thing in my opinion
`
accedently
yessir
Yeah, i read a bit of it on the java website it's quite interesting
`
yes this is the server you cannot make a single typo
sending 40000+ (i think) packets per second to a player is probably the reason why i have 200ms ping on my local server, right?
🙃
just... why...
20 ticks per second hologram updating
rn 1k holograms (and 500 cows which I link the hologram to that displays info about the mob)
each update i teleport the hologram to the mob and set the name to updated info - which I should probably avoid doing every tick
but still even if i forget the renaming exists i need to teleport the hologram every tick - which is still 10000 packets per second
i think
since that's 500 packets per tick and 500 cows
I'm curious about why display holograms using cows
nono the holograms are armorstands
What are you doing?
but there are 2 holograms linked to each cow
which display information about the cow (health & mob name)
Can names not use multiple lines?
no
u have to use scoreboard stuff
but i have 0 idea how to use them
i did this without packets without the excessive ping (well, I never checked the ping but i assumed that it wasn't 200ms).. idk why using packets is making me have 200ms ping
im not sure how i could optimize this though
since i have to send a packet for each entity
@dkim I found someone like you!
https://github.com/Ladysnake/Impersonate/blob/1.17/src/main/java/io/github/ladysnake/impersonate/impl/ImpersonateClient.java
line 28
They use it in the whole project lol
💀
@half harness just out of curiosity, are you sending the packets on the main thread or not?
nope
Emily is there a simple way to set a player's skin with fabric, or do I have to do something like this?
https://github.com/Ladysnake/Impersonate/blob/1932aa0142f4434a659c9ba3b4b30d1ca1a30f9a/src/main/java/io/github/ladysnake/impersonate/impl/ServerPlayerSkins.java#L68
It’s for a fake player
val holo = HoloPacketData(Int.MAX_VALUE, player.location, Vector(0, 0, 0), setOf(player.uniqueId), "&cEpic Hologram"))
holo.spawn()
holo.move(player.location.add(0.0, 5.0, 0.0))
holo.teleport(player.location.add(0.0, 5.0, 5.0)) // different packets
holo.setVelocity(Vector(0, 5, 0))
holo.setName("&aGreen Hologram now!")
holo.remove()
```i'm finally packet hologram pro 😎
spoofing?
HolographicDisplays modifies events on MONITOR priority 🤮 https://github.com/filoghost/HolographicDisplays/blob/e406dfc9a5e69a233b560ccb92e9f741d1b79490/Plugin/src/main/java/com/gmail/filoghost/holographicdisplays/listener/MainListener.java#L101
Wdym?
yes. it is to make sure other plugins don't interfere with them spawning holograms I believe
pog it paid off, 0.7% of the server thread vs 5%+ 😌 || due to everything being async besides World#getEntities ||
WG is far more important imo and it uses normal priority for all of its listeners iirc
https://i.imgur.com/DrRUNr6.png anyone why this shows up in spark (coroutines) even though I don't use coroutines?
I used to though so i have it shaded, but not anymore
oh wait
my jda lib uses coroutines i think
but still, is it supposed to just say parked 100%

Monitor is for, as the name suggests, monitoring, it's a read-only stage
makes it look like my plugin is the laggiest (on the cpu) compared to the others D:
Not for modifying
I didnt say its ok what they do...
I just said why they do it
it's fucking dumb
why is it interesting?/
since why not just event.setCancelled(false)?
without the if statement
totally agreed
bccz.
that doesnt make it interesting dkim
just stupid
that's why all my homies are not using HD anymore
I have 22 maven dependencies that worked before I invalidate the caches I took them all out and placed them back in one at a time, I need to know hao to make them work again, did I update something I should not of?
Can you post entire pom?
I don’t know if this has a significant role
?
But this is redundant
<java.version>1.15</java.version>
iirc that’s for spring boot merely
Anyhow, have you ever tried gradle?
it was 1.8
nope still getting 34 errors
could there be something in my pom I can't see?
Possibly
I am not a maven expert sadly, but after the invalidate and cache restart you did import it as a maven project?
whats that
do you not know?
no
ah i have heard of it
and what does the GitHub Copilot do?
Ai code assistant
Copilot is insanely good
i wish i had access 😩
Rip
do u have access?
Yeah
when did u join waitlist?
o
When they first revealed it
Haha took me ages, but from what I hear the delays are much less now
So you may find doesn’t take you long, I’m guessing they’re mass accepting people now
how come they dont accept everyone? since it doesn't even require an application
hm
Maybe it’s server strain? Not sure
maybe
// finish project
Hahahah if only
https://twitter.com/heychazza/status/1456641296026722307?s=20
https://twitter.com/heychazza/status/1455618483807477764?s=20
I applied last week and got access to Copilot in 3~4 days approx

ah
Time is a social construct
👀
Does it work for java and kotlin?
Right now i think it's just TS/JS
Not strictly true
GitHub Copilot works with a broad set of frameworks and languages. The technical preview does especially well for Python, JavaScript, TypeScript, Ruby, Java, and Go, but it understands dozens of languages and can help you find your way around almost anything
therefore
kotlin bad
java good

Do it for Java then Ctrl+Alt+Shift+K cheat the system 

where'd you get that 
It doesnt work in IJ?
thats annoying
who said it doesn't
GitHub Copilot is available as an extension for Neovim, JetBrains, and Visual Studio Code
oh alr, the picture you sent was in visual studio so i was wondering
I think i signed up like 4 months or so ago
Man hands on misery to man
It deepens, like a coastal shelf
Get out as early as you can
And don’t have any kids yourself
It goes almost as deep as your quote
LIES!!!
my god that is horrific
Ikr lmao
This is actually quite cool
Idk when i'll ever use it but still quite nice
I wonder if it works fine with user-defined structures
You can choose an implementation
is there any concurrent implementation of List?
if not, how come theres hashmap/set, queue, and deque but no list?
There is ConcurrentLinkedQueue, Collections.synchronizedList, and some other external implementations
😮
but theres no concurrent List ☹️
and synchronizedList doesn't have the kewl magic of the other concurrent ones
Concurrent Collections
Besides Queues, this package supplies Collection implementations designed for use in multithreaded contexts: ConcurrentHashMap, ConcurrentSkipListMap, ConcurrentSkipListSet, CopyOnWriteArrayList, and CopyOnWriteArraySet. When many threads are expected to access a given collection, a ConcurrentHashMap is normally preferable to a synchronized HashMap, and a ConcurrentSkipListMap is normally preferable to a synchronized TreeMap. A CopyOnWriteArrayList is preferable to a synchronized ArrayList when the expected number of reads and traversals greatly outnumber the number of updates to a list.
i mean i was wondering if there was any from another library or smth ¯_(ツ)_/¯
since CopyOnWriteArrayList would copy on write
Vector is the synchronized version of ArrayList
but I don't think it's much different from Collections.synchronizedList(new ArrayList<>()) tbh
oh
it's also kinda old and sorta deprecated
it'll work fine regardless
the javadoc for it suggests using C.sL anyway
(I think)
yeah it's just a bunch of synchronized methods, nothing equivalent to what something like a ConcurrentHashSet would use
welp
i have no idea how the concurrent maps work but apparently its faster
¯_(ツ)_/¯
also
just found something out
ok
if you do ```kt
val map = ConcurrentHashMap(mapOf(1 to 2, 3 to 4))
for (item in map) {
map.remove(item.key)
println(map)
}
😮
interesting
im always used to it erroring
I guess a CopyOnWriteArrayList is what you're looking for
by the looks of it
ig
but it's kinda dumb because it's probably a shit implementation
oh jesus
Yea copies the entire thing on every write ofc
immutable data structures
Dkim, why do you need to modify during iteration?
removeIf smh smh
^
How many elements will even be in that list? Unless we're talking about thousands and thousands then copying is totally fine
i was just testing it
A complete copy seems too much still
Something like a persistent list might be a viable alternative, not really sure tho
Ah
YO WTF
Copilot actually just went insane, it literally read my mind, i was going to do alias and i typed for ( and this happened
This is insane
the alias.forEach is wrong but still
Reactive streams? ;o
From what I understand, reactive systems are outstandingly good in the microservices world we live in today
very functional much wow
And hard to debug
Debugging? What's that
It works with anything iirc
It’s just learning by code
vsc 🤮
hey, I didn't write the samples ¯\_(ツ)_/¯
Oh I thought you wrote Java in that LOL
Ayo anyone know how to do a POST via putty?
or a better tutorial than the shit one's I've been finding
Yeah this one supports SFTP
You don’t use Putty for a POST
You can use Postman or Insomnia
I need to
assignment
5. At http://45.79.189.210/358fall2021/hw9-5.php there is a form that will only give you a
success message if you submit a product name equal to chocolate and a price of 3.50. Your goal is to
get the success message using each of the methods below. For each, give a screenshot of the success
message as well as the command/code/raw request that you use.
(a) cURL
(b) a programming language’s web request library (such as Python’s requests)
(c) a raw HTTP request using something like Putty or Telnet.
Oh then use CURL within your Putty instance
yes
curl -X POST "http://45.79.189.210/358fall2021/hw9-5.php" -H "User-Agent: YourAgent" -d "product=chocolate&price=3.50" -H "Content-Type: application/x-www-form-urlencoded"
Managed to do this from mobile somehow
There’s your curl for that form
It returns success
@golden sun there ^
😅
@wintry plinth random question. what font is this?
Dank Mono
A typeface designed for coding aesthetes with modern displays in mind. Delightful ligatures and an italic variant and bold style.The included character set includes latin uppercase and lowercase letters, all modifiers, and diacritics covering most European languages. Additionally it covers an exhaustive list of math symbols, the basic Greek glyp...
ty
Jetbrains mono or nothing
is there much (if any) performance difference between injecting our own packet listener vs using protocolib to listen to and modify packets?
probably not anything significant
Fira code > Jetbrains mono
who punishes themselves by coding in this font
I love it, easy to read
I'm trying to understand what is this code java Class<?> unsafeClass = Class.forName("sun.misc.Unsafe"); Field theUnsafeField = unsafeClass.getDeclaredField("theUnsafe"); theUnsafeField.setAccessible(true); UNSAFE = theUnsafeField.get(null); ALLOCATE_INSTANCE = UNSAFE.getClass().getMethod("allocateInstance", Class.class); what are "unsafe", "theUnsafe", and "allocateInstance" used for?
they're being used like this java static Object createPacket() { try { if (!isParamsVersion()) { return packetClass.newInstance(); } else { return ALLOCATE_INSTANCE.invoke(UNSAFE, packetClass); } } catch (Exception e) { e.printStackTrace(); return null; } }
Unsafe is a class to work with memory directly which as the name hints is unsafe
the instance to do it is called theUnsafe and is private so you have to reflect it
^ allocateInstance can make objects without calling the constructor
They probably only use reflection since some jdks don’t have unsafe I believe?
No you need to use reflection
so basically used here to bypass the constructor of the packet class?
Not for allocateInstance?
You can't get an instance without it, it's protected by the SecurityManager
Oh
Hmm
It's public iirc
Yeah
Idk why they use reflection there
yes, it's like saying T obj; in C++ or something, it makes a new object with the same memory structure but with everything null / 0
will it throw when used by plugins?
Yes
It will usually throw anywhere outside of internal code
Things like Atomicinteger use it just fine
in this class, for example, even the Strings will become null when initiated through allocateInstance?
Yes
Or maybe not
I think so, iirc Gson also use this, and not having a constructor when wanting to do Gson stuff with serialization makes deserialized objects fields always null
I think they do yes
cause that is like the same as assigning them inside the constuctor
what is the difference between this and just calling f.setAcessible(true);, then f.set(secretHolder, 1)?
setAccessible iirc overrides final if it’s not a true constant and makes private fields mutable.
then Field::set just takes the instance (or null if static) and sets the value for that field
and unsafe.putInt won't modify final fields?
Unsafe bypasses that shit
hence unsafe
It gives you arguably too much authority
Only thing you still can’t do with unsafe would be modifying true constants as their values are inlined
is setting a value using unsafe any faster than on a Field that was setAccessible before?
i might have found the perfect excuse to use reflection haha
Reflection must sometimes go through the security manager which happens to be a bit slow
Unsafe has no limitations other than what I mentioned afaik
Though you can’t really class scan with unsafe as opposed to reflection 
yeah, but that's not an issue hehe
Yuh
Also unsafe is subject to removal in the future, to be replaced with safer memory api stuff, which has to a certain extent already begun
is there any reason to use Class.forName("sun.misc.Unsafe") instead of just importing and using it directly?
to my concerns, no, might just be the case the developer who wrote that code did not have access to those sun misc classes at compile time
I see, thanks
and a big fat warning shows up if you use any of the sun packages
EMC 
🥲
CONCLURE

I use WinSCP which works excellently
FileZilla
except that it's ugly
🙃
it does let u pick a background color though
but its light mode
FileZilla is buggy for me
doesn't allow for me to specify what I want to do when editing a specific file
eg. open text files in np++ not notepad
u can
oh
and does not work as intended
oh O_o
sounds like a skill issue
nah, its due to some weirdness in my PC
I agree with Pulse
Is there any ai coding tools I can (and should) leverage? (Exclude Github copilot) I'm currently using the Intellij suite of tools.
tabnine
I think that's what it's called
I personally don't use it but @Matt uses it (or an older version of it) and shows pretty promising results
well.. used to, now he's on with copilot haha
Used to use Codota, it was okay
Copilot though 
tabnine is meh at best.
I used it for a bit, and it kept suggesting dumb things that had nothing to do with my current situation
Tabnine was pretty annoying from my tests, super slow
Codota was nice before it was bought
"Life is thickly sown with thorns, and I know no other remedy than to pass quickly through them. The longer we dwell on our misfortunes, the greater is their power to harm us."
Voltaire said that
Gandhi was a pretty terrible person
He was an anti-vaxxer and a hindu supremacist in addition to that
His failure to acknowledge women's rights can be largely blamed for the lack of women's rights in modern day India
Ah, Dial 911
m*
fr
yes fr
how to live chat with em
I have a problem while I'm screen sharing on my xiamoi lite device
Go to your neaby railway station and walk though the wall after the 9th compartment. You should enter the 9 3/4th area. Someone should be waiting there to chat lively to you
God wont fk off, dw
You can't, make a ticket on their support and wait
No, But I know joe mama from yesterday night at the strip club
thanks m8
🥲
Good luck though. They hardly respond non-automated messages to people.
If I have a project under GPLv3, can I release a specific module under MIT, while the rest is GPLv3?
Never seen that in practice happening but probably
😍
Horrible
That is next level shocking
Yeah, imagine using j*va
My god that's a crime
@delicate vapor this is not discord support. if you want support you'll have to use support.discord.com. Here you can get general development or minecraft help.
I just found out that you can do this O.o
or also this
Yea
@ocean quartz if I were to import the IJ theme (the one you gave me a while ago) in Rider would it work as nicely with C#? Or would it not even work in Rider?
try it
well I Dont want to import it, break everything then not know how to go back to default xD
but I guess I will
Most likely, it works fine with TS and html
so I have to go in IJ export all settings and import them in Rider?
or wait. why all. just the code style?
oh wait there's Color options
ok. seems to work.
Hey!
Hola
Oi @obtuse gale didn't you write something for splitting components by \n?

it is on GH yeah
let me find it lol
I haven't tested it in a good while, I know it has a few weird things here and there but nothing that changes how the component(s) looks
so component compaction would help there
and there's probably a better way now with the component iterator API though, used to traverse the tree manually
but nevertheless here it is
(...)
Hmm?
oh my god I hate seeing my own past code lmao https://github.com/emilyy-dev/BetterJails/blob/eb4051e7d9dbb5433cead3811152b9c0a353c8e6/common/src/main/java/io/github/emilyydev/betterjails/common/message/Subject.java#L78-L144
You could always rewrite it using the compaction like you mentioned 😛
I should continue that project lol
but yeah compaction + iterator API would be way better
maybe with a custom flattener..?
Yeah. I have an issue where I need to read in a component and split it into multiple by \n. I wonder how much easier it would be with the newest Adventure changes.
hm I wonder if MM replaces \n with actual Component.newline() since this does that, it splits by Component.newline() by identity, not "content only"
You down to test it rn or should I?
which is uuh a questionable decision but I did it that way because messages are built internally
hm I could give it a quickie
actually I can't
sad
I can. I'll have your answer in a moment.
TextComponentImpl{content="MyNewGuild\n0.0", style=StyleImpl{color=null, obfuscated=not_set, bold=not_set, strikethrough=not_set, underlined=not_set, italic=not_set, clickEvent=null, hoverEvent=null, insertion=null, font=null}, children=[]}
lol thinking about that you could use the TextReplacementConfig to replace \n with Component.newline() and it would work
Tried that too
The problem is here that my usage here is to use it in lore. So that approach doesn't work.
I have to split it into multiple components.
would make the splitter work* :d
this is funny because I found out that an extra newline is needed the hard way
LOL okay this doesn't like me. I just tried out the splitter and now the lore is entirely gone.
for some reason it doesn't add the last component if it's not there lol
lmao
rip
I think LP has its own impl too, it's a bit different
I wonder if it didn't split it because it doesn't contain a Component.newLine()
I'll try it.
Oh that still won't work because it's never a new line component, it's always still \n
Even tried adding in a replacetext on \n to new line 
SERIALIZER.serialize(component).split("\n") lol
oh. my poor laptop. I went to compile something while in a google meet with a live on youtube opened. and it is bad
anyone know if there's like a math formula to calculate the multiplying of n numbers from 1 to n. I know the one for sum n * (n + 1) / 2 but idk if there is one for this. if not a loop it is.
a factorial?
RIGHT. fuck. xD I'm stupid
don't think there's a formula for a factorial, just use a loop (or recursion), although there might be a util somewhere
yeah ty.
is logger.log(Level.FINE) not supported but bukkit?
I think it's enabled up to INFO, so DEBUG, FINE and ALL won't log
I know you can change that, I don't know how lol
stupid xml configurations
From PluginLogger setLevel(Level.ALL);
stupid bukkit
🥲 that happened to me few days ago when started adding audio to my bot. just gave up lmao. going at it again now
hi
hi
someone got a music bot that uses lavaplayer I can look at?
I mean, just look at the example in the repo
oh right. ccompletely forgot theres an example
its so fucked. I got almost everything to work, the song is loaded and its supposed to play but no sound is actually played
omg it workss
thank you @jovial warren
I messed up my audioplayersendhandler class
I messed up the can provide method.
man lavaplayer made me way more problems than it should have
If the problems extend Throwable, just catch them and suppress them like they never existed
it was throwable lmao. spent the first couple hours trying to figure out their logger. for some reason my logger was messing with theirs. also had to add my own properties file for it

then it was just me messing up a method
This is nice tbh
agreed ^^
boyss, which key opens that Generate thingy? It appears that I have been missing so much in these 2 years... 🙄
alt insert
only issue that I see is that it doesn't generate the method where your cursor is but under fields
What 2fa app do y'all use? I've been using Microsoft Authenticator, but it bugs me that the backup is somewhere hidden invisibly in OneDrive
Authy
Heard about that. Has it any downsides compared to Microsoft or Googles' authenticator apps?
idk
Authy is the best imo
it has the widget
Does it support auto-backups to OneDrive or GDrive?
I might just give it a shot, thanks for the suggestion 🙂
If it interest you, Aegis seems to be another highly-rated 2fa app.
UI looks nice and it's open source. Seems to be available on Android only tho. https://getaegis.app/
who's running haste server for paste.helpch.at?
anyone has an idea how to move everything at a subdirectory like paste.url/pastes/<key-name> with haste-server?
I think that would be handled at your web server side
@wind patio simply provide a path on your location block with the proxy pass to haste
is this feature provided by Minecraft Development plugin?
Must be
That plugin is FULL of many small qol feats
I just take advantage of like two lol
Ye
Does kotlin have non-nullable generics yet? That was suppose to be added right?
<T : Any>
oh
i was too slow D:
The new addition just makes it more concise
Ya thats what ive been doing, but wasnt there gonna be a <T!!> or something?
!! 😖
is that a thing yet?
yes, its only mentioned at the moment
Iirc they'll change that in the future i don't remember exactly though
I think it'll be T!
ah alr
kotlin bad
you meant to select gradle?
oh wait
nvm
maybe?
idk
bye
I am dkim 2.0
yes
indeed
Joe Mama
anyone know how to prevent some tasks from running when reloading gradle in IJ?
i tried making a task that would set a variable but even though i call the set variable task first, it apparently runs last
(test is when I set the variable)
but then after its done configurating project
it skips the task because it's UP-TO-DATE
same with the other task that I'm trying to prevent
anyone know of a good (maintained) API (preferably shadable?) that allows for easy creation of custom items?
instead of a janky listener setup
ohhh my gosh
it just generated an entire discord bot in ts base out of a comment
I'm crying of joy rn
it just made an entire command system
I'm freaking out
wait what
like made it well?
How can it do that? How much training was it given on that?
???
Im signed up but havent gotten it yet
can you show the generated code? I want to see lol
me too
finally {
if (resultSet != null) {
try {
resultSet.close();
} catch (final SQLException exception) {
exception.printStackTrace();
} finally {
try {
resultSet.close();
} catch (final SQLException exception) {
exception.printStackTrace();
} finally {
try {
resultSet.close();
} catch (final SQLException exception) {
exception.printStackTrace();
} finally {
try {
resultSet.close();
} catch (final SQLException exception) {
exception.printStackTrace();
} finally {
try {
resultSet.close();
} catch (final SQLException exception) {
exception.printStackTrace();
} finally {
resultSet.close();
}
}
}
}
}
}
}
I have a problem
Wdym?
Something like
<A> -> <A...>
and specifying generics would be many like
<A, B, C, D, E,...>
idk lol
What would it do?
Oh I think I get it
Like SomeClass<...>
new SomeClass<A, B, C>()?
Yeah
Wtf is this
It's doesn't even compile
Needs more ```java
try {
} catch() {
}
Needs less
Doesnt that break the whole point of arrays though 🤔
final var array = {new Object(), "", 5, 5L, new ArrayList<String>()}
Cursed array
well, ig it would be a array of objects
so nvm
still weird though
What would be the best way to schedule a task in kotlin?
The most idiomatic way is probably with coroutines
But well, I doubt you want a 1.3MB library just for that
Bukkit scheduler?
How would you even use that tho 🥲
You wont be able to use the parameterized type that you dont know for sure exists
for(* T : types) {
...
}
- -> * f = T a
How can I get the Location infront of a player by the yaw ?
I'm asking because it's some math crap I don't understand
can you elaborate more?
for example the player yaw is 45 and I want to get the location of 2 blocks forward of him
oups I'm writing in the wrong channel
sorry
e
yo
[14:42:42] [Server thread/ERROR] [me.clip.placeholderapi.PlaceholderAPIPlugin]: [PlaceholderAPI] Failed to load expansion class VaultExpansion - One of its properties is null which is not allowed!
someone knows how to repair that?
never had this before
With shadowJar, is there a way to make a method parameter of net.kyori.adventure.text.Component accept
the one from the shaded library?
what
I probably messed something up
So I am am using MiniMessage, and MiniMessage#parse is returning
io.github.fisher2911.fishcore.adventure.text.Component, but another library
requires net.kyori.adventure.text.Component
I'm depending on the plugin that has adventure shaded
when you shade and relocate a library, the classes are your own, it's basically as if you were to write it out yourself inside the project
it's like saying "well I have a class conveniently named UserManager, why can't I interchangeably use it with LuckPerms' UserManager?"
your best bet is to do some reflection bs to do: shaded component -> json -> "real" component
Would there be any way to have Adventure be downloaded if its a Spigot server, and then shared between plugins?
I would also expect issues arising from method lookups, that's gonna be something..
maybe with the library loader API? I wouldn't really know tbh, spigot does some really stupid things with classloaders per plugin and how they interact with each other
Doesn't it break maven central's tos or something?
yes
can someone help me understand why the dev used int level = false; int level; in this https://paste.helpch.at/lacoyezeli.cpp
Assigning a boolean value to a int 🤔
I see that but intellij will not allow it
I get errors on the two lines, I forked a plugin and I never can understand what goes in others heads
i guess just remove the the "int level = false;"
because then it shouldn't show any errors
but why did he want level to false?
How am i supposed to know that, ask that to the owner of the plugin?
he has not responded to anything in a year
I can comment out that line and when I get to the point of testing it will remind me what I changed
hmm
there was like 20 lines like that in code
This plugin you forked, is it a plugin open source on github or on another place or is it something you decompiled?
decompiled code wouldnt even give that XD
didnt see the mention, here it is
@humble silo also for u
wow
I dont know what any of that does, but very impressive that it does!!
Why would multiverse not teleport players if they have a passenger?
see fs as reflections
you get all commands from a package, then add em to a list, on message event using some content filtering you get the command and execute it
Well im so glad that we are celebrating the piece of software that will put us all out of jobs in 20 years! much fun
yeah
🥂
Do you not understand what I’m saying or do you not believe what I’m saying?
quick question
if im using purpur api
would I need to use build tools
and if anyone could go into a little more indepth explanation of build tools and if I should and why have it on my plugin
i would really appreciate it, pls ping me if anyone knows
what dis
No
For purpur NMS run the purpurclip jar with the install argument
Buildtools is spigot's legacy server compiler, which modern software replaced with PaperClip
anyone know what is it? 
2b2t map?
Would not be surprised
I'm using gradle with paper (which is now purpur) api
this map, I'm planning on developing a special anti-cheat
