#help-development

1 messages · Page 1081 of 1

vague mason
#

Does anyone know when Spigot has implemented ChatMessageType.ACTION_BAR ?

player.spigot().sendMessage(ChatMessageType.ACTION_BAR, new TextComponent(message));
#

So I can disable this feature for MC servers older than X version that doesn't support it

ivory sleet
#

since 1.8 at least I believe

vague mason
#

Yeah 1.8 did implemented action bar. But was it already accessible in this way or only with NMS?

ivory sleet
#

I think it was through Player.Spigot

#

just that a lot of ppl still used nms since action bar was less flexible through api

#

if my memory isn't deceiving me

vague mason
#

thanks

mortal hare
#

who tf needs redstone when we have noteblocks lol

tardy delta
#

is that a texturepack or mod?

#

that shows those redstone thins

mortal hare
#

vanilla tweaks

#

resource pack

#

it shows redstone power level too

rough drift
umbral ridge
#

Melon farm

brisk estuary
#

Does anyone know how to solve it?

torn shuttle
#

this is why we need 8k 50 inch monitors

quaint mantle
#

Multitasking is crazy 💀

mortal hare
mortal hare
eternal oxide
#

need bigger eyes is all

blazing ocean
torn shuttle
clever lantern
#

its used sometimes as some type of documentation

blazing ocean
#

because that windows thing doesn't really say anything useful about htat

torn shuttle
#

102 usable as it says there

blazing ocean
#

so you have 102gb of ram in your pc

#

weird number

torn shuttle
#

128 but you don't get 100% of it usable

eternal oxide
#

probably has on board video so it takes a little

blazing ocean
#

windows moment

#

i have 100% usable

eternal oxide
#

1.17+? I think

brisk estuary
#

I don't think that's the problem

#

as I also tried without the --remapped flag

eternal oxide
#

well its one of your problems

brisk estuary
#

and the log is complaining about maven

eternal oxide
#

wipe your buildtools folder and try a clean run

brisk estuary
#

still getting the error :/

eternal oxide
#

seems BT now ignores --remapped if nto supported

#

I just ran BT for 1.10, it built fine. so either you have internet issues or...

#

the link your error is on is also ok for me. Seems you have a routing issue, or something

brisk estuary
#

it shouldn't be complaining about maven not being installed, because it is xd

eternal oxide
#

bt downloads maven and git for itself

#

I'd suggest clearing yoru DNS cache, but I always hate doing that

brisk estuary
#

the url is working fine in my browser

brisk estuary
#

it finally worked, apparently it is a problem with BT gui version

#

idk

#

but I got it using direclty the bt jar

kind hatch
#

That is weird.

mortal hare
mortal hare
blazing ocean
#

xfce

mortal hare
#

oh

viscid carbon
#

cant find it on google, is there a way to check if a block was silk touched or do i have to track every block a player has broken?

kind hatch
#

Gotta track it yourself

viscid carbon
#

damn, thought so. just annoying... thanks

runic pine
#

EntityDamageByEntityEvent how i cancel kb on this event

quaint mantle
runic pine
quaint mantle
#

Did it work on current tick?

runic pine
#

on the forum they said no.

#

they said I had to make a runnable

worthy yarrow
#

?tas

undone axleBOT
runic pine
#

bro it's logical, entitydamageevent occurs before it actually happens. if you set the velocity on the player, then it will be re-set again

worthy yarrow
#

I'm not gonna ?tas you twice, that'd be rude

river oracle
#

if you have no luck with velocity

runic pine
#

1.8

river oracle
#

KEKW

#

figure it out yourself

worthy yarrow
#

ong

runic pine
#

suggestions?

worthy yarrow
#

Don't use 1.8

runic pine
#

no

quaint mantle
#

I dont get people using ancient spigot just for combat mechanic.

runic pine
worthy yarrow
#

Because why else would you willingly use 1.8

runic pine
worthy yarrow
#

If you have another reason, please by all means enlighten us

runic pine
#

can you make this on 1.21?

#

🤡

worthy yarrow
#

Yeah probably?

runic pine
#

no, you cant

#

lol

glossy venture
#

1.8 is aids but the pvp is worth it

worthy yarrow
#

false

runic pine
#

EntityDamageByEntityEvent how i cancel kb on this event

worthy yarrow
#

?1.8

undone axleBOT
worthy yarrow
#

We've almost hit 10 years sheesh

glossy venture
#

otherwise idk icl

nova notch
glossy venture
#

nah

eternal night
#

I think their point was more "1.8 uses less resources and I want to host 800 players"

glossy venture
#

its still mad different

glossy venture
#

so

eternal night
#

tho, tbf, if you are going to run 1.8, you should already be running a fork and know what you are doing

worthy yarrow
#

I know for a fact this dude is not making the next hypixel

glossy venture
#

next mmc maybe

worthy yarrow
#

Not even

#

10 players and I'll be quite surprised

#

Idk but buddy is taking commission work and seems he knows little of spigot api

glossy venture
#

true

#

only way to do it realiably tho might be some packet shit

#

to answer his quesiton

worthy yarrow
#

well it's a solution for sure but sigh 1.8 is too old now man

#

God pre pdc times

#

🤮

glossy venture
#

atp its probably better to rewrite the whole server from scratch

#

minestom for 1.8 would be cold

tardy delta
#

me rewriting minestom in kotlin 😳

#

should i call it minestorm

#

🤤

glossy venture
quaint mantle
tardy delta
#

well ive already heavily modified it so why not

#

more pleasing to look at

blazing ocean
quaint mantle
#

Last commit was 2 years ago ☠️

blazing ocean
#

😳

tardy delta
#

minestonks

viscid carbon
#

Been trying this for an hour, It adds the location on block placement but doesn't detect it.

        Material mat = block.getBlockData().getMaterial();
        if (!getMaterial(task).equals(mat)) {
            return;
        }
        locations.add(block.getLocation());
        Server.log("Added location to arraylist!");
    }
    public void blockBreak(String task, Block block) {
        Material mat = block.getBlockData().getMaterial();
        if (!getMaterial(task).equals(mat)) {
            return;
        }
        locations.remove(block.getLocation());
        Server.log("Removed block from arraylist!");
    }```

```for (String s : tasks.getTasks()) {
            //Material check
            if (tasks.getMaterial(s) == null) {
                sendChat(p, String.format("&cTask: &7%s &cMaterial is null contact the server staff!", s));
                return;
            }
            if (tasks.getLocations().contains(block.getLocation())) {
                tasks.blockBreak(s, block);
                sendChat(p, "&cFake block detected!");
                return;
            }```
worthy yarrow
#

?paste

undone axleBOT
viscid carbon
#

the arraylist is not empty either. checked for that.

#

Also tried to change the BlockBreak()

        locations.remove(block.getLocation());
        Server.log("Removed block from arraylist!");
    }```
#

nevermind, it is empty now

hybrid fable
#

What is the event for igniting a creeper ?

lilac dagger
#

you could try looking at all the events in javadocs

#

it's helpful to be a bit self sufficient about this

#

otherwise i can look up for you

#

but it's highly unlikely that anyone here knows this specific event without looking

#

i assume it's this what you mean by igniting? @hybrid fable

#

otherwise there is this

alpine urchin
#

im gonna use that

#

next time

hybrid spoke
slender elbow
#

Called when a Creeper is struck by lightning.

lilac dagger
#

^

slender elbow
#

powered creepers are cool af

lilac dagger
#

it's a very rare event while playing minecraft vanilla

#

but indeed they are really cool

wet breach
slender elbow
#

that's the cool part :pepelaugh:

young knoll
runic pine
#

on playerinteractevent

#

if event#setdamage be negative

#

what happens? health the player?

nova notch
#

try it and see

#

but I doubt it'd heal

runic pine
nova notch
#

well then ig it heals

runic pine
quasi gulch
#

Maybe some Plugin that does some Database operations on the main thread. If you have some self coded Plugins that arent good maybe. But the Report doenst help because it doenst load. Try removing half of your plugins and so on to find out if its a Plugin or some datapack maybe

runic pine
quasi gulch
#

Did you use WorldEdit while the main thread stopped?

runic pine
#

no

#

we weren't doing anything or using the weapons plugin that keeps shooting every 1 tick basically 1 global scheduler every tick that shoots for all players

quasi gulch
#

Maybe some other plugin then. You can't know for sure without testing or looking at the code

runic pine
#

but this plugin was not reported as lag in timings and we also tried to replicate it by shooting and we couldn't, it remained tps at 20.0

runic pine
#

If it was, it would be swornguns but we couldn't replicate it

#

Why didn't the timings point out anything?

hybrid spoke
#

i dont like aikar timings

#

spark ftw

remote swallow
quasi gulch
# runic pine no bro

Idk im no timing expert but mostly there isnt a reason for anything vanilla to stop the main thread for 9 sec. Its most likly a Plugin or needs to be a Plugin. Or the Server is overloaded idk

remote swallow
#

paper are removing aikar timings and replacing it with spark

runic pine
#

i putted the spark but

#

i cannot replicate yet

quasi gulch
#

Maybe just too many players then

#

someone loading chunks, Building a lag maschine, flying with elytra idk

remote swallow
#

elytra isnt in 1.8

kind hatch
#

It also doesn't help that the report you gave was only 2 minutes

hybrid spoke
#

tf is a pandaspigot

#

ah i see, a paper fork

#

makes sense

#

pandaspigot

runic pine
runic pine
hybrid spoke
runic pine
#

no?

#

then spigot expect it to be called spigotbukkit

#

LOL

hybrid spoke
runic pine
#

https://paste.md-5.net/hahiqifiyu.md When the damage was 5, I was in full armor and I took damage, but then when I got to 5 hearts, I would heal. If I take off any part of the armor, I simply take more damage and not heal (from 9). Why was I being healed with 5 damage?

#

event.setDamage(DamageModifier.BASE, damage);
System.out.println(event.getDamage()); on entitydamagebyentityevent

hybrid spoke
#

send the full code

scenic valve
#

Anyone know of an easy way to disable the y-axis/vertical part of the knockback? Like I want to keep the horizontal knockback

paper viper
#

Check for EntityDamageByEntityEvent. Then get the player velocity and modify it to remove the y component (set it to 0). Then set it to this new velocity one tick later using scheduler

scenic valve
#

Thanks, figured I needed to do a tick thing since it doesn't update immediately

young knoll
#

I mean there is a knockback event

scenic valve
#

Forget that existed, entitydamage works just fine

paper viper
#

You don’t have to use the scheduler and can just set final velocity

scenic valve
#

Oh really, I mean the other code that I made works, but cool to learn about the other event

#

I'll look at that later

brazen badge
#

hello, more of an optimisation thing. I'm making a minigame where armour stands generate money if placed. Suppose we have 20 armour stands placed each by 10 players. Each armor stand, then, is a task that generates money each time the specified time passes. So there will be 200 tasks active at the same time. Considering also that to get the armor stands placed I have to iterate all the armor stands placed within the worlds and I have to get a pdc from them, so more iterations. What do you recommend doing in this case?

young knoll
#

Use a single task and some timestamps

#

Load the placed stands on chunk load

brazen badge
#

but each level generates money faster, how could I use a single task?

young knoll
#

Timestamps

#

Store when it should next generate money

eternal oxide
#

if you are ticking teh money no matter if they are loaded or not, ignore the in game stands

#

just manage your own db and do teh math

brazen badge
#

I am creating a minigame in which a player has a level 1 armor stand at the start, every time the level is upgraded to armor stand a new piece of armor is put on him (starting with leather boots, ending with full netherite). A player can destroy another player's armor stand, causing him to lose an amount of money and an armor stand level. There are other concepts I have yet to develop, but I think the main concept is this

#

thank you

wet breach
#

you don't need 200 tasks

#

you would use queue system, where each queue is different varying of time

#

then you just add the amorstand into the appropriate queue or if its all at the same time intervals, you would create a new queue when one is full or about full

#

then you just process the queues

#

your custom object should be a wrapper entity object of the armor stand so you can easily get details about it whether it be from spigot api, or to know what level it is etc. Makes it easy to get its location too

young knoll
#

Priority queue my beloved

brazen badge
#

So I should create a task with a one-second interval to process the queue?

humble tulip
#

i hate regex so much

#

mainly because i don't understand it cuz im stupid

#
private static Pattern pattern = Pattern.compile("(<\\w*>)");
young knoll
#

regex101 is a great site for that

humble tulip
#

I'm using this to split a string to get all tags <tag>

#

OO

#

ok

#

i shall try

slender elbow
#

pretty sure < is special, you'd have to escape that

river oracle
#

Don't even use regex to get all tags like that you could make a simple tokenizer pretty quickly

humble tulip
river oracle
#

< nor > are special

river oracle
#

Yeah its one for loop for a tokenizer

#

I mean regex is easier given you actually use regex101

humble tulip
#

What i want to do is have a string like "<gray>Hello this is <sometaghere></gray>" get split into
["<gray>", "Hello this is ", "<sometaghere>", "</gray>"]

#

[<gray>, Hello this is , <sometaghere>, Hello this is , </gray>] is what i get when i use Patter#splitWithDelimiter

river oracle
#

mini message clone part 12??

humble tulip
#

nah

slender elbow
humble tulip
#

basically i want to replace sometaghere with my tags

slender elbow
#

named group

river oracle
#

the more you know

humble tulip
#

but my tags are components

river oracle
#

mini message has this capability no?

humble tulip
#

hmm

river oracle
#

I'm confused on the issue here

#

as far as I'm aware they have a very advanced tag addition system

humble tulip
#

okay let me explain why i have to do this in such a roundabout way

river oracle
#

you can even go as far as to write custom tags and the replacements are super advanced

slender elbow
#

also you can't parse recursive structures (xml) with regex

#

since it isn't regular

river oracle
#

I think the easiest way to go about this is a tokenizer, but then again this seems like a huge xy problem

humble tulip
#

yeah im trying to word my problem lol

#

Okay townyadvanced's chat messages look outdated

#

im trying to make the formatting more configurable

#

But in doing so I don't want to break multi lang support

#

OHHH
wait

#

i have an idea

#

ok i didnt even need my idea

#

i can just use minimessage

paper viper
#

lol

#

I mean if you want to do it for fun for a learning experience go for it

#

You’d have to use a Stack to check for closed tags and stuff

#

But otherwise minimessage >

winter scarab
#

do packet listeners from protocollib have a lower latency in comparison to spigot event handlers?

paper viper
#

If you can use the api then use it

winter scarab
#

im teleporting an entity to a player whenever they move and i need the fastest method of teleporting with the player

#

just wondering if packets would be faster than going through spigot

paper viper
#

Just use the api

#

It won’t be any faster

#

The api literally calls the packet method

wet breach
#

api literally just sends the packet

#

^

paper viper
#

If you decompile and check the implementation

winter scarab
#

oh true

paper viper
#

You can see that it just creates the packet and sends it

winter scarab
#

alr thanks

sterile axle
#

why do people keep remaking minimessage

#

oh i was scrolled the hell up; ignore me

river oracle
#

Mmm I think recursive decent parser is a fun project

#

Especially if you try to make it performant

sterile axle
#

recursive descent is fun

pastel coyote
#

anyone know the key differences between the paper API and spigot API for developing

echo basalt
#

Native support for components (and the deprecation of strings everywhere)

#

Main issue I've faced recently is just a bunch of breaking changes when it comes to itemstacks and stuff

#

You can't create an itemstack for non-item types in paper

pastel coyote
#

just sticking to spigot api then, sucks that the docs is terrible

drowsy helm
pastel coyote
#

how does spigot support paper api

drowsy helm
#

paper supports spigot api

echo basalt
#

Spigot doesn't support paper

drowsy helm
#

not other way around

echo basalt
#

Paper supports spigot

pastel coyote
#

i missread bruh

echo basalt
#

with a million errors if you write cursed code

pastel coyote
#

i thought u were saying paper api was supported on spigot

warm crystal
#

hi do you know how I could disable the blaze fly in 1.8 ?

torn shuttle
#

1.19.4 was using java 17 right?

#

damn this is annoying

#

I guess I need to use 17 across all my projects

drowsy helm
#

how on earth do i make this look good

#

colours?

torn shuttle
#

pickeruperer? I hardly know her!

#

add that joke in and it will look 10/10

pastel coyote
#

styling?

#

you make trinket have its color if a group like purple and the name be based on rarity if thats applicable

drowsy helm
#

i think i wanna keep trinket gray but yeah i think colouring based on rarity would be nice

paper viper
#

Normally you’d just see what methods they implemented and just use them if u wanted to

pastel coyote
paper viper
pastel coyote
#

then it isn't explained extremely well is it

paper viper
torn shuttle
#

how does gradle pick which java version to compile with

pastel coyote
torn shuttle
#

I was trying to use toolchain but I think it was still compiling not with the version specified

pastel coyote
#

whats ur build.gradle

torn shuttle
#

?pate

#

?paste

undone axleBOT
torn shuttle
#

https://paste.md-5.net/werikiwexe.cs is what I have right now, I'm not 100% sure it's not actually compiling in java 17 but it seems like it thinks it isn't when getting it from the maven repo, it could be something else is cached in a weird way or something

pastel coyote
#

did you try this first?
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21

torn shuttle
#

yes

#

oh

#

well

#

yeah it was a caching issue

#

thanks gradle

#

I love how the code can be right but it can just arbitrarily not realize that

pastel coyote
#

thats java and its bum ass tooling around it gradle maven spring none of it makes sense

torn shuttle
#

I might end up reverting to maven again unfortunately

pastel coyote
#

javas a fine language good even but the tooling around it makes so bad

paper viper
#

Gradle might have a steeper learning curve but it’s more powerful than Maven in many ways too

torn shuttle
#

buddy it's not a learning curve this shit is just busted

#

there's no learning curve to it caching files incorrectly and not clearing them

wet breach
pastel coyote
#

ik that spring is a web framework but everything around java is terrible is my point

paper viper
wet breach
wet breach
#

if you don't like Java that is completely fine

torn shuttle
#

yeah by virtue of shading being something it can actually do and not the weekend project of some random dude online

wet breach
#

don't have to like every language out there lol

paper viper
#

Many gradle projects have a build logic folder and in general I just feel more free with using the Java language to help assist me with compiling projects

paper viper
#

I know you can do that all with maven

#

But it’s easier in gradle

wet breach
#

well ease of use is subjective

paper viper
#

True

wet breach
#

thing I like with maven is that if there isn't already a plugin do what I want it to do, I can just make my own

#

and if you want to run scripts you can do that too

#

nothing said it had to all be done via the pom

paper viper
#

Yeah

wet breach
#

but I mean gradle has plugins too

#

so I am not sure how that is different

paper viper
#

it’s the same for gradle too

#

Though I actually prefer maven sometimes for some niche NMS module stuff

cold pawn
#

Anyone know of a way to replicate the effects of bonemeal around a specified location?

eternal oxide
#

that seems new

eternal oxide
#

Yep, you used to have to do the Ageable thing. I wonder when that was added.

rough ibex
#

I like maven simply because it uses XML instead of a DSL

#

and that's a lot easier to understand up-front

glad forge
#

does anyone know what plugin is causing my chat to be spammed with "Selected Slots" everytime i click on something?

paper viper
#

Show a plugin list

#

It seems like a plugin forgot to remove a print out statement during debugging lol

glad forge
#

i cant upload images here

#

its only started happening recently

rough ibex
#

how many plugins do you have

eternal oxide
#

?img

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

glad forge
#
  1. The syntax follows the citizens plugin. I was messing with npcs and thats the only thing i could think of that could be causing it
rough ibex
#

did you add any new NPCs

#

that have actions on them

glad forge
#

no

rough ibex
#

disable citizens and retry

#

or rather backup

#

make a copy of the server and diagnose

glad forge
#

ill try tomorrow i gotta go to bed but thanks for the help

small valve
#

Let's say a player is at (0, 0, 0) how do I find how much velocity I need to launch them so they land on (5, 5, 5) assuming no blocks are in the way?

wet breach
#

there is gravity, resistance if you factor those things in you should be able to come out with a vector to send them that way

#

or you could just do the old fashion method of guessing until it you get it

small valve
#

going to cry bc of this information

wet breach
#

I know its beautiful

small valve
#

trying to make a plugin so that you can attach leads to players but constant teleportation doesn't allow head movements

drowsy helm
small valve
#

is there a way to allow head movements during teleportation?

rough ibex
#

during? teleportation is pretty instant

#

do you mean like, keep the yaw/pitch?

small valve
#

yeah

rough ibex
#

just teleport them with the y/p they had befor

small valve
#

I tried that but it stays static because the delay is 0 tick

rough ibex
#

show code

small valve
#
                Location leashedPlayerLocation = target.getLocation().clone();
                Location zombieLocation = entity.getLocation().clone();
                leashedPlayerLocation.setX(zombieLocation.getX());
                leashedPlayerLocation.setY(zombieLocation.getY());
                leashedPlayerLocation.setZ(zombieLocation.getZ());
                target.teleport(leashedPlayerLocation);
small valve
rough ibex
#

you didnt set the y/p

small valve
rough ibex
#

just try it anyway.

small valve
# rough ibex just try it anyway.
                Location leashedPlayerLocation = target.getLocation().clone();
                Location zombieLocation = entity.getLocation().clone();
                leashedPlayerLocation.setX(zombieLocation.getX());
                leashedPlayerLocation.setY(zombieLocation.getY());
                leashedPlayerLocation.setZ(zombieLocation.getZ());
                leashedPlayerLocation.setYaw(target.getLocation().getYaw());
                leashedPlayerLocation.setPitch(target.getLocation().getPitch());
                target.teleport(leashedPlayerLocation);

This is what I have but again not working. Camera stays locked in the direction it was first put in

rough ibex
#

'stays locked'

#

I'm not sure I understand

#

locked to what direction set by whom, when

drowsy helm
#

he's trying to teleport the zombie location, but retaining the head rotation they were intially in

#

not sure why that code wouldn't work

small valve
#

Won't let me post the video, but basically. Mouse movement moves down, camera moves down a bit then instantly snaps back to o riginal position

hybrid turret
#

how do i find skin-urls again? (the ones for changing them in the player's GP)

rough ibex
#

oh what the hell

#

it keeps teleporting you

#

you have something else not working

#

that keeps teleporting

small valve
#

I want it to keep teleporting me but allow head movements during that teleportation

hybrid turret
#

i doubt that's a thing

#

but i wouldnt know

rough ibex
#

?xy

undone axleBOT
rough ibex
#

Do you just want them to not move

#

but look

hybrid turret
#

oh like that imma shush

drowsy helm
#

you have to use velocity if you want that

small valve
#

damn

drowsy helm
#

teleporting entity while riding it will kick you out

small valve
undone axleBOT
#

Usage: !verify <forums username>

drowsy helm
#

i feel like velocity would work better for that anyway

small valve
#

i tried to verify but each time i did it says "verified!" then i never got the role

#

crying again bc of this information

wet breach
#

could just ask choco

#

pretty sure he is able to fix it

blazing ocean
#

just always annoy choco

#

he knows

#

(this is a joke)

wet breach
#

we need to make choco his own meme

haughty storm
#

Is there a way to get all the scoreboards on the server and listen for when they are updated?

torn shuttle
wet breach
#

lol

warm mica
haughty storm
warm mica
rough drift
#

where is the display name for a player stored?

#

or is it discarded

rough ibex
rough drift
#

I would assume not, since it's not in the nbt file

rough ibex
#

no

#

thats correct

#

OfflinePlayer has no getDisplayname

rough drift
#

okay okay, thanks

#

I'll just assume that everything that isn't in the nbt file isn't stored

#

i.e. like compass target

torn shuttle
#

I'm not crazy right, if I am using lombok in a shaded internal library I should be able to use lombock in any project that uses that library?

dry hazel
#

if it's exposed as api, sure but you still need to add it as an annotation processor

torn shuttle
#

ah damn

hazy parrot
#

Lombok is usually not shaded as far as I'm aware

dry hazel
#

I hope you're not shading lombok though

#

ya

torn shuttle
#

uh I didn't even read it hold on

#

I am not

#

well

#

guess it doesn't matter just wanted to simplify my pom

#

it's crazy how time consuming it is to rewrite the core of 5 different rather large plugins so they all share the same core lib

grim hound
#

fuck netty man

#

wtf is this

#

channelRead not invoked

#

and bytebufs without packet id

#

while the next handlers literally read it just fine

#

never have I been faced with such bs

lost matrix
lost matrix
lost matrix
lost matrix
torn shuttle
#

why only have one set of problems when you can have all of the sets of problems in interconnected ways, then you can create problem synergies

#

people are jealous of my problemmaxxing skills

lost matrix
#

I bet

torn shuttle
#

maven and gradle randomly stopped being able to publish, common problemmaxxing W

#

guys if I made a problemmaxing seminar would you pay $30 to attend

blazing ocean
#

yes

torn shuttle
#

good because I might've problemmaxxed my income

rough ibex
#

debtmaxxing

torn shuttle
#

nah I was stockmaxxing

#

I'm down 1500 boys

#

dig deep

#

this seminar needs to pop off

#

teaser for my problemmaxxing seminar, the topic is: how to wait for 8 years before writing a core library, and then trying to re-core every plugin you've published with it

#

I always thought when I was a kid that what I wanted to do when I grew up was rewrite all of the commands and configuration file infrastructure for 7 odd plugins

#

really living my best life here

blazing ocean
#

mmmm your ram sure is tasty - windows

torn shuttle
#

I'm absolutely just running laps around how much power this is pulling, I could probably have another 100 projects open

vital ridge
#

How come bitshifting a chunk coordinate by 4 and adding 8 to the result gives world coordinates of the center of the chunk?

eternal oxide
#

because bitshift 4 = multiply by 16

vital ridge
#

So chunk coords are just World Coords / 16

#

Oh nvm it makes sense

#

chunks are 16x16x16

#

Thanks

dawn flower
#

can you give a player double xp instead of int?

dawn flower
drowsy helm
#

unless you're doing it millions of times a second a it doesn't matter

paper viper
#

Does anyone have any recommendations for Citizens alternatives? Citizens right now is a paid resource on Spigot and I don't want to hard-depend on something that is paid, forcing any users to buy the plugin to use my plugin.

drowsy helm
echo basalt
#

mans running 2133 skullWazowski

#

you better have some excuse like "it's ecc" or "I'm running a threadripper"

paper viper
#

on their website

#

I cant wait to use it now

echo basalt
#

code's hot garbage but highly functional

paper viper
#

it's the first paragraph

echo basalt
#

mans made 240k

paper viper
#

are the total downloads unique

echo basalt
#

For premium resources I believe so

paper viper
#

god damn

drowsy helm
#

it was free way back when so i wanna say 75% of those downloads arent paid

#

probs more

paper viper
#

Yeah I thought when I saw it last time it was free on spigot originally

torn shuttle
#

guys

#

you've seen "Help i've tried nothing and it didn't work"

#

but today I'm revealing a whole new level, cooked up at MagmaLabs

quiet ice
#

"I've tried everything and it did work"?

torn shuttle
#

through careful effort we've found a new type of user, who takes a screenshot of a link and asks what is in the link

blazing ocean
#

lmfaooo

#

show

torn shuttle
hybrid spoke
blazing ocean
#

i've seen somebody send an imgur pic of a discord cdn link

torn shuttle
#

you might think I'm being unfair and cutting out the context, so here is the context, which makes it only slightly worse

#

that's right, it's a double whammy

blazing ocean
#

lmaoo

torn shuttle
#

we can also get hit with "What is this I haven't tried it yet"

blazing ocean
#

and then we have the gongas type user: send a screenshot of a question you asked in a diff server

torn shuttle
#

well at least gongas tried something

#

that something being asking the same question elsewhere

hybrid spoke
#

i wont double down, i will show you that i suffered already

blazing ocean
#

but sometimes even with other people's responses 😭

torn shuttle
#

anyway I hope you enjoy yet another bit of innovation from magmalabs

#

two big releases today, problemmaxxing and "i've not opened the link, describe the contents to me"

blazing ocean
#

now i wanna become a magma labber

torn shuttle
#

you wish, you have no shot of joining such a prestigious and historied institution

blazing ocean
#

😔

torn shuttle
#

know your place

blazing ocean
#

you're right, i have to stay here in this spigot wasteland

quiet ice
#

Meanwhile, geolykt: Asking questions about a completely different game in the spigot discord

blazing ocean
#

kotlin mentioned!?!?

torn shuttle
#

I don't like how reposilite and maven sometimes just break out of nowhere

#

hopefully the one just now was the last of it

blazing ocean
#

i think that's just a maven moment

#

works fine for me with gradle

brittle geyser
#

how to use nms in my intellij with gradle

blazing ocean
#

use the spigot artifact instead of spigot-api

brittle geyser
#

can i use paperweight.paperDevBundle("1.18.1-R0.1-SNAPSHOT") and run my plugin on spigot?

blazing ocean
#

?whereami

brittle geyser
#

i dont use paper omg

remote swallow
#

you are using paperweight

brittle geyser
#

i not, i looking for examples

remote swallow
#

theres a guide on alexs nms blog that shows how you can use nms in gradle

#

?nms

blazing ocean
#

@remote swallow were you not home

#

it couldn't be delivered

#

now they delivered it to a shop near me

#

ffs

brittle geyser
#

thanks

remote swallow
blazing ocean
#

smh

#

i won't be home until wednesday so i can only send it back to you then

brittle geyser
#

what is R1 R2 in minecraft version

shadow night
#

Depends

blazing ocean
#

what

brittle geyser
remote swallow
#

it changes when protocol changes in simple terms

brittle geyser
#

how i can get list of this versions?

blazing ocean
#

the rev

remote swallow
#

basically just internal nms ver

remote swallow
remote swallow
#

if somethings protocol compat it would have the same nms ver

shadow night
blazing ocean
#

lmfao

shadow night
#

That's how cvn does it for remapping

blazing ocean
#

mapping nerd

brittle geyser
glass inlet
#

How to prevent a spectator from spectating a specific player (when they left click). Is there an event called for that?

brittle geyser
brittle geyser
hybrid spoke
#

but for that you got this

dawn flower
#

can i force players to use a shader pack?

#

i made a build and it looks pure shit without one

chrome beacon
#

shader pack is in optifine/iris required

#

then no

blazing ocean
#

core shaders my beloved

dawn flower
#

core what?

#

how

blazing ocean
#

resource packs

#

they allow you to do some basic shader stuff

dawn flower
#

ah

blazing ocean
#

but are also not documented

#

and diff from iris

dawn flower
#

i need the shaders for the lightning, which isn't supproted by tps i think

blazing ocean
#

i mean

dawn flower
#

is it possible to force people to not use fullbright

blazing ocean
#

spheya managed to get coloured lighting with core shaders

#

probably with some core shader

chrome beacon
safe furnace
#

Hi, i got problem with placeholdearpi

dawn flower
#

damn

safe furnace
#

Everything works until i download Server Expansion

#

Every other expansion works but when it comes to server it bugs

dawn flower
#

maybe it's outdated

#

or poorly coded

safe furnace
dawn flower
#

the expansion itself is poorly coded

#

bad code

#

that messes with other stuff

#

(theory)

safe furnace
#

ye ye

#

maybe

#

maybe last ver sion of papi doesnt support that thing

chrome beacon
#

You should just ask in the placeholderapi discord

#

This channel is for development

safe furnace
chrome beacon
#

as always

inner mulch
#

how do i fake send block break?

#

(the breaking cracks in the block)

slender elbow
#

Player sendBlockDamage

inner mulch
#

thanks

runic pine
#

how i get the block clicked to put a new block on WrapperPlayClientPlayerBlockPlacement

drowsy helm
#

Doesnt the packet have a block pos variable

#

If not just raycast and get block face

runic pine
#

how i get the block clicked to put a new block on WrapperPlayClientPlayerBlockPlacement

astral pilot
#

how do I get ItemStack from BlockPlaceEvent

drowsy helm
astral pilot
drowsy helm
runic pine
#

how i traverse removed block with packets

astral pilot
dusk tinsel
#

how to rotate entity's head to player??

drowsy helm
#

No, it’s not placed yet

astral pilot
runic pine
#

how i traverse removed block with packets its possible?

runic pine
slender elbow
glass inlet
hybrid spoke
#

otherwise playerinteractatentityevent is another option

drowsy helm
slender elbow
#

it is cancellable, and it rolls back the change

drowsy helm
#

Ah interesting

slender elbow
#

that's why getPlacedBlock returns a Block (live) and getReplacedBlock returns a BlockState (snapshot)

drowsy helm
#

either way, getItemInHand will return as if it were still in their hand

slender elbow
#

yes

#

well, no

#

if you try to get the item in hand from the player directly it'll be air/null

#

the event has the item that was used

#

the name is just weird

drowsy helm
#

Yeah, the event method

tall pendant
#

Would anyone know why I can't run pulgin with right version

brittle geyser
tall pendant
#

I'm using chucky,tpa and lifesteal it wont allow it to start up

#

im also using fabric on monkey hosting

slender elbow
#

spigot plugins don't work on fabric

#

chunky does have a fabric version, idk about the rest

tall pendant
#

im not using that im using the fabric chucky

slender elbow
#

well, you are in the spigot server, asking for fabric help xD you should probably ask in the fabric discord, or the chucky discord, i know they have a support channel in their own discord

tall pendant
#

oh mb

torn shuttle
#

still one of my best named methods of all time

rough drift
brittle geyser
#

when i trying to add 1.8.8 nms this appears

org.gradle.internal.resolve.ArtifactResolveException: Could not download spigot-1.8.8-R0.1-SNAPSHOT-remapped-mojang".jar (org.spigotmc:spigot:1.8.8-R0.1-SNAPSHOT:20190928.224340-1)
blazing ocean
#

mojang mappings don't exist for 1.8

blazing ocean
brittle geyser
#

how to use 1.8 NMS

blazing ocean
#

by not trying to use mojmaps?

brittle geyser
#

i just need to use nms for 1.8, 1.9, 1.10 and newer version up to 1.21

blazing ocean
#

glhf

#

either gotta use reflection or abstract it and have 2838384738 modules

runic pine
#

how i make red animation on player for everyone?

#

i cancelling the entitydaamgebyevent event

blazing ocean
#

the what

river oracle
#

Its not worth it

#

Supporting 1.20.4-1.21 casts a net around 75% of servers

blazing ocean
#

supporting ANYTHING <1.20 is just dumb

#

nobody in their right mind uses it anymote

shadow night
blazing ocean
#

yeah and it makes no sense to do

#

nobody uses 1.16.5

shadow night
#

Me and a friend are developing a map for 1.16.5

#

Most popular version for modded maps in our community

blazing ocean
shadow night
# blazing ocean 🤢

ur not gonna be able to play it anyways cuz it's russian, so nothing for you to worry about

blazing ocean
#

i could not care less ngl

shadow night
#

Yeah and you shouldn't

eternal night
shadow night
#

shouldn't care at all

blazing ocean
dawn flower
#

does Inventory#getSize start at 0 or 1

brittle geyser
brittle geyser
dawn flower
#

alr thanks

brittle geyser
#

i think size count slot amount

#

if it default inventory you get 9, 18, 27, 36, 45 or 54

brittle geyser
#

i need github example code with nms on each version

blazing ocean
#

new versions

slender elbow
#

for spigot? like, 1.18 onwards

brittle geyser
#

yes spigot of course

slender elbow
#

1.17 or 1.18

runic pine
#

how i make red animation on player for everyone?
i cancelling the entitydaamgebyevent event

runic pine
#

its vanilla animation when you hit

#

but i cancel the damageevent

blazing ocean
runic pine
#

SAME CANCELLING

blazing ocean
#

I DO NOT

#

chill down lil bro

runic pine
#

YOU DO NOT WHAT

slender elbow
#

RAHHH I AM SO ANGRY

#

LIVINGENTITY PLAYHURTANIMATION

runic pine
#

this.world.broadcastEntityEffect(this, (byte) 2);

#

maybe this

blazing ocean
slender elbow
#

¯_(ツ)_/¯ (very angry)

blazing ocean
#

(I AM VERY ANGRY AND UNABLE TO OPEN JAVADOCS)

runic pine
#

?

slender elbow
#

i don't know what that is

#

i know playHurtAnimation works

blazing ocean
#

💀

slender elbow
runic pine
#

i need convert entity bukkit to nms

remote swallow
#

cast getHandle to the nms ver most likely

blazing ocean
#

no need to cast handle

remote swallow
#

oh its cast to craftbukkit and call get handle

blazing ocean
#

just cast to cb impl and then get the handle

#

ye

remote swallow
#

i dont use nms every 8 seconds

blazing ocean
#

smh

runic pine
#

let see net.minecraft.server.v1_8_R3.Entity nmsEntity = ((CraftEntity) lentity).getHandle();
nmsEntity.getWorld().broadcastEntityEffect(nmsEntity, (byte) 2);

slender elbow
#

i thank god for a working playHurtAnimation method

runic pine
#

wdym

runic pine
#

more beatiful

slender elbow
#

if by beatiful you mean ugly sure

warm mica
#

You're out of luck with 1.8.8 anyways

blazing ocean
#

yeah and not even using spigot 😂

dawn flower
#

is the inventory action on InventoryDragEvent always PLACE_ALL?

slender elbow
#

there is no action in the drag event, wdym?

dawn flower
#

if you listen for "InventoryClickEvent" and broadcast the inventory action and then drag, it just spams you with "PLACE_ALL"

slender elbow
#

the drag event is called for dragging

#

not the click event

dawn flower
#

i know

slender elbow
#

the click event isn't called at all when dragging

dawn flower
#

i'm just making a custom event for my gui lib, it just listens for when the slot is changed somehow

#

and i made it ask for an inventory click event

dawn flower
#

i'm just gonna do inventory and click actions as UNKNOWN

#

wait does the InventoryDragEvent always change the slots

#

or is there any case where it doesnt

slender elbow
dawn flower
#

i just tested it, it does

#

it only does for creative tho, idk why

astral pilot
#

what's the best way to make countdown

dawn flower
#

hashmap of Player and Long when the Long is the timestamp of the time that action was last performed

#

then compare System.currentTimeMillis with the Long

astral pilot
#

no i mean like

#

sending 5, 4, 3, 2, 1

dawn flower
#

oh

#

uh

#

prob just a task timer that cancels after it reaches 0

slender elbow
dawn flower
#

ong

slender elbow
#

it literally just tells the server "spawn this item with this data in this slot"

dawn flower
#

oh

slender elbow
#

and the server thinks it's a click

dawn flower
#

creative mode is so scuffed when it comes to inventory actions / events

astral pilot
#

is BukkitRunnable#runTask() single threaded?

dawn flower
#

it runs on the main thread

astral pilot
#

does that mean I don't need thread-safe measures when dealing with datas?

blazing ocean
#

Arc<Mutex<T>> in java when

astral pilot
#

wow rust

torn shuttle
#

hey losers any of you have plugins that have their own resource pack? I'm collecting a list to add explicit compat for my new resource pack manager plugin

remote swallow
#

get ur mom to send it

blazing ocean
#

she can't atm

#

smh

torn shuttle
#

the fact maven just randomly stops functioning sometimes is infuriating

chrome beacon
#

🤔 Haven't had that happen

torn shuttle
#

then you've probably not used shading that much as a provider

#

this is at least the 5th time it happens today

#

I can't get it to invalidate the cached data

#

on the left me adding a check for empty package names, on the right a plugin refusing to get this updated code

#

also I did check and I have literally the same gradle settings on a different plugin and it is getting updated

brittle geyser
#

I am using id("io.github.patrick.remapper") version "1.4.0" but when i trying to reload gradle project this error appear:
org.gradle.internal.resolve.ArtifactNotFoundException: Could not find spigot-1.20.4-R0.1-SNAPSHOT-remapped-mojang.jar (org.spigotmcspigot1.20.4-R0.1-SNAPSHOT)

torn shuttle
#

same machine, same build.gradle, same time, different caches, broken

remote swallow
brittle geyser
#

never

chrome beacon
#

then do that

#

?bt

undone axleBOT
brittle geyser
#
val spigot = "1.20.4-R0.1-SNAPSHOT:remapped-mojang"
compileOnly("org.spigotmc:spigot:$spigot")
#

I cant use only gradle for this?

torn shuttle
#

no

#

it needs to install to your local

brittle geyser
#

ok

#

I need to write something in gradle repositories field?

chrome beacon
#

mavenLocal()

brittle geyser
#

It works thanks!

#

thank you very much!

grim hound
#

anvil renaming on 1.12 is sent via custom payload

#

nice

blazing ocean
#

i would rather step on a fucking lego brick than seeing that font

torn shuttle
blazing ocean
#

wow

dawn flower
#

honestly i can barely tell a difference between the normal font and that

torn shuttle
#

I hope you can collect a disability check for your taste deficiency

dawn flower
#

but now that i do notice the difference, i do agree that the font sucks

torn shuttle
#

seems like it's contagious, we ought to put the both of you down for the betterment of society

fossil flax
#

someone know if there's a wiki on how can i setup worldguard in my plugin?
Im using version 6.1 of worldguard and the jar file of the plugin in my project.
I created a class that can search for worldguard on server start and hook into it (working) but now i need to create some easy methods for access regions and players

sorry for my bad english

winter scarab
#

thus making like a little region change event i could work with

#

heres how ive been finding regions in a location Player player = event.getPlayer(); Location location = player.getLocation(); RegionContainer container = WorldGuard.getInstance().getPlatform().getRegionContainer(); RegionQuery query = container.createQuery(); ApplicableRegionSet locationRegions = query.getApplicableRegions(BukkitAdapter.adapt(location));

dawn flower
#

this isn't really a development issue, but whenever i try to login to github in intellij idea, it says this

Could not connect to repository REDACTED with account REDACTED Request response: Access to this site has been restricted. If you believe this is an error, please contact https://support.github.com.```
quiet ice
dawn flower
#

ok

tardy delta
#

time to learn git on the cli

#

🍿 uwu

blazing ocean
#

git cli >>>

#

i have about 100 aliases and ~35 of them are for git related shit

hazy parrot
#

git sync is probably the best alias I found online

worthy yarrow
#

Hey rad

blazing ocean
#

hi kat

worthy yarrow
#

You wouldn’t happen to have a gradient parser would you?

blazing ocean
worthy yarrow
#

Trying to put some gradients in text displays and I cannot figure it out

blazing ocean
#

(git pull --rebase && git push)

blazing ocean
worthy yarrow
#

Effen a cotton, thanks

blazing ocean
#

wat

hazy parrot
blazing ocean
#

oh

#

why would you need that

#

i keep all my branches

hazy parrot
#

Nah it just becomes too much over time

#

And you don't need a merged branch

blazing ocean
#

just forcepush to master bro trust me

tardy delta
tardy delta
#

oh

worthy yarrow
#

wait @blazing ocean this isn't it

#

It got merged with adventure api kek

#

paper users smhhh

blazing ocean
#

adventure bukkit exists

worthy yarrow
#

oh fr

#

breh

blazing ocean
#

there's some minimessage parser which outputs a json component too

#

website ^

worthy yarrow
#

I'm just trying to figure how to support gradient formatted text in a text display

#

yk those cool multi colored character shit

blazing ocean
#

minimessage usually

#

or you have a cusotm font

worthy yarrow
#

I’m trying to find the reference pic

blazing ocean
#

ik what you mean i think

worthy yarrow
blazing ocean
#

yea that's just small caps with minimessage

worthy yarrow
#

cool let me look into that

#

Do you have any examples? Again minimessages was merged and the examples page linked was archived

blazing ocean
#

just look at the adventure examples

#

use bukkit adventure platform

worthy yarrow
#

righto

silent wave
#

?code

#

!code

#

-code

#

?pastecode

#

?paste

undone axleBOT
silent wave
#

somebody can help me?

#

my class dont work if i handle an event

worthy yarrow
#

?notworking

undone axleBOT
#

"Does not working" is a useless statement. Please describe what exactly is not working, what you expect it to do, and what actually happens. If you get any console errors, also ?paste the entire stacktrace.

worthy yarrow
#

Some debugs might do you some good

silent wave
worthy yarrow
#

So then put your own debugs? Also try to like seperate your concerns man this class should not be this large with this many listeners

#

It's ok to have a class per listener

blazing ocean
#

asking in paper now doesn't make it better lmfao

worthy yarrow
#

Oh shit rad caught you

#

Can't escape this man's eagle eyes

blazing ocean
#

smh

upper hazel
#

why inteliji does not see some packages when creating a plugin project 1.21 version. Such as org.bukkit.Material for example

eternal night
#

update intellij

blazing ocean
#

update IJ

#

and run java 21

eternal night
#

sniped flooshed

blazing ocean
#

smh

upper hazel
#

why update inteliji

blazing ocean
#

doesn't have j21 support

upper hazel
#

is that related?

eternal night
#

yes

upper hazel
#

how lol

blazing ocean
#

mc 1.20.5+ requires j21

eternal night
#

spigot-api 1.21 compiles with and to java 21

#

you are using an intellij version old enough to probably visit preschool

upper hazel
#

oh wait

#

you mean compile version

blazing ocean
#

no

#

update intellij

eternal night
#

like your literal IDE

#

update it

upper hazel
#

oh shit here we go again

blazing ocean
#

use toolbox

upper hazel
#

inteliji update is a nightmare.

worthy yarrow
#

...

#

It takes like 45 seconds

upper hazel
#

it's not about speed.

#

bugs

blazing ocean
#

what

#

it ain't thaaaaaaatt buggy

#

it gets drunk from time to time but otherwise it works great

upper hazel
#

Say that after inteliji crashes five times in one day.

blazing ocean
#

outdated version and plugins issue

#

never had any issues

upper hazel
#

lucky

quiet ice
#

Eclipse ❤️

worthy yarrow
#

Man we got a "modern" ui and buddy is still complaining smh

blazing ocean
#

I love the new ui

blazing ocean
#

even vim is better than eclipse

#

and prettier

quiet ice
#

I mean, eclipse dunks on every IDE on the planet with it's workspace feature

#

How IJ doesn't support that is just wild to me

blazing ocean
#

what does it do

quiet ice
#

Allows you to have multiple projects open at the same time - even if the projects are completely unrelated to each other and use different buildchains

blazing ocean
#

yea i miss that in ij

#

but i just have multiple windows open

quiet ice
#

Make sure whatever API you are using makes use of connnection pooling

worthy yarrow
#
MiniMessage miniMessage = MiniMessage.miniMessage();
Component parsed = miniMessage.deserialize(tagContents);

... 

display.setText(String.valueOf(parsed));

I feel like this doesn't work kek

kindred sentinel
#

Is there a way to get rotation of the minecart?

remote swallow
#

no

#

use someting like hikari