#help-development

1 messages Β· Page 1082 of 1

blazing ocean
#

no

quiet ice
#

Though I'm not entirely sure if one should trust my advice here considering that I never worked with a DB outside of school lol

blazing ocean
#

because spigot doesn't support components for shit

#

you're gonna have to use nms i think

#

or paper

worthy yarrow
#

oh boy

blazing ocean
#

i'd just recommend to use paper for that

#

runs

worthy yarrow
#

It's for work and they run spigot so may be cooked here

blazing ocean
#

nms is the only option then

remote swallow
#

you can use bungee components

#

or you can convert some parts of a mm component to spigot

#

with legacy serializer

blazing ocean
#

wait your text display ISN'T supposed to show TextComponentImpl{color=null,...}

blazing ocean
remote swallow
#

they dont

#

probably

blazing ocean
#

well yea

remote swallow
#

so legacy serializer

blazing ocean
#

it could work but it removes a lotta shit from components

#

and well it's legacy

remote swallow
#

thats the only downside

#

it works but it removes loads

worthy yarrow
#

So if their using spigot this is done through nms... dear lord sounds lovely

upper hazel
#

toolbox not free?

blazing ocean
#

i doubt they're using spigot

upper hazel
#

bruuhh

blazing ocean
#

it's free lmfao

upper hazel
#

i getting 451 error

blazing ocean
#

πŸ’€

upper hazel
#

maybe bc i live in russian

blazing ocean
upper hazel
#

451

#

when i click

hazy parrot
#

Yeah that is cuz u are from russia

blazing ocean
upper hazel
#

NOO

#

i want to die

blazing ocean
#

use a vpn

upper hazel
#

hmm

#

Is it possible to transmit the lincision inteliji over the internet?

#

this ligal?

blazing ocean
#

the what

upper hazel
#

like "give to friend"

#

etc

blazing ocean
#

just use some shitty free vpn 😭

upper hazel
#

*licensed inteliji

upper hazel
#

"not free inteliji"

lost matrix
#

From where to where do you transmit what exactly?

upper hazel
#

borrow from friend

chrome beacon
#

Just use community edition

upper hazel
#

i want try full inteliji

chrome beacon
#

It has a 30day trial

#

you can use that

upper hazel
#

i live in russian bro

chrome beacon
#

Use a VPN or smth

upper hazel
#

i gess this not will be so easly

lost matrix
#

Arent VPNs illegal in russia?

upper hazel
#

I don't think so

#

idk

#

hahha

chrome beacon
#

Not sure about the laws themselves

kindred sentinel
#

How to get this axis of rotation of minecart by location?

distant wave
# blazing ocean

you know its funny because before war, like half of the jetbrains team was located in moscow or saint peterburg

torn shuttle
#

well then

#

18 hours crunch session today

#

just finished

#

I'd keep going but then how am I going to go to the gym

worthy yarrow
#

A Chad like you always finds a way to hit the gym

floral drum
#

wee

worthy yarrow
#

@floral drum rad said since components aren’t handled for shit in spigot, I’d have to use nms to replicate this sort of color parsing, my goal is to support hex / gradient / and just # color code formatted texts. End goal: display these parsed texts in a text display

blazing ocean
#

as ebic said: legacy serialiser

worthy yarrow
#

Yeah yeah rad I saw

floral drum
#

ah so you want a kindof paper functionality inside of spigot?

#

or well minimessage

worthy yarrow
#

Yes

blazing ocean
#

adventure bukkit yea

worthy yarrow
#

I gotta get a reup on my nms knowledge though

rough ibex
worthy yarrow
floral drum
#

Got it working

#

@worthy yarrow

worthy yarrow
#

wat the fuq

floral drum
#

That's all you have to do

worthy yarrow
#

I'm over here yelling at my duck

#

"WHY WONT IT WORK"

floral drum
#

LMFAO

worthy yarrow
#

why is spawn underlined like its erroring out?

blazing ocean
#

skill issue

worthy yarrow
#

I'm literally doing this too and its fine

floral drum
#

yeah just ignore my spawn method thing

#

but yeah just use LegacyComponentSerializer with a custom builder

#

and it works for hex colors

worthy yarrow
#

Is it only hex? or can i support gradients this way too?

floral drum
#

just shade/shadow the minimessage and platforms in and it should work

slender elbow
#

gradients is just each letter has a different hex color

floral drum
worthy yarrow
#

ah

floral drum
#

works for all tags

sterile token
#

TextDisplays is what in past used to be represented / created by armor stands display name?

floral drum
#

basically yea in a way

#

just custom entities for it now by mojang

sterile token
#

oh nice, thats better to see how the api is improving version by version

floral drum
sterile token
#

do you know any decent tutorial for .1.8 armor stands?

blazing ocean
#

1.8 πŸ’€

worthy yarrow
sterile token
floral drum
runic pine
#

tips to build a gradle project more fast?

blazing ocean
#

have a good pc

worthy yarrow
runic pine
#

you dont help nothing

#

just say shit

blazing ocean
#

gradle is fast

#

idk what you mean

runic pine
#

i compile on 5 seg

#

after

torn current
#

Hello, I don't understand why, when I decide to spawn a block at the location where it was broken, it doesn't work, whereas it works above and below."

If you need any further adjustments or have more text to translate, feel free to let me know!
@EventHandler
public void onBlockBreak(BlockBreakEvent event) {
Location locBloc = event.getBlock().getLocation();
World w = event.getBlock().getWorld();
w.getBlockAt(locBloc).setType(Material.STONE);
}

runic pine
#

2min and is compilling yet

worthy yarrow
paper cosmos
#

Is there a website where I can listen to any minecraft sound by clicking on it. To find what I need. Or any other convenient way to go through many sounds?

blazing ocean
drifting dagger
#

hi

#

can i ask something

slender elbow
#

you just did

sterile token
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. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

blazing ocean
#

?ask

runic pine
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. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

drifting dagger
runic pine
#

maybe a formattion

#

i ll format

#

thanks for tip

#

!1

blazing ocean
#

wha

sterile token
drifting dagger
blazing ocean
#

you need to start a server

kindred sentinel
rough ibex
#

do you have the Minecart object

runic pine
#

whats the better performanc? win 10 ou 11

eternal night
#

for what

rough ibex
#

11

#

MS killed 10 anyway

tardy delta
#

for what

paper cosmos
#

for why

runic pine
blazing ocean
#

linux

eternal night
#

linux

tardy delta
#

question doesnt make sense

runic pine
#

pc not is mine

blazing ocean
#

install arch!!1!111!!eleven

runic pine
#

if not, i installed the 11 arleady xd

rough ibex
#

this is vague and unactionable

blazing ocean
eternal night
#

windows FS is just terrible for programming related task (which mostly involves moving/writing a lot of files)

rough ibex
#

performance for programming??

#

how fast are you typing

tardy delta
#

just use linux

#

and learn c

rough ibex
#

you mean compiling or wut

blazing ocean
#

just use arch (btw)

tardy delta
#

then at the end of the year, start writing your own kernel

tardy delta
#

indeed

blazing ocean
#

just use rust bro :copium:

tardy delta
#

listen to the 1h version and put it on repeat

worthy yarrow
#

Is there a spigot equivalent of LegacyComponentSerializer?

runic pine
#

archlinux is good?

runic pine
rough ibex
#

yes

runic pine
#

linux no

rough ibex
#

for you? no

runic pine
#

but i ll change to windows after

thin frost
#

Hey guys, which version of the java JDK should I install to develop spigot plugins?

runic pine
tardy delta
runic pine
#

i use linux brother

blazing ocean
#

what

blazing ocean
#

you just said you don't πŸ’€

tardy delta
thin frost
#

Not JDK 1.8?

#

Ok so latest works

rough ibex
#

Hell no

blazing ocean
#

use 21

rough ibex
#

discard any trace of java 8

tardy delta
#

java 8 is old

runic pine
#

use 22

#

21 is old

rough ibex
#

get out

tardy delta
#

21 is lts

blazing ocean
#

πŸ’€

thin frost
#

I am trying to revive my plugin but I've forgotten how all of this works

rough ibex
#

use lts

blazing ocean
#

gtfo gongas

thin frost
#

So JD 21 it is?

rough ibex
#

yes

blazing ocean
#

yup

runic pine
tardy delta
#

and isnt 22 still in preview?

runic pine
#

22 more recent

runic pine
blazing ocean
#

22 has windows issues

rough ibex
worthy yarrow
thin frost
#

I hope much hasn't changed in spigot the last year

blazing ocean
thin frost
#

I'm afraid of having to rewrite too much code x.x

runic pine
#

but even if it is in preview, do a benchmark and see the performance improvement. Java, as a very large company, would not leave such a big flaw

blazing ocean
#

just use adventures

remote swallow
runic pine
#

arch linux have better performance that w 10?

remote swallow
#

i love java the company

rough ibex
#

java is a programming language

blazing ocean
#

yes πŸ’€

rough ibex
#

i bet you think Sun is a star

blazing ocean
#

just install arch bro

runic pine
blazing ocean
#

easy as shit

rough ibex
#

no it is not

runic pine
#

arch linux have better performance that w 10?

remote swallow
rough ibex
blazing ocean
#

ye

runic pine
blazing ocean
rough ibex
#

thats vague as hell

blazing ocean
#

you have been answered three times

runic pine
#

not to play

#

only for programming

rough ibex
#

linux

runic pine
#

BUT IM SPEAKING ARCH LINUX

#

NOT LINUX

#

LINUX IS GENERAL TERM

rough ibex
#

shut up

blazing ocean
#

since you have already made like 10k from mc

runic pine
#

ARCH LINUX HAVE BETTER PERFORMANCE OR NO

eternal night
#

the distros in general don't give each other much

tardy delta
#

arch linux is trash

#

oh yes rad

runic pine
#

ARCH LINUX HAVE BETTER PERFORMANCE OR NO THAT WIN 10

rough ibex
blazing ocean
runic pine
#

LEAVE THE CHAT

#

PLS

#

YOURE NOT DEV

blazing ocean
eternal night
remote swallow
blazing ocean
runic pine
rough ibex
#

rad youre not a dev

blazing ocean
#

didn't know

rough ibex
#

dev privileges revoked

thin frost
#

Lol I just joined here and this chat is going crazy.. in a bad way.

remote swallow
#

@blazing ocean UR NOT DEV?!?!

blazing ocean
#

:(

runic pine
#

ARCH LINUX HAVE BETTER PERFORMANCE THAT W10?

tardy delta
rough ibex
#

please return your jetbrains commercial key

blazing ocean
#

MB FOR RELEASING PACKED

#

this chat is wild

chrome beacon
blazing ocean
tardy delta
#

certain people πŸ˜‰

thin frost
#

Is Intellij no longer free? πŸ˜„

remote swallow
#

kek is this gongas that was here ages ago

blazing ocean
#

community edition always is

rough ibex
#

community is free

#

and everyone uses that

blazing ocean
remote swallow
#

lmfao

thin frost
#

Lmao I am sleepy, I downloaded the wrong thing x.x

blazing ocean
rough ibex
#

its okay

blazing ocean
#

i'm rich like dat (i use the student license)

chrome beacon
chrome beacon
thin frost
#

I am connected to my server/dev PC so my window is not full size haha

blazing ocean
thin frost
#

Made it too easy to miss

sterile token
#

What are the reasons of a Map being null? I already checked that the map is initialized and gives npe when calling Map#set()

chrome beacon
#

Sounds like it isn't initialized

blazing ocean
chrome beacon
#

Or you set it to null

sterile token
chrome beacon
#

It won't magically become null

#

Yes send the error and the code

blazing ocean
chrome beacon
#

?paste

undone axleBOT
rough ibex
#

I sent a cosmic ray to your PC and made it null

sterile token
#

the problem is that i have many files, they all linked

chrome beacon
blazing ocean
#

just send your entire project zip (this is a joke please don't)

#

(i have seen somebody do that)

sterile token
chrome beacon
sterile token
#

im uploading it to git, internet is bad today

chrome beacon
#

Take your time

sterile token
#

there you go

#

im thinking that whats causing the issue may be 3 posibiltiies, inheratation between the classes, the DataMap class or even the Yaml#loadAs

#

okay, definitly find the cause, it was the Yaml#loadAs, now need to get in deep why is making the DataMap being null

thin frost
#

Anyone knows what Particle.EXPLOSION_HUGE/Particle.REDSTONE got renamed to (last spiggot version I ran was 1.19)? Same for Enchantment.ARROW_FIRE, ARROW_DAMAGE, ARROW_KNOCKBACK? And PotioneffectType.SLOW?

floral drum
#

you got it working now? @worthy yarrow

thin frost
#

Tyvm

#

About the enchantments and potion effect, anything majorly redesigned API wise here? @eternal night

worthy yarrow
thin frost
#

Hate to ask so much for help but this would be a time saver if I can just fix those broken enum "links" πŸ˜„

worthy yarrow
eternal night
#

I mean, they were renamed too, if that is what you mean

thin frost
#

Yeah

worthy yarrow
#

It happens when shading adventure components @floral drum

eternal night
#

See the commit I linked

#

it has all the renames

#

on the left just find enchantment

thin frost
#

Thanks! One step closer

chrome beacon
#

The version you're using probably doesn't support Java 21

worthy yarrow
#

I thought I was using the most recent of adventure, 4.17.0

thin frost
#

@eternal night thanks lynx! All issues hopefully resolved now! Makes me so happy that I don't have to rewrite 5k lines of code but rather just edit 6 enum types ;D

eternal night
#

glad to hear that!

worthy yarrow
chrome beacon
#

shade plugin

#

Not adventure

worthy yarrow
#

ah

slender elbow
#

lol

silent wave
#

my event have issues (no console errors)
when i shoot a player with an arrow it apply an effect to the victim, but when i start to shooting more fastest it isnt working, it just apply in some arrows:
https://paste.md-5.net/qiyilimubu.cs

thin frost
#

@eternal night Thanks to you my project and plugin is now revived! Thanks again!

#

Oh I was gonna send a screenshot but not allowed x.x

upper hazel
#

how add item to hover event without nms

#

for display

silent wave
#

my event have issues (no console errors)
when i shoot a player with an arrow it apply an effect to the victim, but when i start to shooting more fastest it isnt working, it just apply in some arrows:
https://paste.md-5.net/qiyilimubu.cs

undone axleBOT
#

Can't send images? That's because you're not verified! Use !verify to complete verification.
Alternatively, you can upload screenshots to any image hosting site and share the link.

Here's some screenshot utilities that you can use to upload images.
Lightshot: https://prnt.sc
Imgur: https://imgur.com/upload
Flameshot: https://flameshot.org

thin frost
#

Wow look at that! It works!

rough ibex
worthy yarrow
#

Yeah I guess I just have to shade all of adventure

chrome beacon
#

Yes

#

You can however set minimizeJar to true in the shade plugin

remote swallow
chrome beacon
#

Should help remove unused classes

chrome beacon
worthy yarrow
#

Yeah I don't like the 600kb jar it compiled kek

chrome beacon
#

Use the libraries feature

remote swallow
chrome beacon
#

Unless you want to support versions older than 1.17

worthy yarrow
#

I get it but still

#

What I've written is only like 17kb so

wet breach
#

IE, if reflection is used for example it can't really detect that the class is in fact being used

chrome beacon
#

^^

worthy yarrow
#

Thankfully this project doesn't require reflection

wet breach
#

so...you should test to ensure your jar works after compiling if you are removing "unused" classes lol

chrome beacon
#

I believe Adventure is fine in this case

wet breach
worthy yarrow
#

Oh right gotcha

wet breach
#

just saying, make sure to test your jar works afterwards is all just in case lol

worthy yarrow
#

Well I'm not sure if I wanna configure the shading anymore then, if it works it works at this point been taking too long

restive mango
#

How do you get the string part of a Component?

runic pine
#

@blazing ocean

#

Error on arch linux installistion lol

blazing ocean
#

@runic pine

runic pine
#

Cam u help me

restive mango
#

e.g. how do i get "fart" from Component fartText = Component.text("fart").color(NamedTextColor.RED);

runic pine
#

On dm

blazing ocean
#

no

runic pine
#

Why

restive mango
#

ty

alpine urchin
#

salutations

runic pine
#

Who help me on arch linux installation

#

Return me a error

river oracle
runic pine
#

😭

river oracle
#

unless you are operating on an edge case

#

what are you trying to do

runic pine
#

Im aithout pc

#

Without

alpine urchin
#

an error

river oracle
#

why are you even on arch dude

runic pine
#

Yes

river oracle
#

if you don't know your way around a PC you shouldn't be on arch

blazing ocean
runic pine
#

Unnable to satisfy all contraints on the partitiob

thin frost
#

Don't use arch my guy... it's very rare that you actually need what it provides compared to other OS

runic pine
#

I need performance bro

river oracle
#

its just as good as arch

thin frost
#

@runic pine As an exp. dev - I am yet to see it used professionally even once.

restive mango
blazing ocean
#

i use it and love it (i actually somewhat know what i'm doing)

river oracle
#

rather some other key

#

you can use NamespacedKey or make your own keyed system but Components are for displaying text

alpine urchin
#

i used arch and had no idea

restive mango
#

okay

#

just

alpine urchin
#

but it worked

blazing ocean
#

wha-

alpine urchin
#

manjaro com carried

restive mango
blazing ocean
#

you can cast it if you're sure it's only text

blazing ocean
runic pine
#

Status "create" on partition format the partition on ext4 for example right?

blazing ocean
river oracle
restive mango
#

@river oracle what i would like is to allow ppl to make the name of this item be whatever they want, usually it will just be a string, but I have an overloaded creation method with Component so that they can also use the component system to do it and therefore make it bold italicized etc. however they want

river oracle
restive mango
#

okay

#

but i need a unique identifier for every item

runic pine
restive mango
#

and the easiest way to do that

#

is to get the name string somehow

rough ibex
restive mango
#

and i am just trying

#

to figure out

rough ibex
#

we're not arch support

river oracle
restive mango
#

how to get an arbitrary name string from the component

#

yes it is lol

river oracle
#

no its not its a horrible idea

#

names are not unique identifiers

blazing ocean
river oracle
#

they could be but in the case of item names they are not

#

what if the user defined to items named "Ball" and each of them has different data associated with it

#

you now have clashing ids, but I as a user really want both display names to be Ball

restive mango
#

the first ball would be replaced by the next when they add them to the hashmap...

#

like

#

it's not a big problem to me

river oracle
#

you can do that by forcing them to define a id key

restive mango
#

bruh

#

i give them the option of doing that, but i dont want to have to

river oracle
#

the proper way to do things is force use of an identifier and stop pretending that Components are a good ID system

restive mango
#

Hello, for those who want to solve my problem:

check if Component is instanceof Textcomponent, then cast to TextComponent and get text for your unique identifier, otherwise print error message that no text given and just assign it a junk identifier

rough ibex
#

TODO CHECK 🚨
how many TODO comments do you have on your current project

slender elbow
dawn flower
#

how do i make a text display follow the player and face the player (ping-unaffected)

rough ibex
#

title?

#

i assume you want something more haha

#

Hard to do that without latency based.

slender elbow
#

riding + translation transforms

eternal oxide
slender elbow
#
  • more math
dawn flower
#

yeah i did the ride thingi

#

but it's not following their camera

eternal oxide
#

update its transformation

dawn flower
#

that's not what i want

#

it doesn't move with their camera

blazing ocean
dawn flower
#

also i got this, but it's facting the opposite direction

#

i want it to look at my face

eternal oxide
#

rotate it 180 around Y

dawn flower
#

i'm working with yaw and pitch

urban kernel
drowsy helm
#

Jenkins

#

And yes1.21 isnt stable

blazing ocean
#

1.21 is still considered experimental

#

damn it

urban kernel
drowsy helm
#

Are the other 2 being shaded?

urban kernel
#

wow that formatting is screwed

drowsy helm
#

Yeah like that

urban kernel
#

alr

drowsy helm
#

Artifact set is an optional config btw

#

If you leave it empty it will include all non provided

urban kernel
#

alright, so i can just remove it?

drowsy helm
#

Yup

urban kernel
#

increased my plugin size from 477kb to 3.4mb

#

πŸ˜…

blazing ocean
#

ah fun

#

you're lucky you're not shading the entire kotlin stdlib :D

#

(it's 2mb)

kindred sentinel
urban kernel
#
[23:10:17 ERROR]: [DMinecraftCollector] Your license for DMinecraftCollector is NOT valid.

D:

drowsy helm
#

If you’re using newer versions just use lib loading

blazing ocean
urban kernel
#

the plugin is shouting at me D:

blazing ocean
kindred sentinel
urban kernel
blazing ocean
drowsy helm
#

Ppl think ur goid coder lel

urban kernel
drowsy helm
#

Config is null

blazing ocean
#

πŸ˜„

drowsy helm
#

Why use boosted yaml instead of snakeyaml?

urban kernel
urban kernel
drowsy helm
#

Inbuilt YamlConfiguration is super easy

blazing ocean
urban kernel
slender elbow
#

wait 'til you find out kaml still uses snakeyaml

blazing ocean
#

i know it does

urban kernel
drowsy helm
urban kernel
#

i'd rather not

kindred sentinel
#

How to get rails on which a minecart is?

urban kernel
#

using boostedyaml

drowsy helm
#

Where is getResource coming from

slender elbow
#

javaplugin

urban kernel
#

JavaPlugin

drowsy helm
#

Just making sure lel

dawn flower
worthy yarrow
#
public void displayTitle(Player player, Title title) {
        World world = player.getWorld();
        Location location = player.getEyeLocation().add(0, 0.5, 0);
        String titleContents = title.getTagContents();

        TextDisplay textDisplay = world.spawn(location.clone(), TextDisplay.class);
        textDisplay.setText(SERIALIZER.serialize(MiniMessage.miniMessage().deserialize(titleContents)));
        textDisplay.setBillboard(Display.Billboard.CENTER);
        textDisplay.setBackgroundColor(Color.fromARGB(0x80333333));
        textDisplay.setCustomNameVisible(false);
        textDisplay.setPersistent(false);
        textDisplay.setSeeThrough(false);
        textDisplay.setInvulnerable(true);

        player.sendMessage(ChatColor.GREEN + "You have just equipped the " + title.getDisplayName() + " title!");
        player.addPassenger(textDisplay);
    }```

So is there a way to manipulate the position after you add it as a passenger? offsetting the initial location doesnt work (obviously)
slender elbow
#

i mean, you are never loading the config if the plugin data folder exists

#

idk why you're skipping that step lol

worthy yarrow
#

alrighty

dawn flower
#

what about me, i'm having a similar problem

eternal oxide
#

You set a Transofrmation with the Translation of the offset

dawn flower
#

me?

spice burrow
#

seems like vanilla minecart functionality to me tbh

shadow gazelle
#

Are there any standard error messages that plugins expect from a Vault economy?

#

Or do most people just use null and it's whatever

eternal oxide
#

only whatever Economy.class provides

#

check the method returns

spice burrow
#

when people integrate with economy provider it’s just a null check

shadow gazelle
spice burrow
#

if you look at the vaultapi read me on gh it will show you how they recommend checking it

eternal oxide
#

No API ever returns null on success.

shadow gazelle
#

I don't see why it wouldn't for the errorMessage if there's no error lol

worthy yarrow
# eternal oxide translation

Now the issue is that it's no longer attached to the player, I run a task tick later and teleport the text display to it's initial position with the offset

spice burrow
#

it’s either working as a provider or it isn’t all the api cares about when hooking into api is if it works or if it doesn’t

slender elbow
#

y'all talking about different things

worthy yarrow
#

Teleporting is the wrong thing I assume

eternal oxide
#

Spawn it, set Transformations, set as passenger. never teleport it

worthy yarrow
#

yeah gotcha

vital ridge
#

?paste

undone axleBOT
zealous scroll
#

Is there a way to slow an individual player down similar to how the /tick command works?

worthy yarrow
#

iirc theres a movement speed attribute for the player

zealous scroll
#

I want to slow down also velocity applied to the player

#

I have multiples items that apply velocity to a player. With the /tick command that velocity is slowed, whereas if I adjust their movement speed it wont be affected

#

I wanna simulate time-slow if you know what I mean

#

we actually already do that

#

it's not impactful at all

#

but unfortunately it doesnt give the desired results

oblique igloo
#

Anyone know what setLastDamageCause(EntityDamageEvent event) got changed to as this is depricated in the api but it doesn't say what to use on the javadocs

past kiln
#

I need a dev for my server to assist me with some things. You'll be part of the staff team. Dm me for more info and to check out the server

past kiln
#

Im not your bud

worthy yarrow
#

lol

#

?services

undone axleBOT
past kiln
#

Im not requestion services lol

worthy yarrow
#

"I need a dev for my server"

kind hatch
#

But you are though...

oblique igloo
#

You literally are 🀣

past kiln
#

Services = Paid

worthy yarrow
#

mhm

kind hatch
#

No, not always.

worthy yarrow
#

Buddy is broke, he can go find a gpt dev on the forums

past kiln
#

Lmao

oblique igloo
#

I was going to say, are we just going to overlook the fact that they expect someone to do development for free for them 😝

past kiln
#

i said to assist me

#

I didnt say do all the work for free

worthy yarrow
#

Work is work

past kiln
#

Yk some people like to help out for free

#

Not everyone is looking to make a quick buck

mortal vortex
#

The people who do will write backdoors

worthy yarrow
#

I value my time

oblique igloo
past kiln
#

And then devs are like Yea I'll help you for 30$/hour

mortal vortex
#

The people who work for free have some ulterior incentive. Either, they are inexperienced, or have something mallicious.

kind hatch
worthy yarrow
#

Do you want quality? Or do you just want it to barley work?

oblique igloo
kind hatch
#

Sometimes sure, but there are people who will give geniune help.

oblique igloo
#

I bet this persons definiton of a "developer" and ours is different, they probably want someone just to configure plugins for them and not actually develop anything

mortal vortex
#

Should programmin be paid per hour anyways? I don't get what stops someone for exaggerating the time. Then again, if you pay per LOC you'll have redundant lines

past kiln
#

Im not paying that much for someone to write a few lines of code

worthy yarrow
#

Explain what you want done

oblique igloo
#

"A few lines of code"

worthy yarrow
#

I wanna hear what "a few lines" are

kind hatch
oblique igloo
past kiln
#

I need a simple booster plugin that multiplies fortune by 3 when activated

#

doesnt even have to be a plugin

oblique igloo
#

🀣

young knoll
#

See this is why I just charge by the line

kind hatch
#

Lmao, that's more than a "few" lines

past kiln
#

Ill take a skript if possible

past kiln
oblique igloo
#

Thats not going to be "a few lines of code my guy"

worthy yarrow
#

0.85$ a line

past kiln
#

Lmao

kind hatch
#

Tree fiddy per line

worthy yarrow
oblique igloo
young knoll
#

You better be writing in raw ASM if you are charging me by the cycle

oblique igloo
#

Oh jesus

young knoll
#

And it better be as optimal as possible

past kiln
#

How much to config a plugin?

worthy yarrow
#

200$

#
  • tips
kind hatch
#

Some people would do that for free

past kiln
#

Lol

kind hatch
#

Depends on the person though

#

And the plugin

young knoll
#

And the config

oblique igloo
#

I will just be straight up honest with you on that one if you need someone to configure your plugins for you then you probably shouldn't be in the server business

past kiln
#

I config my plugins

mortal vortex
#

@past kiln I'll take you up on the offer legitimately if you pay me 10euro. I'll let you make suggestions through development

past kiln
#

Im just stuck on this one

oblique igloo
#

I'm gonna have to repost my question now cuase it got burined and I legit need to know what that event was changed to in the api πŸ˜„

young knoll
#

When you press tab once

oblique igloo
#

Anyone know what setLastDamageCause(EntityDamageEvent event) got changed to as this is depricated in the api but it doesn't say what to use on the javadocs

kind hatch
#

I don't think there is a replacement.

young knoll
#

There isn’t

oblique igloo
#

Can you not set the damage casue for an Entity anymore?

mortal vortex
young knoll
#

It was never designed for plugins to set the last damage cause

#

Only read it

kind hatch
young knoll
#

The proper way is to yknow

#

Actually damage the entity

oblique igloo
#

Crap okay

#

I'm updating a plugin for someone as their old dev got busy irl and he had a lib he wrote and had made a Hologram item class that implemented Item

#

The problem is that I need to implement the methods for Entity and one of them is setLastDamageCause()

young knoll
#

No pls

#

Don’t implement Bukkit interfaces

#

Well, most of them

oblique igloo
#

I know it's bad practice, I'm just trying to band aid this without having to rewrite it

young knoll
#

They should at least have extended an existing impl class

#

Aka CraftItem

oblique igloo
#

And the annoying part is that they are already using protocol lib so I'm not sure why they didn't just use nms to get the Entity itself or use craft item like you said

blazing robin
rough ibex
#

A custom effect?

#

Not like a whole new category.

near furnace
#

GUYS ive spent 4 hours of my life and still can't fix this problem
I wanna change the directory location of maven's outputs. Basically, I only want the final and the real .jar plugin file to go straight into my server's plugins folder. and everything else can stay in the target file

PLEASE HELP

rough ibex
#

you should have maven-jar-plugin

near furnace
#

lemme read em

#

guys

#

ive tried many ways

#

asked help in many servers

#

configured the pom.xml in a lot of ways

#

but still it wont work perfectly the way i want it to

#

then i saw a tutorial, and that guy just used artifacts and used build artifacts

near furnace
#

i want a system, when i code and run/compile/whatever, the .jar file should go straight to my folder of choice. Only the .jar file

#

yes it was clean, package

#

what method does this use

#

i tried that, everything broke

#

this one

#

hmm

#

in one instance

#

i did that but put it right under <build>

#

and that just made a .com file and a plugin.yml file

#

and inside the .com file there was the .jar

#

and when i put it in the <configurations>

#

it made nothing

#

that was few hours ago, i made a new project with completely new stuff but still here

#

oh

#

YES

#

i can send messages now

blazing robin
near furnace
#

ok

#

no no like, inside build but the next line after build

#

oh my god i cant even send an image here

#
        <defaultGoal>clean package</defaultGoal>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.13.0</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.5.3</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jar-plugin</artifactId>
            <version>3.3.0</version>
            <configuration>
                <outputDirectory>C:\MyTestServer\plugins\</outputDirectory>
            </configuration>
        </plugin>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
    </build>```
#

look

#

i put you <plugin>

#
        <defaultGoal>clean package</defaultGoal>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.3.0</version>
                <configuration>
                    <outputDirectory>C:\MyTestServer\plugins\</outputDirectory>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.13.0</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.5.3</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>

        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
    </build>```
#

now look

#

C:\Users\fahia\Desktop\LocalMC\plugins

#

im using this directory

#

@quaint mantle

#

which one should i run

#
  1. clean
  2. validate
  3. compile
  4. test
  5. package
#

ok package

#

woah

#

what the

#

IT WORKED??????????

#

AHHHHHHHHHHH

#

you are a legend

#

I had NO idea

#

you have to add your own <plugins>

#

ok i got it

#

if you dont use a plugin

#

maven really dosen't understand what to do

#

so it makes random files

#

or random stuff

#

i didnt use that maven-jar-plugin, instead i tried putting the <outputDirectory> in the maven-compile-plugin XD

#

thats why it didnt work

#

damn now i kinda understand how maven works, it needs plugins to work or add features

#

are you an expert in maven?

#

you still fixed that problem

rough ibex
#

Yeah I feel like a lot of tutorials just say "put this in your POM file" but dont explain it

#

what resource filtering it

rough ibex
#

why you need this plugin

#

why your XML is suddenly 15 lines indented

torn shuttle
#

Classic work day, work 23 hours, go to the gym for 1 hour, sleep 15 hours, these 9 to 5s are crazy

near furnace
#

when tutorials dont explain, we cant recreate it

rough ibex
#

there is

near furnace
#

having a blueprint is better than having a product ahh

delicate lynx
#

I've been out of the loop with the enum changes for 1.21, how do I access Materials now? how would I compare if an item's material is a certain one?

sullen marlin
#

Hasn't changed

delicate lynx
#

You're right, it was saying Material wasn't there, but turns out my Intellij was 2 years outdated (thank you for not telling me) and updating it fixes it

mortal vortex
#

you assume something is deprecated, and then you find out that IntellIJ was bugged

rough ibex
sterile flicker
#

is it possible to disguise the entity of a pig into an armorstand at 1.20 in general?

#

or is it impossible to turn an entity into another entity?

blazing ocean
rough ibex
#

I keep going over code and thinking 'wait this could be better but I don't want to refactor this NOW'

#

and now I have 70 new TODOs

#

:)

wet breach
rough ibex
#

exactly

#

"TODO fix this"

#

yeah that's vague enough but a good reminder

wet breach
#

Lol i do that sometimes and then sometime later when i have forgotten its like i am not sure what needs fixing

random magnet
#

Does anyone know which version of BuildData last contained field mappings?

#

I maintain a fork of Spigot's mappings for classes and methods but was too late back then to save the field mappings

#

I'm looking now to add those missing field mappings to my mappings

blazing ocean
rough ibex
#

same effect

#

here be dragons

astral pilot
#

is there a way to show different color on nametags per player

#

lets say a player sees his enemy as red

#

and his allies as green

random magnet
#

Not fun

astral pilot
random magnet
#

You have to dig into the Server's source code and send Packets to the Players to achieve that

#

It's not a fun thing to do, it's very tedious

random magnet
blazing ocean
#

no you dont

#

@astral pilot use teams and set their colour

#

and per-player scoreboards exist

shadow night
shadow night
blazing ocean
#

scoreboard teams

rough drift
# random magnet Packets galore

or, you can summon an armorstand and move it x ticks so that it syncs up with the player update speed making it seem as if they have a different nametag, because the armorstand and player move at the exact same speed

#

/hj

random magnet
#

lel

blazing ocean
rough drift
blazing ocean
#

...what

rough drift
#

text displays have fucked up maths and their rotation doesn't work 100% of the time

#

and you can't use the pos attribute with billboard center otherwise it goes WEEEEEEEEEEEEEEEEEEEE

blazing ocean
#

well no need to rotate it here

rough drift
blazing ocean
#

still works fine for me

#

i only have vertical translation

rough drift
#

yeah, but that doesn't work like a normal nametag

blazing ocean
#

okay and it still looks fine

rough drift
#

meh

blazing ocean
#

lmfao

#

if you really need custom nametags (like i do) you'll need display entities, and several per player :p

rough drift
#

or you can just use one armor stand

blazing ocean
#

one armour stand only allows you to use one nametag

#

and they tick

rough drift
#

their ticking can be disabled with a bit of nms

#

overkill but yk

blazing ocean
#

text displays still allow you to do more cool stuff

#

like transparency, glow, background color, etc

rough drift
#

fair

astral pilot
#

which packet is used to set color on nametags

mortal hare
#

iirc scoreboard team allows you to set color on nametag

#

maybe something changed by then

astral pilot
#

doesn't that mean there would be multiple colors as well

mortal hare
jolly solstice
#

They are the only ones dealing with possible text and color changes on Entities / Players as far as I can see

covert sphinx
#

Hello! Newbie here with a newbie question, sorry. I'm following a 1 year old tutorial on yt about how to make a spigot plugin and im stuck on the downloading the spigotapi part because the link he provided does not work anymore. Can someone enlighten me? Thank you!

astral pilot
#

welp i can't find a way to do it

#

it seems like it willl just make a color for the separate teams

#

i wanted to make it so that the player sees his allies as green and enemies as red, same with the player in other team

blazing ocean
brittle geyser
#

How correct override forEach method?

    @Override
    public void forEach(Consumer<? super ItemStack> action) {
        
    }
#

What i should write here

blazing ocean
#

why are you overriding some foreach

brittle geyser
#

i am implementing inventory and idk how to apply methods on my itemstacks in array

blazing ocean
#

do not implement bukkit classes

brittle geyser
#

why not

blazing ocean
#

it will never result in what you are trying to do

#

and it won't work

brittle geyser
#

i implemented itemstack and it working nice

#

or implemented yaml configuration and working too nice

blazing ocean
#

item stack is not an interface

blazing ocean
#

you are likely doing something completely wrong

brittle geyser
#

i want try to implement something bukkit

blazing ocean
#

why

#

do not ever do that

mortal hare
#

i mean maybe his solution isnt right

#

but for plugins that would hook into bukkit api

#

and having itemstacks registered as proper ones in bukkit api really opens up possibilities

#

even though i wouldnt recommend it

mortal hare
#

if i wanted custom items, i would instead register them using NMS registries instead

blazing ocean
#

why do you even need to register them

#

the client doesn't have them

mortal hare
#

for example ./give

blazing ocean
#

well yea but the client still doesn't have them

brittle geyser
#

i do not creating custom items

young knoll
#

Item registry isn’t synced yet

blazing ocean
#

ok then wtf are you doing that requires you to impl inventory

young knoll
#

So registering them won’t make them show in tab complete

brittle geyser
blazing ocean
#

??

brittle geyser
#

can you just say how to implement forEach method

#

correctly

blazing ocean
#

you are doing something completely wrong and unsupported here

#

what even is the xy

mortal hare
#

i hope 1.22 would sync it once and for all

#

we would have custom item datapacks finally

runic pine
#

how i see the cause of the probelm

mortal hare
#

they already did it with enchantments in 1.21

#

so its matter of time when they implement it for items too

#

i wonder how bukkit api would evolve when all items, enchantments, biomes will be all data driven

#

it would need to change drastically and deprecate Material types

river oracle
#

Well material is on its way out anyways

slender elbow
#

inb4 now you have silly devs asking how can you do custom items without resource packs rofl

jolly solstice
young knoll
#

Yes

#

It’s called ItemType

quiet ice
#

performance-wise there are better options out there, yes - but you wouldn't be asking your question the way you did it if it were for performance

jolly solstice
#

I'm already waiting for the next question: "Why do I get concurrent modification exception?"

tardy delta
#

just implement iterable

tardy delta
#

ah cant read

tardy delta
#

thought that was a question

jolly solstice
brittle geyser
#

class kz.hxncus.mc.minesonapi.inventory.SimpleInventory cannot be cast to class org.bukkit.craftbukkit.v1_16_R3.inventory.CraftInventory

quiet ice
brittle geyser
#

xd

quaint mantle
#

I tried

jolly solstice
tardy delta
#

most api interfaces arent supposed to be extended

blazing ocean
#

told them like 20 times

#

just got ignored lets go

brittle geyser
#

What if i extend 1.16.5 inventory class

quiet ice
#

but well I suppose we shall let them figure that out for themselves

quiet ice
echo basalt
#

πŸ€”

Metric metric = Metric.create("players_online").addField("count", Bukkit.getOnlinePlayers().size());
blazing ocean
#

please just say wtf you are doing

blazing ocean
#

you really don't need to do all that

quiet ice
quaint mantle
#

Use proxy

quiet ice
#

And maybe the method handle API for good measure

#

Or that

echo basalt
#
this.sessionTracker.startSession("player_join_ImIllusion", "player_join");
// run blocking 
Metric metric = this.sessionTracker.finalize("player_join_ImIllusion");

πŸ€”

#

grafana go brr

blazing ocean
#

why tf would you want to do asm when just making custom inventories. please, for the love of god, don't try to impl api interfaces

blazing ocean
jolly solstice
#

The joke

#

Over your head

quiet ice
#

I'm being serious there

tardy delta
#

that was my biggest fear

blazing ocean
#

exactly

jolly solstice
#

I know it works, but I thought you were being overkill with it to be a little bit sarcastic? xP

echo basalt
#
Metric metric = this.sessionTracker.profile("player_join", () -> this.handlePlayerJoin(event));

πŸ€”

quiet ice
#

I'm the ASM person, I'm going overkill because we have absolutely no information

echo basalt
#

I'm a bytebuddy person

quiet ice
#

Ew :(

blazing ocean
#

just patch the spigot jar bro

slender elbow
#

i'm a classfile api person πŸ™

tardy delta
#

im the "i might write a classfile generator" person

quiet ice
#

The classfile API didn't really catch my eye personally

quiet ice
blazing ocean
#

there 100% are

jolly solstice
#

inb4 meta-programming in Java

young knoll
#

Tell me when I can modify loaded classes at runtime

#

Then i'll be interested

blazing ocean
#

but impl'ing api interfaces is just not it

quiet ice
#

Hotswapping is a thing actually

blazing ocean
young knoll
#

No no

#

I want to edit minecraft classes with plugin

#

Without deprecated runtime attaching :c

quiet ice
#

Just register a javaagent and you are good to go.
It's limited but extremely powerful

blazing ocean
#

what are plugins smh

quiet ice
#

It might be disabled by default in the future, but the feature itself will stay

tardy delta
#

just load them from the player cache ig

young knoll
#

I would first cache them all

blazing ocean
#

another crosspost from paper, nice

young knoll
#

And second consider limiting how many you return (limit the size of the list)

blazing ocean
young knoll
#

Although the client probably handles that fine, /playsound doesn't nuke the game for example

alpine urchin
#

im making a mod guys

jolly solstice
#
  1. Cache player names, so you don't have to load them from disk all the time.
  2. Filter said cache by entered string (maybe even do sub-caching for starting letters)
  3. Return a limited set of names (max. 100 for example)
blazing ocean
#

you reacted with a questionmark so that was my explanation to that

tardy delta
#

char trie πŸ€“

brittle geyser
#

when i click on my custom inventory with item in cursor, items dissappear

blazing ocean
#

ok

blazing ocean
jolly solstice
brittle geyser
tardy delta
#

what are you even doing

blazing ocean
#

kotlin πŸ—Ώ

blazing ocean
alpine urchin
#

cough cough im making a mod

tardy delta
#

rattle em boys

tardy delta
#

that was enough for today

astral pilot
blazing ocean
#

why would they not

astral pilot
#

it will just make it so that the other guy from other team will see his own teammates as red

blazing ocean
#

you can set scoreboards per player

chrome beacon
#

Not if you have two different scoreboards

astral pilot
#

o

echo basalt
#

nah

#

writing an sql expression builder rn

tardy delta
#

uh oh

echo basalt
#
SQLDialect dialect = new MySQLDialect();
String expression = dialect.upsert().into("joe").columns("playername", "moneys").values("mama", 123).render() 
#

kinda ass but will do

tardy delta
#

i thought with dsl and infix functions 😒

echo basalt
#

this is for java

#

kotlin will use exposed

#

my dear

drowsy helm
#

Just use hibernate 4head

echo basalt
#

Yeah thing is I'm also using uh

#

mongo on my database shit

#

and I want to make it all kinda easy to hook into

#

And I cba introducing more dependencies

slender elbow
#

jooq :prayga:

echo basalt
#

Whole objective is to just

public class MyPlayerServiceSQL {

  public DatabaseOperation<String> getPlayerName(UUID playerId) {
    return this.sqlDatabase.select("playername").from("players").where("playerId").eq(playerId).first().map(results -> {
      return results.getString("playername");
    });
  }
}
#

or sum shit

mortal vortex
#

Anyone use HikariCP for databases?

drowsy helm
dawn flower
#

how would i make a text display look towards a specific yaw / pitch?

echo basalt
#

Still trying to figure out the best syntax

eternal oxide
#

transformation.getRightRotation()

#

it has helper methods

#

.rotateY(rotation)

#

etc

#

dont forget to put the Transformation back on the Entity

dawn flower
#

i know all of that, but when am i supposed to rotateY? it's in a loop that runs every tick setting the rotation (yaw and pitch) to the player's yaw and player's pitch and if i rotateY there it just got helicopter mode

eternal oxide
#

you update it in teh player move event

#

if their pitch/yaw changes

dawn flower
#

ah

eternal oxide
#

if you are using a players pitch/yaw to set it