#dev-general

1 messages · Page 22 of 1

crude cloud
#

well you can't modify a String

drifting yoke
#

It allows the StringBuilder to change value without having its reference changed?

crude cloud
#

yeah you can add and remove characters etc

#

a String is basically unmodifiable on the inside

drifting yoke
#

Great alright

#

Now for a question that has nothing to do with all of the above, how do I get a Material object off of BlockState?

prisma wave
#

idk

quiet depot
#

docdex is actually useless

crude cloud
#

gettype

drifting yoke
#

getBlockType returns BlockType

#

getMaterial returns BlockMaterial

quiet depot
#

getType returns material as emily said

drifting yoke
#

Those are all the methods it gives me

quiet depot
#

what version of spigot are you using

drifting yoke
#

1.19.2

quiet depot
#

restart ij

#

or just type it in manually and see if it compiles

#

ij suggestions r probs just ducked

#

it's definitely a method

drifting yoke
#

Is it in 1.19.2 for sure? might jsut be 19.3

crude cloud
#

what's the full name of that BlockState you're using? with the package included

quiet depot
#

it's definitely been around for a lot longer than 1.19

drifting yoke
#

OH wait, youre right I'm using a worldEdit blockState

crude cloud
#

yeah then that'd be the blocktype if you're using worldedit

drifting yoke
#

Hmm, how can I check if it's a specific Material?

quiet depot
#

how do you compare enum values

drifting yoke
#

Well, I don't know how to get the Material of the WE BlockState

#

So I guess Ill have to compare it to something else other than a Material Enum

drifting yoke
#

Why would they make it BlockType(s) I had to look for some time

crude cloud
#

cuz

#

they store the block types there?

#

¯_(ツ)_/¯

#

idk

prisma wave
#

block types are stored in the balls

crude cloud
#

i don't think they are

#

we'll have to disagree on that one

prisma wave
#

you're wrong

crude cloud
#

see?

#

no

drifting yoke
#

I'm using FAWE API. Is it possible to change blocks in a ClipBoard before pasting it in?

#

I tried it with the deprecated setBlock(BlockVector3 vector3, B Block); method of ClipBoard but blocks wont change

wind patio
#

any idea what could be the issue?

#

if I accept any it still fails to merge

brittle leaf
drifting yoke
#
Integer x = 1;
int y = x + x;
#

How many variables are being boxed and how many unboxed?

#

1 boxed 1 unboxed?
1 boxed 2 unboxed?
1 boxed?
None?

rotund egret
#

I'm not doing your homework, nice try

brittle leaf
#

i had never heard of boxed and unboxed variables, and i think i know the answer

#

is that actually a homework question?

crude cloud
#

most likely

ocean quartz
#

None of the those right? It would be 2 unboxing?
Wouldn't that be the same as int y = x.intValue + x.intValue?

#

I could be very wrong here though

#

Oh wait, no I see it does box once

brittle leaf
#

i think 1 boxed, 1 unboxed

drifting yoke
#

^ must be right

crude cloud
#

boxed once, unboxed twice

rotund egret
#

Surely it only unboxes once since it's the same reference?

crude cloud
#

but you're getting it twice

rotund egret
#

That is true, I suppose I assumed it would be "optimized" to only do it once

crude cloud
#

the compiler won't really do such thing, but the runtime vm most certainly will

rotund egret
#

So does (un)boxing only happen during compilation then?

crude cloud
#

no, I mean that the compiler won't optimise it

#

when it's compiled it effectively does this

Integer x = Integer.valueOf(1);
int y = x.intValue() + x.intValue();
#

the runtime will eventually notice that doing that is pointless and it'll just discard the whole thing because nothing is actually being used

rotund egret
#

Ah

half harness
#

smart runtime

quiet galleon
#

[Wed 09:37:23 INFO Server/LoginListener] UUID of player Taneax is eac22ee0-6eaf-4593-9e3c-a6744f737195
[Wed 09:37:23 INFO Server/PlayerList] Taneax[/95.222.29.77:60880] logged in with entity id 613 at ([world]-1585.8150453412288, 151.5410174010605, 202.96888092210804)
[Wed 09:37:23 INFO Server/PlayerConnection] Taneax lost connection: Internal Exception: net.minecraft.network.PacketEncoder$PacketTooLargeException: PacketTooLarge - PacketPlayOutScoreboardTeam is 2110927. Max is 2097152
No one can join my server anymore idk why... Please help me!! ):::
https://pastebin.com/uQR10wMD

gusty glen
agile galleon
#

How does barry do the spigot verification command?

cinder flare
#

faith, trust, and pixie dust

half harness
#

I thought the admins manually update the buyer list but there's like a force check command

#

so

#

¯_(ツ)_/¯

sly sonnet
#

wa

drifting yoke
#

Do you recommend running file reading/writing asynchronously?

potent nest
#

yes, but that necessarily mean it's the best thing to do

drifting yoke
#

What-

rotund egret
#

I assume they meant "...that doesn't necessarily..."

potent nest
#

Zod is correct, lol

drifting yoke
#

Yes that's what I assumed as well but I thought he might be making some joke

sly sonnet
#

imo file handling should be async when handling large/big files?

drifting yoke
#

Well, in my case, I never know when things can get big, but I'm thinking of using MongoDB anyway because file reading/writing is garbo

potent nest
#

It all depends on what you‘re actually doing

twilit field
#

Hi, someone know how to make on discord player profile "minecraft server status" with ip, logo, website etc.? sorry for my bad eng btw :/

distant sun
#

What?

obtuse gale
#

Sorry wrong ping. Accidently made a mistake pinging you.

obtuse gale
pastel imp
#

think they mean rich present lol

distant sun
#

does anyone have some documentation for how to properly handle in-memory objects that are read from a database?
I'm facing an issue with a plugin that I'm working on for Quests. The User object that contains info about completed quests, current active quest & its progress are read from a database and then the data is saved on an interval and some quests are reset daily / weekly. The problem that I'm facing must have something to do with players joining when the quests are reset, resulting in two objects for the same user existing in memory or something like that.

drifting yoke
#

Calling runTaskAsync and adding to an arraylist doesn't work. Anyone have any idea?

pastel imp
#

uh that related to gaby's issue?

#

or different issue?

#

now you confused me

#

xD

distant sun
#

100% different

pastel imp
#

now is that sarcasm or not? xD

#

I just woke up so....

drifting yoke
#

Different

pastel imp
#

uh okay

pastel imp
#

seems like a concurrency issue

drifting yoke
#

What object is that

pastel imp
#

Aka something like this Collections.synchronizedList(arrayList);

#

unsure if it's exactly like this, can't recall 100%

#

it should return a List object if I recall correctly

#

and then you can use it inside the asynctask

potent nest
#

but that requires every access to the list to be synchronized using the returned instance. You can't use arrayList directly anymore

#

also, that likely isn't a good solution to whatever your problem is

pastel imp
#

uhm hmm

#

CopyOnWriteList? isn't that thread-safe too?

#

CopyOnWriteArrayList*

#

although yeah, do you need it to be async?

prisma wave
#

the real solution is to not mix mutability and concurrency

pastel imp
#

think we need more context

prisma wave
pastel imp
#

yeah...

prisma wave
#

there are more efficient concurrent data structures if you actually need them

pastel imp
#

Although... it might not be a big deal if it's not used in a loop or smt

pastel imp
#

not a concurrency expert

#

At the end, think we need more context on where this is being used

#

Maybe there's another way of doing it while avoiding all that

prisma wave
#

hopefully

rotund egret
drifting yoke
#

What I'm trying to do is grab info from a File async and then add the object I'm creating to a list

#

but it doesn't work

drifting yoke
#

So, I've made so that an async method accesses the files creates the object and then adds the list but it never occurs

potent nest
#

the question is why are you doing this

prisma wave
#

^

drifting yoke
#

I feel like accessing files synchronously might cause lag

prisma wave
#

but as we've mentioned before, you cant just mix mutability and multithreading and hope for the best. it just won't work

#

well yeah

#

but why does it need to modify the list, what's going on?

drifting yoke
#

Alright to be more specific, I'm reading through the files then creating Arena objects for my ArenaManager

potent nest
#

that sounds like you can fully create that list on a different thread

drifting yoke
#

How do I hold one consistent thread? If I go with runTaskAsync it'll call a different thread every time

potent nest
#

well do all the work in one task

#

but tbh if you do that e.g. on startup only, there isn't much reason to do it async

prisma wave
#

yeah if you're reading on startup performance doesnt matter

#

or rather, doing it synchronously is fine

drifting yoke
#

Okay great then I'm dumb

pastel imp
#

xD

drifting yoke
#

Anyone have any idea why my runTaskTimerAsynchronously runs only one time then never again?

pastel imp
#

we don't just know your code

#

and whatever

potent nest
#

you can also read the docs

pastel imp
#

^^

drifting yoke
#

Well, apparently, I guess it's just Spigot's problem.

#

I used the deprecated method with the BukkitRunnable and it worked just fine. The new version of the method with the Consumer just denies to work

cursive jolt
#

don't blame the API before blaming your use of it

#

tens of thousands of people tested this code

drifting yoke
#

Well, I mean, I just ran the code with the Bukkit Runnable and it worked

agile galleon
#

Jesus why do people keep denying to share code

pastel imp
#

because humans are stupid

long dagger
#

We can't help you without it

drifting yoke
#

I'm fine I'll just keep using a BukkitRunnable I don't really mind

pastel imp
#

I will never understand these people

#

.-.

brittle leaf
pastel imp
#

It won't bother people if he doesn't rn

#

it does bother me at least that people ask for help and expect for us to be genies and automatically solve their problems

#

and when we ask for a simple thing that will help us help them, they refuse

drifting yoke
#

I know whether I'm supposed to send my code or not. I make sure I send my code when it is code specific, but I'm sure the stuff I mentioned is general hence no code needed

pastel imp
#

everyone interested in helping you asked for code, don't think it's up to the person asking for help to decide what we need tbh

#

but you do you

drifting yoke
#

No, I mean, I get why people asked for my code but since BukkitRunnable worked and Consumer didn't, I suppose it's a Spigot thing

#

My code didn't have anything specific anyway so that's why I didn't mind sharing it. It was a simple async and the contents didn't really matter

#

So, no, I didn't expect you to be a genie

pastel imp
drifting yoke
#

Yes, I get your point, but since I saw that BukkitRunnable worked just fine why bother elaborating

pastel imp
#

Isn't that literally an outdated method?

#

You know, the ones specifically meant to not be used anymore?

#

And it is beneficial to still elaborate, since it benefits both you, and IF it's actually an issue in the api, it can be reported and fixed.

#

It's basically a Win/Win

#

But anyways, it's past

drifting yoke
#
for(Mine mine : main.getManager().getMines()){
                if(!mine.getRegion().contains(b.getX(),b.getY(),b.getZ())) e.setCancelled(true);
            }

I have this code here, and I don't want them to be able to break if the block is not in the region of one of the mines. How could I optimize this?

#

b is Block

obtuse gale
long dagger
#

If I were to make a service team bot that had literally everything, and either charged an upfront or subscription, would there actually be a consumer market for that kind of product? Not sure if I should invest time into it without there being a actual market for it. It would also include a web panel where a lot could be done for admins outside of discord.

drifting yoke
obtuse gale
# long dagger If I were to make a service team bot that had literally everything, and either c...

It depends on several factors such as the features offered, the target market, the pricing model, and the competition.

There is certainly a demand for service bots in the market, especially within the gaming and customer support communities on Discord. Having a bot that includes a web panel and provides a wide range of features could potentially be attractive to businesses and organizations.

However, it is also important to consider the competition in the market and the pricing model that you choose. If there are already similar products in the market, it may be challenging to compete unless you offer unique or additional features.

In terms of pricing, the upfront or subscription model could work, depending on the target market and the value that the bot provides. A subscription model could be a good choice if the bot provides ongoing support and maintenance, while an upfront model could be suitable if the bot provides a one-time solution.

In summary, there could be a consumer market for a service team bot with a wide range of features and a web panel, but it is important to carefully consider the target market, competition, and pricing model before investing time into developing it.

long dagger
long dagger
obtuse gale
drifting yoke
#

AdamGPT

long dagger
#

no kidding

obtuse gale
long dagger
#

he is commenting on how what you said is very similar to something ChatGPT or GPT 3.0 could've made

#

(if you dont know what ChatGPT is, its a highly advanced AI that is as smart as the internet)

obtuse gale
#

I didn't know about that stuff for sure.

long dagger
#

not sure if that is sarcastic lol

drifting yoke
#

Beep Boop fetching data

#

Does anyone know if WorldGuard works async to check regions etc?

obtuse gale
long dagger
#

interesting

obtuse gale
#

Copy- paste.

drifting yoke
#

Entiendo.

pastel imp
#

ChatGPT is down

#

my beloved

pastel imp
#

idk why, but I love watching this

#

even funnier since it's entirely made by ChatGPT (with some modifications and fixes)

oblique heath
#

scrapping

pastel imp
#

yes.

sick belfry
#

dumb ass question but, I have been setting up a wsl for ubuntu to use neovim (dont ask why), and I'm wondering if it is possible to install bspwm to have a window manager

#

I tried

#

I failed

pallid bough
#

.

obtuse gale
long dagger
#

Somehow my school hasn't blocked it yet on their wifi, English class is going right down the toilet. ChatGPT has written like 90% of what is turned in lol

tribal plinth
#

nice

#

it's not like they can tell you to stop using it

long dagger
#

Yeah

#

I just don't like the idea of our future generation cheating their way through school. They won't be able to properly perform in any technical or demanding job down the road without extra classes to retouch where they cheated.

#

Like, what would think of your surgeon used ChatGPT to cheat their way through med school

pastel imp
#

People don't get good grades from learning, they get it froms tests, so why learn if you can just cheat and get the same results?

#

or well, get looked at in the same way.

inner umbra
long dagger
#

It's not, but the open access part is relatively new

rotund egret
#

Cheating is new yeah

inner umbra
long dagger
# inner umbra Talking about "cheating"

Oh well, I just think using AI is far more powerful in terms of replacing actual learning and thinking, and is far more accessible compared to regular cheating. Idk, I am not a school admin or anything, just my opinion

#

Like, I could pay my smart friend to write me an essay, or go to openai, give it the prompt, and call it good.

inner umbra
#

I mean yes methods are becoming simpler... but people have been cheating their way through life for years.

rotund egret
#

Yeah I don't think they were suggesting otherwise

#

They seemed to be speaking more about a fear of a rise in cheating

long dagger
#

I was just commenting on how much easier and more widespread it's become

#

And it's also harder to compete with a literal computer in terms of college and job acceptance (if it gets that far)

#

Wait @inner umbra how do you have two rank roles?

inner umbra
#

I get that. But you know the saying "cheaters gonna cheat" the easier it gets for people to cheat at anything the harder others will have to work against it. Some may slip through, but eventually someone/something will catch them lacking.

inner umbra
agile galleon
#

I just wrote a page to add to this conversation but figured nobody would read that.
I think ChatGPT should be forbidden in some cases and special sections added where you can google and of course, use GPT as that would prepare you for a job, where it isn't forbidden.
The school system doesn't suck, it's just a bit (very much) outdated and not adjusted for learning to use online tools to simplify the job.

rotund egret
#

Disagree

agile galleon
#

Ok

long dagger
pastel imp
#

I read that as "school system sucks"

#

lol

#

it's a memorization game

#

literally

#

memorize good? Pog, you get good grades and you are very "intelligent"

#

intelligent lost it's meaning with this school system

#

(mainly focusing on mine, since every country has a slightly different system, although all suck lol, minus maybe Finland and Sweden)

agile galleon
#

I completely disagree

pastel imp
#

opinions

long dagger
#

The U.S. (or at least my state/school system) is moving the right direction. Like, for biology, we were given a bunch of material, and to learn it we did a bunch of hands on labs. We never did any worksheets, or presentations. Everything was hands on and we learned through questions and curiosity. At the end, the test was another lab, that we had to do on our own using the skillsets and knowledge we learned in the other labs before it. We were graded on how well we did the lab, like if we used the right population selection methods and made sure all extraneous variables were accounted for. This obviously wont work for every subject, but I know my parent's had nothing close to this experience when they went school.

#

And, it really limits the amount of cheating that is possible.

#

Things like math are different, but for subjects like science that is the right way to go about it. Hands on is best in almost every situation. We even have a class where we were given a specific topic, and we have to find a question that doesn't have a clear answer, and spend the entire year researching it. Finding scientific journals and coming to various conclusions off of them. We also can run our own labs and things to find the answers we need. Its really interesting because each student can pick their own path, but in the end they all learn the process of experimenting and finding ways to answer the seeming "unanswerable" questions. It is a lot of really useful life skills, and almost all of it can't be cheated on (mostly) because it is information that isnt compiled. Its a bunch of various bits and pieces that you have to piece together.

#

Sorry if that wall of text is a lot to read, just trying to express that at least my school district is moving in the right direction.

pastel imp
#

As said, depends alot on the country

crude cloud
#

bro who cares

pastel imp
#

people who still care about their education?

#

or the future of it for their children

crude cloud
#

sure, but arguing about it in a minecraft help server won't change it lol

pastel imp
#

fair enough

#

and wrong channel lol

crude cloud
#

yeah

#

Not configuration help

pastel imp
#

Uhm how do y'all make methods with consumers, which rely on an event?

#

Okay this sounds confusingly explained lol.

#

Uhm, lets say, if I were to add an item to an inventory and I want to make it execute smt when clicked, using a consumer, how would I make that method?

#

(just an example to explain what I mean, not the actual use case)

distant sun
#

you can look at triumph-gui, basically you keep the track of items and their actions, and if the item clicked has an action associated, just pass the event to the consumer

ocean quartz
#

public void yourMethod(Consumer<EventHere> consumer)?

pastel imp
#

confusion

pastel imp
distant sun
#

no

pastel imp
#

ah

#

then I will check it

#

ty

ocean quartz
#

fun yourFun(block: EventHere.() -> Unit) 😔

pastel imp
distant sun
#

uh yeah

pastel imp
#

I am just a bit confused with the "pass the event to the consumer" part

distant sun
#

consumer.accept(event)

half harness
# ocean quartz I wish

I think okhttp (?) has its code written in like kotlin and makes it java-compatible

I'm 20% sure on that

#

or at least some of its code

#

actually that would mean that the entire kotlin stdlib would be shaded in

#

which probably isn't ideal

distant sun
#

I dont think they do anything special to make it java compatible

#

but since triumph-gui is a library for mc and the plugins are usually coded in java, would be annoying to shade 4mb of kotlin

ocean quartz
#

Yeah it's nothing about compatibility but size, people already complain about 200kb libs lol

pastel imp
ocean quartz
#
items = map<Whatever, Item>

class Item {
  ItemStack itemstack
  Consumer<Event> consumer
}

onEvent {
  items.get(whatEver).getConsumer().accept(event)
}
distant sun
#

consumer#accept is nothing more than a normal class with a method ClassForListener#processEvent(event)

pastel imp
#

what's whatever in this case? confusion

distant sun
#

the key for the map

#

e.g. an int representing the slot

pastel imp
#

okay, understood, tysm

drifting yoke
#
 final Player[] targett = {null};
        if(target == null) {
            Bukkit.getScheduler().runTaskAsynchronously(main, t -> {
                targett[0] = Bukkit.getOfflinePlayer(args[1]).getPlayer();
            });
        }
#

Why does it allow for a final one element array to go through but not a single object?

ocean quartz
#

"to go through"?

drifting yoke
#

Never mind dumb question, I realized

#

But why does it need a final variable?

prisma wave
#

a) thats a bad idea, you cant share state between threads like that (it will almost certainly just be null by the time your synchronous code runs). your best option is CompleteableFutures
b) a normal value is just a reference on the stack. by the time the lambda runs, theres no guarantee that the stack still contains the reference so you can't just change it. with a final array, you can copy the reference to the array, which will be on the heap and so still exists by the time the lambda runs

brittle leaf
# drifting yoke

targettt has been set as final before, your attempting to set a new value to the final variable, which you cant.

prisma wave
#

that's not what they were asking

#

it's for the same reason why x is still 3 here```java
void a() {
int x = 3;
b(x);
}
void b(int x) {
x = 4;
}

but it's 4 here ```java
void a() {
  int[] x = new int[]{3};
  b(x);
}

void b(int[] x){
  x[0] = 4;
}
drifting yoke
#

How do I wait for Async response?

prisma wave
#

you don't

#

you use CompleteableFutures like i said

drifting yoke
#

Is it guaranteed I'll geta value?

#

or better, do you recommend a better way to check whether an offline player exists? It seems to take a whole second to make sure the offline player is null even though I'm the only registered player in the game so I suppose it checks for every single account?

#

Or.. I could go through all the files and check if their file exists?

prisma wave
#

what do you mean by "exists"

#

getOfflinePlayer will never return null

drifting yoke
#

I thought the server had an Offline Player list ?

prisma wave
#

that doesnt answer the question

drifting yoke
#

No, by exists I mean that I create a file for every player

#

so if it doesn't exist, that player was never on the server

#

But I don't know how slow it is to iterate through all file names

#

E.g. if I have 10.000 player files registered

prisma wave
#

why would you need to iterate all the names?

drifting yoke
#

Isn't that java's default

prisma wave
#

what

drifting yoke
#

for example

prisma wave
#

?

drifting yoke
#

File#exists();

#

Doesn't it iterate until it finds the file?

brittle leaf
#

i dont believe so

prisma wave
#

no?

#

why would it

drifting yoke
#

What does it do then

#

How could it just find a file

brittle leaf
#

it just goes directly to that path and sees if its there

drifting yoke
#

Oh never mind

#

Yes I just realized

#

I'm having brainfarts

brittle leaf
#

also why dont you just do Bukkit.getPlayer(String)

prisma wave
#

thats not the same thing

drifting yoke
#

getPlayer(); returns someone approximating the name or if noone such that is online it returns the first player it finds im pretty sure

#

getPlayerExact(); returns the exact player

prisma wave
#

anyway

brittle leaf
#

getPlayer returns the player ignoring case

prisma wave
#

i think this is a contender for the biggest XY problem ever

drifting yoke
#

true that

brittle leaf
#

getPlayerExact if that ex8sts would only get the player if the username is exactly that

prisma wave
#

they clearly said that they want to check if an offline player exists

drifting yoke
#

yes

prisma wave
#

also yeah no getPlayer tries to find the closest match

brittle leaf
#

then why the Bukkit.getOfflinePlayer().getPlayer() call?

prisma wave
#

who knows, misunderstanding presumably

drifting yoke
#

Yes

drifting yoke
prisma wave
#

it does

#

but in future:

  • dont prematurely optimise, it's a waste of time
  • dont just try to guess how things perform, you'll probably be wrong
  • if you really wanted to know how File#exists works you couldve just looked at the source code lol
brittle leaf
#

like afaik Bukkit.getOfflinePlayer(String) uses the mojang api to get the players uuid to then check the files

drifting yoke
#

About the File#exists, I already knew I just had a brainfart at that moment

drifting yoke
prisma wave
#

fellas

#

rather than just guessing how methods work

#

just look at the source

brittle leaf
#

yeah ik

drifting yoke
#

Thanks Mr Brist

prisma wave
brittle leaf
#

i found the getPlayer methods in CraftServer, but theres no mention of offline player

prisma wave
#

i think you need glasses

brittle leaf
#

trying to find it while scrolling on mobile isnt fun, id just use ctrl+f if i was on my pc

drifting yoke
#
 Error occurred while enabling Test v1.0-SNAPSHOT (Is it up to date?)
java.lang.ClassCastException: class kyriakum.com.main.EconomyAPI cannot be cast to class kyriakum.com.main.EconomyAPI (kyriakum.com.main.EconomyAPI is in unnamed module of loader org.bukkit.plugin.java.PluginClassLoader @4d367900; kyriakum.com.main.EconomyAPI is in unnamed module of loader org.bukkit.plugin.java.PluginClassLoader @63d6dae6)
private Economy economy;
    @Override
    public void onEnable() {
        EconomyAPI api = (EconomyAPI) Bukkit.getServer().getPluginManager().getPlugin("EconomyAPI");
        economy = api.getEconomy();
        System.out.println(economy.getMoney("kyriakum"));

    }
#

I'm trying to set up an API but it doesn't seem to work

wind patio
#

what

drifting yoke
#

what does it mean by is in unnamed module of loader

prisma wave
#

you're not using modules and org.bukkit.plugin.java.PluginClassLoader is the classloader

#

it's not really important that bit

#

anyway you're probably shading the api in your other plugin

#

dont do that

drifting yoke
#

I've just added it as a library. It auto-shades?

#

How do I disable that

distant sun
#

gradle or maven?

#

actually, for gradle use compileOnly and for maven <scope>provided</scope> or none (default is provided iirc)

prisma wave
#

^

drifting yoke
#

I'm not using gradle or maven

distant sun
drifting yoke
#

I'm just doing it manually through Project Structure on Intellij IDEA

distant sun
#

why

drifting yoke
#

I mean, the tutorial I'm watching does it like that

distant sun
#

time to find a proper tutorial

drifting yoke
#

Hahahah

distant sun
#

im not joking sadly

drifting yoke
#

I know I know

distant sun
#

teaching how to use libraries using that shit should be illegal kek

drifting yoke
#

So, I have the scope to system. It still gets the same error.

#
<dependency>
            <groupId>kyriakum.com</groupId>
            <artifactId>main</artifactId>
            <version>1.0</version>
            <scope>system</scope>
            <systemPath>C:/Users/kyrohuge/Desktop/Server here/plugins/EconomyAPI.jar</systemPath>
        </dependency>
#

It definitely keeps shading the plugin my Test plugin is bigger than the API

lunar knoll
#

yo what happened to hastebin

rotund egret
#

I deleted it

wind patio
#

Maven 😳💀👹🤮

half harness
oblique heath
#

gradle 😚🥵🍑😩

drifting yoke
#

I figured it out. Thanks guys

#

provided scope didn't work for some reason? I dont know. I just did maven clean install and grabbed the unshaded file

rotund egret
#

I find the XML structure difficult to read, or even in its most readable; cluttered.
Functionally I've never used maven, but gradle has honestly been a breeze once I familiarized myself with it a bit.

oblique heath
#

some poor dude mistyped false

prisma wave
#

2% of dudes

distant sun
#

🤣🤣

oblique heath
#

according to this statistic 2% of all humans can't spell

#

which sounds about right

pastel imp
#

yäs

#

yes

#

👀

distant sun
#

how do you even start using bits to represent things (piece type and color in this video)

distant sun
#

wrong chat @drowsy briar

runic flume
#
{
  "parent": "minecraft:item/generated",
  "textures": {
    "layer0": "minecraft:item/elytra"
  },
  "overrides": [
    {
      "predicate": {
        "custom_model_data": 3
      },
      "model": "melonsmp:item/cupids_wings"
    }
  ]
}
```This changes my elytra item with custommodeldata=3 to my custom texture, but how do I change the entity texture for this item?
queen saffron
#

CIT isn't a vanilla minecraft thing, you can try using Optifine but it won't show for vanilla players

drifting yoke
#

I keep doing mvn clean install mvn compile even changed the version and the project keeps installing an old version. Any ideas?

brittle leaf
#

afaik you cant change the entity texture, you can change the base texture but not for a specific model data

brittle leaf
drifting yoke
#

Yes

#

I even decompiled the version that is installing and it is indeed the old one

brittle leaf
#

weird

brittle leaf
#

the V button

#

you gotta do that every time you make a change to the pom.xml afaik

drifting yoke
#

I even restarted intellij

#

I'm telling you the project is being installed as if the classes never changed

#

I keep making new versions and everythign

#

It just denies to give me the new classes

#

It doesn't even build the correct artifact??? I don't know whats going on but its really annoying

brittle leaf
#

reinstall intellij?

half harness
drifting yoke
#

Even if there was an error with maven, I don't get why there would be an error with building the artifact

half harness
drifting yoke
#

It does, it just builds the old project

half harness
#

Also odd how you say artifact... How are you making the jar

drifting yoke
#

No matter how I change it

#

It's like it's frozen

#

I just do build artifact

#

But it's the same for the jar through mvn install

half harness
#

Use mvn clean package

#

Don't do any artifact thinfs

#

That's intellij own build tool

drifting yoke
#

I've always been doing it like this

half harness
#

You don't wanna be using 2 tools

drifting yoke
#

It always worked fine

half harness
#

For 1 projecy

half harness
#

Run mvn clean package

#

And if there is an error, send the error and the pom.xml

drifting yoke
#

There's no error it did the same thing tho

#

It installed the old version

half harness
#

Don't run install

#

Just clean package

#

Make sure you're running clean

drifting yoke
#

After I do that what then

half harness
#

Look in target folder

half harness
half harness
#

Make sure you're copying the right jar to the right place

drifting yoke
#

Its still the same :/

#

I dont know what could cause this I ahve no idea

half harness
drifting yoke
#

I mean, I just have the pom.xml set up and I let it do its thing

half harness
#

What'd u use to see if it's the right jar

agile galleon
#

wdym

half harness
#

Like a decompiler?

drifting yoke
#

Yes

#

I guess my only solution here is to copy paste the whole project on a new file?

half harness
#

What decompiler r u using

#

Jd gui?

drifting yoke
#

Yes

half harness
#

Have u been closing and reopening jd gui

#

Each time

drifting yoke
#

Yes everything

#

i'll check later if a computer restart works

half harness
#

Ok

drifting yoke
#

else I don't have any other resort

sly sonnet
#

awwmann

runic flume
#

@queen saffron Sorry to tag, but you know more stuff about texture packs? Happen to know why my trident isn't rendering?

#

When i put my custom model in line 4, it renders fine for all tridents

queen saffron
#

No worries, Im not sure what it is about tridents but they dont seem to work all the time for some reason.

#

I've been struggling with it aswell

runic flume
#

You reckon you know why?

#

I've been stuck for 30 minutes lol, chat ai doesn't help sadly

queen saffron
#

Uhhh honestly, not sure. But I do know that tridents are even trickier than let's say, a bow.

runic flume
#

@queen saffron Are you 100% sure it's even possible?

#

Like, isn't this another thing that is impossible to do in vanilla

queen saffron
#

Yes I am, I've managed to do it before but it's weird xD

runic flume
#

Like, this a shear

#

this is my trident

queen saffron
#

If you can, try and look up other texture packs that have custom tridents or something, that's how I learn a lot.

runic flume
#

Well I did

#

All I find is stuff that override the global texture, and I got that working haha

queen saffron
#

Did you check the .jar file for mc and see how they do it?

runic flume
#

No

queen saffron
#

Might be worth it

oblique heath
#

is there a straightforward way to set the final damage dealth for an EntityDamageEvent

#

i could theoretically get the ratio between the original raw and original final damage and use that to approximate the raw damage i would need to deal, i guess

#

but this has to be a common enough thing that there's better ways ;-;

remote goblet
#

COPILOT?

oblique heath
#

(⁠☞⁠ ͡⁠°⁠ ͜⁠ʖ⁠ ͡⁠°⁠)⁠☞

pastel imp
#

although that may look buggy af

distant sun
drowsy briar
#

ok chill lol

distant sun
#

You are posting the same message in multiple channels without even looking at the topic, and you shouldnt cross-post anyways

frail glade
ocean quartz
half harness
#

Uh oh

ocean quartz
#

It has been warning about deprecated things that'll be removed in 8.0 for like 6 versions now ;p

half harness
#

Oh lol

#

Oops

rotund egret
#

oh shadow finally removed it?

crude cloud
#

average dkim ignoring warnings

half harness
#

Wait so what do I have to do now 🥲

#

I just copied that from stackoverflow

crude cloud
#

surprisingly, warnings are to not be ignored

#

but dealt with

sly sonnet
static zealot
#

you have to enable smart mode

sly sonnet
#

it was enabled btw

static zealot
#

oh

sly sonnet
#

i couldn't get it to work so i just opened up webstorm

static zealot
#

weird

#

idk

crude cloud
#

fleet bad

prisma wave
#

true!

drifting yoke
#

@half harness About yesterday and the maven file not installing..? Well, I was wrong, it was installing properly I just changed the function and it already was most optimized hence changing it made the jd-gui decompile it as the optimized way I had it before, if you get what I mean

pastel imp
#

Uhm what's better, to make several classes for x types, or have one single Enum type with one class only? (For context, I have several enum types, with one class that has a map with Enum as key, but mongodb doesn't accept Enum so, I have to choose)

distant sun
#

I mean, an enum constant is represented as a string, nothing special

pastel imp
#

apparently they handle it a bit differently?

#

was just finding a quick alternative

distant sun
#

then it is a bad framework if it can't (de)serialize enums

pastel imp
#

Also, speaking about the generic type Enum

#

it supports normal enums

#

just not the generic type Enum

#

and apparently that's a mongo thing too

distant sun
#

generic type?

agile galleon
#

wtf

pastel imp
#

yes?

#

isn't that the name?

#

Stuff like Object, is called a generic type no?

agile galleon
#

no

half harness
#

generics aren't

#

idk what generic types are

#

but generics are different

agile galleon
#

those are primitives (maybe)

distant sun
#

generic is Something<T> => T

rotund egret
pastel imp
distant sun
agile galleon
#

yeah

#

ah shit yeah

pastel imp
#

Integer is something else though

agile galleon
pastel imp
distant sun
#

do these enums implement a common interface?

#

maybe you can use that as key instead

pastel imp
#

they are just normal enums

#

don't implement anything

rotund egret
#

Could they

distant sun
#

well, look into making your own type adapter for enums

#

smh like {value: VALUE, type: EnumType}

agile galleon
#

yeah

pastel imp
#

now I am confused

#

lol

distant sun
#

it probably doesn't allow Enum<> because it needs to know the type so it can get the constant when the object is deserialized

pastel imp
#

oh yeah understood

#

so your suggestion is making an interface and implement it on every enum?

#

and use that?

distant sun
#

no

#

search how to make a type adapter

#

what library is this @pastel imp

pastel imp
agile galleon
#

yeah thats what i thought

pastel imp
# sweet cipher Why?

Cause I am trying to organize my enums instead of having everything in a single one

#

Aka Material, Info, Stat, etc.

#

Those technically are stored the same way

#

but to avoid having to make a class with a map, etc for each type

#

I wanted to make a single one for only one type

agile galleon
#

what

#

ah

sweet cipher
pastel imp
# sweet cipher I'm still ocnfused about what you're trying to do, can you post your code?

Uh kinda hard rn, since it's not the same anymore since I am doing some testing. But basically, I have several enum classes, each represent a type of data of an item, in this case Material, Information, Statistic, etc. Then I have this class called ItemProperties, which has a map that is supposed to hold the type and value of that type. And to prevent the need to have a clone of this class for each type, I tried using Enum as the key of that type, since it would accept any of the enums if that makes sense?

#

Essentially making a wrapper for it

sweet cipher
#

Are you taking about the Bukkit Material enum?

pastel imp
#

it's a type of wiki for games, and those items are items in a game

#

Materials are the materials needed to craft that item

distant sun
#

Do you have each material as an enum? You haven't learn anything from bukkit? XD

pastel imp
#

doesn't really matter

pastel imp
#

uhm is it normal for when mongodb stores an object, it only displays if it's empty or not in the collection?

crude cloud
#

i don't know

wind patio
#

i don't know

pastel imp
#

💀

rotund egret
#

Well yesn't

#

Oh wait, I misread, no that sounds weird

pastel imp
#

welp

#

somehow it works

#

lol

tiny vault
#

i need help

compact perchBOT
#

There is no time to wait! Ask your question @tiny vault!

oblique heath
#

There is no time to wait!

tiny vault
#

who is fix it i no have perm

#

i put the perm

cursive jolt
#

luckperms user [user] permission test permission

#

luckperms verbose

wind patio
#

how can I force gradle to redownload dependency?
I have
implementation ('com.github.M0diis:M0-PLLib:dev')

when I push the code to the remote, it automatically builds and uploads the artifact to the releases with the same dev tag.
unfortunately if I refresh the gradle it still shows me the old code of the dependency.

drifting yoke
#

If I have a class in my project like a Team class which will hold various variables (e.g. The players in the Team, the color etc.) and I want to have each team saved in a Database (Doesn't matter (files,mysql anything)) and then when the plugin runs I'll have a TeamManager that checks through and lists all the Teams. How should I go about changing the values in the database? Should I implement the code in the functions of the getters and setters of the Team class or should there be like another class?

distant sun
distant sun
wind patio
drifting yoke
#

What I've done is I've made some extra methods in the TeamManager that reads when the plugin starts but also writes with something like addPlayer(Team team, Player player) is that fine?

distant sun
wind patio
#

ah, ok, I moved it elsewhere lol

prisma wave
#

gradle doesnt store things in m2

#

thats maven

wind patio
#

where groodle then

#

🥴

prisma wave
#

gradle --refresh-dependencies

distant sun
prisma wave
#

nope

distant sun
#

but yeah, there's also gradle cache 😵
Edit: C:\Users\<user>\.gradle\caches\modules-2\files-2.1

wind patio
#

well, I did the refresh

#

the ting is still old

drifting yoke
#

Is what I've done good practice?

wind patio
#

do I just
rm -rf $HOME/.gradle/caches 🥴

prisma wave
#

sure

#

on unix

#

obviously

wind patio
#

yes

prisma wave
wind patio
#

it's fine just to yeet it the fuck out, right? it will just take extra long time to redownload everything again?

prisma wave
#

yes

wind patio
#

sheesh

drifting yoke
#
public void createNewGuild(String guildName, String owner){
        Guild guild = new Guild(guildName, owner);
        try {
            conf.set(PATH + guild.getGuildName() + ".owner", owner);
            conf.set(PATH + guild.getGuildName() + ".officers", guild.getOfficers());
            conf.set(PATH + guild.getGuildName() + ".members", guild.getMembers());
            conf.set(PATH + guild.getGuildName() + ".gems", guild.getGems());
            conf.set(PATH + guild.getGuildName() + ".upgrades.coin_mult", guild.getUpgrades().getCoinMult());
            conf.set(PATH + guild.getGuildName() + ".upgrades.gem_mult", guild.getUpgrades().getGemMult());
            conf.save(main.getGuildFileManager().getFile());
            guilds.add(guild);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

Here's a createNewGuild method

prisma wave
#

uh

#

looks fine ig

#

could extract out the repetitition with a configurationsection but thats a fairly minor gripe

wind patio
#

Make a custom configuration class with a configuration builder 🤓

prisma wave
#

dont use the bukkit config system 😁

drifting yoke
#

I'm just wondering if for example I get to make like 15 different upgrades should I try looping or should I do one by one like I've done here? Because I haven't thought through how I'll know which is which and stuff.

prisma wave
#

🤨

#

huh?

drifting yoke
#
            conf.set(PATH + guild.getGuildName() + ".upgrades.gem_mult", guild.getUpgrades().getGemMult());```
#

Here I fetch the 'Upgrades'

#

I have 2 Upgrades atm

#

a Coin multiplier and a gem mult

prisma wave
#

if you're repeating something 15 times then that is almost certainly an indication of wanting a loop

drifting yoke
#

Also, I'd like to ask, if many people have created their guilds and I decide to add a new Upgrade on the new Version, should write code that loops through the whole file and adds the extra value on each guild?

prisma wave
#

probably

wind patio
#

ty crazyauctions for making me do a 4 hour rollback on my server 🙏

prisma wave
#

rofl

wind patio
#

never using their shit again 😴

prisma wave
#

best designed spigot plugin

wind patio
#

been using it for a while now, everything seemed fine for the most part
I suppose it's time to write my own auction plugin 😴

drifting yoke
#

Is there a way to minimize code complexity when making Commands?

wind patio
#

there's always a way

drifting yoke
#

I always have like 50 different ifs

#

For each different purpose

#

The player is not online, The player is having pizza, The player has blocked you I dont know

wind patio
#

extract the repeating if logic to other validation methods if u wish

drifting yoke
#

It's just if you don't have each seperate and have a method for all 3 for example, you won't be able to return 3 different values

#

unless you make a method that returns a String

distant sun
wind patio
#

well, you can make it a boolean and if the validation method returns false for ex. you return in the onCommand logic
or, as you said, you can return a string as a error message, if it's not null, then send and return
possibilities are endless(ish)

distant sun
#

but yeah, I don't suggest them :X I've personally couldn't find a GOOD auction plugin

wind patio
#

any recommendations?

distant sun
#

no pensive_polar_bear

#

make your own if you have time

distant sun
#

I've had memory issues with the second, and the author was inactive at that time iirc

wind patio
#

really cba to write my own ah plugin 😩

distant sun
#

yeah I feel you xD I wanted to, but it was so time consuming

#

but that's the way to go on long term tbh

wind patio
#

that is true indeed

#

I've rewritten most of the plugins we use by myself

#

no need to rely on other devs updating it or waiting to fix a bug

distant sun
#

I'm not the type to say "custom means better every time", but this is the case for AH imo

ruby dew
#

delusionalauctions v1.0

wind patio
#

how to count code lines using windows
step 1. dont use windows

ruby dew
#

corrrect

distant sun
wind patio
#

sheesh

distant sun
wind patio
#

been using it for a while now, lifesaver for scrolling

distant sun
#

do you know how to make it stop highlight with yellow things that are not used

#

not used & IJ suggestions actually

wind patio
#

I mean there are a few settings for it

#

not sure if they do any of it tho

distant sun
#

ah nvm, I see where it gets that from, IJ does the same thing but on the side of the file

wind patio
#

its this setting

#

if you disable it it wont show warnings/errors

#

IJ shows it

distant sun
#

good, good

wind patio
#

but nothing here

distant sun
#

I want to take my eyes off 🫢

wind patio
#

spark vs essentials tps, what gives?

drifting yoke
#

My NameTags are interfering with the Sidebar Scoreboard. Any ideas?

#

Nvm I just did player.getScoreboard() instead

agile galleon
ocean quartz
distant sun
#

wtf is that, jdk / paper??

ocean quartz
#

It's a project, actually I should check Kotlin, it's probably an insane amount

ocean quartz
#

Takes too long I give up

distant sun
#

wdym a project

#

and, my bad, for a second I thought that's files not lines of code, I forgot that's what M0dii asked for 😬

distant sun
#

Does anyone know if it is possible to copy the value of a static field in IJ? I have some fields that are composed by two other constants, and I need the final value to test something

#

The constant looks like this, and I would like to copy the final value (the one after =)

oblique heath
#

wdym by copy, where are you copying it to o.o

distant sun
#

On clipboard, sorry if I wasn't clear

oblique heath
#

i see

distant sun
#

there's this "Copy / Paste Special" menu, but it doesn't have what I need 😦

oblique heath
#

if you just need the value to test something you can make a quick and dirty main and print the final value >:)

distant sun
#

xD I can just navigate to the other constants and copy their value, I just need smth quick xD

wind patio
#

Scratch file?

distant sun
#

hm?

wind patio
#

Quickest way imo

distant sun
#

I see, but that's too much work 😬

#

I guess this is just a specific case

oblique heath
#

maybe you can find an extension which does what you want

distant sun
crude cloud
distant sun
#

-.- how

crude cloud
#

alt + enter

distant sun
#

O M F G

#

that's the most obvious place where a settings like this would be p.p thanks em

crude cloud
#

lol np

jovial iris
#

I just opened this plugin after a two month break, and the build.gradle is broken for some reason

static zealot
#

damn. that's crazy

jovial iris
#

The weird thing is that I haven't touched it

distant sun
#

It can be because of cache

jovial iris
#

oh should I invalidate cache?

#

it looks like it is searching on my machine for the jar, but can't find it so its failing

#

can I force it to download it?

static zealot
#

Are you using intellij?

#

make sure offline mode is not enabled

#

well actually, offline mode is not limited to intellij but I only know how to enable/disable there

cursive jolt
#

this should force it to try fetching dependencies again

jovial iris
#

Thank you

ocean quartz
#

Can also right click the project on the gradle tab and refresh it there

wind patio
wind patio
#

Or could this be an IDE thing? Should I Invalidate caches on IJ Idea?
Though it's still pretty annoying if it did work. I want the jar to be updated locally each time the release is updated on the remote by the dev tag.

jovial iris
#

not sure why..

#

when I go to the link it says 404 - Repository with ID="central" not found

#

is mavencentral not a thing?

distant sun
#

mavenCentral()

jovial iris
#

i mean i have that in there

frail glade
#

You probably want mavenLocal().

#

Spigot itself won't be in any of the main places.

distant sun
#

ahh, that's spigot

#

yeah you need to get it from your local repo or codemc's

jovial iris
#

ok i don't know what I just did but it builds now..

#

thats interesting

distant sun
#

look, I'm a web dev now

agile galleon
#

wow

prisma wave
#

sorry to hear that

agile galleon
#

that

cinder flare
#

i do think cra's default screen is very pretty though

#

here's a guide on why and a way to migrate

distant sun
#

Thanks for the tip, Star, I will check this out tomorrow

distant sun
agile galleon
#

use sveltekit with astro

cinder flare
#

well you'd use either sveltekit or astro

#

or you could use just plain svelte with astro if you wanted

agile galleon
#

hold up i mixed something up

#

yeah

#

youre right

half harness
#

how could I delete a plugin .jar file on server exit?
deleteOnExit works fine on my VPS except that on my PC, LuckPerms doesn't want to delete 💀

#

other plugins work fine

#

is there some other thing I can do?

#

or is deleteOnExit the best there is

cinder flare
#

sounds like a permission issue

crude cloud
#

sounds like a skill issue

half harness
cinder flare
#

sounds like it doesn't have permission to delete that file

#

epic windows moment i'm guessing

half harness
#

just not with luckperms 🤔

cinder flare
#

yeah hence why i think it's a permission issue with the jar

#

google is your friend

half harness
#

this also occurs in multiple servers

#

on my pc

pastel imp
#

React

#

my eyes

#

are burning

#

HELP

pastel imp
#

any ideas if this is normal by just running a jda bot?

#

it's constant

inner umbra
#

Could be the handshake to make sure the bot is connected.

half harness
#

its only 3.42KiB

#

which is reaaaaaaaaaaaaaaaaally little

half harness
#

or something related

pastel imp
#

hmm okay, ty, was just curious on what it was

cinder flare
#

pov: you don't understand the scale of the ptero graphs

distant sun
#

Smh Afonso

#

@dusty quartz wrong channel

dusty quartz
#

Well, I don't have the slightest idea of ​​English so I don't know how this issue of the discord channels with the gringos is going

distant sun
pastel imp
distant sun
#

same

#

🙂

ruby dew
#

#bot-commands for bot convos

vocal vortex
#

What do you think a reasonable world border size would be for 20+ players?

crude cloud
#

10

oblique heath
#

12

prisma wave
#

More than that

crude cloud
#

why

queen saffron
#

At least 2

mental trench
#

prob 3

wind patio
#

Well, hot take, but ever considered 1?

spring yew
oblique heath
#

16383 is too much

#

i think 12 is the prefect balance

potent nest
#

-42

spring yew
ruby dew
#

for listening to abstract events

spring yew
ruby dew
#

just use recaf to view the source code lol

#

its just for fun

spring yew
#

i want to see the commits tho

#

so i can see what was changed

ruby dew
#

gotta be honest idk how to use github properly

spring yew
#

smh

ruby dew
#

but will try

#

example usage:
listen for playerevents, but exclude playerquitevent

spring yew
#

if u cba learning git just download gh desktop

ruby dew
spring yew
#

make constraintType an enum

ruby dew
#

example usage: include events to listen on

also usage of determining which even type was triggered

ruby dew
#

recaf doesnt allow me to add source files so i have to make a workaround myself

spring yew
#

did u make that in recaf?

#

lmao

ruby dew
#

anyway the commits are in simplepluginmanager, abstract events(playerevent, worldevent, etc), registeredlistener, timedregisteredlistener, javapluginloader

#

just these classes

ruby dew
oblique heath
#

what's recaf

ruby dew
#

deals with bytecode directly you dont even have to resolve dependencies yourself

oblique heath
#

oh that's pretty cool

ruby dew
#

like the best java tool i have seen in a while

oblique heath
#

you should def learn git early though

#

it's very doable to learn it alongside a new language

ruby dew
#

think so, git is very powerful and i should be able to play with it when i do trash projects

distant sun
#

chances are I might like typescript after I get over all the JS bullshit (dependency management, config files and whatever else) - this syntax is so similar to java ❤️

ruby dew
#

typescript is bullshit-free version of javascript
or i personally call it c#script (peculiarly similar to c#)

#

no more dynamic typing they track all the type comparisons for you

distant sun
#

I don't know about C#, but yeah, looks nice

ruby dew
# spring yew i want to see the commits tho

if you really wanna know the details of how i started working on this tho

implement handlerlists and their getters in all abstract superclasses of events (playerevent,worldevent, etc)
rewrite annotations in eventhandler, and add annotations parameters in registeredlisteners,
override firevent methods by making the firevent method call events in registered listeners in handlerlists of abstract events too

#

im hoping to turn this into an nms spigot like with all the abilities to easily mess with nms packets, worlds and internal methods idk
just as a test project of some sort

distant sun
#

why 1.8.4 and why spigot though

ruby dew
#

i like og mc and paper is hard to mod using recaf Oof

#

gonna mod other jar and server versions later
just for fun, for now

potent nest
#

"og mc"

distant sun
#

lmao

potent nest
#

and using recaf for something like that is absolutely cursed

distant sun
#

@cinder flare since I can't find this anywhere I'm gonna ask you xD Does vite or cra influence how the code is written? Like, do you need to use a special format for each of them or they handle only the dev environment and compilation?

ruby dew
#

and using recaf for something like that is absolutely cursed
like yall just pull out the source files and resolve all the dependencies yourself? with the manifest?

distant sun
#

is this question related to spigot or what I'm asking?

cinder flare
#

CRA uses like Babel and tsc and Webpack, Vite just has all those things built in, plus nice code splitting + HMR

distant sun
#

ah, that's great then

cinder flare
#

a fun way to ease yourself into thinking about this is, if you follow I think either the React tutorial or the Next.js tutorial, it has you build a React app from scratch just using a plain .html file

#

then you add Babel and React and react-dom and it starts to work

ruby dew
#

i just invoke the methods without using babel

cinder flare
#

what lol

distant sun
#

Thank you star

cinder flare
#

ofc ofc, I'm really just starting to get super into React and stuff but I have stumbled my way through figuring that shit out lol

distant sun
#

i've had a few attempts to learn front-end but I never succeeded 🤣

ruby dew
#

front end is a pain in the ass

cinder flare
#

i'm really starting to like it honestly lol

#

the React model of thinking about things is kinda good

#

and components just make building UIs really damn nice

potent nest
ruby dew
#

deal with what

#

patching spigot?

#

oh

rotund egret
#

Use fabric

wind patio
#

randomly found this in the server root folder, any idea wtf is this?

#

not sure what the server owner was doing lmao

agile galleon
#

well thats most likely a virus

distant sun
#

yeah

#

if you use docker I guess you are fine with just reinstalling the things from that server

#

otherwise 😬 reinstall everything

ruby dew
#

look more like a prank for me

distant sun
#

idk better safe than sorry

cinder flare
#

yeah who wants to see what that script downloads lol

#

do a little wgeting

ruby dew
#

please send to me in dm

cinder flare
#

you can literally see it

ruby dew
#

it says operation timed out for online wget commands

#

and i dont have linux im on win11

cinder flare
#

oh lol

#

get WSL bro

ruby dew
#

oh yeah i forgot about that!

cinder flare
#

i am having an excellent time with it

#

only problem being that JetBrains applications are written in Java which doesn't yet have support for Wayland natively, so there's some really fucking ugly window decorations around it

#

but hey, they might be fixing it in Java 21 😉

#

only 8 more months to go

distant sun
#

the ip doesn't work though

cinder flare
#

damn, must've been an old script

#

have him cat out ./stdio lol

distant sun
#

🤣

#

true

#

@wind patio

ruby dew
#

@wind patio please upload stdio script in DM

#

we need to run a malware test against it

#

ghidra and ida pro or recaf is ready

distant sun
#

probably <command to gzip everything>

ruby dew
#

we are fully armed and are preparing for any inbound attacks

wind patio
#

seems like the script was never ran, no stdio in tmp lol

#

yeah well the closest thing I found was this

#

and the flag (the person who reported) matches my country lol

distant sun
#

wrong channel

#

and is not the first time I tell you this channel is not for plugin support

feral ruin
#

sorry

feral ruin
ruby dew
#

to have every script of his called weebs or sth like that

cinder flare
#

so close to just being the perfect machine, Windows for games and Linux fully for development

agile galleon
#

Why run jetbrains in wsl

cinder flare
#

so it can access the native wsl filesystem and use LF endings and run git quickly and install dependencies in linux versions instead of windows etc, etc, etc,

#

it is quite slow accessing stuff from WSL in Windows IJ

agile galleon
#

Why wsl then?

#

And not linux dual boot

cinder flare
#

so that I can run Linux and get all the things I actually want like wheels

#

so that I don't have to restart and use a desktop environment I don't like very much

agile galleon
#

I see

cinder flare
#

like we're so close

#

it's literally just the window decorations

#

i do have Fedora on a dual boot, but swapping and setting up all my shit and everything is a real pain in the ass yk

agile galleon
#

I've been using dual boot for ages and it's awesome, sometimes fedora or manjaro and i dev there and game on windows

cinder flare
#

yeah i've been getting away with some light development by storing the files in WSL, running like npm in WSL, then editing with the VSC remote extension

agile galleon
#

And it only takes a few seconds to reboot so that's a disadvantage i can cope with

cinder flare
#

if the IJ remote explorer thing was actually like, good, I would quite like it lol

cinder flare
#

do you have fast boot on or something lol

#

i live in fear of filesystem corruption from that shit

quiet depot
#

skill issue

#

just don't let ur files corrupt

#

noob

cinder flare
#

well that's what fast boot does

agile galleon
#

Nope

cinder flare
#

it saves shit to the hard drive in an incomplete state so that it can just resume it instantly upon startup

agile galleon
#

Don't have fastboot enablrd

cinder flare
#

makes accessing it from another computer very dangerous

#

huh

#

how many seconds is a few

#

like 60?

#

or like 4

agile galleon
#

Like 10

cinder flare
#

it takes 10 seconds from when you click restart in Windows to when you are in your desktop environment in linux?

agile galleon
#

Windows takes longer, but linux to windows about 10-15 seconds until I'm in log in

#

But im not 101% sure

cinder flare
#

damn

#

yeah still just the whole context switch and like having to reopen and resume all my apps and stuff is a major downer for me

#

and stuff like discord streaming not working (at least in Wayland w/ an nvidia gpu for me) is a huge deal breaker

agile galleon
#

But i agree, it sucks sometimes

cinder flare
#

okay guys september 20ish and they might add native support for wayland

#

then i also gotta wait for jetbrains to update their jdk used to the latest... and fix their actual window decorations...

#

man being on the bleeding edge really sucks sometimes

drifting aspen
#

it's just discord

#

but it has wayland support

#

The only thing I am aware of it not supporting is push to talk

cinder flare
rugged umbra
#

Regarding decent holograms

#

There is a new feature in the latest snapshot of minecraft
/summon minecraft:interaction

Can this be used instead of armorstands pepehmm cat