#dev-general
1 messages ยท Page 26 of 1
let me see
u mean in config.yml?
check_updates: true
legacy_hex: false
papi_chat: false
format_chat:
enabled: false
format: '{deluxetags_tag} <%1$s> %2$s'
load_tag_on_join: true
... [Below is gui things]```
which one do u mean ya?
the conditionalevents event your making
should only activate on first join
of a player
owh yaya
its fixed , now one more thing is, how to disabled showing me the identifier when i do /tags list, cuz it everytime show me example: [DeluxeTags], member: [Member] i just want it show me the [DeluxeTags] only, is that possible?
asdf
doesnt look like you can do that
I cant wait to get a dev job lmao https://vm.tiktxk.com/ZGJm6mQf5/
In real-world businesses, developers donโt get production access tho ๐
Most typically, anyway
they do in smaller companies with not much or non existant qa
Tbf, then taking production down isnโt as big of an issue ๐
yup
Bigger fear is pushing to wrong code to production, that is either not supposed to be released yet or breaks stuff
Or not enough tests ๐
You can never test enough, users always find a way to break shit
Thatโs so true ๐ Iโll admit, over a year ago I thought tests were silly and pointless. Then in Jan last year I realised how useful they were, now I canโt add enough of them ๐
But itโs so true like you say, users always find edge cases
Users are the edge case
An app without bugs usually means it was not tested enough ๐คฃ
Can someone help me? My server lags extremely all the time, sometimes commands only react after 1-2 seconds.. The TPS are constantly at 20... I would appreciate any help!! https://spark.lucko.me/023fZi2RIh
hmmm
wait @quiet galleon so the server lags even though it's 20 tps?
that might be a ping issue then - either the server isn't performing well enough to handle all of the players or the network itself is too far or not good enough
although in spark it says the max ping is 122 so idk ๐ค
yep
The server is hosted in Germany, Frankfurt. This is actually the perfect location for me.
thats weird D:
what kind of lag are you experiencing?
which commands
if it's only a particular plugin's commands then it might be the fault of the plugin and not the server at large
I think all xD
All players are lagging while running but fr everything is laggy
is the networking fine
protocollib is also taking up 8% of the tick so if packets are being spammed and the cpu isn't fast enough, that can cause packet delay
Does anyone have that image with each server implementation and its forks?
no I do not
this?
Yes, thank you
apparently this one is more updated
https://luminescent.dev/forks/ pulled from this
thanks
Weird that spark is just there lol
look at the line color
Mods / Plugins
just like Alt Current which is a fabric mod iirc
Doesn't make it less weird, you're just explaining the color code
๐
Hot
also i'm pretty sure starlight existed as its own mod before paper?
Vault moved into spigot when
nah I dont think, it was posted on forge at Aug 29, 2021
Imagine spigot adding any feature what so ever, thing has been stale for years lmao
๐
The trick is you make something for them and then they host it for you.
At least that's how we got the API ๐
I'm excited to see how Hangar goes.
Have they changed their decision on premium plugins?
That's (right) before Tuinity was merged into Paper
That would probably be a Kenny question.
gotta love them kenny questions
but like, updated guidelines are in the guidelines page, lol
Well I was mostly just asking if they were even going to add a premium plugins feature
I believe they were against it for the longest time
I hope so tbh, people want to make money out of plugins
And not being able to post paper only plugins on spigot sucks - I'm aware it makes sense why you are not, but just saying
Ore was without premium resources as well, I wonder if that same ideology stuck with the fork.
Tbh we need new Vault that has support for async at least
yeah my plugin got taken down, because I had 'I recommend using paper for better performance' in the description
I recall towny dev trying to work on a vault2
yeah idk I haven't heard a ton about anything like that
this was the one I was looking into for my custom server economy
He pinged zml asking if they had input for it.
About all I got out of it
what gradle task does intellij run when you refresh gradle?
I thought it'd be a custom task but I don't understand how that'd be done without modifying the buildscript and adding a plugin
i have no idea
@ocean quartz do you know?
that's something i've wanted to know for a long time but also haven't bothered to research lol
it's funny when i run gradle from the terminal and it works just fine, but when i refresh from within intellij it says "Deprecated Gradle features were used in this build, making it incompatible with Gradle X.0."
like, wtf is intellij doing, and it always shows up regardless of version lmao
yes
it doesn't matter, that warning always shows up when refreshing gradle from intellij lol
Oh I missed that bit
Is it "sync"?
is that a task?
Doesn't seem like it
Is it just --refresh-dependencies?
that refreshes all dependencies
whereas the intellij sync just syncs gradle and intellij
If all it does is sync the project structures then I don't imagine it's a task
Ij tracks it
it syncs the entire gradle project including dependencies, tasks, etc
how?
It runs in the background you can see whats running.
Probably on the bottom of the ide
but how does it track it? as it's not a custom version of gradle
I thought it'd be a custom task but I don't understand how that'd be done without modifying the buildscript and adding a plugin
I mean the internals
it 100% does run a task
and not the "front-end" (idk what it's called in these terms since it's not a website)
it fires up the gradle daemon if it isn't already
and, well, gradle clearly does run
I did
Redundancy is key. My bad
also kinda unrelated but related but how does intellij gather all this info when running any task?
ex it shows all the tasks being run and knows when each task errors out:
https://i.imgur.com/FKYI5Kd.png
gradle has an api
ah
wait then what if intellij just uses that api to sync?
i didn't know it had an api
first image is gradle prepareKotlinBuildScriptModel
second image is syncing but in the build tab (although... takes 3s vs 217ms from just running the task so it's surely doing something else...)
anyway, dinner is more important
Version 8 of gradle has a sync task (unrelated, but thought that was notable)
https://github.com/google/linear-book-scanner
Why does this README look like a code block even though it's not wrapped in ```? (monospaced font, 12px)
ohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
I've always thought that it didn't matter if it was README or README.md
wtf pterodactyl suddenly doesn't support rar files?
tar.gz gang
has it ever lol? rar is the WinRar file format, i doubt it has native support on linux
Hey guys, quick question. So im creating some spawner stacks, and im storing all of them in a map with the location, and then the stack. Im saving them to mongodb with json so it basically just saves the whole class. The issue i have now, is everything loads back in fine except the map bc its never technically saved in the database. What would be the best way of readding them to the map?
im using this to get the spawner from the map or create a new one, so without them in the map i cant get any of the saved ones.
return stacks.computeIfAbsent(location, k -> new SpawnerStack(location, type));
}
I mean, i figured i could, but that would be alot of data.
Yeah i try to stay away, but how else could i do it?
through an instance of that class (where the map and the method are)
So you are not saving anything and wondering why it is not saved? 
Ohh ok i guess i see what you're saying
Wait, i think i misunderstood you. The spawner stack is saved, the only thing not saved is the map. I didnt want to save it because i felt like that could be tedious to save it with each instance of the class as mongo cant parse the final into json
ah I now see you have the map in the SpawnersStack class, welp
idk how mongo works but if it saves the map for each SpawnersStack then you should move it to another class that handles them (and not only because of mongo, it is the best practice to have 1 class for 1 purpose)
https://i.imgur.com/ZOipgC5.png Heres how its converted into json through mongo
For my player data, i use a manager but i wasnt sure if it was needed for this.
idk what I'm looking at
Move away the map from the SpawnerStacks class and it should be fine I guess
ok thank you
also, I see you use a string for location, why don't you make some (de)serialization logic for org.bukkit.Location or whatever class you use for location?
so in code you use the location object and in database it can be saved as world.name;blockX;blockY;blockZ or even an object
I do, just mongo freaks out and causes a ton of circular referencing if i were to use the org.bukkit.Location class, so instead of having to trace that down i just save it as a string when its saved, and then deserialize it when i need it
Location can't be deserialized straightaway because of the World field and you have to tell Mongo how to deserialize it properly
it has, but apparently it was some sort of unintended feature according to github...
it had*
Hangar finally launches
Also Hangar:
When you ping 30K people... 30K people try to open it.
:surprised pikachu face:
its built for linux, adding support for rar would require more dependencies
tar.gz is much better anyways
You can use 7zip and open them without hassle
I'm excited for hanger, I've been waiting for years ๐ฉ
https://github.com/JorelAli/CommandAPI/
Found this randomly while scrolling through hangar - has anyone used this before?
ITS HUGE!
atm I don't use any command library, so if I switch to this, I could also get some nice tab completion/tooltips ๐
I have
thoughts?
It is amazing
It makes the ability to create complex commands very easy
Last time I checked tho the annotation part was pretty behind so don't use that
From what the non annotation library has
Don't use it
alr
Check out the commands for this plugin https://www.spigotmc.org/resources/giveall.83706/
Also it's OS if you want to see how they're made
I personally use LAMP instead of CommandAPI, firstly because Kotlin works afaik, its annotations work great and its small
I mean sure if you want annotations it might not be the best. Otherwise it is amazing. Also non annotation part works with kotlin
oh ty
also uses kotlin ๐ ๐คค
Kapt moment
I wonder what specific about it that doesn't work in Kotlin, 99% of the annotation from java works just fine in kotlin
Also odd choice for the command methods to be static when using annotation 
yeah thats what i was thinking too
thats probably why
cuz kotlin doesn't have static methods
and i reckon they dont use reflection because they think its so slow which it rly isnt on modern jvms
and the bottleneck of pretty much any server isnt going to be reflection so i dont see an issue with it
Ah is reflection much faster then in newer versions? I remember back for java 8 it was a huge hit
its still not insanely fast cuz it cant be jitted but its not that slow compared to what it used to be
from what ive read at least
depends, it was reimplemented based on MethodHandles, but only in Java 18
https://openjdk.org/jeps/416 contains some benchmark results
That isn't fully true at all, you can use @JvmStatic on an object method to make it static
yeah but that generates an additional static and if commandapi is built well itll still fail cuz therell still be a non static subcommand method
they couldve still achieved 0 reflection with instance methods anyway
It doesn't, that'll be exactly like Java, it won't have a non static method, only a single static one
Yes, companion works slightly different
Companion creates a separate class for the methods
If you add jvm static to it then it'll create a static method that calls the companion method, basically
private static Companion companion = new Companion();
public static myMethod() { companion.myMethod(); }
ah
Kotlin has a lot of quirks
Anyone know how the color code &#FFFFFE is somehow turns out to be rainbow but i am not sure what plugin makes it work
Do you need animation? Or a gradient?
Both
Gradient
You can try
gradient:#FFFFFF:#FFFFFF
or...
As I did today... Now
There you can create a gradient
I mean I wanted the rainbow code &#FFFFFE to work in oraxen
And animation too
Yes
So for the rainbow with the animation to work with the oraxen plug-in texture pack on
I think this is a better question to ask yourself oraxegen
Ask them where you can get the animation
They wonโt know they donโt have it only itemsadder do
I only want the animated rainbow text &#FFFFFE
Question, so im doing some custom like drops/levels with mobs so im making a custom stacking system. But my question is for the hologram above them, is it like efficient to teleport the hologram to follow them everytime they move or how should i go about that?
if your making a hologram above them, you should do a packet based one
above the head as having it riding on the entity can cause issues and it means you can customize how high it goes
I know similar things have been done before but I'm still quite happy with how this is turning out
You just need to edit a simple config file and the plugin makes a GPT prompt for the NPC
what is this api?
Sorry, i just had a chance to look into this. Should i use an API like the holo api or what>
Hey everyone,
These hackers have been infiltrating various aspects of my life, from my home to my devices. What's particularly strange is that they seem to be obsessed with making my hous smell like poop. Yes, you read that right. They've found ways to hack into my home automation system and trigger unpleasant odors to be released throughout my house. It's been a constant battle to identify and block their methods, but they keep finding new ways to sasbotage my home's olfactory environment.
But that's not the wierdest part. In their attacks, I've noticed a recurring figure that's both familiar and unsettling. It's someone who bears a striking resemblance to a notorious individual. This person is a known mass murderer, terrorist, and internet comedian. I won't mention any names, but the resemblance is uncanny.
The images and videos these hackers manipulate with their AI tools include the familiar figure, and it's sending the chills down my spine. it's like they're taunting me with the presence of this notorious individual in my own home. I can't sleep I just wonder what their genda is and why they've fixated on this me and this figure.
I've been talking all the necessary steps to secure my devices and systems. But these hackers seem to have an arsenal of tactics at their disposal. They use distrubing imagery, including cartoons and xxxxgraphic content, to add to the unsettling nature of their attacks. It's been a surreal and unsettling experience, to say the least.
I've reported these incidents to the authorotieis, but progress has been slow. I'm trying to uncover the truth behind these cyber attacks and put an end to this ordeal. If anyone has any insights, I would greatly appreciate your input.
Best,
IElytrah
@ruby dew are you ok?
as you can tell, im not
i will wait for professional scripters in HelpChat to help me
I reported to your department head
Uh, what?
i would not put it past me that wandering has been hacked
lmao you have some serious prejudice against me
help me reverse engineer the hackers that hacked my house
using papi 3
just relax or im timing you out
!ban @ruby dew
Iโm chill bro wdym
You werenโt like this
Youre coming in here spewing the most out of pocket nonsense.
Nice you donโt understand joke,this isnโt national summit not even the whitehouse is so serious
Now you can time me out donโt even care
Thx
bruh ๐
i had to check whether it was a copypasta
but it isn't
they genuinely wrote that themself
or copied it from whoever
Such genius and intellect can only come straight from the mind
finally
hey anyone there to can help me with an dev problem?
?help
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait
2 late
solved, thank you
Np
Eyo what?
Fix it
lol I randomly got a similar message that java jdk or smt is not found
but everything was fine
// Arabic
"AAFF99#" = roloc```
๐คฃ
Anyone here ever used caffeine or any other cache libraries?
Trying to find a good and easy to implement library
Caffeine is pretty easy to use. Tho I've only ever used it to cache some simple maps. I don't actually know what all the things it can do are
I need to make a library with a name related to coffee 
but then we'll say that coffee is shit and I don't think that's your intent ๐คฃ

๐
talk only good abt covfefe or else
What if we called it: Java
Use Kotlin then talk to me about Java ๐
It's not that different per se
Caffeine is a drop-in replacement for other caching libraries, such as Guava cache.
Youโd create a cache like,
Cache<String, String> cache = Caffeine.newBuilder()
.maximumSize(100) // Set the maximum number of items in the cache
.expireAfterWrite(5, TimeUnit.MINUTES) // Set the expiration time for items in the cache
.build();
Then for example usage wise,
// Add items to the cache
cache.put("key1", "value1");
cache.put("key2", "value2");
// Retrieve items from the cache
String value1 = cache.getIfPresent("key1");
System.out.println("Value for key1: " + value1);
// Remove items from the cache
cache.invalidate("key1");
You can also create a cache that uses a loader function to automatically fetch values when they are not present in the cache. By specifying closure within the build method.
I... was not expecting that. Thanks for the brief explanation
CHATGPT vibes
thanks chatg~ ๐ฅท
HAHAH it was GPT, but extracted as some of it - I didnโt know you can ask GPT
It was telling me waffle so I condensed it
Iโm surprised it tells you it was generated by it, as I took extracts rather than the entire response
Just ask it not to say that
๐งน Removed offtopic messages, stay on topic.

so im getting an issue when i do /papi reload
Ingame: https://imgur.com/a/f8BRPFn
PAPI.java: https://gist.github.com/TypicalShavonne/57cc73379ba331ff0037bddc18f44e73
Main.java: https://gist.github.com/TypicalShavonne/400e19123c3a40d921f16d214ed62495
my plugin placeholders is unable to parse
what mistake i made ?
what's the issue
it's likely the issue with the scoreboard plugin, not /papi reload
and it's #placeholder-api channel for these things.
try /papi parse <your-nick> %<your-placeholder>%
well, i tried papi parse and it doesnt parse my placeholder, so i guess it the plugin problem itself
ok thanks
So, I'm a bit lost here working with Metadata. I'm trying to store a list of ItemStacks within a blocks metadata. From what I can understand, MetadataValue can be a boolean, byte, double, float, int, long, short, & string. This is where I start to have some issues. I am not sure how to store the List of ItemStacks. Do I serialize each ItemStack then store the List as a string?
well the first question would be why and are there better options of doing what you're trying to do
You could use PDC with this https://github.com/JEFF-Media-GbR/MorePersistentDataTypes
I can't use PDC unfortunately since the blocks I am storing within do not have PDC. IE a wool block
Oh, and why. I am using the blocks as a chest essentially
Is it?
I thought it is Matt
Nah
d;jdk File#mkdirs
public boolean mkdirs()
throws SecurityException```
Creates the directory named by this abstract pathname, including any necessary but nonexistent parent directories. Note that if this operation fails it may have succeeded in creating some of the necessary parent directories.
true if and only if the directory was created, along with all necessary parent directories; false otherwise
SecurityException - If a security manager exists and its SecurityManager.checkRead(java.lang.String) method does not permit verification of the existence of the named directory and all necessary parent directories; or if the SecurityManager.checkWrite(java.lang.String) method does not permit the named directory and all necessary parent directories to be created
true if and only if the directory was created
Is there something special with this method that makes it need if and only if?
(would every other boolean method also be "returns true if and only if ..."?)
And is there a reason for it explicitly say if and only if?
ex in File#createNewFile, it does not have if and only if
so... why the inconsistency? (both docs are in the same class - File, so I feel like it should be consistent)
NIO API my beloved
well, it doesn't say it explicitly in the Returns description, but it does say it in the method desc and it kinda carries over
creates a new, empty file [...] if and only if a file with this name does not yet exist.
trueif the named file does not exist and was successfully created
ohh
okay I didn't know if File had something else that made it not have it
Oh so realistically you could run #createNewFile without the need to first check if the file exists or not? Thatโs pretty neat
https://i.imgur.com/JKpOs4B.png
Is anyone else's wakatime broken?
Yeah. It seems like it hasn't registered the past 9 days at all or something
What the heck is wakatine
it is like a work tracking tool or something like that. It can integrate with many many IDEs and lets you know how much time you've spent on a specific project for example
Ha
there's also a browser extension
but not really useful for me since I always keep it open, so always counting time using it
yeah. it has integrations with a bunch of apps not just IDEs
they have 82 officially supported apps and also some integrations
with stuff like github, google calendar, etc
the github stuff never worked for me
you saw nothing
๐
Jwt
What's funny is I didn't even see it
lol
Hehe you wanna talk about it? 
no ๐
Uhm soooo, kinda publishing a library to github (my first) and I am pretty sure there are better ways to either structure it or overall code it, either way, if anyone could check it out and give feedback accordingly, would appreciate it! https://github.com/xMrAfonso/Hangar4J
(Also, don't bully me for my very bad coding xD)
are you going to upload this to a maven repo?
lombok ๐
lombok ๐
Wth afonso
I said to not bully me lol
eh once it's something decent, but I can see I need to remove lombok lol
Thanks for you feedback, I will redirect it to costumer service right away!
Should have thought about that before you decided to use lombok smh
Yup
Why dont you use records for immutable classes and POJO for the rest like a normal person
And if you are lazy to type the getters and setters manually, use ALT + Insert ๐
fun fact, we use lombok ๐
I'm sorry to hear that

honestly with the scale of the product we've never had any issues with it
Uhm, cause uhm...
Will change it......
so record for HangarClient and Pojo for the rest right?
aren't records supposed to be POJOs?
aren't they different?
hmm
unless im misunderstanding what POJO is
Pojo usually implies mutable
Now apply that to everything
Plain Old Java Object
Eh, can someone check if it's gud now? lol https://github.com/xMrAfonso/Hangar4J
Although I still find the way I did the requesting quite sketchy
lol
why are all the fields package private
Donation, HangarProject etc. can be records
yeah
so technically everything can be a record
umm
Am I right on assuming making HangarClient class a record too?
Pretty much 99% of the serializable data classes we use are immutable
Records would be the right call here if using Java
i probably wouldnt, theyre more for data oriented classes
here's the thing, there isn't anything mutable in it...
actually, there is one thing lol which is the jwt
Any thoughts on the way I am doing the requests? Any better known ways?
Yeah but now you have a client thay will print the api key if tostringed
fair point
I love serializable data classes, makes this stuff so much easier
@Serializable
public data class Example(public val name: String)
// Ktor
val example = get<Example>("path")
println(example) // Example(Matt)
// Retrofit
@GET("path")
public fun getExample(): Call<Example>
println(client.getExample().body()) // Example(Matt)
Lovely
Sealed classes are a blessing as well
Absolutely love them too
gson.fromJson(response.body(), HangarVersions.class) would this still work even if HangarVersions is a record?
Yes
It doesn't matter what they use to serialize, as long as what you use to deserialize matches
uhm after switching to records be like, might have missed smt... hmm
Yes!
Yeah something's def. wrong, but no idea what... api key I right, this only happened after switching to records
might just use POJO ngl
Hmm interesting, seems like the issue is the fact fields are static in records
do you mean final?
fields are not static in records lol
damn you summoned a second emily
@crude cloud Hello 
:c
hi
then IJ is sus then...
lol
uhhh...
it says "make"
Thatโs not how you define record fields lol
do you know how records work
they go in the parens
do you know what the word "make" means
calm down fellas ๐คฃ
I should probably go back to java classes cause I def. don't recall how records work lol
Or you can take the opportunity to learn them
Same syntax as kt data class
the fields are defined inside Class(...), it probably tells you to make it static because it is outside the constructor
Except you need the ugly {}
OH fk....
considering they just learned they exist, I'd say no
Youโre right we should remove braces entirely
Yeah
hell I am both stupid and embarrassed lol
It's fine, that's part of learning, everyone makes mistakes when learning
not as bad you should feel about using ๐ถ๏ธ though
tbh only saw records once, in theory at school, never used it again or saw it lol
using no nolombok
hi
so this, I assume after several fields/params you can just stack them on top of each other, or is there a more fancy way?
oh, sorry, hi Emili ๐
a
yeah idm how you arrange them
hmm okay, would that be all the issues in my code?
for now at least 
Now attach a @Getter on top of a record 
@NoLombok
feels bullied
Although will try to do some clean up in HangarClient and also in the request handling, feels clunky and lacks error handling
Although returning null already says pretty much everything lol
Now only thing missing is the exciting part, documenting ๐
U need to specify java ver in jitpack config
no
can u show url of build log?
rip
have u fixed it yet?
nop, at school rn, did some searching on stackoverflow but from what I saw, nothing worked
i think you just need a publication
wouldn't make sense, jitpack allows you to get from commits, etc...
https://jitpack.io/com/github/xMrAfonso/Hangar4J/1.0.0/build.log even with a 1.0.0 existing
no like a maven-publish publication https://docs.gradle.org/current/userguide/publishing_maven.html#publishing_maven:publications
yes
u can leave out the group id, artifact id and version tho cuz theyll default to whatever the gradle project has set
but that's for maven central no?
yeah works, ty :3
is possible to move a personal project to an org on github?
Yup, transfer
There's no transfer
weird I see it
Yeah because I said project not repository.
Oh, by project I assumed you meant like, a "project" - seems not then
can anyone point me in the right direction as im struggling to find how to fix this error
error: https://pastebin.com/0B92aZFt
code: https://gist.github.com/Twi5TeD/d154984ae25f3eb0182888d4b2b2b2dd
you're reading an empty file
the file is not empty though
had others having Unexpected character (d) at position 4500. aswell
WARN Unexpected token VALUE(3) at position 23500.
Call me crazy but I am using a CMS for my discord bot lol
Okay, you're crazy
sus
what is CMS?
content management system maybe
Call Me Skevin
Hello Skevin how are you today
Caress My Supple (Nose)
Anyone?
It could be that the userdata.json in question is empty or not a valid JSON string.
You aren't closing the FileReaders, this can cause issues in the long run; I'd suggest using try-with-resources when using readers/writers/streams, like
JSONArray players;
try (FileReader reader = new FileReader(storagePath)) {
players = parser.parse(reader);
}
The same with writers, the twr will close the reader/writer for you, so you don't have to call .close() explicitly (which also means you won't forget to close them, leaking resources leading to issues like this)
See:
https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html
https://www.baeldung.com/java-try-with-resources
Hmm. Is it normal to not be able to use wget to download plugins from spigot? I can definitely download it while in an incognito tab (not logged into spigot) but when I try wget, it gives me 403
yes
why tho?
because md5 is anti api
I see ๐ญ
he doesn't like people using his platform from automated tools/scripts etc
thats why there are no verify bots
because he's stupid
this sucks. to download a plugin on my vps now I have to open a browser locally, download the plugin from the ui, scp it into my vps which also requires my key pasphrase
yes it sucks
Should solve it โฌ๏ธ
I mean if I ever want to have a script or something, this plugin won't solve the issue either way. for now i've done it manually as I don't expect to download any other plugins any time soon
and for plugins such as luckperms and essentials I download them directly from their jenkins or whatever else they use
LuckPerms/metadata-api ๐
Or use Spiget
Is there better way to store data? Than using json
U might have found it by now but there's spiget
Super good
can i connect CMI instead of essentials? https://www.spigotmc.org/resources/guilds-30-sale.66176/
What kind of database though?
If you're wanting to use Json, Mongo would be a good choice.
Otherwise something like sql would probably work fine.
it doesnt depend on essentials?
which means if your talking about an economy plugin then more then likely yes
also #general-plugins
for future reference
If anybody here has some experience with R&D/finance/pricing strategies I could use your help pricing my server
Could anyone give me some feedback on this readme? (AKA everything that needs to be present, is present, etc? https://paste.helpch.at/domafitolo.pl
add javadocs link (https://docs.jitpack.io/#javadoc-publishing)
and also format it
Will do, also doing some extra improvements like returning CompletableFutures instead of the objects and let the dev decide if he wants to block the thread or not

uhm any reason why intellij wouldn't let me add the nullable annotation to a method? AKA its red, unable to import anything.
(cant share example, on my phone rn)
Did you add the jetbrains annotations dependency?
@pastel imp
https://paste.helpch.at/epabepojuc.typescript
https://paste.helpch.at/tagajokesi.java
Can't figure out what is wrong errors are:
Multiple markers at this line
- Cannot make a static reference to the non-static method getItemConfig(ItemStack) from the
type Config
- ItemConfig cannot be resolved to a type
anyone wants to help?
what is the ItemConfig class
this should really be in #development
but whatever your ItemConfig class is, it isn't imported in the plugin
Secondly, Config#save is not a method defined on your config class
in your main class, you're trying to reference a method that doesn't exist
Can I dm you rq
sure
My understanding of js might be low, but how can you not love 20 config files? I know some of them are different kind of files, but you got the idea 
there are 7 separate programs at least configured in those files lol
Yeah that was a bad example - smh me
and to be fair, the eslint, typescript, and prettier stuff is only for dev
idk what cliff is, but the lintstagedrc thing also looks to be dev
plus the gitignore i suppose
yeah not a lot of actual application config happening in those files lol
๐ kinda forgot
(thanks)
lmao
Mojo is a new LLVM programming language designed as a superset of Python with the low-level performance of C. It is optimized to run on GPUs with CUDA and other exotic hardware for deep learning and Artificial Intelligence.
#programming #tech #thecodereport
๐ฌ Chat with Me on Discord
๐ Resources
- Mojo Language...
This is why we are slowly moving to adding them inside package.json which IMO is much cleaner
Hey, I need help! I have a Crystal PvP arena in my SMP and basically, it allows explosions and I'm wondering if there are any plugins that can reset the arena!
Please @ me if you have a response!
thanks
How are offline player UUIDs created in spigot? I know there was a way but I can't remember
"OfflinePlayer:" + name
ty
Mfw people are actually selling placeholder expansions on BBB now.
People are dumb enough to sell literally everything. ๐
If it sells at all, it'll have made more than PlaceholderAPI has ๐
correction: people are dumb enough to buy everything.
I always found it funny when softwares launch with console logs reading "if you bought this, you were scammed"
ยฏ_(ใ)_/ยฏ
Duration: 1 month ($1.00 renewal)
Why would anybody do this*
Why*
๐
ChatGPT just wrote it for me in about 10 seconds.
a month
a month ๐
No idea if it actually works or not, but seemed pretty easy.
At least ChatGPT knew what I wanted.
Imagine though
I don't think String#title exists or #toCamelCase ๐คฃ
Eh, a tiny lib will solve that
The lib I had in mind too actually
Let's make it a free part of PAPI and ruin his business ๐คฃ
Nah, that's just an asshole move, but I'm just surprised they actually are allowing people to sell placeholders on there.
the AI era ๐
AI language model
I think I saw somewhere someone was working on a ChatGPT implementation of a quest / storyline for in-game NPCs, which I think is pretty dope.
Oh I saw that too.
It's so funny to see people with little to no experience in actual development/programming saying that this will take over peoples jobs ๐
The jump cuts made me weary of what they were actually doing though
I was playing around with HF's embeddings and LangChain yesterday to potentially have Barry understand our wiki, and it was okay... but still has some work to go.
Right wanted to send this ๐
It is already taking over jobs. Not chatgpt specifically but other "AI"s. And yeah, definitely not as bad as some people say but
still, it will take some jobs. And it is understandable. So many desk jobs are people just doing nothing for most of the time and every now and then handling some stuff. There's also other repetitive jobs that can be done by machine learning.
We've seen amazon use just robots to run an entire store for example. Also, non human controlled machines in warehouses have been a thing for a long time and are becoming more popular
robots been there for a while now though
could just be the owner
it counts
author*
yeah it says it sold 0 copies
IBM announced they're going to replace 7800 jobs with AI.
wth 7800?
yeah. in a few years tho
yeah idk what's IBM (europe gang)
Tbf, there's a lot of menial labor jobs that could easily be replaced with AI
but IBM has been working on AI for decades so I'm not surprised
time to learn a new skill set ig
yup. exactly my point.
dw. our jobs are fine for now
The International Business Machines Corporation (IBM), nicknamed Big Blue,[6] is an American multinational technology corporation headquartered in Armonk, New York and present in over 175 countries.[7][8] It specializes in computer hardware, middleware, and software, and provides hosting and consulting services in areas ranging from mainframe computers to nanotechnology. IBM is the largest industrial research organization in the world, with 19 research facilities across a dozen countries, and has held the record for most annual U.S. patents generated by a business for 29 consecutive years from 1993 to 2021.[9][10][11]
nah not talking about us
yes, google
I mean, those people probably don't have "a skillset".
for what its worth, it makes my life so much easier now lol
lol
just computer stuff company i think
with copilot (hopefully copilot X soon โข๏ธ) and chatgpt
Data entry is a lot more intense than you might imagine.
Yeah. Definitely. And companies are starting to make their own AI models or just take existent ones and train it on private data just to help their own emply
I don't think any company is going to use AI to help their employees
? I wasn't mentioning specific jobs/people. I've seen people that get a medium wage for doing nothing other than sitting at a desk all day
ok
Our company is. They're working on training a model with private data to make information finding a lot more easy
well, they're working on a few things but that's one that I can't wait for
No jobs lost as a result of this certainly
I don't see what jobs could be lost?
strange how the bubble of machine learning has bursted only when chatgpt got released and now every company/person/whatever is on the bandwagon
we as developers write the documentation and we have to find it ourselves
Yes, certainly
it will just save me 2 hours of reading documentation when working with an api no one worked on for 5 years
I can't tell if you're sarcastic or not ๐คฃ
this is not a hypothetical scenario. It is literally how we do it at our company.
Ok?
at least I don't have to write documentation in my company ๐
idk. I just feel like you're being sarcastic and my brain is trying to figure out why. You probably aren't.
who writes it?
The code is self-documenting ๐ค
that's the catch, there's no documentation
ah
Hi
How do I get these emjois on my scoreboard
Ping me if you have an answer
don't cross post @obtuse gale
id assume they are talking about unicode?
if so just copy and paste them from the internet
there are plenty of lists of unicode characters
Can somebody suggest me some good gui shop plugins where I can create more than 1 shop for citizens?
could pay for it tho
Good show. Don't like how they ended it though.
I didn't like either, Iroman died.
What show do you think that's from?
the boys?
That makes so much sense!
For the ones not joking read the link.
i dont open links through discord
dang
Didn't say open it. I said read it.
do you know know some FTP client (or extension for IJ/VSC) that has a file explorer similar to this? I need to navigate through files easier and faster
And well, WinSCP is at the opposite pole from "easier and faster" xD
you can just open a remote directory in VSC and it gives you basically that
very nice
Does anyone know how to open a zipped folder in a panel? lol
depends on the panel, but if you can ftp to it, you can unzip it with ftp programs
what's so difficult and slow about winscp
You can have one folder opened at a time and you need to go back and forth when configuring plugins
your mother
That too but I didn't want to be rude
then open another instance of winscp
๐ค
I would still rather use smth like VSC tbh
also, if you're configuring .yml files, you can open multiple tabs in your editor, I know you can use vsc as a text editor but idk what happens if you open multiple files at the same time
I use np++, so I all the config files are opened in it in different tabs
Yeah but that still requires to navigate to each folder first. Idk, I find it annoying, especially when first setting up the server
Hard times create strong men, strong men create good times, good times create weak men, and weak men create hard times
๐ฆง
hey there everyone I'm just letting you know that if you need advice or help with anything relating to web development, don't hesitate to contact me. I can provide you that advice or assist you.
thanks charles, i've been going through a few things at the moment and your support means a lot
glad to have you by my side man
you're a real one
"going through a few things" doesnt sound like it applies to web development lol
I think every web developer is going through a few things
Center a div
<marquee>
In a way, we are all web developing ourselves
are spiders web developers too
Hey, so I just noticed ChatColor is deprecated, what is a non-deprecated method for color now?
org.bukkit.ChatColor
You are probabily talking about paper, if so, there's some constants in NamedComponentColor (iirc thats the name) and you can create your own using hex
how dare you include me in your twisted acts
afaik deprecated doesnt mean you cant use something, just means theres a reason why you shouldnt
i will be accused of no such thing
chatcolor will more then likely never be removed, its just deprecated in paper since paper uses adventure which doesnt use chatcolor afaik
and they deprecate all methods that used strings insyead of components for colored text
or atleast thats my understanding
how about unlucky perms
:
That was the first option, but I could swore it was longer xd
setweight
you mind posting an screenshot of this?
to imgur or whatever and paste the link
sure
mind if i dm i cant send here
you didnt say anything about the issue being on TAB
Then the tablist plugin is not set up well

yep pretty much that
another question about luck perm
like how do i allow a rank like unkown to have 15 homes
and like that ?
if your using TAB by neznamy then in one of the configs theres a groups list you have to modify to sort them
Not related to LuckPerms but to the homes plugin itself
essentials config.yml multiple homes
you will find it
so for both issues it was mever a luckperms issue
also for future reference use #general-plugins or #minecraft when wanting support with configuating plugins cus this channel is for developement talk
Unrelated, but also related, I just approved the project on Hangar.
oh lmao, ty
was that cause u saw this msg or just pure coincidence?
for items though, what if you want custom dye color, etc etc etc etc etc etc etc?
wait, what are file objects?
or is this just an idea before actually implementing?
Since note that spigot already has stuff for this, and while you don't have to use its serialization system, its serialize and deserialize methods might be useful since those are maintained
also unrelated but wow, that's a lot of sites to update on ๐ฅฒ
yeah i saw that they already had a way to get item stacks, but its kinda ugly which doesnt make it very user-friendly
i didnt know what to call the wiki page lmao, but yeah its already implemented
oh, wait can u link the code?
yeah now just multiply that by all of my plugins i have
its a bit ugly but it works lmao
ah
90 btw
Mfw
wowwwwww
90 public?
I have like 3 public or smth, all of which are unmaintained ๐ฅฒ
I still need to redo the readme for Hangar4J ๐
??
xd
no silly smh
15 plugins, each on 6 platforms (7 if u include github)
hey, im looking for a plugin which spawns randomly ores in specific regions as a replacement for stone - does someone here knows any?
Those would work but I'm just gonna make a repo cause it will eventually have more files.
bruh..
Its currently a single class from my library I'm working on. Its gonna have more classes so might as well just make the repo now xD
So been working on a new library for a bit now. The reflection portion has taken me a few days and I've spent the past few hours cleaning up the base class.
Any suggestions? https://github.com/TheCrappiest/ReflectionLibrary
404 not found
Ah one sec
Try now
Also the reflection library isn't the library I'm working on I just have to make a reflection library to help with the NPC library I'm working on...
Some usage. Only the base reflection has been cleaned up I still have to rewrite/clean up the cache for classes and methods. https://imgur.com/a/HRAoSzb
Nope. I rarely use dependency managers. I usually stick with the build path. Aside from spigot all dependencies are "soft-depends" in my plugins cause I don't like using others code as I admitted to in the past.

I do use maven and gradle from time to time but prefer to not use it.
Minions-Miner actually uses maven to make use of the maven spigot plugin.
Yeah cause it has file paths in it so I add it to the gitignore
why does it have file paths?
Where I output specific files.
But all the "code" is there. So you would just copy the repository and apply maven then add spigot to the depends.
Tried making it require as little as possible though cause the core handles all of spigots API calls or NMS
Hello @quiet depot, I want to update your Hot Swapping guide and add how to do it on VSCode (yes it's possible :p). Can i copy bites of your guide? principally the Info section, i find it well redacted
VSCode for Java 
It kinda works x)
Just because it works it doesn't mean it should be done 
Well for making Minecraft plugin i didnt have any issue, vsc has developed their Java extensions. And itโs a nice choice for people coming from vsc that donโt want to learn a new IDE, a new set of shortcuts etcโฆ
๐ฅด
how are people supposed to use it though?
It doesn't seem to be meant to be copied and pasted as you've got a whole package structure and I assume you'll be adding more classes
There's also no maven/gradle, so it doesn't have a reproducible build setup, preventing jitpack (which is what is used a lot of the time to import a project on github) from being used
So... users would have to clone the repo, manually add maven/gradle, create the jar, then import that into their project (and repeat every time you update the library)?
you shouldn't be excluding pom.xml, if it's got private info, move that into another file such as .env (or whatever is used, idk I just use relative paths and variables)
Sounds about right lol. Only reason I open source is for reading. Not necessarily to use.
people can't contribute easily either
unless its like a really minor fix
a big reason to use build tools is to make reproducible builds and environments, not just handing your dependencies
I don't like using others code as I admitted in the past.
^^ hardcoding paths is bad practice even if it's only you working on it
okay but 99% of other people dont think that
so might as well make it closed if you dont want people using it
Only reason I open source is for reading. Not necessarily to use.
I mean
he removed most of the reasons people typically open-source, but it might be a little useful if someone wants to know how something works if it's not too complicated that requires cloning
if they decide to make any changes, they'd likely not contribute back due to them having to manually prevent git from adding all the gradle/maven stuff though, etc etc but Yapperyapps already noted/acknowledged/responded to this
Only reason I use github is because it's the most notable. I hate alot of the features like commits and such but ๐คท
?
commits are not a unique feature to github lmao
thats just the fundamentals of how git works
I know. I don't like it lol
you are very odd
I would like to just post the latest update and that's it.
yeah you can do that
the whole point of git basically is commits (VCS)
Without it, it basically serves the same purpose as a regular file hosting service
but I assume yapperyapps uses github for the code highlighting? and the additional code stuff that github adds
and it's more familiar (as drive isn't really used for code)
I use git to display the code in a repo. So the whole project can be read together.
I'm not trying to just host the files. I do like the ui just not everything offered.
ye but google drive can do that too
but also, you can't keep thinking like this if you want to work in a team (like in a company)
God no
Lol
I've always said I don't like working with others
there are also benefits for proper versioning even in solo projects but i dont think we're ready for that conversation
Even if you're going to make a project intended to make money (starting your own business), you probably won't go far without anyone's code
edited since I was thinking of smth else and so I'd have to fact check
I get using others code makes things easier but I enjoy making thing myself. Learning, experimenting etc... if it works great if not I got work to do xD I like knowing that my code was made solely by me and don't have to go around messing with others code to attempt to figure out how they made something work etc...
better make your own programming language then 
yes and learning & experimenting by making your own is very good
However, thinking that you always make the best stuff isn't good
๐คท eventually
Who says I make "the best"? Did you not read the username of the github lmfao
unironically this would probably be a fun project
Even if you're going to make a project intended to make money (starting your own business), you probably won't go far without anyone's code
oh I was partly referring to this
If you want to make a big project that's scalable and performant, you'd likely want to use the best, or very good libraries
and even if not, using libraries that are well documented and open source can help
"The best" is always an opinion. Who knows, my code could be better then a library used by many, it could be worse or even match it. Depends on the user.
"The best" is always an opinion
that is not necessarily true
there are many instances in software when, excluding something in-house, there is a best option
Example?
for a specific set of requirements*
it can be an opinion, if there are multiple very good and performant ones
"i need a caching library"
caffeine is the best by far
Never heard of it so I wouldn't say it's "the best"
So it would be your opinion that it's "the best" and maybe to others as well. But it isn't actually.
a library isn't good because the self-proclaimed library-hater hasn't heard of it
why is it not?
can you name a better alternative?
because if not, it's the best, by definition
Because it's your opinion xD
The JDK :D
no it's not lmao
what does that have to do with anything lmao
its the fastest out of performance
can't say much in other categories since i haven't used either of the other libs
i dont trust redempt's benchmarks but that's irrelevant
lol
but yeah i mean this is my point
if your requirements are "a fast math evaluating library", then sure, assuming the numbers are accurate, crunch is the objective best
it's not a matter of opinion
of course there is subjectivity in your requirements and preferences
but my point is that for a given set of requirements there often is an objective best
Technically speaking the only time something could be "the best" if there was only 1 of it.
are you not reading what im saying



++


