#dev-general
1 messages ยท Page 538 of 1
alr ty :D
help me
final NodesConfiguration.FalsePermissionNodesInclusionStrategy falsePermissionNodesInclusionStrategy = this.nodesConfiguration.falsePermissionNodesInclusionStrategy();
I don't see any issue
You need to get out NOW
then you are truly doomed
โน๏ธ
Jython
๐
JNI
man i somehow just rebased from upstream without noticing
almost fucked up before pushing hhhhhhhhhh thank god it didn't let me
rebase -i to the rescue 
heh
DTF > SDF
java.time >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> java.util time
๐
Thatโs a thing in Java?
you know the DateTimeFormatterBuilder is actually on the list btw of the top 10 longest classes in the entirety of the JDK
public final class DateTimeFormatterBuilder
extends Object```
DateTimeFormatterBuilder has 31 methods, and 1 extensions.
Builder to create date-time formatters.
This allows a DateTimeFormatter to be created. All date-time formatters are created ultimately using this builder.
The basic elements of date-time can all be added:
- Value - a numeric value
- Fraction - a fractional value including the decimal place. Always use this when outputting fractions to ensure that the fraction is parsed correctly
- Text - the textual equivalent for the value
- OffsetId/Offset - the zone offset
- ZoneId - the time-zone id
- ZoneText - the name of the time-zone
- ChronologyId - the chronology id
- ChronologyText - the name of the chronology
- Literal - a text literal
- Nested and Optional - formats can be nested or made optional
In addition, any of the elements may be decorated by padding, either with spaces or any other...
This description has been shortened as it was too long.
and yes, DateTimeFormatter is the java.time equivalent of SimpleDateFormat
Damn why didnโt I know this already
stop using java.util.Date and start replacing it with java.time.LocalDateTime
ZonedDateTime ๐
lol
(>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>) = (>)
"java.time" >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> "java.util time"
useful for when your host is not in the same region as your players
Imagine not having 2 different time libraries that are the exact same just relocated with minor changes that produces each other at some point and is a complete mess
I find the temporal accessing system is really nice tbh in java.time
like the way you're meant to access the, for example, hours component of a certain temporal accessor would be to give it a temporal unit of type hours, such as ChronoUnit.HOURS
but that also allows for you to create your own temporal units
and your own temporal accessors
val betterDay = ChronoUnit("BetterDay", 72, TimeUnit.HOUR)
ChronoUnit is an enum
Arman Cekin & Faydee - Better Days (Lyrics) ft. Karra
Stream this song on Spotify: https://open.spotify.com/track/4fJBUcEiRtPI99EHO6WtrR?si=s1NobzN5TRCeEtYXiSnYpg
Submit your music: AirwaveMusicTV@gmail.com
AirwaveMusicTV - Music for your heart. ๐
Follow my Spotify playlists: http://spoti.fi/2yL5B3I
Spotify Playlists
AirwaveMusicTV Favorites...
who asked you
so you could, for example, make ticks an actual unit by implementing TemporalUnit and using it to convert a given time into ticks
and that's just amazing
๐
and that's also something you can't do with the legacy time API in java.util
you can create your own fields, units, amounts, accessors, and adjusters for your own complete time system if you want to
Oh boy! I do love reinventing the wheel now!
what
say it
Time is impure and therefore evil
YES!
lol
We need to kill time
๐
kek
freeze time
Wait s
Make it pure
I already complained elsewhere yesterday that java has DateTimeFormatter but not DurationFormatter
and it will continue to bug me
^ agree johnny
Yes sir
yeah that annoys me too
j-j-ja-java bad
They almost took everything from Java 7 joda time
except that
for whatever reason
What CSS?
yea idk
unfortunately no parsing
welp
PeriodFormatter yearsAndMonths = new PeriodFormatterBuilder()
.printZeroAlways()
.appendYears()
.appendSuffix(" year", " years")
.appendSeparator(" and ")
.printZeroRarelyLast()
.appendMonths()
.appendSuffix(" month", " months")
.toFormatter();```
this is what joda time had
you could use it as a printer and parser
I see
i missed my daily exp yesterday and lost my streak ;-;
https://i.imgur.com/8ANyM3s.png
ChatVisiblity
nice one Mojang
BlueJ
bakugan pfp ๐ฎ
I have evolved to my last form
Is that helix drago?
Fusion Dragonoid
Looks a bit more animated than I remember
pretty sure its the last form
oh
I forgot what the last season was called
mechaton invasion?
something like that
yea there were robots
something about a surge
lemme check
yeah
Battle gears and huge robots, and more huge-er robots
yeah. u seen the new season tho? I haven't. It looks like it sucks
The final battle was drago and 3 bakugan sitting on a robot and fighting a huge robot
Yea I tried watching the first episode but its absolute shit
No idea
bcz they're doing it or already done it to every good show
teen titans, bugs bunny
a lot of them
Yea they ruined yugioh too
Yu-Gi-Oh! Sevens (้โๆฏโ็SEVENS, Yลซgiล Sebunsu), stylized as Yu-Gi-Oh! SEVENฦง, is a Japanese anime series animated by Bridge. It is the sixth spin-off anime series in the Yu-Gi-Oh! franchise, following Yu-Gi-Oh! VRAINS, and commemorates the 20th anniversary of the Yu-Gi-Oh! Duel Monsters anime series.The series premiered in Japan on TV Tokyo on Ap...
It changed the whole damn game
Now there are rush duels
haven't seen yugioh at all
ah
to young to remember. I Just remember having a lot of those card
there was a dragon or whatever that was pretty good or rare that I had
don't remember the name xD
Blue-Eyes White Dragon
might be. not sure. but I remember selling it for quite a bit of money.
well for me at least it was quite a bit
That archetype is still usage in competitive somehow
They added suppourt for the new summoning mechanics
Yea those cost a lot
well it wasn't like crazy. just a few dollars probably. but for me at the time that was a lot
ah
I know people are going crazy over yugioh and pokemon cards now
I've seen a pokemon card go for like $250k
its crazy
I just played here (https://www.duelingbook.com/), barely ever had 10 cards irl
oh. I Didn't even have internet at the time lmao
This has existed for quite a long time now
atleast in a different name
it was dueling network at the beginning
Then konami sued them
but yeah also I had a lot of fake cards as well. bcz they were a lot cheaper xD
and they re-released after a year as dueling book
it was the same with bakugan
yea xD
a lot of drama in #placeholder-api Ic
I think it was 1.12 or 1.13.
1.13 I think
Sounds right.
Yeah cuz all the magic numbers got removed in 1 13
Yeah
https://i.imgur.com/Jai3MCw.png
groooooooooooooooooooooooooooovy
whyyyyyyyyyy
D:
tempting me to switch to kts
?
const-string v21, "log-tag"
const-string v22, "Test logging"
invoke-static/range {v21 .. v22}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
It doesnt seem to log
But If I use a register used by another variable after this, it crashes there, so its running it, but skipping this for some reason
Even if not mc related i mean being able to do
compileOnly(
"first",
"second",
"etc"
)
:relieved:
listOf(
"first",
"second",
"etc"
).forEach { compileOnly(it) }
:kekw:
Verbose ๐ฉ
When Gradle Java DSL becomes a thing, then we'll talk about verbosity
func a b c tho
I think i wrote something like that in here before, it was beautiful
๐
public class GradleBuild {
@Override
public void repositories(RepositoryManager repositoryManager) {
dependencyManager.maven(maven -> {
maven.add("url");
});
}
@Override
public void dependencies(DependencyManager dependencyManager) {
dependencyManager.add("implementation", "org.something:artifact:version");
}
}
lol
Shhhh
gradle.lang.Object
just let it happen
Java's Script language, not to be confused with JavaScript
Jvs
Didn't ask
๐ ๐
Yayyy so not the only one doing this?

A new Minecraft snapshot is out: 1.17.1-pre2
:pogchamp:
Deaths of named mobs are now logged
uh okay
the random feature we all have been waiting for 
game changing really
Mojang fixed books in pre2 ๐
o?
They added a limit on the max pages to fix some exploits.
Probably for a good reason.
smh
i do hate linux sometimes 
no you dont
Speaking of Linux
Today on "Excuses on why I do stupid shit yet I do not bother"
https://media.discordapp.net/attachments/540075891837894686/859453062351683614/unknown.png
Can someone explain reflection? I thought I understood it but now I'm getting told that to use this on multiple version I need to use reflection?
net.minecraft.server.v1_8_R3.ItemStack nmsItem = CraftItemStack.asNMSCopy(item);
You don't need to use reflection, it kinda helps in some cases
You can also create modules for specific versions, which is easier than reflection
Also
Reflection is an API which is used to examine or modify the behavior of methods, classes, interfaces at runtime.
modify lmao
It is right though, for example changing a field/method's access could be considered modification
because we can do nms.version.ItemStack nmsItem = nms.version.CraftItemStack.asNMSCopy(item);
not really that
but
it's the idea
in that it works across every version
And it breaks on 1.17 ๐
This is the same as this though? net.minecraft.server.v1_8_R3.ItemStack nmsItem = CraftItemStack.asNMSCopy(item);
First nms then version?
Okay
You'd do things like Class.forName("net.minecraft.server." + version + ".ItemStack") then work with Objects and suffering
how do I Learn to swim
the point of reflection is that version can be ANYTHING
while in the middle of the ocean?
And suffering? Doesn't sound good
It isn't
well
Can it be an Egyptian?
that's what development is in general
a lot of pain and suffering
and in the end you realise it was all for a missing character or something like that
Enjoy the joys of reflection
try it and see
You made custom classes and enums for this though
Like ServerVersion
What?
Those are for getting the current version the server is running
Can you by any chance send the ServerVersion class? lol
I think I know how you'd make it
But it would take a lot of time
It's basically just this
public static final String PACKAGE_NAME = Bukkit.getServer().getClass().getPackage().getName();
public static final String NMS_VERSION = PACKAGE_NAME.substring(PACKAGE_NAME.lastIndexOf('.') + 1);
public static final ServerVersion CURRENT_VERSION = ServerVersion.getByNmsName(NMS_VERSION);
But ServerVersion is also an enum?
Yeah
Yeah ik, good to have though
Also I forgot what the numbers in the parentheses in enums means?
/**
* Main constructor that defines a protocol version representing NX where N is the main version and X is the R version
* For example NX - 81 - 8_R1
*
* @param versionNumber The protocol version
*/```
Ahhh
If I got three classes like this and the bottom two implements the interface, then when I need them should I just get the interface through the constructor and then make getters from the interface?
That gets the two other classes
Or should I get them individually through the constructor
btw next time #development :))
Oh shoot yeah sry
lol
dkim. want to play?
I evolved
im slowly changing it
yes i do its painful
is it possible to combine a .jar and its config into just 1 .jar?
What
no need to ping wise guy
but what ide do u use if I may ask
and what build automation tool
like maven/gradle
uh do you know any guides how to do that?
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
I guess youtube could be a viable option
best api for creating a java / kt - preferable kt - windows ui?
Probably JavaFx, you could also try something like JCEF which you can basically do something like discord a browser running an app
what is this https://github.com/JetBrains/compose-jb
Jetpack Compose for Desktop and Web, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
Compose Kotlin UI framework port for desktop platforms (macOS, Linux, Windows), components outside of the core Compose repository at https://android.googlesource.com/platform/frameworks/support.
ahh
Hi, anyone knows why this happens?
I try to connect to the prelobby but it says this..
Internal Exception: io.netty.handler.codec.DecoderException: java.io.IOException: Bad packet id 63
Probably #minecraft makes more sense
Sorry, and thanks.
Omg, this would be such an amazing feature (this would be on any object even without a companion)
If anyone wants you can vote on it here to be added https://blog.jetbrains.com/kotlin/2021/06/kotlin-features-survey-edition-2/?utm_source=twitter&utm_medium=social&utm_campaign=features-survey
@frail glade I think you were the one asking for this as well ๐
@jovial warren ๐
@prisma wave ๐
Jesus there is a feature for everyone lmao
Thatโs been out for a while though right?
Nope, Kotlin doesn't have that, only and, or, shl, shr etc
Oh yeah, but this is the official survey so this time they'll definitely work on it if we vote enough
Oh ic
Ayy one for @cinder flare as well
I know you've been wanting this
Tuples look nice
Well Java has been doing pretty good past few years, the issue is that they idled for so long
Nowhere near kotlin when it comes to dev qol stuff
That's true yeah, Kotlin releases new features very often
Oh man this one would be great too
what would that do?
Basically the private property is mutable the public one isn't
So you don't expose the list for modification
Ah
I like most of this but can only choose 3 ๐ฉ
Oracle ๐ฎ
pick union types definitely
I have static extensions and collection literals so far, i might go for that yeah, but tuples looking good too
static extensions?
Have you ever wanted to do something like:
Player.something()
Like an static method as an extension, it's not possible for Java objects, you can for Kotlin though like
fun String.companion.something()
This feature would allow it to work for Java's as well
Go vote dkim
Vote for trump daddy
vote for what?
Recount the votes
The featues
oh
Stop the votes!
mhm
Tromp
This ^
can i just vote for everything
Hey thatโs not trump
:))
Only 3 ๐ข
If you have enough emails sure
why-
What?
wait it requires an email?
default = package private
No lol
What default are you talking about?
i
Give me an example
uhhhhhhhhhhh
Java needs internal access modifier, like pleasee
Honestly though
And also some sort of way to define accessibility rules idk
nvm i just had to kill it in task mgr
Jigsaw ๐คก
Lmfao
YES
BRING BACK @CheckReturnValue
So many cool features and you go for that ๐ฉ
You canโt use reflection prolly? Iโm guessing
lol
Public for module, private for outside of module
Classic dkim moment
Sounds a whole lot like something you would use jigsaw for
Like legitimately
Yes but internal fun something instead of a bunch of complex shit
When is jigsaw arriving as preview tho? Java 18?
Jigsaw has been out since Java 9
Uh..
Oh
Yeah lol
lmfao
What the fuck
It sucks though, no one uses it
Have you heard about the Jigsaw project with the Java 16 shit
Wait do I mix it up with valhalla
Yeah but IMO defining whole packages/"sectors" as internal makes more sense (e.g. an API impl)
Than just a single method or class
I mean yeah I guess both have advantages and disadvantages but i still prefer the access modifier declared in the class
Is jigsaw the module-info thing or no?
Yeah
Yes
Yes
Valhalla is the big one with the cool features
Thank you wise persons
ez
Iโm lagging in real life
what
Iโm in Idaho
Sxtanna has been waiting for this feature for so many years
The celluar here is barely existent
How unfortunate
๐
Lagging irl lmao
Yes
Basically this
companion const val hello = ""
As like
public static final String hello = ""
Instead of
companion object {
const val hello = ""
}
Oh yeah didnโt they make a petition for that
Driving to Yellowstone
He did yeah, I think it is still on the kotlin feedback forum
When writing Kotlin code it becomes a pain to constantly create entire code blocks just for a single function; ex. companion object { fun something() : Int { return 1 + 1; } } Could a more concise syntax for this be allocated? ex. companion fun something() : Int { return 1 + 1; } This would really help clean up a lo...
๐
Are there any plugins I should try making just for improvement in development?
For fun too
๐
Fabric is all good and that except for that it fucked my ass this once
That's a good thing, if it asked for consent first
No it didnโt definitively
But itโs good since it doesnโt crash my ide as opposed to a certain other project
:oof:
How's FJ @cinder flare? We got bungee yet?
Have it run on bungee with no bridge plugins needed
Like announce on all servers?
That as well, but the plugin should only need to be on the proxy to work, instead of individual servers
ABOUT RUDDY TIME
I don't understand what you mean by on the proxy
Not sure how feasible that is since events be fucky wucky but yea gl
maybe I could setup RedisBungee
so youre telling him to use plugin messaging :3
good start i guess lol
making the bridge is so simple i wouldnt ๐
yeah but I hear plugin messaging is doodoo
exactly
ya so redisbungee
more like redis with bungee instead of using redisbungee xdd
well someone is remaking it Im pretty sure
remaking what?
does that allow you to just share a redis basically?
redisbungee
someone forked it
eh thats whatever you wont really learn any redis
which will be useful
in the future prolly
true true
why so hesitant on just messing around with redis?
i mean im not
a plugin i'm maintaining used a redisbungee thing so I figured it'd be more useful
Fuck no
If you do go that route, use RabbitMQ or some shit like that
lol thank god
is it the same plugin youre working on or a different?
id just use redisson its ez
okay ill look it up
But then again, that's not at all what I was suggesting at
i have no idea what that means
or is that like publisher and subscriber or something
yea it is
i have no idea what you're talking about man
yea as well how do you expect him to do it?
Just throw the entire thing onto a proxy and have it handle subservers without needing the plugin on them
so just send the message to the server?
Yes? You can do that on the proxy side of things
Why would you need a messaging system to send some join messages lmao
I mean it doesn't harm to have it on the proxy
how is it gonna know about the disconnects tho
Wdym?
wait does frozenjoin only do joins
:bruh:
"contributor"
i thought it was join and leave ngl
tryina do what frosty never could for his own join plugin ๐ฅฒ
how bout LearnRedisInNewProjectBeforeAddingIntoAlreadyFuckedWithOne
Just name it "Leave Message Plugin WITH GRADIENT SUPPORT 1.17+ !!!" and drop it in spigotmc.org lmao
I'll call it RawMsg MF @pallid gale

Hi ! I would like to use the Has item requirement with an item that has a specific name, what can I do?
in deluxemenus
I would personally use the CheckItem expansion as that allows you to check for a lot of things including item name
damnit blitz I waited explicitly for your answer ๐ฅฒ
well I Was waiting for you to say it
since I saw you type beforem e
lmao
before me*
ya but then I saw you typing and stopped ๐ฅฒ
yeah. if I open the typing box it says I'm typing but wasn't actually typing
awe sheeesh
also @quiet depot the PAPI github CI build tries to build for Java 16 but PAPI is still on Gradle 6.7 something so it can't ๐ฅฒ
um star
Starmism
You probably should rebase that to developement
what's up
Your PR to developement branch is from the master branch
git rebranch
cause it goes to the development branch of the remote

git rebase <hash>
Yes, you can do it though ij's ui tho
oh how
under VCS-> Git -> Rebase
Oh I dont think rebase will do here, since you're still on the master branch so all changes on master would be moved
reset should be it
reset to a commit?
Thinking, that would still have issues
what do you want to do
move 3 commits from master branch to development branch
Move his commit to dev branch
how to
I think he means just moving the changes over manually
even cherry pick is kinda wonky, but it's better than rebase
well there is a little thing called cherry pick
no, I mean cherry pick
but it just said it was already done
oh
or do I go to the other branch and cherry pick it over
ah I seeee
johnny big smart tyvm
how do i close minecraft?????
open task manager
yes
close javaw
ogm tysm i can now live
ugh. does it not close when you restart pc? xD
@boreal needle maybe luwucy

yo @quiet depot any chance you know how to disable mouse wheel click working as a paste and I think a copy as well
because it annoys the f out of me. I try to close something in IJ and I Missclick and it just randomly pastes a method I Never knew I copied
oh I wonder if its the clipboard thingy
nope its not
๐ข
yeah. so when I select text and wheel click, it just copies it and then wheel click again, it pastes whatever I had copied
why u wheel clicking in the first place
what
with middle click you don't have to click the X to close a tab
you can click anywhere on the tab
works fine for me
talking about these tabs
i have this addon though https://chrome.google.com/webstore/detail/autoscroll/occjjkgifpmdgodlplnacmkejpdionan
ya I've clicked the x my whole life
idk if that makes a difference
with middle click I can click anywhere on that tab. IF I left click, I have to click on the X
same in browser
I use Firefox
sounds like a you problem
imagine
I've checked them. Will wait for ubuntu hideout to answer
and no
apparently its a thing for everyone that uses ubuntu
and I could disable it with the tools app but I Don't want to install it xD
its funny. everyone wanted me to switch to linux so bad, recommended me KDE Plasman and when I Switched people want me to use some Arch bullshit or whatever
yikes
๐
plasma is the de ๐ฅด
no
What?
ubuntu bad
leave me alone please or I'll switch back to windows
I mean, go ahead of you want to lol
just leave me alone. I'm suffering enough
xD
wtf
i have close tab bound to Ctrl W
like in chrome
what if you want to close other tabs
u move thru the tabs
and close the one you want
I guess
but yeah you're the weird one Star not me
life is pain
whatevs
Today I learnt java's twitter account does not know method expressions exist
idk
dou mean method reference my dood
yeah whatever

same thing
anyway
in other news they sent this
sir that map(name -> name.toUpperCase()) could very easily be map(String::toUpperCase)
Well that entire thing would do nothing for me
import Control.Monad
main = do
mapM putStrLn $ map (++ " " ) $ map toUpperCase friends
putStrLn ""
``` ๐
some people strongly dislike method references
weird
because theyโre ambiguous
kaliber we must not question it actually
some people use allman and think its clean
wdym?
ori i must question you then
Control.Monad
i dont like too many lines in my code 
yeah how are they ambigious, u know what the stream is
@old wyvern propose that you didnโt know map accepted a function
then you're a cretin
sounds like its their problem since you dont know that
itโd be impossible to know if we were passing a value into #toUpperCase or not not
itโd be impossible to know if it was returning a value or not
once again, sounds like a them problem
^
i hate developer twitter
i however very much like method references
we do a little functional abstraction
because i know how map works
its flooded with the 3 languages i dislike the most
you shouldn't need to know
- java
- kotlin
- java
no
yes
its flooded with JS, HTML & CSS
yews
they all equally bore me 
JS bad
:smil:
I can tolerate JS if its nodejs but that is strictly it
if you want something exciting, you should try

i dont think i will jessica
the entire of computer programming topic on twitter is literally flooded with js, html, css and github copilot
what is 100 days of code
i have no clue
learn all of them in 100 days ๐
wtf i love jessica now???
The Official Website for the Challenge
this is the best twitter account ever
why is learn to code after all the learn โshitty fp langโ statements
ig she doesnโt consider fp languages as coding
Java bad
she retweeted her own tweet 
if it's so easy why don't you do it
๐
like her entire page is just
Fixed that for you.
yes
๐ฅฒ
okay im gonna write something and i wanna know how bad of an idea it is
fixed that for you
๐ฅฒ
๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐
Give me 2 days, my professor is shouting at me to finish this project
/shout YUGI!!! FINISH THE PROJECT!
๐ข
well actually
how to disable useless paper jvm checker
okay this isnt the most recent code however
how bad of an idea is it to do the wihle loop in another while loop for sql
delete paper, switch to MineHraft!!
i know this very likely isnt kotlin however
I will see I kind of prefer java's alternative if (boolean) value else value2
It is
smh ori
i thought id just put that out there, boolean ? value : value2 is a lot better than kotlin's if (boolean) value else value2

yeah I like it too
but its not a thing ๐ข
in kotlin I mean
which is sad I MEAN
it gets messy
mean*
i know but i like minimal lines possible
bruh
aint it TriumphGUI now
if (cond) a else b
Maybe, I don't think I've used the ternary operator that often, like only once or twice it gets too messy
same thing but yeah
i feel like a nerrddddddddd when I use if (cond) a else b
nothing like some good
if a then if b then if c then d else e else f else g
I actually used if a else b but people bullied me for it
don't remember who it was
bcz they want
if a return, b ๐
if () {
a
} else {
b
}``` ...
๐
how do i get the intellij tabs back
like
git and things
they have disappeared
i fixed it
u can move all that shit around
so much of ij's ui is customizable
i used to put custom buttons on my ij toolbar to start my server and build my plugins and shit
before I realised keybinds are just so much easier
why is this on the left now
oh thats gross
would h2 be a good replacement for sqlite?
Gaby itโs faster I believe ?
ยฏ_(ใ)_/ยฏ
ya what the build stuff goes on the right
that's scary BM did you update versions or something
NO SIR
Unpopular opinion:
JavaScript is a nearly perfect language. TypeScript makes it perfect.
okay what
๐คฃ
Yes
Neat
How the heck
// compile elara to jvm
[CoPilot Generating...]
The dream...
๐ ๐ฅฒ ๐ฅฒ ๐ฅฒ
@ocean quartz is the truimph gradle plugin published?
Yeah
Is there any docs or examples?
Also, does it work with groovy fine or should I use kts?
Not yet, basically all you need is:
For the dependency extensions import dev.triumphteam.helper.*
Then you can use paper("version") etc
For the plugin.yml feature just add the bukkit expansion and add anything inside it (can't be empty since it's the only way to detect you actually want to use it ๐ฉ)
Like
bukkit {
description = "Hello"
}
Then mark your plugin main with @BukkitMain
And some features work on groovy, like very basic plugin.yml (commands and permissions don't work)
The extensions don't work though'
ahh alrigthy
Iirc h2 has it's own set of issues that make it a poor choice of default, but I cant remember what those issues were
Welp
Though with that being said, h2 is luckperms default
Thats why I took it in consideration
Windows broke ๐ท
lol
I know lp uses partly because of speed gaby
What does Player#updateInventory() actually do? Because I can add items without updating inv?
void updateInventory()```
Forces an update of the player's entire inventory.
yeah well h2 is more aimed to be an in memory db (also why its fast) if I am correct, but have you asked lucko?
About?
why their default choice is h2
Can MetaData be used just like NBT for entities? Or rather, should it?
I was thinking of using FixedMetadataValue()
@steel heart probably because it is the only that doesnt require a server
So what about sqlite or flat files
Sqlite doesn't require server either
why
Well I dont want a file (json or anything)
Did you ask them? I will do that for you else wise
Returns the largest element or**ย nullย if there are no elements.**
Probably this
No I did not, I can barely use the discord today, stupid bugs
Well by looking at kt functions, I see that doX() (eg first()) return a value or throw an exception if none was found
And maybe throwing an error for something like max() is not worth idk
inconsistent
ikr
Something that throws and returns null be like
getAsyncValueOrAbortWithExecutionExceptionOrNullIfAbsent()
"no runtime exceptions"
๐
elara will fix this
Lol
legit
it can't, it is not persistent and in fact it is quite volatile !!
for instance, if I add a metadata value to an ItemStack in my inventory, it will not be there anymore when I drop it to the ground
Oh lol, just can't figure out how to use NBT for entities
tl;dr idek why it exists in the first place
Working on updating BannerBoard to 1.17 right now and holy crap I can see why this dude said he didn't have the time for it.
I took a peak at it earlier and was like nope
link ๐ฎ
This, Kali
What...
and thats enough looking for me
Lmao
due to a lack of knowledge about the updates
meanwhile, spigot-api stays about the same for years
I think I'm down to one of the last things. My current wall is WorldMap went from a public constructor to a private and requires more data now in 1.17.
https://github.com/darbyjack/BannerBoard-free/commit/f87e9b6f87be0d6a91e21a1e8d06d7d963dd49e6
There's the last 3 hours of my life.
If anyone wants to give it a go, this is the class I'm stuck on. https://github.com/darbyjack/BannerBoard-free/blob/1.17/src/main/java/me/bigteddy98/bannerboard/Mapping.java. Need to find a way to invoke a new world map given the data we have, which, is apparently just a string.
A better question might be, given reflection, how would you properly call a method that returns the class initial object type and pass in args to that kind of constructing method?
Ikr
I'm such a hard worker
How can I get the real yaw? I mean from 180 to -180
oh boy :^)
?
is xmaterials a bit weird or is that just me?
bukkit is kinda very shitty when it comes to that lol
bukkit is kinda very shitty when it comes to everything*
And how I could do that? xd
Meth probably. And that's not a spelling error
the what
Use modulo of 360
I have a material name and data
and the plugin is suppose to work on 1.12-1.17
how do I make this work with xmaterials ๐ฅฒ
bcz there's no way to give it a material/string and data
what I'm trying to do basically is make SKULL_ITEM:# work on 1.13+ as well
Methamphetamine?
or the other way around if possible PLAYER_HEAD on 1.12
yeah
xD
guess I'll move to #development bcz there's rules I Need to follow smh.
smh my head
So here's the problem Yugi. I need (with reflection) to I obtain the a method that returns a static WorldMap object. The problem is I think Java is getting confused because md_5 stripped his mappings so there's like 4 or 5 different a in the class.
So you want to find a method that has the exact parameters you need?
Correct and I used the getDeclaredMethod on it and passed in int, byte, resourcekey and it complains that's not a valid one.
I like using methodhandles lookup
final Lookup lookup = MethodHandles.lookup();
final Class<?> clazz = lookup.findClass("TheClass");
final Method method = clazz.getMethod("a", int.class, byte.class, resourceKeyClass);
Can you tell me which method and class? I can try it out too
Is it this one?
Yeah
ah so its just the parameters are different
@frail glade Seems like I got it
we always knew u've got it Matt
val lookup = MethodHandles.lookup()
val clazz = lookup.findClass("net.minecraft.world.level.saveddata.maps.WorldMap")
val method = clazz.getMethod("a", Byte::class.java, Boolean::class.java, ResourceKey::class.java) // You'd do the resourcekey with reflection though
println(method)


