#dev-general

1 messages · Page 590 of 1

sick belfry
#

wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwe

steel heart
#

FiNiSh hrypton!

prisma wave
#

soon

#

gonna do a bit more of elara stuff soon

steel heart
#

Oo

sick belfry
#

hey you remembered that I still have to finish my motherfucker all-handler, fuck

prisma wave
#

i have been working on an ANTLR grammar to try and get a prototype out quicker

sick belfry
steel heart
obtuse gale
#

SO TRUE

prisma wave
#

but

#

yeah

#

if we can get a functioning parser then we can speedrun an interpreter, iron out any issues, and then make a compiler

frigid badge
#

hi

obtuse gale
#

hi

prisma wave
#

hi

steel heart
#

hi

frigid badge
#

how is everyone

drifting yoke
#

Great Mr. Lemmo

prisma wave
#

pretty good

drifting yoke
#

or Ms.

#

or

#

Im sorry.

prisma wave
#

i submitted by uni application yesterday 😎

frigid badge
#

Mr lmao

prisma wave
#

Mr lmao?

drifting yoke
#

BibleThump

prisma wave
#

you spelt lemmo wrong

frigid badge
frigid badge
drifting yoke
#

You're not in uni?

prisma wave
#

not yet

#

i hopefully will be next year

frigid badge
#

imagine going to school

#

:p

prisma wave
#

Imagine not

hollow walrus
#

so i have this

#

but it gives me like a random letters and sometimes a random name

#
@SubscribeEvent
    public void onEntityJoinWorldEvent(EntityJoinWorldEvent event) {
        if (event.entity.getEntityWorld().isRemote && event.entity == Minecraft.getMinecraft().thePlayer) {
            EntityPlayer player = (EntityPlayer) event.entity;
            ArrayList<String> name = new ArrayList<>();
            for(EntityPlayer p : Minecraft.getMinecraft().thePlayer.worldObj.playerEntities){
                if(p == null || p.getName() == null) {
                    continue;
                }
                name.add(p.getName());
            }
            player.addChatMessage(new ChatComponentText(name.toString()));
        }
    }```
dense dew
#

maybe, idk

half harness
dense dew
#

ok then what is it 😳

half harness
#

could be NPCs

drifting yoke
#

If you have any NPCs, they are all EntityPlayers

hollow walrus
#

hmm

#

im looking into hypixel

#

api

dusty osprey
#

Does anyone know of a good in-depth world generation tutorial? I'm trying to inject custom structure bounding boxes that are farmable

steel valve
#

how do i setup a client initilizar?
this is all i hahve in my main class

package com.tomsipsoncurry.vanillaplus;

import com.tomsipsoncurry.vanillaplus.registry.ModBlocks;
import com.tomsipsoncurry.vanillaplus.registry.ModItems;
import net.fabricmc.api.ModInitializer;

public class Vanillaplus implements ModInitializer{

    public static final String MOD_ID = "vanilla-plus";

    @Override
    public void onInitialize() {
        // This code runs as soon as Minecraft is in a mod-load-ready state.
        System.out.println("Hello World!");
        ModItems.registerItems();
        ModBlocks.RegisterBlocks();
    }
}```
apparently i need a client initializer for color providers fabric btw
drifting yoke
#

Hey guys I wanna have an API for my plugin but I want it to be mostly interfaces. Is there any way to deny access to other classes?

steel heart
#

wym deny?

forest pecan
#

Or anything lower

#

To not expose certain things

prisma wave
#

package private :^)

forest pecan
#

Yep

#

There’s also sealed/unsealed

static zealot
hot hull
#

meh

half harness
#

welp it just stopped at 5 mil 17 sec

tall helm
#

anyone has leak parkour

dense dew
tall helm
#

k

#

😦

#

just wanna

#

this help chat and no one helps me 😭

dense dew
tall helm
#

wat

#

i didnt get that plugin for my server

sly sonnet
#

?learn-java

compact perchBOT
#
FAQ Answer:

Online Courses:
Online courses are also great for learning java. Some websites that offer them are:

  • Coursera - Free unless you want a certificate
  • PluralSight - Great courses from what I've seen. Mostly Paid
  • Udemy - Never used them myself but they seem to all or at least most be paid.
    My first ever course was one from Coursera. - I can say it was pretty good at introducing me to the programming world as a whole not just java.

Oracle Docs:
Oracle docs can help a lot at learning and understanding java:

  • Start with this,
  • Breeze through this (skipping stuff that doesn't seem relevant like bitwise operators),
  • Hit this.
    They're the first three from this larger thing which you should definitely go through overall. But those three should be enough for slightly better understanding of what is happening here without feeling like a huge time sink.
    That one is a small part of this larger site wherein "Essential Java Classes" and "Collections" also have good useful stuff

Other services:
Some other cool services that will help you learn java are:

As you can see there are plenty of good ways to learn as long as you're willing to invest the time. Have fun learning!

drifting yoke
#

Should I ever make plugins with Kotlin?

sly sonnet
#

yes

#

and no

drifting yoke
#

Explaoin yourself

hot hull
#

kotlin superior

half harness
drifting yoke
#

Is it compatible?

half harness
#

yes

obtuse gale
half harness
#

99.9999999999999% of java things are compatible with kotlin

#

and spigot falls in that 99.9999999999999%

drifting yoke
#

What's that 0.0000000000001%??

half harness
#

¯_(ツ)_/¯

#

just put that there just in case

#

lol

drifting yoke
#

lol

steel heart
#

whats a good site to generate a random password?

sudden jetty
steel heart
#

Hmm

sudden jetty
#

dont use site generated random passwords

steel heart
#

yeah

#

but Idk what else to use rly

dense dew
steel heart
#

thats effort

steel heart
#

but yeah smart

sudden jetty
#

lol

steel heart
#

🌝

dense dew
steel heart
sudden jetty
steel heart
#

Matt

#

I saw u typing

#

there u go

#

good

ocean quartz
#

Tbh password is slowly becoming unneeded, 2fa is all you need

steel heart
#

yeah

#

well

#

for the time being

#

every platform I use dont have that option

sudden jetty
#

or use google authenticator dude

steel heart
#

Sadge :

ocean quartz
steel heart
#

ye lol

sudden jetty
#

ye thats what i said

steel heart
#

this website called blue spigot doesnt have 2fa /s

sudden jetty
#

blue spigot??? it exists?

hot hull
#

ngl I started using 2fa everywhere, and people be out here setting their password as password123

sudden jetty
#

i got 2fa in my bitcoin vault lawl

#

and the irony is

dense dew
# sudden jetty or use google authenticator dude

imo authy for example is better option because you cant restore google auth (except backup codes but i dont remember where i saved codes after year after adding 😅 )
it uses same protocol or how is it called so its compatibile

sudden jetty
#

that it has 5$ worth bitcoin

steel heart
hollow walrus
#

question

#

is minecraft gunna add there own server client?

#

like spigot/

remote goblet
#

no

steel heart
#

i mean the normal vanilla server jar is a thing

hollow walrus
#

yeah but i want more possibiltys

#

do you not see what bedrock has?

steel heart
#

what do they have?

hollow walrus
#

a lot more like custom mobs and icons and mobs and a lot more flexability

#

no mobs btw

steel heart
#

I mean you can still add that in to the normal vanilla jar

#

just a bit more complicated

hollow walrus
#

no but like i really wish they made the own spigot like with a lot more freedom

steel heart
#

like you could have an external bootstrap jar which could have something like mixins which you use to inject custom stuff into the normal shit

hollow walrus
#

like that

steel heart
#

minecrafts system is quite decently coded such that with mods its not too hard adding new mobs etc ¯_(ツ)_/¯

hollow walrus
#

ik

#

but imagine minecarft own version of server plugins

steel heart
#

hmm maybe

obtuse gale
steel heart
#

I mean Paper is amazing already

hollow walrus
#

btw if you guys dont vote copper golem

#

ima

#

😠

steel heart
#

idk

hollow walrus
#

a lot of people are saying allay

#

and its pissing me off

#

the only thing i can think of

#

is a

steel heart
#

all of the three are fine imo

hollow walrus
#

tree farm

#

it cant dupe or do anything

obtuse gale
hollow walrus
#

no way what is that

obtuse gale
#

With every new version Minecraft is becoming more and more data driven

hollow walrus
#

oh wait

#

ik what data packs are

#

its like plugins but without plugins

obtuse gale
#

Myes

#

Basically

#

You can do amazing things with them already

#

And even things you cannot do with spigot plugins such as custom dimensions

dense dew
#

what new mob will theoretically add most of new things for plugins devs?

hollow walrus
#

golem

#

i can add stages

#

with the rust

#

im already thinking of what i can do

quasi palm
#

Can anyone help me get my old account back. It asked me last night to verify and I tried but I guess it's so old it's not connected to anything .

#

Or atleast anything I remember . I really need to retrieve it

#

So it kicked me from it won't

#

Let me get back on

hollow walrus
#

oh shit

#

does this work with java and spigot/paper servers?

obtuse gale
#

With resource packs changing the model of an existing mob sure

hollow walrus
#

wait

#

then

#

so i just put this in my data pack folder?

dense dew
humble silo
#

so pretty...

public fun interface Ticking {
    public fun tick()
}

public object HookTickManager {
    private val toTick: Queue<Ticking> = ConcurrentLinkedQueue()
    private val theTicker: Thread = Thread {
        while (true) {
            Thread.sleep(tickRate)
            toTick.forEach { it.tick() }
        }
    }

    public var tickRate: Long = 50

    init {
        theTicker.run {
            isDaemon = true
            name = "Hook Ticker"
        }
    }

    public fun register(ticker: Ticking) {
        if (toTick.isEmpty()) theTicker.start()
        toTick.add(ticker)
    }
}
hot hull
#

ew

humble silo
#

isnt it gorgeous?

half harness
#

Anyone know what packet is called when I do Entity#setCustomName?

drifting yoke
#

you mean with DataWatcher

#

?

half harness
#

uhh

#

like if I do ```java
entity.setCustomName("Hello!");

drifting yoke
#

It should be Packets.Server.ENTITY_METADATA with protocollib

half harness
#

ty :D

drifting yoke
#

Np!

obtuse gale
#

oh mah god

#

mcdev plugin got updated sometime and now it supports completions for synthetic methods when using mixins

#

i'll never have to write this myself by hand ever again

ocean quartz
#

It has done that for a while no? I remember trying it some time ago and it was completing ;o

obtuse gale
#

for normal methods it does, for synthetic methods (not in source but in the class file, things like lambdas and stuff) it didn't

ocean quartz
#

Oh gotcha, i think i was doing a normal method

#

That's pretty cool

obtuse gale
#

it is

#

it also used to highlight it as red because it "couldn't find it"

#

big surprise

ocean quartz
#

@quiet depot I finally found the root of the issue!!

#

God that took me way too long lmao

#

It's the Collectors.toMap

obtuse gale
#

what issue?

ocean quartz
#

The parameter description loses its order on docdex

#

Because collectors.map will map it to a hashmap

obtuse gale
#

does dd use guava?

ocean quartz
#

Yeah

#

Does guava have a linked collector?

obtuse gale
#

try using the ImmutableMap.toImmutableMap collector

#

it uses the builder so it should retain insertion order (in this case, the order the elements streamed in are in)

ocean quartz
#

Testing now

obtuse gale
#

yeah it does

#

epic

ocean quartz
#

Yup nice tyty

obtuse gale
#

well, use it if you don't need the map to be mutable

#

lmao

ocean quartz
#

Don't think it's needed, i'll wait on Piggy to confirm though

#

2 days debugging for 1 line change, nice

obtuse gale
#

otherwise you can just use Collector.of(...) tbf, it's not hard

ocean quartz
#

That's what I was doing before you mentioned that one

#

Now for the final test

#

Still broken thonking

#

Fixed :pepehappy:

obtuse gale
#

nice

#

what was it now lol

ocean quartz
#

The parameter description is in the wrong order

#

Oh wait

#

You mean what was the second issue

#

It was the deserialization

#

Both had to be changed

obtuse gale
#

JsonSerializer 🤢

#

TypeAdapter 😩

ocean quartz
#

Beautiful

obtuse gale
#

lol

ocean quartz
#

Sad news for Piggy though, it requires all docs to be re-index 😩

obtuse gale
#

pepebla

onyx loom
#

can we get pepebla in this server pls

remote goblet
#

pepebla? StareIntoYourSoul

onyx loom
#

needs more pixels

onyx loom
#

lmao

ocean quartz
half harness
half harness
#

might be because those entities were already patched by bedwars

#

anyone know a way of how i could identify specific armorstands without nbt api? 🤷

half harness
#

:p

urban sleet
viral grove
#

GitHub vs GitLab?

#

What are the advantages of one over another? Currently using GitHub.

obtuse gale
remote goblet
#

Github, why? It’s just better idk

#

I’ve never liked gitlab

ocean quartz
#

Gitlab is ugly and less people use it

half harness
#

woa

#

i just found out how good spark is 👀

#

timings would only say about where it is

but spark literally shows it like a stacktrace

#

🥲

gusty glen
urban sleet
half harness
compact perchBOT
#
Plugin Search:

Please select a plugin,
1️⃣ - SpaceFlares/Envoys - Extremely Configurable! (1.7.10 - 1.15.2) [97 Downloads]
2️⃣ - AirdropFlare || Crates from Sky || Rewards [53 Downloads]
3️⃣ - MiningFlares [167 Downloads]
4️⃣ - Pixel Flares [100% CUSTOM] [EULA COMPLIANT] [IN PROGRESS] [139 Downloads]
5️⃣ - Redstone Flare [117 Downloads]

half harness
#

lol

urban sleet
half harness
#

👀

#

aw no search bar

urban sleet
#

Probably will be added in a later version

#

It's paid, but it's super useful

half harness
urban sleet
#

Only $5 a month

half harness
#

i dont think its that useful to be paid 👀

spark looks identical without the memory section

#

and for the chart i guess timings has it

urban sleet
#

I believe there some pros compared to spark but I don't know what they are, i'd have to ask the dev

half harness
#

ooh it has plugin view

urban sleet
#

Yeah I have to find out more about the advantages but I know one of the good things is that it runs async

half harness
#

speaking of async

half harness
#

🎉

urban sleet
#

Wow

#

Might as well make everything async /j

half harness
#

lol

urban sleet
#

I think Minestom is fully async, I was planning on using it for a lobby/queue server at some point

ocean quartz
#

Flare looks like a theme for Spark lol

urban sleet
#

I think running async makes it more accurate (do not quote me on that)

half harness
#

btw in my config

#

should i make papi parse async default true or false

#

¯_(ツ)_/¯

#

lol

#

im trying to reduce lag 🥺

onyx loom
#

is papi thread safe?

obtuse gale
#

Depends solely on the placeholder implementation

obtuse gale
#

If it can't, well, it can't

#

So it doesn't

#

Lmao

old wyvern
#

yea

#

lol

quiet depot
#

@ocean quartz woo

#

when's the pr?

old wyvern
#

oh shit

#

hacktoberfest

quiet depot
#

yes

old wyvern
#

my lazy ass hasnt done anything this month

urban sleet
quiet depot
#

better go quick

ocean quartz
#

Was waiting to ask if the Map being immutable is fine

old wyvern
#

Dried up commits

#

🥲

quiet depot
#

uh

#

yea

#

should be fine

old wyvern
obtuse gale
old wyvern
#

Does flare work with those?

urban sleet
#

Yes

#

It doesn't really matter anyway though - I'm just trying to mention what I think the advantages are

old wyvern
#

🤷

ocean quartz
#

I love the 2 days of debugging and searching for 2 lines of changes 🥲

quiet depot
#

:>

#

I did offer to tell you exactly where the issue was

obtuse gale
#

I was also part of the solution😌

ocean quartz
#

^ 😌

ocean quartz
quiet depot
#

d;spigot player#playsound

ruby craterBOT
#
void playSound(@NotNull Location location, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch)```
Description:

Play a sound for a player at the location.

This function will fail silently if Location or Sound are null. No sound will be heard by the player if their client does not have the respective sound for the value passed.

Parameters:

volume - the volume of the sound
sound - the internal sound name to play
location - the location to play the sound
pitch - the pitch of the sound
category - The category of the sound

quiet depot
#

wot

obtuse gale
#

wot wot

quiet depot
#

nvm bot just being stoopid

#

caching I think

#

d;spigot player#playsound

ruby craterBOT
#
void playSound(@NotNull Location location, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch)```
Description:

Play a sound for a player at the location.

This function will fail silently if Location or Sound are null. No sound will be heard by the player if their client does not have the respective sound for the value passed.

Parameters:

volume - the volume of the sound
sound - the internal sound name to play
location - the location to play the sound
pitch - the pitch of the sound
category - The category of the sound

quiet depot
#

k i am is very confused

#

idk let's just give it an hour see if it fixes itself

sinful geyser
#

lol good plan

obtuse gale
#

Didn't Matt mention something like you need to reindex the docs?

obtuse gale
#

Lol

old wyvern
#

Whats the change?

obtuse gale
#

Parameter ordering

quiet depot
old wyvern
#

ohh

obtuse gale
#

The descriptions ordering matches (or, should, lol) the method signature's one

quiet depot
#

oh i know why it's not working

#

need to update the bot too

#

forgot they shared the same type adapters

#

d;spigot player#playsound

ruby craterBOT
#
void playSound(@NotNull Location location, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch)```
Description:

Play a sound for a player at the location.

This function will fail silently if Location or Sound are null. No sound will be heard by the player if their client does not have the respective sound for the value passed.

Parameters:

location - the location to play the sound
sound - the internal sound name to play
category - The category of the sound
volume - the volume of the sound
pitch - the pitch of the sound

quiet depot
#

yay

obtuse gale
#

nice

ocean quartz
#

Ayy nice

empty flint
#

Hey guys, anybody know how to get the protected field of a java super class in Kotlin? (and its instance?)

I have the class TableViewSkin.java which extends TableViewSkinBase.java, which in turn has a protected member called flow of type VirtualFlow<I>.
My class has access to a TableViewSkin instance in Kotlin, and I need to get access to this member flow and save it to a variable. I know there is reflection like getDeclaredField and set accessible, but I am a bit at a loss as to how to apply this to a super class and get the actual object behind the field.

hot hull
#

hwat

#

@quiet depotdid you order your shirt yet

quiet depot
#

not all mature yet

hot hull
#

oh

static zealot
#

oh I should have at least 4

#

yup. 4 out of 6

hot hull
#

Time to decline them Hehe

static zealot
#

lmao

#

done

#

time to wait, forget that I ever ordered a tshirt, be reminded in 5 months by one of you guys when you get it, then forget again and never get it.

hot hull
#

lol

wintry plinth
#

I forgot to check mine

#

Time to order, actually forgot I done this lol

#

Done ✅

half harness
#

btw how does spark work? like how come you have to record it on a length of time?

#

so what time does it show in the spark viewer?

#

average?

static zealot
#

Anyone know a tool that would help me copy my HDD to my SSD? I am dual booting Windows 10 and PopOS and the tools I found mostly can migrate just windows and there's some that can migrate just linux but nothing that can just make a 1 to 1 copy of my entire HDD.

#

found a couple that claim they can do this but they all look like adware or just let you install them then ask you to pay for you to use them.

#

the only one that actually seem to be able to do what I want for free is Clonezilla but going thur their documentation, got 0 clue how to use xD

polar goblet
#

Because most of the companies that make SSDs give you a free tool to Migrate and Clone.

#

I know my Samsung M.2 came with a special tool.

quiet depot
#

I found one a while ago that I used when I decided to install linux as my primary os

#

had to move windows to my other ssd

#

let me try find it

polar goblet
#

I know there was one I had to use for work.

#

I'll try and find what it was called.

frigid badge
#

can’t you just use diskpart

quiet depot
#

no clue

#

the app I found allowed me to clone windows to another drive, even though that drive was smaller than the original

#

no complications at all, I could boot directly into that drive and everything worked perfectly

#

if not that in particular, it was definitely by easeus

#

and I didn't pay for it

#

not sure if it was a trial or not, I don't think it was

static zealot
quiet depot
#

the easeus tool does a full copy of the hdd pretty sure

#

or whatever

static zealot
#

will do. I remember I tried using another of their products a while ago. Think it might've been a disk manager to make new partitions or whatever. the app worked and it let me make new partition but when I ended up pressing "Apply" it would require me to pay bcz I had a "free trial" lmao

#

so basically wasted my time

quiet depot
#

rip

#

I remember having to fuck around with their products for a little while before I found the right one

static zealot
#

well it says it's free

#

so will try it

quiet depot
#

iirc they have 2 products that can do the same thing

#

one is a free trial and one is fully free

#

the one I linked can do it, but idk if it's free or free trial

static zealot
#

when they have ms you know its the good stuff xD

half harness
#

btw is there any faster method of checking if an entity is valid besides doing Entity#isValid?

since i don't think theres any like "EntityDespawnEvent", is there?

half harness
#

oops

frigid badge
#

if it isn’t expensive might as well just pay, had to convert old dvd and cd drives to mp4 a few months ago and was like I could just pay for this and not waste my time or have this take like 2 days, ended up paying just to save tim e

static zealot
#

its an exe... fuck.

frigid badge
#

excuse my typing

static zealot
#

its 30$. I ain't got 30$

quiet depot
#

I nearly did pay till I found the free version

static zealot
#

oh nvm

#

its 35 euros

frigid badge
#

well yeah being broke does not help

static zealot
#

bcz why put the real price

quiet depot
#

blotz just use it in windows then

static zealot
#

on the website

static zealot
#

crashes a lot

#

basically back to what it was before the clean install

frigid badge
#

inb4 drive is corrupted

#

reminds me of an old server I had running in my house

#

came from like 2008

quiet depot
#

you could try clone the drive with some linux tool

#

I guarantee you one exists

frigid badge
#

so slowly the drive would corrupt and I’d have to have it fixed and lose some files

static zealot
frigid badge
#

and it repeated and repeated lmao

static zealot
#

IDK. Tried a fresh reinstall on the drive and it worked for a while then it started doing it again

quiet depot
#

if it starts corrupting is the drive kaput? or just software errors leading to it?

static zealot
#

at this point I might just use the SSD and manually reinstall POPOS

#

but that will take another 2 days of my life 😦 so I'd have to wait until next weekend

quiet depot
#

clonezilla is very popular

#

even if there's no official docs

#

there's lots of info out there

#

just find a tutorial

static zealot
#

there is official docs actually

#

but I don't understand them

quiet depot
#

then just watch a youtube video

static zealot
#

yeah

#

am doing that rn

#

will see what I get out of this

quiet depot
#

if clonezilla fails you I'm just reading about this thing called "Timeshift" now

#

have a look at it if clonezilla doesn't work out

#

I think it can do the same stuff

static zealot
#

oh. my. god

quiet depot
#

more oriented to backups than cloning but I think you can (mis)use it for cloning

static zealot
#

this entire time I Was so fucking confused bcz the docs said I need to have clonezilla on my external usb device and all this time I thought they meant on the other ssd. turns out you need the ssd and an a thumbdrive on which you need to install clonezilla

#

that makes a lot more sense to me

cunning oriole
#

how do I report someone?

oak patrol
#

can someone explain me in detail whats the differrence between plugins and datapacks ?

distant sun
#

@cunning oriole message @compact perch

static zealot
#

btw. piggy. ended up buying a laptop for 750 USD. Its an ASUS vivobook 15 X515EA. i5-1135G7, 15.6 inch, 16 gb ddr4 RAM, 1tb of ssd m.2.

#

pretty happy with it

#

also has the intelr iris x integrated gpu which is actually pretty ok.

#

well actually good

#

not ok

polar goblet
#

Not good for gaming but its fine for anything basic like Programming/Designing etc.

static zealot
#

yeah. not needed for gaming

#

needed for school

polar goblet
#

Then thats fine.

static zealot
#

I mean it does run minecraft at 140 fps which is the only game they really play

#

but yeah wasn't looking for anything gaming related

quiet depot
#

👍

#

@static zealot nvme or sata m.2?

static zealot
#

nvme

wintry plinth
# static zealot yeah. not needed for gaming

The same position as me, I have a MacBook Pro & a desktop gaming tower, I ended up giving the tower to my mum, because I don’t game really ever.

So for me, programming + MC when needed easily works for what I need

wintry plinth
ocean quartz
#

lower-case superior

wintry plinth
#

Haha, just curious to see because everyone has their own view on it

#

It sounds silly but it’s still an appearance

gusty glen
#

what is the default extension for hocon, is it just .hocon?

prisma wave
#

.conf I think

wintry plinth
timber oak
#

Which program would you guys recommend for SQLite?

#

A program like XAMPP for MySQL

#

Or something

stuck harbor
#

altho i use adminer sometimes, dunno if it does sqlite tho

timber oak
#

Does SQLite not use execute() for preparedstatements like MySQL does? I see this used in an example, which I havn't used in MySQL

                PreparedStatement statement = connection.prepareStatement(
                        "CREATE TABLE IF NOT EXISTS `" + RankupPlugin.tableName +
                                "` (`uuid` VARCHAR(36), `rank` INTEGER, `prestige` INTEGER)");
                statement.execute();
                statement.close();
obtuse gale
#

It's using execute right there?

timber oak
#

Yes but in MySQL I would use executeUpdate I think?

#

Or is that the same

#

I'm kinda confused on how execute works and what the different kinds do

obtuse gale
#

Well it depends. I suggest you read the javadoc for executeUpdate, executeQuery and execute. That's how I got to know what each one is for and when to use which

prisma wave
timber oak
timber oak
#

But can't see how you would want more than one resultSet in my example, since that's what just execute() is used for

prisma wave
timber oak
#

Yeah, but they do not have my School listed sadly

prisma wave
#

Doesn't matter

#

Either use a school email, or submit any proof that you're a student

#

Any documents work

timber oak
#

Hmm alright, I'll give it a shot, I just need to make this first since I've got about 2 hours before it should be finished lol

prisma wave
#

Yeah yeah just making you aware

#

I asked my teacher to write a letter that basically said "he goes to our school" and that was good enough lmao

timber oak
#

Thank you

hot hull
timber oak
#

Oh yeah I actually do

prisma wave
static zealot
#

we don't have an edu email either

#

and it still accepted it

gusty glen
hot hull
prisma wave
#

Well it wasn't

#

So

hot hull
#

What kind of whack ass school was that then

steel heart
#

Secret maybe make it moshi compatible?

#

But very nice

#

I have added it to my try out list (;

gusty glen
#

still on development though, JSON will throw an exception for now haha

gusty glen
steel heart
#

Yeah

#

Not a bad job, it looks quite solid tbh

hollow walrus
#

so im looping in the players inventory how do i set a itemstack as another?

#
@EventHandler
    public void onJoin (PlayerJoinEvent e) {
        for(ItemStack itemStack : e.getPlayer().getInventory()) {
            if(itemStack == null) {
                continue;
            }
            if(itemStack.getItemMeta() == null) {
                return;
            }
            MasterItems masterItems;
            if (ItemUtil.isMasterItem(itemStack)) {
                masterItems = ItemUtil.getMasterItem(itemStack);
                if (masterItems != null) {
                    ItemStack newItem = masterItems.getItem();
                   //set the itemstack in his inv to another one
                }
            }
        }
    }```
gusty glen
steel heart
#

I thought of doing something similar just me being superiorly lazy

#

But now I don’t have to pepestonks

timber oak
gusty glen
#

still poorly documented, but I promise I'll write an entire wiki for it soon™️

steel heart
#

Respect for actually documented it still

static zealot
timber oak
#

Ahhh nice, I've got one of those

cunning oriole
#

When is anyone even gonna check my report, prob more ppl will get scammed. I got sacmmed 60$ bruh

static zealot
cunning oriole
#

Hm ok

static zealot
#

oh man. I should really start thinking before I randomly start working on something. this is not the first time when I just randomly start working on a project and end up with a full rewrite so the whole time I can't even fix existing bugs until I finish the rewrite bcz I didn't make a new branch...

#

I mean fix bugs on the live product

timber oak
wind patio
#

well

#

run it async?

#

it locks the main thread till it finishes I assume

half harness
#

while loop in spigot plugin 🥶

wind patio
#
while (true) {
  // die server lol
}
timber oak
timber oak
half harness
#

u can use bukkitscheduler

#

to run every tick

#

aka 20 times per second

obtuse gale
#

I mean it wildly depends on what you're doing

#

like, WILDLY

sweet cipher
#
while (server.isTicking()) {

}
hallow crane
#

Are there any React/Vue frameworks that can allow me to create a UI that looks and functions like this?

ocean quartz
#

Definitely possible with both, but probably a nightmare

hallow crane
#

Maybe a nightmare but I gotta :p

#

Any idea how that UI in the video was made?

#

I'll reupload w/o download

distant sun
#

Looks like a lib for graphs

eternal compass
#

make the grid, then use some logic to snap where elements go

ocean quartz
#

To get it as complex as that it'll be a lot harder than just that

eternal compass
#

then use grid or flex depending on how you want it to feel

#

or both

#

then make row sizes changable

onyx kindle
#

Yo, is anyone smart with using bungeecord for minecraft serverS?

ocean quartz
onyx kindle
#

oh didn't even see that chat.

sudden jetty
#

who can do whmcs things here?

static zealot
static zealot
#

yes

drifting yoke
#

Is it normal for my plug to be 3MB when shaded with reflections package?

remote goblet
#

Yes

#

Reflections chonky

drifting yoke
#

Ew

#

I'm not making my plug 3 MBs bigger just to flex on people that will decompile my jar that I can register all the events with a for loop

viral grove
onyx loom
#

why do u need reflections to register events with a for loop
i am confused

static zealot
#

why not

drifting yoke
#

true

obtuse gale
#

It's a bigger flex if you do it yourself by scanning the jar file

ocean quartz
#

Yas!

thin lodge
#

has anyone tried any of the ai auto complete IDE plugins? how well do they work?

ocean quartz
#

Codota is cool, but it merged into Tabnine which doesn't work so well for me so I still use Codota

obtuse gale
#

Is there really a reason to use codota/tabnine? In my experience IJ's auto completion works more than fine
It's not like I rely on completions, most of the time I start typing the thing I need and just tab/enter to adjust for caps

ocean quartz
#

For me the only advantage of codota is that instead of just autocomplete it gives me completions based on things I do often which actually does help a lot
For example if you do item.getMeta() a lot, it'll slowly become the top one so item.g would instantly be meta

#

And adapts quite well to what you're doing

thin lodge
#

do you have any intellij plugins that you recommend?

ocean quartz
#

Literally the most important plugin

thin lodge
#

understood

distant sun
sick belfry
#

mine is 800kb with like reflections and other package shaded

#

lol

ocean quartz
#

It's not strange at all, you're probably minimizing

obtuse gale
obtuse gale
ocean quartz
#

Like for real not even joking, Material UI and icons, Nyan progress bar, Rainbow brackets, Discord integration, and GitToolBox, are the main plugins I always install

sick belfry
#

so if you dont mind imma go and punch my head to understand NMS

ocean quartz
sick belfry
onyx loom
#

git tool box?

ocean quartz
#

Adds git information

#

Like, who wrote which line

#

And when

sick belfry
#

gud

#

na who cares NMS can wait

#

time to learn protocollib

distant sun
#

is that always displayed or?

sick belfry
#

ye better

obtuse gale
ocean quartz
distant sun
#

ah nice

ocean quartz
#

Oh yeah and also adds git info to files

distant sun
#

and what is that supposed to mean?

#

branch name and commits?

ocean quartz
#

Branch name and how many commits ahead it is

distant sun
#

couldn't they use an uglier symbol lol

ocean quartz
#

You can change xD

distant sun
#

thin lodge
obtuse gale
#

WHAT

onyx loom
#

😬

obtuse gale
#

You HAVE to get Nyan cat progress bar

distant sun
#

material ui*

thin lodge
#

the one i got is more personal to me ;)

obtuse gale
#

I do not care

#

KVNWJFJ

#

Unless it's something like anime femboys

#

Then yes

ocean quartz
#

Also String Manipulation plugin is pretty cool too

distant sun
#

what now

thin lodge
distant sun
#

if you are talking about keybinds to turn a string upper / lower case, isn't that built into IIJ?

ocean quartz
#

You select something and it gives you option to change case, repeat, encode, escape, etc

obtuse gale
#

What is it

thin lodge
#

lmao

#

trans pride progress bar

obtuse gale
#

Ah nice

distant sun
#

that's nice lol @ocean quartz

ocean quartz
#

Yeah

distant sun
#

keep cool things for you, noob

ocean quartz
obtuse gale
ocean quartz
#

LMAO

obtuse gale
#

WHAT

onyx loom
#

🥴 🥴 🥴 🥴

obtuse gale
#

ITS literally JETBRAINS

#

Xksnckwn

onyx loom
#

waduhek

#

i thought i bypassed it

ocean quartz
#

Baza is strict af

#

Fascist admins

onyx loom
#

what is even inappropriate about that 😂

obtuse gale
#

.jetbrains.com/help/idea/

ocean quartz
#

I got the link dw xD

#

Seems like string manipulation is still easier though

sick belfry
ocean quartz
#

Kangarko uses notepad 🥴

distant sun
#

are you surprised?

onyx loom
#

what the fuck

distant sun
#

also, where is that from lol

sick belfry
onyx loom
#

nice consistency with the brackets too 👍

distant sun
#

no, the ss

ocean quartz
#

Oh lmao

obtuse gale
#

It's not your every day Regex find and replace

#

It does have a quite steep learning curve

ocean quartz
#

Seems cool yeah

distant sun
#

Uni is fun, today I was very busy, couldn't do anything for work and now I have to stay over time to finish my tasks 🥲

obtuse gale
#

Ain't that cool

distant sun
#

Spent 6h doing nothing

#

And at the end we had a teacher yelling at us lmao

#

If you had a problem she was like "obvious it doesn't work, silly, you did something wrong, idk what but you did"

frigid badge
#

sounds like you did something wrong bud

#

smh

ocean quartz
#

@obtuse gale Here is one example of what imo is better, it fills in the method, while IJ's doesn't

obtuse gale
#

Fill in as in possible arguments too?

ocean quartz
#

Like, i have a list called arguments, the method takes a list, and the parameter is called arguments so it'll associate both and automatically add the list there

obtuse gale
#

Yeah that's fair, IJ does that but for very basic/common/"predictable" things, e.g. Stream#collect (can complete with different Collectors), String#toLower/Uppercase (usually fills in Locale.ROOT) and maybe something else
So yeah that's neat

trail wraith
#

i'm new, sorry

ocean quartz
#

Skript 🥴

obtuse gale
#

ConsoleSpamFix or smth should do the trick

trail wraith
#

It isn't because it's just for 1.16.x

obtuse gale
#

Does it not work? Have you actually tried it out?

#

But from what I know CSF should work fine (I haven't used it in literal years tho)

trail wraith
ocean quartz
trail wraith
#

Ok, sorry for disturbing

obtuse gale
#

No worries

ocean quartz
#

It's okay no need to be sorry

thin lodge
#

oops discord rich presence just crashed my intellij

ocean quartz
#

Discord integration > Discord rich presence

thin lodge
#

noted

sly sonnet
ocean quartz
#

🥴

timber oak
#

What is the problem with using async in some examples?

#

Because it will modify a value after you might need it? Or what

steel heart
#

Uh sometimes doing stuff async can be hard to test

#

Personally had some problems with atomicity

#

But then we got the fact that you might be dealing with non thread safe stuff

timber oak
#

Maps?

steel heart
#

You know how code is built up of super small instructions

#

Like store value to variable, get value of variable, sum 2 values etc

timber oak
#

Ye

obtuse gale
# timber oak Maps?

That depends on the implementation of the Map, for instance a HashMap or a TreeMap are not thread safe, but a ConcurrentHashMap is

#

Same would apply for List and other Collections; but it's not bound to collections only, it can be just about any kind of mutability (things that can change)

steel heart
#

when stuff is done async, concurrently or in parallel you might have this:

a = 5

Now let’s say you want to increment the value the variable is holding in two threads where both threads run

a++ (which is by getting the value of a, add 1 to it, store it back in the variable a)

If you increment variable a two times in one thread it will look something like this:
get value of a (5)
add one (5+1=6)
store value 6 back to a

get value of a (6)
add one (6+1=7)
store value 7 back to a

In two threads it might be something like
(T1) get value of a (6)
(T2) get value of a (6)
(T1) add one (6+1=7)
(T2) add one (6+1=7)
(T1) store value 6 back to a
(T2) store value 6 back to a

So despite incrementing the value of variable a in two threads the result is that the value of the variable only got incremented once.

prisma wave
obtuse gale
#

sheesh

prisma wave
#

There's a good tom scott video on this I think

obtuse gale
#

i can't count either

static zealot
#

and not just sometimes

obtuse gale
#

i didn't finish elementary for some reason

#

they didn't tell me

timber oak
static zealot
#

monkey

steel heart
#

blonkey

static zealot
#

fuckey

steel heart
static zealot
#

suckey

sick belfry
#

cockey

static zealot
#

pussy

sick belfry
#

wow wow we goin too +18, lets keep it sfw lmao

static zealot
#

why?

#

I ain't working

sick belfry
#

first this is #dev-general second come on man, why the fuck would you want to go a bit +18 on a dev channel?

steel heart
#

It’s because blotz like kotlin

static zealot
#

who's kotlin?

steel heart
#

Joe mom

static zealot
#

oh. joe mom is cool. I use joe mom every day

#

getting addicted to joe mom

steel heart
sick belfry
static zealot
sick belfry
#

welp time to continue punching in my head to understand NMS

static zealot
#

I can punch your head if you want

sick belfry
static zealot
#

or if you don't want too

sick belfry
#

imma dieeee

static zealot
#

😃 🔨

sick belfry
half harness
#

What should I do if I want to send components? but still use deluxechat

ocean quartz
distant sun
#

A little bit of anime cringe

#

How could a nice company like github create a shitty mobile app for their service??

dense dew
#

why is it shitty 😔

wintry plinth
#

Had to uninstall it

#

So I could use the web version instead

obtuse gale
#

what's wrong with it

distant sun
#

everything

obtuse gale
#

let me ask again

#

what's wrong with it

distant sun
#
  • Has very basic functions (view your profile, repos, open issues, view code and whatever)
  • The code lines are split into multiple partes so they fit on your screen
  • Doesn't feel like an app made by a company that worth billions, rather by a team of 3 people
obtuse gale
#

The code lines are split into multiple partes so they fit on your screen
have you tried, idk looking into the app settings?

#

Has very basic functions
what else do you need? you can review PRs, manage labels, collaborators, org teams, ...

#

oh

distant sun
wintry plinth
#

idk about you gaby, I just feel its more elegant browsing the web ver

#

than going through button after button on the app

#

like repos and orgs especially

distant sun
#

Is not the best app

obtuse gale
#

how ironic we're chatting on discord

wintry plinth
#

o

fleet bay
#

I am almost level 9!?!?!?!?!

wintry plinth
#

congrats

fleet bay
#

Such an achievement

#

Haha thanks

#

I personally really like this Discord Server tho

#

it has a nice and friendly community

#

Does anyone know SkUnity?

#

I used to ask for help there

#

But they weren't as friendly as people here

prisma wave
#

Whynnnnnnn!Nan

obtuse gale
#

I'm.. sure you can?

distant sun
#

Idk what phone you have but I can not

wintry plinth
#

i wouldnt be surprised

#

shitty app

obtuse gale
#

I can select lines & copy 'em; not select specific sections within a line, but highlight lines, share and copy them yes

old wyvern
#

I remember not being able to do some work through the app a while earlier

distant sun
#

Nope, it doesn't work

old wyvern
#

Might be releases, not sure?

distant sun
#

Do you use the beta version, Em?

old wyvern
#

me?

#

oh

#

emily

obtuse gale
#

err

#

let me check

#

wasn't there a section in the play store to see which apps you're in their beta program?

#

yes, i am in the beta program

distant sun
#

Right

wintry plinth
prisma wave
#

sit down kid

obtuse gale
#

you're like 2/3rds my age lmfao

prisma wave
#

yeah I don't see how that's relevant

obtuse gale
#

"kid"

prisma wave
#

?

#

Can you elaborate

obtuse gale
#

No thank you

forest pecan
#

ok boomer

plain flume
#

hi

distant sun
#

@gusty glen you can use com.github for your own projects? I thought the domain is io.github 🤔
Nice project btw

dawn hinge
#

It was .com in the past but they switched due to security concerns iirc

gusty glen
drifting yoke
#

@quiet depot with dependency injection I can avoid some static variables right?

quiet depot
#

yes

drifting yoke
#

Cool thanks

hot hull
#

"some"

#

You mean all

frigid badge
#

as long as you don’t use ewwy guice

quiet depot
#

y u no liek guice

hot hull
#

hard readability from a certain perspective

quiet depot
#

personally I find it easier to read than normal di

static zealot
#

that's bcz you got experience with it. but for me its not that easy since I never worked with guice

steel heart
#

Just passing around dependencies normally feels easy enough

frigid badge
#

I mean they’re necessary but I don’t really like them

steel heart
#

Personally I can’t find a big gain of using guice instead

hot hull
#

just make everything static, problem solved

frigid badge
#

just stop programming huge brain move

hot hull
#

just use Go

quiet depot
#

become cto

hot hull
#

ez claps

quiet depot
#

become lemmo

hot hull
quiet depot
#

lemmo if i move to netherlands will u give me job

#

i will rewrite your js clusterfuck in java

#

with guice

prisma wave
#

Just use a paradigm that doesn't need dependency injection

frigid badge
#

if you move to the netherlands yeah I’d get you a job

quiet depot
#

k

#

i'll let you know when I arrive

frigid badge
#

great

frigid badge
drifting yoke
#

DO I need to include jetbrains annotations to the shaded jar file

ocean quartz
#

No

drifting yoke
#

thx

drifting yoke
#

With Guice I'll never need to initialize a new object the default way right? I can just do it all with Injectors

static zealot
#

someone give me some entertaining youtube videos please. my youtube recommendation page is trash

ocean quartz
static zealot
#

Ty

ocean quartz
#

Why does it check twice wtf mojang

hot hull
#

cause different check?

ocean quartz
#

The hasFixedTime Frosty

hot hull
#

I mean why not

ocean quartz
#

return !isDay() is all it needs, it already checks the fixed time in the isDay

drifting yoke
#

cuz !isDay() checks hasFixedTime() wheras isNight checks !hasFixedTime()

hot hull
#

No

#

They both check if it's false

drifting yoke
#

How? if isDay checks if it's false then !isDay checks if it's not false

ocean quartz
#

Alright I tested it, it's not as dumb, only matters if hasFixedTime is true, still could be a lot DRYer though

obtuse gale
#

That's a weird check

ocean quartz
#

Yeah

#

Also it's kinda odd that it checks for night based on sky darkness instead of time, i understand why, just odd

drifting yoke
#

Is the snakeyaml responsible for configs in spigot?

obtuse gale
#

In part yes

#

It does all of the "heavy lifting" which is the actual de/serialization process from/to yaml format

drifting yoke
#

Can I implement a similar algorithm for my configs?

obtuse gale
#

Huh? Algorithm?

drifting yoke
#

Like, a serialization deserialization

obtuse gale
#

You mean the actual yaml serializer? That takes an object of a certain type and creates a valid equivalent for the yml spec into a file and vice versa?

#

Or what? Not sure if I understand

drifting yoke
#

Yes

#

That one

#

Is that like gson?

obtuse gale
#

Uh no

#

Gson is a json serializer, snakeyaml is a yaml serializer

#

I'm still not sure what is it you're asking exactly

drifting yoke
#

Nvm, that partially answered my question xD

#

Why did I think that binding a SINGLETON Scope to Main would not instantiate it ever?

sweet cipher
#

What?

drifting yoke
#

Guice

#

bind(Main.class).in(Scopes.SINGLETON);
Idk i felt like this would never need to instantiate another Main in the first place

prisma wave
#

Well, it's a lazy singleton

#

Soo

obtuse gale
#

Guice singletons 🤢

#

enum singletons 😌

ocean quartz
#

Oh god, enum main class flashbacks lmao

sweet cipher
#

What?

sly sonnet
#

both check hasFixedTime()

obtuse gale
#

Both check if it isn't fixed, but by doing !isDay it also checks that.. it is fixed

timber oak
#

Oh what, what now?

#

Can tokens be used from commandline?

obtuse gale
#

It's giving you a blog post about it
Silly idea but maybe you should read it, probably

timber oak
#

Couldn't find anything about how to use it for commandline but I'm probably just blind

#

Found it...

wintry plinth
#

@timber oak don’t use tokens

#

Use SSH keys

timber oak
#

Huh, why?

wintry plinth
#

Much better, won’t require entering a token periodically

timber oak
#

So I can just push whenever I want if I'm on a pc with a specific ssh key?

#

I should probably look into how they work for github

ocean quartz
#

Sounds like a terrible user experience message above was deleted 😩

celest lodge
#

Hi when I add a vote to a player its not working its telling me that I have added a vote to% player_name% do you know why ( VoteParty Plugin )

ocean quartz
#

Lol why did you delete it?

celest lodge
#

I copy the message from a random instead of my message x)

dense dew
#

elixir 👍 or elixir 👎

celest lodge
#

in general plugin

celest lodge
#

I did not buy the plugin, it's my colleague

ocean quartz
#

Then your colleague will have to be the one asking it in the right channel

obtuse gale
rancid fulcrum
#

plz someone help - everyone on my server is invisible i have no clue why...

#

its 1.17 bungee

obtuse gale
rancid fulcrum
#

is that not where i shud put it?

#

omg yeh pahaha sorry!!

obtuse gale
#

No worries

steel heart
prisma wave
#

This is the type of content I like to see

ocean quartz
#

Lmao

half harness
#

Any way I could use components in AsyncPlayerChatEvent without conflicts with chat plugins? || Specifically DeluxeChat ||

#

and without making my own chat plugin

obtuse gale
#

couldn't be paper's AsyncChatEvent

#

if anything you'll have to use the legacy serializer for that event though

#

since, well, it's legacy text

half harness
obtuse gale
#

sucks to suck

half harness
#

this plugin detects the incoming packets and puts <cmd=uuid> but deletes it in packet out

#

although i feel like that might conflict with other plugins 🤷

#

hm

obtuse gale
#

hijacking chat out packet to inject "custom stuff" is SO prone to exploitation

half harness
#

actually wait no

#

since in AsyncPlayerChatEvent u dont see the <chat> stuff

#

oh wait because it sends its own

#

hmm

#

my chat packet listener doesn't detect it either tho

#

even though the listener priority is MONITOR

half harness
# obtuse gale huh?

basically
what i think this plugin does
is that
Chat packet inbound: cancel packet, send new inbound packet with <chat=uuid> at the end
AsyncPlayerChatEvent: cancel event, send new event without <chat=uuid>
Chat packet outbound: cancel packet, and send new outbound packet without <chat=uuid>

obtuse gale
#

I mean plugins can still handle cancelled events, maybe it's just modifying it instead of cancelling and dispatching a new one

half harness
#

🥲

#

oh wait no

#

thats in the inbound packet listener

#

hmm

#

idk im confused

#

ohh i think i know

#

it cancels the packet event
and just sends its own AsyncPlayerChatEvent

obtuse gale
#

empty viewer set 🥴

half harness
#

🥴

obtuse gale
#

what plugin is that

half harness
#

InteractiveChat

obtuse gale
#

ah yes

#

that hacky clusterfuck