#dev-general

1 messages ยท Page 268 of 1

quiet depot
#

raw types are awesome.

#

generics can get messy real quick

steel heart
#

Yeah I guess

#

capture of capture

obtuse gale
#

I think you're thinking it wrong, a square isn't a special "separate" geometric shape, it is a case for an existing rectangle that so happens both sides are the same length

When working with the maths a square is treated no different than a rectangle, it just allows for some math shortcuts
I have worked with few graphics environments but nor have I ever seen a Square nor even had the need to make one be because of that above

surreal quarry
#

damn y'all still going

old wyvern
#

We were not talking about geometry afaik

#

Please refer to the links posted above

obtuse gale
#

I read them and you're treating a square as something separate

surreal quarry
#

why tf would you make a square implementation of Shape or whatever when its literally a rectangle. just make a rectangle impl and have like an isSquare() check

obtuse gale
#

(not all of it)

old wyvern
#

do read

#

โ˜ฎ๏ธ

obtuse gale
#

I have better things to do tbh

steel heart
#

Dodo dodo = new James_but_Skript_is_Good();

surreal quarry
#

Dodo is when script is good

onyx loom
surreal quarry
#

lmao

old wyvern
steel heart
#

I have full support for skript enchant extensions now

#

very nice

#

$$$

surreal quarry
#

go die

#

yourself

steel heart
#

well

#

I might add kotlin as well

surreal quarry
#

stick around for a bit longer

steel heart
surreal quarry
#

lol

obtuse gale
steel heart
#

Anyway does anyone know what issues were patched in 1.16.5 ?

quiet depot
#

I think I heard that they just patched issues that were already patched by spigot

steel heart
#

oh lol

surreal quarry
#

lmao

quiet depot
#

so yeah useless

steel heart
#

Didn't they bump nms version or smntg ?

obtuse gale
#

You're telling me that Spigot did something else other than optimizations?

quiet depot
#

I believe so conclure

steel heart
#

ah gawd

quiet depot
#

I could be wrong

#

just going off some twitter comments

obtuse gale
#

Isn't the whole point of spigot to not modify behavior / fix bugs?

steel heart
#

yhyh

quiet depot
#

no fefo

#

that's not a goal of spigot at all

#

it's well and truly within spigot's purpose to fix bugs

old wyvern
obtuse gale
#

If I'm not mistaken it is, "any behavior that differs from vanilla should be reported"

quiet depot
#

the bugs that are fixed are usually game breaking

#

i.e. crashes

#

duplication

#

etc

obtuse gale
#

But mk

surreal quarry
#

i thought thats one of the reasons paper was so much better cause they actually fixed bugs and spigot just waited

quiet depot
#

aight

onyx loom
#

bUt ThEsE ArE pArT Of tHE VaNiLlA ExPeRiEnCe

surreal quarry
#

but idk

quiet depot
#

I mean paper is probably a lot faster at fixing them

steel heart
#

Paper Hard Fork reversed_fingerguns

quiet depot
#

hang on let me actually check the spigot patches so I can be certain i'm not bullshitting

steel heart
#

๐Ÿ‘

quiet depot
#

yeah idk actually

#

seems spigot patches are just additions & fixes to craftbukkit/bukkit

#

not sure if craftbukkit fixes vanilla bugs or not

steel heart
#

Hmm okay I guess weโ€™ll find out sooner or later

warped jungle
#

hello

#

this is called helpchat so im assuming someone will help me

#

dm if u help me

static zealot
#

ugh I mean you can just ask here

#

if you need help

warped jungle
#

i need someone to test my program

#

can i send it here?

#

hello?

half harness
#

Why are you unable to test it yourself...

warped jungle
#

...

#

.-.

#

i wanna test how it works on other pc's

half harness
#

and what type of program is it?

warped jungle
#

.exe

half harness
#

whats it do?

warped jungle
#

i need u to test it

half harness
#

Most programs will work on other pcs if it will work on 1

warped jungle
#

ik

#

dont worry its not virus if it would be virus it would be world record for having lowest sized virus

half harness
#

._.

warped jungle
#

its 48kb

hot hull
#

Well I mean not really, could kill a pc with a single line reversed_fingerguns

warped jungle
#

how?

onyx loom
#

pc.kill()

warped jungle
#

hax

#

lol

ocean quartz
#

File("C:\\Windows", "System32").delete()

warped jungle
#

doesnt that need to be run as admin?

half harness
#

ill uh pass

warped jungle
#

i think it does

half harness
#

๐Ÿฅฒ

warped jungle
#

and mine doesnt need to be run as admin]

#

๐Ÿ™‚

half harness
#

whats the file hash ๐Ÿ‘€

warped jungle
#

where do i hash it

warped jungle
#

what will u get if i give u the file hash

#

why u need it lol

half harness
#

ยฏ_(ใƒ„)_/ยฏ

#

idk tbh i dont download it anyway

#

maybe someone else

warped jungle
#

k

half harness
#

but my computer is so slow that im literally typing in discord without seeing

warped jungle
#

xd

half harness
#

;-;

hot hull
#

You could just run a fork bomb could you not

half harness
#

I'm not going to download a random file from the internet ._.

oblique heath
tranquil crane
#

you know you're not trying to hack yourself

prisma wave
#

Dw guys, I checked the hash of NotAVirus.exe and it's fine!

#

The program must be safe

#

@warped jungle send the source code

warped jungle
#

i do not want to send the code and my friend tested it so i donโ€™t need it anymore

half harness
#

lol ok

steel heart
#

Bruh

#

Why no video post

#

Anyway if you can, watch it very relatable

hot hull
#

Nein

lost edge
#

Anyone know the rules for re-applying for the dev role?

onyx loom
#

git gud ๐Ÿฅฒ

static zealot
#

ye just get better xD

hot hull
onyx loom
#

shut the frick up

hot hull
#

:(

patent spoke
#

oh

lost edge
#

Well I was reviewed based off an semi abandon project from 10 months ago when I was bad. I saw the notes for the rejection reason and I agree that's why I stopped making that plugin xD. The only reason it was near all my active stuff on GitHub (on the top) was because I created a new branch to possibly start re-codding the terrible plugin.

hot hull
patent spoke
#

Is it bad to ping people who started helping you at first then abandoned it

#

cause I need sum help :(

lost edge
patent spoke
#

i'm trying to add all Maps from config.yml to a list

#

but when I try to get a map by name using the getMaps method

#

it returns null

ocean quartz
hot hull
#

Kek

onyx loom
#

no more procrastination matt!

#

u have people waiting for u!

old wyvern
#

kali

#

can you do me a favour?

#

join 1 sec

#

just want to see the request for launch

#

tnx kal ๐Ÿ™‚

steel heart
#

oo nice

old wyvern
#

wai

onyx loom
#

why is rust/scala the only ones available ๐Ÿ˜

old wyvern
#

once more

#

plz

#

xD

#

it didnt capture it

#

dammit

onyx loom
#

i looked at the scenario and was gonna do it cus its quite easy, then i look to the code and im like "wait, this isnt kotlin"

old wyvern
#

yea was checking what part of the request body was languages

#

xD

#

one more time plz

#

tnxx

#

startClashByHandle

#

๐Ÿ‘

lunar cypress
hot hull
#

Flex

old wyvern
#

just the coc invite thing

hot hull
#

Get gud Johnny

#

No dev role pfft pathetic

lost edge
#

kew kids club

hot hull
#

kewl*

lunar cypress
onyx loom
#

clash of code

#

and u can run a command for invites now

lunar cypress
#

I do know the abbreviation, however I do not know what the "invite thing" is

#

ah

ocean quartz
lunar cypress
#

dang

#

application sent

onyx loom
#

o

obtuse gale
#

sk-

#

sk-skript ๐ŸŒ

sharp shuttle
#

?

onyx loom
#

NO

#

DONT do it fefo!

hot hull
#

@obtuse gale Please do ban that person if you have perms

obtuse gale
#

I do lol

onyx loom
#

also, compact discord ๐Ÿ˜ฌ

obtuse gale
grim zephyr
#

Lol

surreal quarry
#

In kotlin if i have a list of strings, what is the best way to separate every 10 and add a ChatPage to a list<ChatPage>

#

is there like a nice list method or do i need to do it manually lol

distant sun
surreal quarry
#

yes thats perfect

#

thank you

distant sun
#

โค๏ธ

ocean quartz
#

@hot hull Reply works fine, thank you

static zealot
#

oh nice

ocean quartz
#

Not sure if it's a good idea, nor how i'd implement it

static zealot
#

can you explain please? I don't get it. when you do /r or /msg someone and they messaged you before it would show the message you got from before?

ocean quartz
#

Yeah, let's say someone replies to your message, when they hover, it would show the previous message you sent
Sounds kinda dumb i guess, at first sounded nice, but now sounds useless and hard to implement xD

static zealot
#

I mean if you keep the messages for just a few seconds or have an option in config for how long to keep them I guess

#

but if its permanent or until server restart it might not look that good I guess. idk

#

because the conversation can change at any time and then it will just look out of place I guess

oblique heath
#

if you're gonna add that you should add || spoiler tags|| to the chat

#

where you have to hover over the text to read it

ocean quartz
#

Yeah, sounds like more issues than it's useful, not to mention it's so hard to implement

static zealot
#

ugh how would that even work? since you can't update a message

ocean quartz
#

Though that can easily be done with an expansion

static zealot
#

ah I see

#

that's actually a clever thing. didn't think about that xD

oblique heath
static zealot
#

yeah

oblique heath
#

or whatnot

static zealot
#

was about to say

ocean quartz
#

That could work too yeah

static zealot
#

don't use the &k symbol or whatever

oblique heath
#

lmao

static zealot
#

just a black square or gray

ocean quartz
oblique heath
#

yee

static zealot
#

yep

oblique heath
#

only difficult part about that is you can't really deal with the difference in character width for the MC font

#

so no matter how you try adding a square for the hidden characters you'll never consistently hit the same length

static zealot
#

ah I mean it doesn't even have to be the same length. I think just having it fixed for each message would be enough

oblique heath
#

maybe, though if it was me i think it'd throw me off a bit if i saw a paragraph from a 6 character long spoiler

#

but maybe a nice balance in between would work

#

like having several stages of increasingly larger spoilers, or something

obtuse gale
#

bruh @lavish notch you gonna keep leaving the lp discord after asking a question? lmao

lavish notch
#

๐Ÿ˜›

obtuse gale
#

I'm guessing you figured it out? lol

lavish notch
#

mhm

lunar cypress
#

@quiet depot why does docdex need manage messages? it seems like it won't respond to paginated embeds without it

old wyvern
#

I think to remove user reactions

oak coyote
#

^

lunar cypress
#

ugh

#

still doesn't work for some reason anyway

distant sun
#
double *delta(double a, double b, double c) {
    double delta = b * b - 4.0 * a * c;
    double *result = malloc(2);

    if (delta < 0.0) {
        return result;
    }

    double deltaSqrt = sqrt(delta);

    if (delta > 0.0) {
        result[0] = ceil(-b - deltaSqrt / 2);
        result[1] = ceil(-b + deltaSqrt / 2);
        return result;
    }

    double x = ceil(-b / (2 * a));
    result[0] = x;
    result[1] = x;
    return result;
}```
Who thought that a "delta" method would be that long xD
prisma wave
#

ahh good old C

#

When a single method can cause a memory leak

distant sun
#

fr

viscid prawn
#

Anyone know how I can mimic the way that the trident works with the two different textures? While in hand, the trident is an entity model. However, while in the inventory it's an item texture. How can I do this for a texture pack?

quiet depot
#

error in console is it needs manage message, that shouldโ€™ve been sent in the relevant channel though :/

#

thatโ€™s a bug

quiet depot
#

Fixed

olive lion
#

โ€‹

obtuse gale
#

absolutely

half harness
#

If only I knew how PlayerInteractEvent worked ๐Ÿ˜”

#

I gave up on my cps project because too many issues that I had no idea how to fix

surreal quarry
#

it happens every time you interact fingerguns

regal gale
hot hull
ocean quartz
#

Kinda, a bit more annoying than you think

forest pecan
#

i made a religion

obtuse gale
olive lion
#

โ€‹

limber patrol
#

Does somebody know if EzRanksPro works with Quests plugin by PikaMug ?

viscid prawn
#

Is it possible to have a custom enchantment glint depending on the custom model data of the enchanted item?

forest pecan
#

i did it bois

#

i boosted this server

#

to tier 3

#

as well

livid lance
#

Does the plugin work with Quest by PikaMug?

#

If it works, I will buy the plugin

ocean quartz
hot hull
ocean quartz
#

Still would be an issues Frosty

#

Because messages are components, PAPI only works with strings

hot hull
#

Okay yea fair enough

#

I mean could bypass that by turning it into json and then parsing it

ocean quartz
#

Sounds like extra work, not a bad idea but yeah
I can think about it later

#

Changing the reply and message system a bit

#

Instead of having it on the player manager i just have a reply target on the ChatPlayer

hot hull
#

Yea I didn't know where to put it

old wyvern
#

HOLY SHIT

#

I think I got the foobar challenge invite

stuck harbor
#

nice

old wyvern
#

This was so random lmao xD

#

Google search did a weird animation and gave an option to "take a challenge"

stuck harbor
#

wha

#

how did you

#

what did you search?

old wyvern
#

I dotn even remember

stuck harbor
#

oof

old wyvern
#

was something for the my unis codechef chapter

#

welp

#

xD

stuck harbor
#

my dude

old wyvern
#

the what

#

uh ok time to start on this after class I guess xD

stuck harbor
#

lol

#

my dudes gonna get google'd

old wyvern
#

I mean, thats assuming I solve all those problems and crack the interview

stuck harbor
#

yeah lol

#

better get onto leetcode my guy

old wyvern
#

the interview is the part thats going to particularly hard for me

stuck harbor
#

learn some binary trees

old wyvern
#

I already do those

#

codechef most

#

Hopefully I can solve atleast a few of these ๐Ÿฅฒ

stuck harbor
#

lol yeah

#

I'm over here learning golang

distant sun
#

@violet creek #showcase is your console or that L symbol is a little weird? xD

violet creek
lunar cypress
#

seems like you didn't use the correct box drawing character there

distant sun
#

^

#

try this โ”” BOX DRAWINGS LIGHT UP AND RIGHT

violet creek
#

I'll try it, thanks

#

I love you guys

lunar cypress
#

I think it should be aligned with the other chars

violet creek
#

What do you mean?

lunar cypress
#

So I'd either pick a smaller "|-" or a bigger "L"

violet creek
#

ooh like that, of course

lunar cypress
#

So that "Pig" and "Player" are aligned for example

distant sun
#

Dont you have a dash?

lunar cypress
distant sun
#

Teletext

violet creek
lunar cypress
#

you either use one or the other

distant sun
#

no no

lunar cypress
distant sun
#

Like a dash from bdc

lunar cypress
#

yeah but where would you put it?

distant sun
#

Use what ./gradle dependencies uses @violet creek

distant sun
violet creek
#

I'm not using any dependencies

distant sun
#

No that dumbo, the message have this structure

violet creek
#

fuck you nerd

#

โค๏ธ

#

bahahaha

distant sun
#

Fuck you ezekiel

violet creek
#

tf is that lmao

distant sun
#

??

violet creek
#

ezekiel

distant sun
violet creek
#

ty sir

distant sun
#

Does it work?

lunar cypress
distant sun
#

Or that idk

#

Didnt even know these symbols have a name

lunar cypress
#

They're p neat

#

Wrote a class to create table strings with them

#

Some time ago

#

It has about 1000 lines ๐Ÿฅฒ

distant sun
#

๐Ÿคฃ ๐Ÿคฃ

#

Cant use string.format?

lunar cypress
#

not dynamic enough

distant sun
#

Maybe

lunar cypress
#

half of it is character theme definitions though lol

#

beautiful

violet creek
#
    private String name;
    private int id;
    public int cost = 5;

    public Shape(String shape) {
        this.id = 5;
        this.name = shape;
    }
#
System.out.println(new DisplayAsTree(new Shape("exampleName")));
#

I'm having some fun ngl

oblique heath
#

how are you determining whether the variables are public

#

is that just something you hardcoded in or is there some witchcraft going on

violet creek
#

The depricated method field.isAccessible()

oblique heath
#

huh

violet creek
#
    public DisplayAsTree(Object obj) {
        this(obj.getClass().getSimpleName());

        final Class c = obj.getClass();
        final Field[] fields = c.getDeclaredFields();
        for (Field field : fields) {
            addSection(new Section(field.getName())
                    .addSection("Type: " + field.getType().getSimpleName(), "Public: " + field.isAccessible()));
        }
    }
#

Nevermind, I made a mistake

violet creek
oblique heath
#

i see

#

that's pretty neat actually

violet creek
#

I've never used it before either

distant sun
#

d;jdk Modifier

ruby craterBOT
#
public class Modifier
extends Object```
Modifier has 1 extensions, 20 methods, and  12 fields.
Description:

The Modifier class provides static methods and constants to decode class and member access modifiers. The sets of modifiers are represented as integers with distinct bit positions representing different modifiers. The values for the constants representing the modifiers are taken from the tables in sections 4.1, 4.4, 4.5, and 4.7 of The Javaโ„ข Virtual Machine Specification.

steel heart
#

Can someone just answer if mysql is the most suited database for player data?

hot hull
#

Maria best fingerguns

steel heart
#

Is it?

hot hull
#

How ew would it be to use reflection to initialize classes depending on if a requirement is met? I want my finals so I gotta use it in a constructor fingerguns

steel heart
#

Ew

hot hull
#

:c

oblique heath
#

you definitely want to use a relational db for player data if you can

steel heart
#

I can still yeet your instance variables with reflection Frosty

oblique heath
#

maria is nice, postgres is nice

steel heart
oblique heath
#

mongodb bad

steel heart
#

postgre vs maria

oblique heath
#

mongodb is for unstructured stuff

steel heart
#

Itโ€™s no sql yeah but who cares

#

I can just get everything into json

oblique heath
#

if you know exactly what you want to store just use sql

steel heart
#

Hmm okay

#

That sounds clever

#

Big brain

hot hull
#

Or just use an orm fingerguns

oblique heath
#

text file mmMMMMMMmm

hot hull
#

Ivan!

#

don't give him ideas smh

steel heart
#

So well I guess I could use some relational table thing

oblique heath
#

filesystem directories MMMMMMM

#

if you don't know which type of rdb you want to use then probably just run maria

#

it's light and it's nice

steel heart
#

Better than mysql?

oblique heath
#

yeah

#

and it's also nearly 100% compatible with mysql

steel heart
#

Feels like theyโ€™re the same

#

Just rebranched

oblique heath
#

that's exactly what they are ๐Ÿ˜‰

steel heart
#

Okay thank you for the help

hot hull
#

nice tooshies

#

I really don't know what to do rn, I want my finals, but reflection gonna be ew

stuck harbor
#

lol

steel heart
#

Frosty seems like your design it the problem rather

hot hull
#

Nah, I need to dynamically register listeners, it's as it should be :))

#

I refuse to have to call another metod

#

method*

steel heart
#

Lmfao

#

HanderList.bakeAll

#

Lovely lag spikes

hot hull
#

kek

quiet depot
#

if you want to do that, donโ€™t hack your own solution together

#

just use guice

lunar cypress
#

It only has drawbacks, really

#

The only benefit you get from using mysql is that it's widely used already

#

also MariaDB is essentially the same

frail crown
#

I can't download Skript to PlaceholderAPI. When I do '/papi ecloud download Skript' and then '/papi reload' it says 'No expansions were registered!' Can someone help me?

hot hull
heady birch
#

Seems like I bad idea / design. You should probably use a Factory that return the specific implementation

quiet depot
hot hull
#

Forget it I'm dumb

burnt moth
#

what do you think is the right level of java before starting bukkit?

hot hull
#

Basics, understanding of oop, that's probably about it

#

Other stuff depends on what you're actually trying to do with the plugin

burnt moth
#

I see... thanks

oblique heath
#

you can pull off what are arguably pretty fancy features with almost no understanding of java except where to paste a bit of copied code

regal gale
regal gale
#

Ok I think I found the method in jda to convert id to timestamp: TimeUtil.getTimeCreated(id)

#

Wasted my time cracking the entire id on my own...

#

But also found such useful stuffs while finding docs as well: MarkdownUtil.bold(String)

lunar cypress
#

lol

regal gale
#

At least I can have experience from doing it lol

distant sun
#

=flex

compact perchBOT
#
<:discord:699228850537889854> - HelpChat Stats

Here are some guild wide stats for your eyeballs. :eyes:

XP Generated:

xp15,576,437

Level Ups:

levelups 17,738

Pastes Created:

pastes 36,183

Commands Ran:

commands 115,654

Images Generated:

images 61,177

Words Scrambled:

words 62,072

Total Messages:

messages 3,586,186+

Guild Members:

members 8,266

Date Created:

calendar Mar 29 2016

dry coral
#

hurts to see doesnt it

#

@prisma wave

prisma wave
#

๐Ÿ˜ญ

dry coral
#

all other rounds were tighter i think

#

nvm

#

Haskell vs C

#

same thing

prisma wave
#

who won

dry coral
#

english beat out assembly but java beat out english

prisma wave
#

haskell hopefully

dry coral
#

8% haskell

prisma wave
#

bruh

#

that's just because C / python is more well-known

dry coral
#

go vs sql

#

22% go

prisma wave
#

wtf

#

thats such a dumb comparison

winter iron
#

html vs typescript

#

๐Ÿ‘€

dry coral
prisma wave
#

those comparisons are so stupid

dry coral
#

lmao

prisma wave
#

why are you comparing SQL with Go

dry coral
#

html will win in the end

winter iron
#

is html and css considered a programming language?

prisma wave
#

no

winter iron
#

so this is making no sense

dry coral
#

c++ is beating Java

steel heart
#

yes

#

HTML is a programming language

winter iron
#

๐Ÿงข

hot hull
static zealot
#

๐Ÿ”ฅ

elfin lagoon
#

how to make an minecraft client

oblique heath
#

wdym by that

static zealot
#

I think he means launcher. I might be wrong tho

steel heart
#

well first of all we don't make a minecraft client, we edit the existing one if anything

static zealot
#

why not? just make one from scratch. sounds easy enough

#

:kappa:

winter iron
#

just rewrite minecraft entirely from scratch

shadow wasp
#

when assigning a private enum to a variable using reflection, should I give it the type Enum or Enum<?> (not even sure the second one works, but my IDE is giving warnings using just Enum)

#

what do the generics of Enum even relate to?

#

is Material for example the same as Enum<Material>

#

the enum class would make me think this

lunar cypress
#

Well, Material extends Enum<Material>

#

Because of type erasure the type parameter doesn't really matter though if you're dealing with reflection

#

Could you show the code you're referencing?

ocean quartz
#

If you do just Enum ij should yell at you to add the wildcard

steel heart
#

raw types :]

lunar cypress
#

Well, depends on what we're talking about exactly

#

If we're talking about the type of a local variable, you can avoid raw types and the warning here

#

But Enum<?>.class for example is not a thing and Enum.class won't give you a warning respectively

hot hull
#

wait a second

#

Yea idk, why would it be breaking?

shadow wasp
#

((Enum) bobbingTime.get(handle)).name().equals("BOBBING") is the code I'm dealing with, sorry for the late reply

steel heart
#

maybe add <?>

shadow wasp
#

there is no issue with it, just the warning, so is it okay to replace this with
((Enum<?>) bobbingTime.get(handle)).name().equals("BOBBING")

steel heart
#

that will shut the rawtype warning up

shadow wasp
#

thought so

#

just wanted to make sure and couldn't be bothered to test

steel heart
#

Well ideally Enum<?> and Enum won't matter in most cases

#

but Enum<?> will make the ide stfu

hot hull
steel heart
#

you only declare it at runtime ?

#

or what

hot hull
#

transitive dependency

steel heart
#

what did you use in FrozenActionsJava

quiet depot
#

@hot hull show build.gradle

hot hull
#

implementation Conclure

compact perchBOT
quiet depot
#

does matt have his own repo?

steel heart
#

Frosty I'm afraid that implementation is not made for transitivity

#

if you want it transitive I think api would be better

#

in that case you'd have to change the plugin 'java' to 'java-library'

#

iirc

hot hull
#

ahhh

ocean quartz
hot hull
#

So api should fix my issues? fingerguns

steel heart
#

I think its basically implementation + transitive

#

idr exactly might have been something else on top of that

ocean quartz
#

Do you have my repo there?

hot hull
#

ye

quiet depot
#

adding it to the build.gradle you linked earlier should fix the issue

hot hull
#

extra work tho

#

Would rather have it transitive, so I'll test api

ocean quartz
#

Also if you want to be up to date me.mattstudios:triumph-msg-bukkit:2.2.2-SNAPSHOT, and even better, use msg-adventure instead of bukkit, it's better

quiet depot
#

instead of implementation

hot hull
#

Yea that's what I'm trying to do, gradle says api is not a thing tho thonking

quiet depot
#

just incase you thought you were meant to be using api in your end project's build.gradle

#

you need the java-library plugin

hot hull
#

ah

steel heart
#

Idr if api is transitive for both of compile and runtime classpath, but if it is another solution could be
implementation x
compileOnlyApi x

#

assuming you're shading in stuff or smtng

half harness
#

When I build my plugin... theres nothing in the jar, I'm also using modules. Anyone have any idea why?
I'm using gradle too

steel heart
#

yes

#

you're doing something wrong

half harness
#

hmm

#

do you know what I'm doing wrong?

steel heart
#

send ur root gradle

compact perchBOT
steel heart
#

compileOnly 'org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT'
implementation 'com.github.dkim19375:dkim19375Core:1.4.0'
compileOnly name: 'fawe-bukkit-19.11.13-5505943-1282-22.3.5'
compileOnly 'com.boydti:fawe-api:19.11.13-5505943-1282-22.3.5'
compileOnly 'me.clip:placeholderapi:2.10.9'
compileOnly 'com.sk89q.worldguard:worldguard-legacy:6.2'
compileOnly 'com.sk89q.worldedit:worldedit-core:6.1'
compile 'org.jetbrains:annotations:16.0.2'

#

there's non of your submodules/projects here

half harness
#

umm

#

wdym

steel heart
#

When I build my plugin... theres nothing in the jar, I'm also using modules. Anyone have any idea why?

half harness
#

but

#

huh?

#

I thought modules would be included

steel heart
#

No lol you have to add them

half harness
#

how do I add them?

steel heart
#

implementation project('./pathToModule:moduleName')
the : will act like a file separator as well

half harness
#

:?

steel heart
#

yes

half harness
#

whats pathToModule.. would that be the same as the jmodule name?

steel heart
#

well yes

#

if your settings.gradle contains he following

#
include ':x'
half harness
#

> Project with path './plugin:plugin' could not be found in root project 'mainland-mining'.

steel heart
#

then use project(':x')

half harness
#
rootProject.name = 'mainland-mining'
include 'api'
include 'plugin'
#

๐Ÿค”

steel heart
#

use project('plugin')

half harness
#

ok

steel heart
#

and project(':api')

half harness
#

wait

#

but plugin implements api

steel heart
#

well then api project('plugin')

ocean quartz
#

19.11.13-5505943-1282-22.3.5 lovely version

steel heart
#

lol

half harness
half harness
steel heart
ocean quartz
half harness
#

my IJ is lagging a lot bc im opening up mc

#

ahhhh

steel heart
#

yeah Matt that's beneficial to do however dkim doesn't have it for stupid reasons so just used the same as his to make it clear

half harness
#

wat

#

I don't what?

#

um

#

im confused

steel heart
#

consider

//this
include ':project'

//not this
include 'project'
half harness
#

oh

#

whats the difference?

#

IJ just automatically puts it as :

steel heart
#

yeah

half harness
#

changing won't break anything, right?

#
dependencies {
    api project(':plugin')
}
```like this? ๐Ÿ˜ฌ
steel heart
#

:x tells gradle that the given filename after : will be the module directory

#

yes

half harness
#

oh wait

#

uhhhhhhhhhh

steel heart
#

but it doesnt matter for next to root level projects

half harness
#
A problem occurred evaluating root project 'mainland-mining'.
> Could not find method api() for arguments [project ':plugin'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
steel heart
#

yes change the plugin java to java-library

half harness
#

๐Ÿ‘€

#

what's that do?

#

Cannot resolve external dependency org.jetbrains:annotations:16.0.2 because no repositories are defined. ๐Ÿ‘€ uhhhhhhhhhhh

#

fixed

#

i dont think it worked

ocean quartz
half harness
#

o

#

ok

steel heart
half harness
#

๐Ÿ˜•

obtuse gale
#

javax.annotations cct

half harness
#

oh

#

should I switch?

steel heart
#

I like javax because it has ParametersByDefaultNonnull or smtng

surreal quarry
#

org.net.com.jet.brain.s.jav.a.x:annotations:6

ocean quartz
#

Jetbrains one is better, better Kotlin integration
Also 20.1.0 version

distant sun
#

How does .patch files work?

#

I think about modifying essentials but I also want to stay up to date with their changes

surreal quarry
ocean quartz
surreal quarry
#

i dont really see whats so much better than just creating a fork and merging the upstream changes every so often

ocean quartz
#

More work

surreal quarry
#

how so? merge conflicts?

ocean quartz
#

Yeah

uneven coral
#

when i am pvping my friends, sometimes my sprint stops working and then it works after
this happens to my friends too
how is it possible to fix this issue

surreal quarry
steel heart
#

I think that's how pvp works

onyx loom
#

if u hit a player, it cancels ur sprint if thats what u mean

uneven coral
#

my tournament starts soon and i don't know what to do

uneven coral
steel heart
#

uh well what plugins do you use chief

uneven coral
#

i can't send ss here

#

i sent it in dm

surreal quarry
#

?imgur

compact perchBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.

uneven coral
burnt moth
#

Hi, I'm trying to write content and values to my config file

burnt moth
#

ah oops sorry

distant sun
static zealot
#

827 commits

#

oh til 2016 only

#

seems like he was a fan of Paper at some point

half harness
#

hmm curious, with shadowjar how would I exclude packages from being in javadocs jar?

steel heart
#

usually you shouldn't need to do that

#

then the dependency is added erroneously

half harness
#

hmmm

lunar cypress
#

how are those two things related

steel heart
#

they might not be Idk

lunar cypress
#

I'm asking dkim

steel heart
#

oh my bad

half harness
#

oh

#

isn't shadowjar what makes the two jars?

lunar cypress
#

Not to my knowledge

#

It doesn't mess with javadoc at all as far as I'm aware

half harness
#
task alljavadoc(type: Javadoc) {
    source subprojects.collect { it.sourceSets.main.allJava }
    classpath = files(subprojects.collect { it.sourceSets.main.compileClasspath })
    destinationDir = file("${buildDir}/docs/javadoc")
    
}

task javadocJar(type: Jar, dependsOn: alljavadoc) {
    classifier = 'javadoc'
    from alljavadoc.destinationDir
}

shadowJar.finalizedBy javadocJar
```I have to include these or else running `shadowjar` won't make the two jars
lunar cypress
#

That has less to do with shadowjar and more with you not executing the tasks you want

#

shadowJar is only concerned with packaging your compiled classes

half harness
#

ok

lunar cypress
#

Hook it into the build task if you want

half harness
#

ok

ocean quartz
half harness
#

whats the thing on the right?

onyx loom
#

mAvEn BeTtEr

#

wdym thats just the gradle tab dkim?

half harness
#

wat

onyx loom
#

compileClasspath?

half harness
#

where is that

ocean quartz
#

Why is invalidate and restart the solution to all our problems?

onyx loom
#

gradle tab

#

good question matt

half harness
steel heart
#

Dependencies -> compileClasspath ->

#

iirc

half harness
#

uh

#

wheres Dependencies ๐Ÿ˜ฌ

ocean quartz
half harness
#

whys ur icons look like that

#

ohh i see it now

#

but how do u get ur icons like that

#

I have atom file icons

ocean quartz
#

Wdym? How does your icons look like?

half harness
#

very boring

ocean quartz
#

Ah default IJ

distant sun
#

is material theme installed?

half harness
ocean quartz
#

I have Material UI and Atom Material Icons

half harness
#

same

distant sun
#

open the settings

half harness
#

where?

distant sun
#

atf settings >

half harness
onyx loom
#

atom material icons settings

half harness
distant sun
#

what does it say on "Plugins (1)"?

half harness
#

outdated plugin

#

i just uninstalled it

distant sun
#

I figured

half harness
#

it was material theme ui lite

steel heart
#

Ew

winged mica
#

Is there a free jenkins hosting?

distant sun
#

codemc maye?

surreal quarry
stuck harbor
#

haha

viscid grail
#

A question i know i should know this but u will save me time:

Will after an @EventHandler method the variables inside it become null or delete?

oblique heath
#

yeet?

#

what

viscid grail
#

delete

#

suicide itself

#

no idea how to explain it

#

unitialise

oblique heath
#

are you asking if after the event is called the variables are cleaned up automatically

viscid grail
#

yes

#

that is a clean way of asking it sorry

oblique heath
#

yes, java is nice like that

#

you dont have to manually delete variables

viscid grail
#

thank spaghetti monster.

#

and you

oblique heath
#

xd

surreal quarry
#

@ocean quartz im getting an error with your config lib when I provide a location as the type. It looks like you can maybe use a PropertyMapper to "serialize" or "deserialize" it correctly, but that interface has no methods to override. Do you have an example of that?

ocean quartz
surreal quarry
#

alright ill try that

ocean quartz
#

I'd do something like:

data class LocationHolder(var world: String, var x: Double, var y: Double, var z: Double) {
  fun getLocation() = createLocationUtil(world, x, y, z)
}
steel heart
#

so does java have some sort of late init

#

apart from manually setting a field after wards

surreal quarry
#

yea just made the exact same thing thanks lol

ocean quartz
steel heart
#

ah man, I wish cycling dependencies was a thing

#

:[

lunar cypress
#

๐Ÿšด

prisma wave
#

Kind of

surreal quarry
#
    private val warpsFile = File(plugin.dataFolder, "warps.yml")
    val warps = SettingsManager.from(warpsFile).configurationData(Warps::class.java).create()

how its being created

lunar cypress
#

Leaving something uninitialised is a very different thing

ocean quartz
lunar cypress
#

what?

surreal quarry
#

oh i missed that lol

#

thanks

ocean quartz
lunar cypress
#

I would still disagree

#

Aesthetically it may be similar

#

But its semantics are very different

steel heart
#

So java does not have a thing like that?

#

Sadge ):

lunar cypress
#

Nah it doesn't, that'd need to be part of the language space

#

You can write something like this yourself but it won't be as convenient obviously

steel heart
#

yeah it feels awkward but I guess I could make something effectively final to make it look better

half harness
#

Does jitpack support javadocs jar?

#

assuming no, is there any good maven repository hosting ๐Ÿ™‚

steel heart
#

It does?

half harness
#

oh

#

how

#

do I add

#

javadocs jar

steel heart
#

Should be automated along with the maven publish

half harness
#

hmm

#

whats maven publish

obtuse gale
#

The gradle plugin (maven-publish) for publishing jars in maven repos

half harness
#

oh

#

huh

#

ok

#

thx ๐Ÿ˜„

obtuse gale
surreal quarry
#

@True

ocean quartz
#

@static zealot Might add console private message as it's own section in the config thonking

hot hull
#

Smexy Matt

hot hull
#

Again to the dumbass that decided this was of any use, fuck you

[10:19:03 WARN]: [SGBoosters] Loaded class net.milkbowl.vault.economy.Economy from Vault v1.7.2-b107 which is not a depend, softdepend or loadbefore of this plugin.
[10:19:03 WARN]: [SGBoosters] Loaded class net.brcdev.shopgui.event.ShopPostTransactionEvent from ShopGUIPlus v1.48.0 which is not a depend, softdepend or loadbefore of this plugin.
hot hull
#

To whom ever said I should use streams more often, heck you, now all I use is streams ;C

#

@kindred hatch did you just say this is ew?

    public void decrementBoosterTimers() {
        final Set<BoosterHolder> updatedHolders = boosterHolders.parallelStream()
                .map(BoosterHolder::getContent)
                .map(BoosterContent::decrementDuration)
                .filter(BoosterContent::isValid)
                .map(BoosterContent::getHolder)
                .collect(Collectors.toSet());

        boosterHolders.clear();
        boosterHolders.addAll(updatedHolders);
    }
lunar cypress
#

indeed ew

#

why parallel

hot hull
#

why not

stuck harbor
#

I'll parallel you in a minute

lunar cypress
#

how many entries do you expect boosterHolders to have

hot hull
#

couple of hundred :kek:

lunar cypress
#

parallelStream will be slower than regular stream then

hot hull
#

non parallel should be fine I presume

#

oh

lunar cypress
#

only bother with parallel if you're dealing with millions, perhaps billions of elements and you do heavy computation

hot hull
#

Thanks

hot hull
stuck harbor
#

๐Ÿ˜‰

hot hull
#

oh god, I'm gonna use static for something :C

lunar cypress
#

cardinal sin

hot hull
#

It'd be uglier to pass in an instance all the time for it so I think it's acceptable

stuck harbor
#

I mean static exists for a reason

hot hull
#

To be ignored yes

stuck harbor
#

but like,

#

eeee

#

goes insane and makes everything static

lunar cypress
#

Clojure Compiler be like

distant sun
#

@hot hull why two maps instead of one?

obtuse gale
#

because the more the merrier

distant sun
#

.map(it -> it.getContent().decrementDuration())

#

can probably also use method reference ๐Ÿคทโ€โ™‚๏ธ

hot hull
#

cleaner fingerguns

distant sun
#

meh

hot hull
#

What am I looking for when it comes to crop growth stages

regal gale
#

BlockData maybe?

regal gale
#

bd;Crops

#

d;Crops

ruby craterBOT
#
public interface RowSet
extends ResultSet```
RowSet has 3 super interfaces, 1 extensions, 58 methods, and  6 sub interfaces.
Description:

The interface that adds support to the JDBC API for the JavaBeansโ„ข component model. A rowset, which can be used as a JavaBeans component in a visual Bean development environment, can be created and configured at design time and executed at run time.

The RowSet interface provides a set of JavaBeans properties that allow a RowSet instance to be configured to connect to a JDBC data source and read some data from the data source. A group of setter methods (setInt, setBytes, setString, and so on) provide a way to pass input parameters to a rowset's command property. This command is the SQL query the rowset uses when it gets its data from a relational database, which is generally the case.

The RowSet interface supports JavaBeans events, allowing other components in an application to be notified when an event occurs on a rowset, such as a change in its value.

The RowSet interface is unique in that it is intended to be...

This description has been shortened as it was too long.

regal gale
#

Not the thing I'm looking for thonking

regal gale
#

What's the cmd for spigot javadoc again?

old wyvern
#

d;

#

d; spigot crops

ruby craterBOT
#
public class Crops
extends MaterialData```
Crops has 1 extensions, 5 methods, 1 all implementations, and  2 fields.
Deprecation Message:

all usage of MaterialData is deprecated and subject to removal. Use BlockData.

Description:

Represents the different types of crops in different states of growth.

distant sun
hot hull
#

d;spigot Ageable

ruby craterBOT
#
public interface Ageable
extends Creature```
Ageable has 14 super interfaces, 1 extensions, 9 methods, and  42 sub interfaces.
Description:

Represents an entity that can age.

distant sun
#

d;spigot org.bukkit.block.data.ageable

ruby craterBOT
#
public interface Ageable
extends BlockData```
Ageable has 2 super interfaces, 1 extensions, 3 methods, and  3 sub interfaces.
Description:

'age' represents the different growth stages that a crop-like block can go through.
A value of 0 indicates that the crop was freshly planted, whilst a value equal to getMaximumAge() indicates that the crop is ripe and ready to be harvested.

hot hull
#

Shouldn't softdepend make sure my plugin loads after the specified ones, or has that changed lol?

winter iron
#

should do

hot hull
#

Well it doesn't for some odd reason

winter iron
#

try depend?

hot hull
#

I need softdepend, but sure I'll try

winter iron
#

what bout loadbefore

#

or is that for depend only

hot hull
#

I need those plugins to load before mine, not the other way around

#

Which is what loadbefore does

#

And yea depend seems to work

winter iron
#

oh ye i forgot

#

๐Ÿคฆโ€โ™‚๏ธ

quiet depot
#

softdepend should work

hot hull
#

Okay yea ignore me I'm a fucking idiot, I had it as soft-depend when it's softdepend

winter iron
#

๐Ÿ˜ฎ

obtuse gale
#

how do i make it so that certain directories arent commited to git

#

Ive got like a .gitignore with like /build in it but that still tries to commit the build folder

steel heart
#

build/

#

or smtng

obtuse gale
#

I right clicked the folder in IJ and hit add to git ignore and it added this

#
/build/
#

but thats not doing shit

regal gale
#

No spigot plugins in MC that I see has cps for right-click in Minecraft

#

Sad...

lunar cypress
obtuse gale
#

wdym

lunar cypress
#

rebuild and run git status

dusky drum
#

anyone worked with bootstrap and can help me fix why my dropdowns don't work like nothing happens:

<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  Profile
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
  <a class="dropdown-item" href="#">Settings</a>
  <a class="dropdown-item" href="#">Your uploads</a>
  <a class="dropdown-item" href="#">Logout</a>
</div>
quiet depot
#

@dusky drum do you have bootstrap js?

dusky drum
#

ya fixed it apparently i had broken jquery

distant sun
#

java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Double smh

half harness
#

lol

distant sun
#
                    final Object value = requirementsSection.get(requirement);
                    if (value instanceof Number) {
                        requirements.add(new Rank.Requirement(requirementType, (double) value));
                    }```
Shouldn't this work? ๐Ÿ˜ฆ
#

I might as well use getDouble on the 3rd line instead of cast

half harness
#

Number is a class?

#

o

lunar cypress
distant sun
#

o

lunar cypress
#

You can convert between primitive types, but you can't cast an Integer object to a Double object

distant sun
#

ye makes sense

lunar cypress
#

with some more steps in between it's probably possible but I'd just use the number thing

distant sun
#

nah that's perfect

#

I have to use this because the client wants to use papi placeholders as well for the value

#
                     else {
                        requirements.add(new Rank.Requirement(requirementType, value.toString()));
                    }```
half harness
#

I haven't used else in a while

distant sun
#

%.0f would display 1.5 as 1, right?

lunar cypress
#

as 2 I would assume

#

yep

dusky drum
#

okay now i have no idea why my pagination isnt working on bootstrap :/

#

if i paste that code into html itself instead of printing it out using php it works completly fine :/

#

Fixed.

jovial iris
#

I'm trying to build a JAR file and for some reason even though its throwing up no error or anything, the output JAR isn't showing up in the directory.

#

Is there a common mistake im making?

quiet depot
#

how are you building it?

jovial iris
#

im using build artifacts

quiet depot
#

might be worth sharing your configuration, not sure how people can help you otherwise

jovial iris
#

k

#

i've come back to java after a few months and i'm an amateur coder so i have no idea if thats right

quiet depot
#

it's not

#

you haven't actually specified a command for gradle to run

#

also that's not build artifacts

#

that's gradle

#

does your project even use gradle?

jovial iris
#

no ;-;

half harness
#

._.

jovial iris
#

that would explain it

#

lmfao

quiet depot
#

well I recommend using gradle anyway

jovial iris
#

oh-

quiet depot
#

might be worth learning how to use it

jovial iris
#

i know how to use

#

literally every other project i've made

#

has been in gradle

quiet depot
#

cool

jovial iris
#

but im dumb and have forgotten next to all of the stuff i've learned

#

right now i dont want to switch it to gradle i just need to build the file as a proof of concept..

#

should i use any configuration?

#

either way its not building

#

=/

#

maybe im just being dumb

jovial iris
#

๐Ÿ˜ฎ

#

lol

#

i still remember some stuff but i've been doing a lot of python

#

OI

#

I saw that

#

python angry_fingerguns

#

python is good sad_fingerguns

#

i created a machine learning algorithm with tensorflow

#

to analyze the stock market

#

๐Ÿ˜„

#

skyblock?

#

or

half harness
#

what version of mc

jovial iris
#

yay efe is back

#

Pog

#

hypixel skyblock

half harness
#

what version

jovial iris
#

the most addictive game on the planet

#

1.8.9

half harness
#

YES

#

๐Ÿฅณ

#

lol

jovial iris
#

no

#

1.8.9

#

best

#

๐Ÿ˜„

#

yes

#

no

half harness
#

๐Ÿ˜ญ

jovial iris
#

1.8.9

#

yes

half harness
#

i thought u changed

jovial iris
#

๐Ÿ˜Š

half harness
#

1.8.9 is best

jovial iris
#

YES

half harness
#

1.8 is best for pvp and minigames

#

1.16 is best for smp and factions and similar

#

idk whats best for arcade

#

prob 1.8

#

what is that

jovial iris
#

LOL

#

bruh

#

thats not even grinding

#

you got 1 couture rune

#

look at this efe

#

;_;

#

watch this

#

i cant upload images

#

oh true

half harness
#

@jovial iris do u play hypxiel

jovial iris
#

yes

#

look at that

#

:3

#

most expensive item in the game

half harness
#

lol

jovial iris
#

ye

#

most expensive item

#

hyperion

half harness
#

i have a dirt block

#

So I've got a plugin that someone is paying me to make, should I OS it?

#

or CS?

#

ยฏ_(ใƒ„)_/ยฏ

hot hull
#

Well does the person you're making the plugin for allow it to be OS?

#

If yes, then OS

half harness
#

but then again they aren't a dev

onyx loom
#

then sure fingerguns

half harness
#

but

hot hull
#

OS then yes

#

After you get paid tho

half harness
#

ok

oblique heath
#

make it OS and put it on spigotmc after you make it

half harness
#

w h a t

#

imagine seeing the plugin you paid on spigot for free

oblique heath
#

i mean isn't that better for basically everyone

half harness
#

ยฏ_(ใƒ„)_/ยฏ

#

its a custom plugin tho

#

so i dont think anyone would download a plugin called "Mainland Mining" ๐Ÿ˜‚

oblique heath
#

well i guess at that points it depends on exactly how specific to a single server it is

half harness
#

im also trying to setup a github update checker

oblique heath
#

or in other words how specific and inflexible you make it ๐Ÿ˜‰

half harness
#

made the code, now just gotta test