#help-development

1 messages · Page 1533 of 1

wraith rapids
#

iirc you shouldn't call disablePlugin in onEnable

opal juniper
#

i didn't know that was a thing

#

it worked fine

wraith rapids
#

iirc the way it works is that the plugin's enabled status is set after onEnable returns

#

so if you disable it in onenable, it will set it back to enabled after onenable returns

#

or, something like that

opal juniper
#

idk

#

iirc it worked fine

hybrid spoke
#

never heard of it

#

do you have a source?

wraith rapids
#

maybe I'm confusing it for something else

hardy swan
#

yea disabling plugin onEnable workin fine for me too

wraith rapids
#

i do definitely remember people recommending to like delay the disable call by a tick or something

opal juniper
#

maybe it works but isn't ideal

hybrid spoke
#

would make sense cause disabling on enabling isn't really a nice to have

#

but it should work fine

dire marsh
#

pretty sure throwing an exception in onEnable would work better

#

then your plugin will be auto disabled

opal juniper
#

that would also work

wraith rapids
#

the issue with that is that people don't read anything ever

#

"PLUGIN BROKEN PLS FIX"

#

in your reviews section, most likely

hardy swan
#

lmao

dire marsh
#

true

opal juniper
#

i mean - i thought 5 lines that get sent onLoad and onEnable would be enough

dire marsh
#

ctrl + c exception, ctrl + v into review, 1 star

opal juniper
#

yeah

burnt current
#

I have another quick question:
My Ide (Intellij) gives an error for 'Gameprofile' and 'Properties'. I can't import them either. As a solution Intellij says "add maven dependency" but then it doesn't find anything. Does anyone know what I could do to solve this?

opal juniper
#

run build tools

#

and depend on spigot

#

not the api

chrome beacon
wraith rapids
#

does VersionChecker do a network request

opal juniper
#

yeh i think so

#

but async iirc

hardy swan
#

is it just me or does spigot not have any javadoc

wraith rapids
#

looks to be sync

opal juniper
#

🤷

#

ask choco

#

he wrote it

wraith rapids
#

or what am I looking at

hybrid spoke
#

your versionchecker has a possible memoryleak

wraith rapids
#

ok no it is async

hardy swan
dire marsh
#

oh

#

yeah never had javadoc appear on that

#

dont think it does

hardy swan
#

sad, why spigot-api has it but not spigot 😦

opal juniper
#

where

dire marsh
#

even the api one sometimes bugs for me and doesn't appear

dusky spade
#

is there a placeholder for if a bungee server is online?
or a plugin to make a placeholder for it?

hybrid spoke
wraith rapids
#

choco bad

hybrid spoke
#

not sure if its also a memory leak if its supplied async but still a possible memoryleak

opal juniper
#

just @ him, he wont mind

hybrid spoke
#

you have to make a finally clause where you close that connection

#

otherwise it will also never be closed if an exception is being throwed

#

*if it gets throwed before closing or while

opal juniper
#

yeah i see ya

#

eh - im sure its fine

#

famous last works

wraith rapids
#

why are you populating your config defauls in source with constants

hybrid spoke
#

you can stay like this and hope that it don't matter since its on another thread

wraith rapids
#

wouldn't it be simpler to just write the config.yml with the defaults

#

that way you could have comments

opal juniper
#

umm

#

yes

wraith rapids
#

the values in your bundled config.yml are automatically loaded as defaults, as well

#

so it's functionally the same as addDefault

opal juniper
#

so what happens when a new version of a plugin has another field, it just merges them?

wraith rapids
#

whatever is in the existant config on disk will be used

burnt current
opal juniper
#

yeah you said

wraith rapids
#

if there is no value for a key in the file on disk

opal juniper
#

i dont know what to say

wraith rapids
#

then the default from the bundled yml will be used

opal juniper
#

ok- thats cool

wraith rapids
#

so yes, a kind of merge

opal juniper
#

i just wasnt aware

wraith rapids
#

where the existing config.yml is given priority

burnt current
#

ok

wraith rapids
#

saveResource("heads.yml", true);
i see you're extracting resources into the plugin directory, but overwriting them each time

opal juniper
#

yeah - ok that is something to bare in mind

#

mhm

wraith rapids
#

this can be a bit misleading to end users

#

as they probably assume they are there to be modified

opal juniper
#

yeah true

wraith rapids
#

either load it directly into a config from the stream provided by getResource

#

or don't overwrite the existing file

opal juniper
#

im gonna actually change that npw

#

although the languages.yml should not be changed

wraith rapids
#

then you want to load it directly from the resource

#

and not write it to disk in the plugin dir

#

get the stream of that bundled resource with getResource

#

create a Reader for it with new InputStreamReader or something

#

and then pass that to the YamlConfiguration constructor or factory method that takes a Reader

opal juniper
#

yeah, i think that it is kinda obvious that you shouldn't change the languages

#

since it is a hashmap

#

but fair point

hardy swan
#

I would say to make languages yaml available in plugin directory for users

#

so that they can make a copy to make any changes they want

opal juniper
#

They should NOT change it

#

they are constants

hardy swan
#

why not, there are no harm in changing it

opal juniper
#

hence what NNYa is saying

wraith rapids
#

YamlConfiguration.loadConfiguration(new InputStreamReader(this.getResource("languages.yml")));

opal juniper
#

they are constants for the deepl api

hardy swan
#

ohh

hardy swan
#

i thought languages yml in general

#

was wondering wat's the hashmap about lol

hybrid spoke
opal juniper
#

it is translating the lang returned from one thing to the needed code for another

wraith rapids
#

a few bytes here or there

opal juniper
#

never hurt anyone

#

YamlConfiguration configuration = YamlConfiguration.loadConfiguration(new InputStreamReader(this.getResource("languages.yml")));
Just like this then

#

remove the save resource

wraith rapids
#

getTranslation also doesn't close the connection in a final block

#

yes that just shits out an in-memory config for you to use

hybrid spoke
#

^

opal juniper
#

ok nice thanks

wraith rapids
#

without doing anything on disk

opal juniper
#

i sorta always forget about errors

hybrid spoke
#

and so does choco

opal juniper
#

Don't the connections time out or something and auto close?

wraith rapids
#

isn't there like a player change settings event

#

that gets fired when they change their locale

opal juniper
#

why would u need that?

wraith rapids
#

probably want to use that instead of only ever getting it in the join event

#

as the player can change their language while connected

weak mauve
#

DAY 1 of asking: how can i make the item that i put in the crafting table return to player inventory when i close

wraith rapids
#

clear the inventory on close

#

and put the items in the player's inventory

weak mauve
#

i have done long ago

wraith rapids
#

i'm pretty sure someone did it that way a bit ago

#

why do you have an entire block of spaghetti in the join event waiting for the client to send their locale

opal juniper
#

cause md69

hybrid spoke
opal juniper
#

but from testing 60 works fine

weak mauve
hybrid spoke
#

listen to the inventory close event, look for the inventory type, get the contents, clear the inventory, set the contents in the players inventory IF he has space

wraith rapids
#

NBT doesn't exist in the API

opal juniper
#

but the spaghetti is mostly bad code working out whether to translate, what lang to put in etc etc

hybrid spoke
wraith rapids
#

literally doesn't matter

weak mauve
#

get the contents <- this is the problem

wraith rapids
#

you know the slots

#

iterate over the slots

weak mauve
#

ye

wraith rapids
#

get the items in them

#

very simple

hybrid spoke
#

doesn't inventory has a #getContents method?

opal juniper
#

anyways - imma go for a bit. dont bomb england while im gone NNYa

wraith rapids
#

yeah but that is like a chest with a bunch of items in it that probably shouldn't get removed

weak mauve
wraith rapids
#

so he probably only wants the 3x3 grid

weak mauve
#

and i'm 1.8

hybrid spoke
#

can't he just get the top inventory?

#

oh

wraith rapids
#

he can

hybrid spoke
#

idk if its possible in 1.8

wraith rapids
#

and he can also just get the slots

hybrid spoke
#

^

wraith rapids
#

but he's a 1.8 plebian

#

so he doesn't understand what we're saying

weak mauve
#

getItemStack

wraith rapids
#

let me get my list of other 1.8 plebians

weak mauve
#

from 1.7 -> 1.16

wraith rapids
#

@quaint mantle @crude charm @minor fox calling all the 1.8 plebians

#

help this man

#

he needs to figure out how to get the contents of an inventory held in a specific set of slots

weak mauve
#

i figured it out

#

just getitemstack

#

use for to loop through all slots

#

store them

#

and give

quasi flint
#

i said that too u already

weak mauve
quasi flint
chrome beacon
#

Then why send it here....

quasi flint
#

and in spigotcraft

#

someone will help eventually

#

thisnjust delays it

wraith rapids
#

screaming bedwars

quasi flint
#

and y u plep dm ing me?

chrome beacon
#

Bruh

#

Did he really

wraith rapids
#

i haven't even looked in my dms in like weeks

#

i have 9 unread messages there apparently

quasi flint
#

5 dms in 2 sec

wraith rapids
#

or 9 unread conversations, idk bout messages

quasi flint
#

before u write mughda

#

server help

wraith rapids
#

you must be a 1.8 user, too

quasi flint
#

serve rhelp u pleb

#

because u just dm me right away xd

chrome beacon
#

Because you're annoying

wraith rapids
#

who let the fucking kids in

quasi flint
#

go to help server pleb

wraith rapids
#

we need a "no babies" rule

quasi flint
wraith rapids
#

go back to kindergarten

chrome beacon
#

Then grow up

wraith rapids
#

mods mods mods mods mods mods mods mods mods

#

also 16 is a child

#

you are an itty bitty babby

quasi flint
#

i am 14 and behaving better

wet breach
#

still a kid to me

wraith rapids
#

i've seen 9 year olds who are more mature

quasi flint
#

ur english is trash. i see

tribal moat
#

this man really just-

quasi flint
#

yes

hardy swan
#

hello

tribal moat
#

sometimes when people join, chat turns into complete chaos

#

its normal for all discord servers

wet breach
quasi flint
tribal moat
wraith rapids
#

high tier philosophy

quasi flint
#

bread

hybrid spoke
#

just don't join, stay here.

opal juniper
tribal moat
#

^ YES

opal juniper
#

i mean - if NNYa then just verified we would be fine

quasi flint
#

Or make this server just verified only

#

Channel

opal juniper
#

I second that

tribal moat
#

yeah that's why verification exists

hybrid spoke
#

yeah lets force NNYa to verify

opal juniper
#

he will just say he cant be bothered and it is too much effort

hybrid spoke
#

he will probably write something like BLITZKRIEG to this server!

quasi flint
#

This yet channel form him

#

Cringe in its purest form

quasi flint
hybrid spoke
tribal moat
#

oh god

quasi flint
#

Welp

#

I am 14 and I think I behave better 😭

opal juniper
#

yeah

tribal moat
#

you 100% behave better

quasi flint
#

thonking

opal juniper
hybrid spoke
#

lets change that

#

we have to test him

opal juniper
#

what his age?

#

oh lmoa

hybrid spoke
#

wanna play fortnite with us @quasi flint?

tribal moat
#

he's 8 - 9

quasi flint
#

And tomorrow I am 15

wraith rapids
#

play AMOGUS with us

tribal moat
#

watch his youtube videos

quasi flint
opal juniper
tribal moat
opal juniper
#

NNYa

#

You there

quasi flint
hybrid spoke
#

you can't see him coming

opal juniper
#

rip cord ass

hybrid spoke
#

he just tackles you from the side

#

and then leaves

opal juniper
#

NNYaKNpGms0eUVpiSdHx

#

NNYaKNpGms0eUVpiSdHx

#

NNYaKNpGms0eUVpiSdHx

#

NNYaKNpGms0eUVpiSdHx

hybrid spoke
#

for an undefined amount of time

quasi flint
#

Give him his 2 min

opal juniper
#

@wraith rapids

quasi flint
#

His brain cells have to figure out what happened

hybrid spoke
#

what do you want from him

opal juniper
#

verify

#

he has acc

quasi flint
#

Finally this @unkempt vessel stopped.

#

Happy

opal juniper
#

he has the lobotomy plugin

hybrid spoke
#

:(

quasi flint
#

Oh god fuck

hybrid spoke
quasi flint
#

I didn't think

opal juniper
#

smh

quasi flint
#

Don't thonk I do

opal juniper
quasi flint
#

Tf is dat

opal juniper
#

blob

#

bloby

#

cool guy

quasi flint
#

He started agin

tribal moat
#

this is his channel's about-me

quasi flint
#

Welp

hybrid spoke
quasi flint
#

12 messages

tribal moat
#

10 y/o

quasi flint
#

20 messgaes

tribal moat
#

so i was wrong

quasi flint
#

30

#

It stopped

tribal moat
#

well uh

quasi flint
#

Lol

tribal moat
#

my presence is not needed here anymore

#

i shall now unexist

#

bye

opal juniper
#

look in

quasi flint
#

Bye

opal juniper
tribal moat
#

(no, i wont leave the server)

quasi flint
#

The just spammed aaaaaaa aaaaahhh

hybrid spoke
#

have a nice after-life in beyond

tribal moat
quasi flint
opal juniper
#

mf dont know what that channel is

hybrid spoke
#

well

#

you guys just told him

#

he have to go there

quasi flint
hybrid spoke
#

yeah there he was too xD

quasi flint
#

He just send message everywhere he can

#

Faster help I guess

hybrid spoke
quasi flint
#

Not infected channel

opal juniper
#

he is a pleb

quasi flint
#

Because he not verified

#

We are safe there

hybrid spoke
#

i just checked in

#

by sending a dot

quasi flint
#

Sec

opal juniper
#

dot gang

quasi flint
#

Fancy purple name

#

I want too

#

Gimme dat

#

Lol

opal juniper
#

get nitro then

quasi flint
#

I am broke as hell my guy

#

Not liquid anymore

#

Running low on da €

wet breach
#

so just make more

opal juniper
#

just make premium plugin

quasi flint
#

Extreme Money Printing

opal juniper
#

pays for spigot

#

*discord

quasi flint
#

With premium shitty content

#

Love it

hybrid spoke
#

for a premium resource you need some skill 💀

opal juniper
#

yeah

#

i haven't bothered yet tbh

quasi flint
opal juniper
#

and i don't think i have enough reviews

hardy swan
#

You need 80 messages 💀

hybrid spoke
#

epic games just had it for free

#

what happened?

opal juniper
#

it ended

hybrid spoke
#

yeah but

hardy swan
#

If it includes discord message would be epic

quasi flint
#

No creditcard

hybrid spoke
#

why didn't he purchased it

opal juniper
#

true

#

oh

#

how old r u?

quasi flint
#

Purchased it. But 14 /= credit card

opal juniper
#

oh yeah

#

15

hybrid spoke
#

just make a new paypal account

quasi flint
#

15 tomorrow

hybrid spoke
#

doesn't matter if it gets disabled

opal juniper
#

u have to be 18 for paypal

#

lmao

wraith rapids
#

return some returnable bottles

opal juniper
#

NNYA

quasi flint
#

Still got it

opal juniper
#

STOP

wraith rapids
#

easy way for kids to make money

opal juniper
#

STAY HERE

#

VERIFY NOW

hybrid spoke
#

pfandflaschensammler

quasi flint
#

Coming out of the year 1890 my guy

hybrid spoke
#

be like

wraith rapids
#

verifying is gay

opal juniper
#

no

quasi flint
#

That's what Obdachlose tun

opal juniper
#

its not

#

thats implying that i am gay

#

which is false

hybrid spoke
wraith rapids
#

you could also find an epstein tier sugar daddy

quasi flint
#

Mimimimimimimi

hybrid spoke
wraith rapids
#

exchange some carnal favors of the flesh for money

quasi flint
#

Ur name is like you repeatedly headbutted on keyboard in extreme rage

hybrid spoke
#

just sell your lung for lifetime discord nitro

wraith rapids
#

the only part about that that is accurate is extreme rage

opal juniper
#

silly

quasi flint
#

Or breathe

ancient plank
#

does that guy who blocked everyone in here for not spoonfeeding him still come in here

quasi flint
#

Which is helpfull

wraith rapids
#

i haven't seen them for a day or two

#

i don't think

hybrid spoke
hardy swan
#

them?

opal juniper
#

Floofsy

wraith rapids
#

that floofsy fuck

quasi flint
#

Nah

ancient plank
#

wild, it was entertaining to read

hardy swan
#

lmao be kind

opal juniper
#

he is gone i think

wraith rapids
#

i will not be kind

quasi flint
#

But that mughda is good too

wraith rapids
#

i am very unkind

opal juniper
#

didn't imaginedev kick / ban him

quasi flint
#

Entertainment in its ourest

wraith rapids
#

i will grind his anencephalic ass to dust

quasi flint
#

With pure ass on concrete

hardy swan
#

it is not good to discriminate other's STUPIDITY

quasi flint
#

May God pray for him 🙏

wraith rapids
#

sure it is

#

stupidity kills people

quasi flint
wraith rapids
#

i will discriminate you into low IQ camps

hybrid spoke
#

soon 15 y/o bullying others

wraith rapids
#

so that you can't be a danger to yourself or anyone else with your micro brain

quasi flint
#

And kills my brain cells that are left

hybrid spoke
#

interesting

hardy swan
#

Breaking News: Low IQs pandemic

hybrid spoke
#

anyways

quasi flint
#

Get the math books

hybrid spoke
#

since nobody is coming to get some help

wraith rapids
#

we should talk about ww2

opal juniper
#

smh

quasi flint
#

Senfgas

hybrid spoke
#

we should take a 5 min break in case we are scaring them away

quasi flint
#

Weeeeeeere

hardy swan
#

?google

undone axleBOT
opal juniper
#

REGROUP IN T+5 MINUTES

quasi flint
#

Welp

#

I have to do a 5 min sprint for 2km

#

Get help

opal juniper
#

run schneller

quasi flint
#

Have to go home

hardy swan
#

that's fast

quasi flint
#

13:45 I am back here

hybrid spoke
#

okay guys its :40

opal juniper
#

kk

hybrid spoke
#

lets return back at :45

opal juniper
#

no-one help till :45

hybrid spoke
#

shhhhhhhhhh

wraith rapids
#

since my explorer crashed a few days ago, I can no longer see the system time

wraith rapids
#

the system time also drifts on its own

quasi flint
#

Maybe restart comput9r

wraith rapids
#

it's 25 minutes ahead the wall time right now

#

or, well, when I last saw it

opal juniper
#

surely there are message time stamps

#

oh

wraith rapids
#

when I commit shit to a git repo, the commits are done 25 minutes in the future

hardy swan
#

?ask

undone axleBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply.

hardy swan
#

wtf

wraith rapids
#

which is rather strange

opal juniper
#

i shared mine

wraith rapids
#

i don't have any public ones

opal juniper
#

smh

wraith rapids
#

they're all full of antisemitism and racism and sexism and misogyny and, uh

#

what's that ism when you discriminate someone based on their ability

#

ableism?

opal juniper
#

yes

wraith rapids
#

yes, ableism

opal juniper
#

do you think you may die alone

wraith rapids
#

i have many friends who share my world views

opal juniper
#

wow

#

im genuinely suprised

wraith rapids
#

since I don't live in a soy state like the liberal parts of usa, they're easy to come by

#

i have literally not seen a black man for more than 6 months

#

irl, that is

#

pure white ethnostate over here

opal juniper
#

is that cause you have not gone outside

#

oh ok

hybrid spoke
wraith rapids
#

i'm not 24/7 here

opal juniper
#

no

hybrid spoke
#

23/7

quasi flint
#

He just seeing us

wraith rapids
#

it just looks like it because we're online at about the same time of the day

opal juniper
#

early hours of morning for me he is not here

hybrid spoke
#

have to be the religion

wraith rapids
#

i'm actually here only a few hours a day

quasi flint
#

I have to go take a tactical shit. Back in 10 min

opal juniper
wraith rapids
#

which I suppose is still a pretty long time, but that few hours is mostly me waiting for my slow as fuck maven shit to compile

#

and I don't have anything better to do as I can't use a browser while compiling

opal juniper
#

Why i dont use maven for compiling 😎

hybrid spoke
#

or just buy a better machine

quasi flint
#

Better toaster

wraith rapids
#

not enough effort

#

i will eventually

hybrid spoke
#

sell some plugins

opal juniper
#

im suprised your alive you have so little effort

wraith rapids
#

it's not about money

quasi flint
#

It's about having fun

wraith rapids
#

it's an issue of principle

#

that I don't want to get scammed

#

because fuck scammers

#

and to tell a scam apart from a good product requires effort

hybrid spoke
#

"it still works. its slow af and crashes sometimes, but it works"

quasi flint
#

Ur computer got virus

wraith rapids
#

need to do like price comparisons and understand the market and shit

hybrid spoke
#

or just google for test results

wraith rapids
#

every bit of effort I don't put into that when buying a product translates directly to a few more shekels of jew gold in the scammer's pockets

hybrid spoke
#

and for price comparisons

#

there are enough

opal juniper
#

i managed to get a 3060ti at msrp from a shop, so i was pretty happy

#

those things are like rare as hell apparently

wraith rapids
#

the other issue is that it should ideally be a laptop

#

and "gaming laptops" are gay and expensive

opal juniper
#

yep

wraith rapids
#

if it were a desktop I would probably have gotten one already

opal juniper
#

i like the razer ones

#

but expensive

wraith rapids
#

but finding a laptop that performs decently but doesn't have 20x inflated price because of "gaming laptop" is difficult

#

like, take this one for example

#

the processor is actually pretty fucking good

#

goes up to 3ghz, everything runs smooth and good when it actually runs at max clock speed

#

but because of passive cooling, it's always throttled down to fucking 600mhz

opal juniper
#

what is it

wraith rapids
#

i don't remember

opal juniper
#

oh lmao

wraith rapids
#

and I can't look up because explorer died

sleek pond
opal juniper
#

imo - get a good laptop with decent cpu and then just thunderbolt a gpu on when u need it

#

save a lot of moners

#

and better battery life

wraith rapids
#

find me a decent laptop

hybrid spoke
#

i could recommend a pretty good laptop

sleek pond
#

How tf u thunderbolt a gpu on a 'top

hybrid spoke
#

but its up to >500€

wraith rapids
#

one that ships to the white ethnostate of finland

opal juniper
wraith rapids
#

money isn't an issue as long as it isn't a fucking scam

opal juniper
wraith rapids
#

here in the white ethnostate everybody is rich

hybrid spoke
#

nah but its more like an office laptop

#

very strong on doing tasks, programming etc

wraith rapids
#

i do prefer office keyboards, yes

sleek pond
#

Money is an issue for me, sucky eucky, there's no laptops that have good perf for below 700

hybrid spoke
#

games aren't a problem but also perform pretty good

wraith rapids
#

great, link me and I'll put it on the to-do list

sleek pond
#

I wanna see it too

hybrid spoke
#

gonna find it again

wraith rapids
#

and when I get around to it I'll compare it to other shit and maybe get something

opal juniper
#

i need to get a craptop for uni

sleek pond
#

Entry-level bruh

opal juniper
#

ikr

#

800 is not entry level

sleek pond
#

It's the same thing in the desktop world

opal juniper
#

"sufficient"

#

im sorry

sleek pond
#

1k is considered entry level

wraith rapids
#

i hate modern technology

opal juniper
#

but i hate linux

#

its the same reason i like ios

wraith rapids
#

remember when we sent people to the moon with like 60kb of physical memory or some shit

opal juniper
#

cause i like things when they just work

wraith rapids
#

i fucking hate how everything these days is so bloated and heavy

hybrid spoke
#

its the ASUS Zenbook 13

sleek pond
#

U use it?

opal juniper
#

i need to focus on work now

#

smh

wraith rapids
#

can you get it with an office keyboard? like, with numpad and shit

hybrid spoke
#

small laptop, gtg, smooth keyboard, good screen

hybrid spoke
wraith rapids
#

that is the gayest shit ever

#

i want buttons

sleek pond
#

Lmao

wraith rapids
#

not a flimsy touchy touch pad that stops working after 2 years

sleek pond
#

I use a mouse anyways

hybrid spoke
#

then go for an ASUS Zenbook 15

wraith rapids
#

based on google image search that doesn't have a numpad either

#

15 does

hybrid spoke
#

yeah i edited it

wraith rapids
#

it costs literally double

sleek pond
#

Well suck it

wraith rapids
#

i'm not paying 1000 dollars for a fucking numpad lmao

sleek pond
#

That's how laptops are

hybrid spoke
#

so buy the 13 one

wraith rapids
#

yeah no

hybrid spoke
#

or buy the laptop + keyboard

wraith rapids
#

no numpad no purchase

hybrid spoke
#

or buy an extra numpad

wraith rapids
#

i suppose that is vaguely doable but I'd rather not

quaint mantle
#

Numpads are for slow typers

wraith rapids
#

numpads are very useful

#

ever tried doing your taxes without a numpad

#

you end up moving your hand like 5 kilometers going from 1 to 0 and back when writing all of the numbers

opal juniper
#

I like numpads

wraith rapids
#

versus just clickety clickety on the numpad

hybrid spoke
#

i like to aim for the keys

quaint mantle
#

I have an accountant for my taxes but anyways, I can keep all my fingers on my number keys if I need to type numbers

hybrid spoke
#

instead of just circling around

wraith rapids
#

the issue is that the keys are like 30cm apart

quaint mantle
#

Why don’t you just use multiple fingers then?

wraith rapids
#

because I'm holding the paper and doing other stuff with my other hand

quaint mantle
#

Yea get an accountant, fuck doing taxes lol

wraith rapids
#

i had an accountant at some point

#

he fucked everything up

quaint mantle
#

Well it depends what you pay taxes on anyways.

wraith rapids
#

lots of shit is still a complete fucking disaster even like 20 years later

quaint mantle
#

Like if you have a business and stuff. Accountants a good move

ripe veldt
#

By the way, when you build spigot with the version "latest" it builds 1.16.5 I think something wasn't updated.

wraith rapids
#

myeah, I would get an accountant if my situation was normal

#

but it's pretty far from normal

weary geyser
#

NNY why aren’t you verified

wraith rapids
#

as in, several generations have progressively fucked things up and now it's an unsolvable mess

quaint mantle
#

Haha that’s why I have one, because i cba to handle the advanced shit with work taxes and crypto

wraith rapids
#

if I had to hire an accountant to deal with it, it would take them so long to do the things they need to do every year that i'd go bankrupt

#

it's easier when you have a simple, streamlined system

#

you only need two or three few hour long sessions a year

quaint mantle
#

Oh damn mines more like a family friend so I guess it’s different.

wraith rapids
#

and everything is done

hardy swan
wraith rapids
#

but in my situation, I have an enermous amount of paperwork and super fringe and specific things to take care of

#

hiring an accountant to do all of that would be very expensive

chrome beacon
hardy swan
#

Oh wait

#

They changed it back

#

Im pretty sure it was 1.17

#

But yea

wraith rapids
#

anyways

#

numpad is nonnegotiable

hardy swan
#

Maybe I confused it with without arguments

#

But buildtools on mac doesnt work correctly most of the time

#

Shag

wraith rapids
#

implying anything on mac does

quaint mantle
hardy swan
#

Rare times somehow

wraith rapids
#

ah yes

hardy swan
#

For me it jump between different issues lmao

wraith rapids
#

the guy with the reddit avatar

#

with a nitro boost

hardy swan
#

Back and forth

wraith rapids
#

defending his mac

hardy swan
#

Can m1 run minnnnecraffft

quaint mantle
#

afaik it can

hardy swan
#

Run well

topaz moon
wraith rapids
#

question everything

#

hyperborea calls

#

wake up

hardy swan
#

Unlike my 2015 macbook air whose fan screams everytime I open the game

topaz moon
#

Well, I didn't say it runs well

#

👀

#

but technically speaking, it can

#

But the new mac should be able to run it smoothly

hardy swan
#

It is interesting that Lunar has a m1 version for mac

#

Wonders what kind of diff it makes

foggy bough
#

Is there any way that I can transform into a mob using spigot?

hybrid spoke
#

probably

topaz moon
#

^

foggy bough
hybrid spoke
#

there should be several ways

foggy bough
wraith rapids
#

pretty difficult without fucking with the protocol

#

i suppose there is one entirely api way but I would not call it good

hybrid spoke
#

and the simpliest is like to hide the player, spawn an entity at the location of the player and voíla

topaz moon
#

mc color code

subtle kite
#

ok

topaz moon
#

but in yaml it's a different symbol I guess

foggy bough
hybrid spoke
#

§

wraith rapids
#

you can either use the essentials & color codes

topaz moon
#

one is for ingame and one for yaml: & and §

wraith rapids
#

or the raw minecraft § color codes

#

but the latter requires the file to have utf8 encoding

hybrid spoke
topaz moon
#

right § is for config/raw mc color code but doesn't work in commands afaik.... I remember something weird

hardy swan
#

You just

wraith rapids
#

it works i guess but the vanilla client can't type it

hybrid spoke
#

in commands? why would you like to do /§hey§there

hardy swan
#

Cant type it i think

topaz moon
hybrid spoke
#

use & and replace it with § in code

topaz moon
#

you need to type & and convert it to § in code

topaz moon
wraith rapids
#

& is more understood by end users

hybrid spoke
#

or anything else than &

topaz moon
#

y but & is the most common

hybrid spoke
#

^

wraith rapids
#

as it has been popularized as "the" canonical color code

#

mostly by essentials afaik

topaz moon
#

^

hardy swan
#

The amazing thing is I think § works in books

hybrid spoke
#

yeah no

#

you have to paste it in

hardy swan
#

Yea

hybrid spoke
#

from like a txt file or smth

hardy swan
#

But works

hybrid spoke
#

yeah just like in an anvil or else

hardy swan
#

Wait i mean ingame

wraith rapids
#

it works mostly anywhere that goes through bukkit's legacy serializer

#

and anywhere that the dfu lexes that shit still

subtle kite
#

§ worked

hardy swan
#

Like you can type color words in books

#

By using §

#

In game

hollow bluff
#

Is it possible to teleport players to another world in a plugin without having multiverse on your server?

wraith rapids
#

yes

#

Player::teleport

hybrid spoke
#

^^

#

just teleport him to a location in the other world

hollow bluff
#

I'm using that, just does not teleport to another world without multiverse?

hybrid spoke
#

it should

#

if you changed the world

wraith rapids
#

whether or not multiverse exists is irrelevent

#

what matters is that the target world exists and is loaded

#

whether it be loaded by multiverse, the server, or your plugin, doesn't matter

subtle kite
wraith rapids
#

wrong encoding

subtle kite
#

why does it leave the A symbol

wraith rapids
#

because you're not encoding it in utf8

hybrid spoke
#

UTF-8 left the chat

subtle kite
#

\u00A78[\u00A7cBakingPvP\u00A78]

#

this?

wraith rapids
#

no

#

or, well, yes; if it's in the raw text file

#

in-source, not necessarily

#

just encode the file in utf8

subtle kite
#

got it to work

eternal night
#

anyone know how this ([title] <firstName> <lastName>) style of, I'd call it format definition, is called ?

hybrid spoke
eternal night
#

Oh yeah, sweet!

#

thanks

#

sweet google also has their own style definition

#

time to switch

hybrid spoke
#

time to create something own

#

?title? !firstname! !lastname! .id.

eternal night
#

pure evil

hybrid spoke
#

OPTIONAL_title_OPTIONAL

#

PLACEHOLDER_firstName_PLAYERHOLDER PLACEHOLDER_lastName_PLAYERHOLDER

#

NEEDED_id_NEEDED

chrome beacon
#

Why are you using NMS for this?

sick portal
#

Hello, could someone help me find a solution for this ? I'm trying to compile spigot 1.8.8 with build tools

#

I'm using java 8 in wsl with ubuntu 20

dire marsh
#

1.8

chrome beacon
#

Try deleting all old BuildTools files and try again

sick portal
#

Already done

chrome beacon
#

🤷‍♂️

sick portal
#

This is the java version

#

openjdk version "1.8.0_292"

chrome beacon
#

Perfect time to update to a modern version

dire marsh
#

:kekw:

stone sinew
chrome beacon
#

How many blocks are you placing

#

Is it worth the trouble...

paper viper
#

If you seen the thread, there isn’t really any best way to do this fast to maintain the light updates and make it update for the client unless you use that method. If you really want to go far, I’d suggest to use like even WorldEdit APi

stone sinew
paper viper
#

You could use workers

shy wolf
#

?jc

#

?jd

stone sinew
paper viper
#

Then use workers. You realize that updating blocks is not easy at all

#

You have to also update the light updates

#

And also many other things

stone sinew
paper viper
#

Then tell us

#

What they are

chrome beacon
paper viper
#

Let me get the post

stone sinew
edgy goblet
#

if worldedit is open source look at that and let it 'inspire' you

chrome beacon
hybrid spoke
stone sinew
hybrid spoke
#

you could tell us what exactly isn't working when setting the block data

chrome beacon
#

Also since it's NMS your mostly on your own either way

edgy goblet
#

maybe your blockData argument is bad

stone sinew
edgy goblet
#

wouldnt Material.SAPLING make an oak sapling?

stone sinew
paper viper
#

Or wait

#

Didn’t you have to use data values

#

Nvm saplings are fine

edgy goblet
#

i meant in old version

#

newer ones are all typed arent they

#

OAK_SAPLING etc

paper viper
#

Yeah

#

But I think oak sapling is it’s own thing

#

I don’t support legacy so idk for sure

#

¯_(ツ)_/¯

edgy goblet
#

there's just SAPLING

paper viper
#

On

#

That means you have to use data values

edgy goblet
#

so i imagine default is OAk and other variants are some data tags

stone sinew
edgy goblet
#

take a look at Block.setData() in the spigot source

stone sinew
edgy goblet
#

could probably just look at how they do it

stone sinew
#

I got it

#
public Object generateBlockData(Material type, int dura) {
    Object data = null;
    try {
        Object nmsBlock = CMNgetBlock.invoke(NMSCraftMagicNumbers, type);
        Method getBlockData = nmsBlock.getClass().getMethod("getBlockData");
        data = getBlockData.invoke(nmsBlock);
        if(isLegacy) {
            Method fromBlockData = nmsBlock.getClass().getMethod("fromLegacyData", int.class);
            data = fromBlockData.invoke(nmsBlock, dura);
        }
    } catch (NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
        e.printStackTrace();
    }
    return data;
}
edgy goblet
#

good onya

steep nova
#

how do i increase blaze rod drop chances? should i just use entitydeathevent or is there a better event to use?

chrome beacon
#

Datapack to change loot tables?

#

Or just manually change the loot tables of blazes

chrome beacon
#

LootGenerateEvent I guess..

#

Actually use Bukkit.getLootTable with the namespace of Blaze loot table and modify that

maiden briar
#

Is there a way to center the name of a item?

#

Of an ItemStack

chrome beacon
#

Wdym?

#

Arent they centered already

maiden briar
#

I will look then

steep nova
chrome beacon
#

Yeah I noticed you might just need to replace it with your own

maiden briar
#

I want to center the name (Netheritspitzhacke)

chrome beacon
#

Oh that

maiden briar
#

I need the amount of pixels

chrome beacon
#

Don't

maiden briar
#

Why not?

chrome beacon
#

It's not worth the effort

maiden briar
#

Oh I see, it get's bigger if the itemname gets bigger

steep nova
#

is it ok if i use EntityDeathEvent, cancel the drops and calculate it myself?

chrome beacon
#

Yeah ofc

#

But LootTables are better

steep nova
#

its an interface

chrome beacon
#

I'm not sure... try just implementing it

steep nova
#

its aight

#

ima just use entitydeathevent

#

ty

maiden briar
#

Can you also center kick/ban messages or is that auto centered?

chrome beacon
maiden briar
#

Ok thx

ivory sleet
#

Nms

#

But you can use pdc also

#

It’s slightly limited tho

#

PersistentDataContainer

#

Use Entity#getPersitentDataContainer to get it (:

rocky glacier
#

when i build artifact it says:

Cannot resolve methode 'getETCw' in 'CryptoCurrency'

Cannot resolve methode 'saveETCw' in 'CryptoCurrency'

But in CryptoCurrency i added:

public YamlConfiguration getEtcw() { return this.etcw; }

public void saveEtcw() {
try {
this.etcw.save(this.cw);
} catch (IOException e) {
e.printStackTrace();

#

and with btc and eth it worked fine

chrome beacon
#

...

#

Case sensetive

hot hatch
#

why is this a thing 😂

rocky glacier
chrome beacon
#

._.

rocky glacier
#

can somebody just help me pls thx a lot

chrome beacon
#

I've told you exactly what's wrong

rocky glacier
#

i dont got it

chrome beacon
#

Now you should learn Java

rocky glacier
#

i started learning but i dont wana pause the plugin for week bc of that prolly small thing

quaint mantle
#

you should pause your plugin until you know all of the basics of java

chrome beacon
#

.... have patience

rocky glacier
#

yh but not if the plugin is on 99% and 1% is missing

quaint mantle
#

yes you can

chrome beacon
#

^

dusk flicker
#

Waiting a week on a plugin is nothing

rocky glacier
#

okay thanks for help appreciate it

#

help ≠ help

#

help = telling someone to learn java instead of helping to fix a small problem

#

🙏

hybrid spoke
#

he did

#

he actually did tell ya whats wrong

dusk flicker
#

He told you how to fix it but you don't understand = need to learn

hybrid spoke
#

and even 1 week of non-work because of an issue is nothing.

#

not without your code

dusk flicker
hybrid spoke
#

?paste

undone axleBOT
hybrid spoke
#

please

#

use this

quasi flint
#

Traveler

#

I am back GodCipher

hybrid spoke
#

hello back, i am GodCipher

quasi flint
#

;V

rocky glacier
dusk flicker
#

Methods are case sensitive.

hybrid spoke
#

now?

dusk flicker
#

4 words

#

Have fun

hybrid spoke
#

did you get it?

chrome beacon
#

What happens when you run your command

rocky glacier
#

AHAAA JUST SAY MISMATCHING FILES

hybrid spoke
#

what are you nulling?

chrome beacon
hybrid spoke
rocky glacier
#

yh but i googled it

quasi flint
#

does it throw an error?

#

;/

hybrid spoke
#

stop bumping your help request. your code is garbage. it could take a while till someone can or is willing to help you

quasi flint
hot hatch
#

everyone is

quasi flint
#

well good if you yourself say it 😄

hot hatch
#

GodCipher do you know how to speak every language?

hybrid spoke
hot hatch
#

you don't know

#

so ur an idiot at that

quaint mantle
hybrid spoke
hot hatch
#

lmao

quaint mantle
rocky glacier
#

yes fr it helped me alot

#

nj

quasi flint
#

may rewrite the whole code

#

helps everytime

quaint mantle
#

very true

hushed lantern
#

Hi, I want to make a spigot custom plugin and I want to use firebase too. I am a very beginner in this theme so I need some help. How can I implement firebase to my project? I don't have a build.gradle file and I don't know where should I create it and should I even have to use it? Please help me what should I do to be able to use firebase

quasi flint
#

either maven

#

or the way u add spigot

#

to the projrckt

rocky glacier
chrome beacon
quaint mantle
quasi flint
#

i personally dont use maven

quaint mantle
#

maven is nice to start with imo

quasi flint
#

because i use my own apis

#

so no need to do it with maven

hushed lantern
quasi flint
#

so i add my apis like i added spigot

#

nothing wrong with that i guess ?

woeful crescent
#

Can anyone tell me how I can detect a player holding right click on an item?

hushed lantern
rocky glacier
hushed lantern
quasi flint
#

<------ not helping for 10 min. taking tactical shit on the toilet

quaint mantle
#

Hey ! Using Gson, where in the plugin should I apply the serialization ? I guess i'd need something like "before server shutdown" or something similar, does ondisable execute this ?

hybrid spoke
#

what do you want to serialize and why

chrome beacon
quaint mantle
woeful crescent
chrome beacon
hybrid spoke
quaint mantle
#

well, I suggest using gradle since thats what firebase has instructions for

quaint mantle
# hybrid spoke serialization for what?

right, well it's a Multimap that I'd turn into a map for json to handle it. It's like a database that register players UUID linked to couple vectors. when they place a specific block it adds their vector to the database and this relationship needs to be retrieved many times.

Works well, only problem is that when I shut down server it kind of deletes the Map (erases its memory), this is why I want to serialiaze it.

#

so in my mind I'd need to deserialize it at start of server

#

and serialize it at shutdown ?

quasi flint
rocky glacier
#

😩 f0cking satisfying

quasi flint
#

yes

rocky glacier
#

Next time try making the leaning tower of pisa 🥵

hybrid spoke
hushed lantern
#

Can I use firebase if I just create build.gradle and paste this code (dependencies {
implementation 'com.google.firebase:firebase-admin:7.3.0'
}) there?

chrome beacon
#

Not really

#

You an entire Gradle project not just that file

#

I suggest you read the user guide I sent

hushed lantern
#

okay

ivory sleet
#

Send build.gradle

#

@hushed lantern

#

You’ll get a headache reading the entire gradle user guide

quaint mantle
#

but I'm not sure where to serialize it

#

before shutdown only ? is such a thing possible ?

ivory sleet
#

Yes

quaint mantle
#

like on shutdown serialize and on start, deserialize

ivory sleet
#

That’s very possible

quaint mantle
#

Hmm that'd be great, is there particular command ? is it what onEnable do ?

#

on Enable/ondisable ?

ivory sleet
#

Yes as the name hints

hushed lantern
quaint mantle
#

ah ok lol, fine then. I thought it'd be like on disable plugin

sharp bough
#

is there a way to save a hashmap on config file without the spaces? i have no intention of making it user friendly and i dont want massive files

#

(its a very big hashmap)

smoky oak
#

Can't u save it as a object and recast it as a object?

hushed lantern
smoky oak
#

Anyways, on the danger of going onto a tangent...
Anyone knows why I can't use the 1.17 javadoc in eclipse?
I tried the two repos (releases and snapshots) but no matter what i do it only says 'no Javadoc could be found'

quaint mantle
#

They dont have a build.gradle file yet

smoky oak
#

ur mean me?

ivory sleet
#

Yes if you use gradle you should by definition have one

quaint mantle
#

god damn it discord

#

they dont

#

they didnt create a gradle project