#help-development
1 messages · Page 1081 of 1
So I can disable this feature for MC servers older than X version that doesn't support it
since 1.8 at least I believe
Yeah 1.8 did implemented action bar. But was it already accessible in this way or only with NMS?
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
thanks
what are you makin
Melon farm
hey, I'm trying to get nms for the version 1.10 using build tools, but I'm getting this error: https://pastebin.com/Rrx4emtD
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Does anyone know how to solve it?
this is why we need 8k 50 inch monitors
Multitasking is crazy 💀
wtf
RAM is probably screaming rn
need bigger eyes is all
me on 1200x800 monitor:
never assume I am pushing my pc to the limit while working on minecraft ever again
its used sometimes as some type of documentation
how much ram do you have
because that windows thing doesn't really say anything useful about htat
102 usable as it says there
128 but you don't get 100% of it usable
probably has on board video so it takes a little
.
you can not --remapped for 1.10
1.17+? I think
well its one of your problems
and the log is complaining about maven
wipe your buildtools folder and try a clean run
still getting the error :/
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
it shouldn't be complaining about maven not being installed, because it is xd
bt downloads maven and git for itself
I'd suggest clearing yoru DNS cache, but I always hate doing that
the url is working fine in my browser
it finally worked, apparently it is a problem with BT gui version
idk
but I got it using direclty the bt jar
That is weird.
my wallet cries seeing this amount of ram
what kind of de is this
xfce
oh
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?
Gotta track it yourself
damn, thought so. just annoying... thanks
EntityDamageByEntityEvent how i cancel kb on this event
Set entity velocity to zero
But don't you have to set a tick later, for example?
Did it work on current tick?
?tas
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
I'm not gonna ?tas you twice, that'd be rude
declaration: package: org.bukkit.event.entity, class: EntityKnockbackEvent
if you have no luck with velocity
1.8
ong
suggestions?
Don't use 1.8
no
I dont get people using ancient spigot just for combat mechanic.
How do you know that's the reason?
Because why else would you willingly use 1.8
20$ hosting for hosting 800 players
If you have another reason, please by all means enlighten us
Yeah probably?
1.8 is aids but the pvp is worth it
false
EntityDamageByEntityEvent how i cancel kb on this event
?1.8
Too old! (Click the link to get the exact time)
We've almost hit 10 years sheesh
if u wanna use protocollib cancel the velo packet
otherwise idk icl
...you can just remake 1.8 pvp in modern versions by setting attack speed
nah
I think their point was more "1.8 uses less resources and I want to host 800 players"
its still mad different
ye but im guessing 800 players would be a pvp comm
so
tho, tbf, if you are going to run 1.8, you should already be running a fork and know what you are doing
I know for a fact this dude is not making the next hypixel
next mmc maybe
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
true
only way to do it realiably tho might be some packet shit
to answer his quesiton
well it's a solution for sure but sigh 1.8 is too old now man
God pre pdc times
🤮
atp its probably better to rewrite the whole server from scratch
minestom for 1.8 would be cold
why tho
ktstorm
kstom existts
Last commit was 2 years ago ☠️
😳
minestonks
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;
}```
?paste
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
What is the event for igniting a creeper ?
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
Yes thank you! :3
really good explanation
im gonna use that
next time
tf is a creeperpowerevent
Called when a Creeper is struck by lightning.
^
powered creepers are cool af
it's a very rare event while playing minecraft vanilla
but indeed they are really cool
until they blow up your entire house instead of a hole
that's the cool part :pepelaugh:
Wait until you learn about channeling
on playerinteractevent
if event#setdamage be negative
what happens? health the player?
for some reason I'm being healed
well then ig it heals
https://timings.aikar.co/dev/?id=7b57b7bb9d4c4d319d66193ce1fc6c4b#pluginsthread main thread stopped for 9 seconds at a time like this timings. what could it be?
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
There is no plugin that does this lol
Did you use WorldEdit while the main thread stopped?
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
Maybe some other plugin then. You can't know for sure without testing or looking at the code
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
no bro
If it was, it would be swornguns but we couldn't replicate it
Why didn't the timings point out anything?
real
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
paper are removing aikar timings and replacing it with spark
Maybe just too many players then
someone loading chunks, Building a lag maschine, flying with elytra idk
elytra isnt in 1.8
It also doesn't help that the report you gave was only 2 minutes
3 players and are admin
paper is spigot fork lol
yeah obv. but as a paper fork i would expect it to be called pandapaper

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
send the full code
Anyone know of an easy way to disable the y-axis/vertical part of the knockback? Like I want to keep the horizontal knockback
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
setY to 0
^tldr
Thanks, figured I needed to do a tick thing since it doesn't update immediately
I mean there is a knockback event
Forget that existed, entitydamage works just fine
Actually the knockback event is probably better
You don’t have to use the scheduler and can just set final velocity
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
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?
but each level generates money faster, how could I use a single task?
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
why use armorstands for this?
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
no, you would have 1 task
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
Priority queue my beloved
So I should create a task with a one-second interval to process the queue?
i hate regex so much
mainly because i don't understand it cuz im stupid
private static Pattern pattern = Pattern.compile("(<\\w*>)");
regex101 is a great site for that
pretty sure < is special, you'd have to escape that
Don't even use regex to get all tags like that you could make a simple tokenizer pretty quickly
< nor > are special
without using regex?
Yeah its one for loop for a tokenizer
I mean regex is easier given you actually use regex101
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
mini message clone part 12??
nah
(< is
basically i want to replace sometaghere with my tags
named group
the more you know
but my tags are components
mini message has this capability no?
hmm
I'm confused on the issue here
as far as I'm aware they have a very advanced tag addition system
okay let me explain why i have to do this in such a roundabout way
you can even go as far as to write custom tags and the replacements are super advanced
I think the easiest way to go about this is a tokenizer, but then again this seems like a huge xy problem
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
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 >
do packet listeners from protocollib have a lower latency in comparison to spigot event handlers?
What is your goal for asking this
If you can use the api then use it
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
If you decompile and check the implementation
oh true
You can see that it just creates the packet and sends it
alr thanks
Mmm I think recursive decent parser is a fun project
Especially if you try to make it performant
recursive descent is fun
anyone know the key differences between the paper API and spigot API for developing
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
just sticking to spigot api then, sucks that the docs is terrible
theres a lot, if you want coverage for both spigot and paper, create your plugin with spigot api
is that not supposed to backwards
how does spigot support paper api
paper supports spigot api
Spigot doesn't support paper
not other way around
Paper supports spigot
i missread bruh
with a million errors if you write cursed code
i thought u were saying paper api was supported on spigot
hi do you know how I could disable the blaze fly in 1.8 ?
1.19.4 was using java 17 right?
damn this is annoying
I guess I need to use 17 across all my projects
make good how
styling?
you make trinket have its color if a group like purple and the name be based on rarity if thats applicable
i think i wanna keep trinket gray but yeah i think colouring based on rarity would be nice
Usually you don’t read their docs as the methods are explained extremely well
Normally you’d just see what methods they implemented and just use them if u wanted to
theres a bunch of function calls that vaguely worded
You don’t have to use it then. I usually use spigot api but test on paper server
then it isn't explained extremely well is it
It is but I’m not going to argue about it in the spigot discord lmao
how does gradle pick which java version to compile with
either:
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
or:
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
or as last resort takes the version from %JAVA_HOME%
I was trying to use toolchain but I think it was still compiling not with the version specified
whats ur build.gradle
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
did you try this first?
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
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
thats java and its bum ass tooling around it gradle maven spring none of it makes sense
I might end up reverting to maven again unfortunately
javas a fine language good even but the tooling around it makes so bad
Noooo don’t do thattt
Gradle might have a steeper learning curve but it’s more powerful than Maven in many ways too
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
maven and gradle is just for building. Spring is not related to the other two and isn't even necessary to use at all
ik that spring is a web framework but everything around java is terrible is my point
All build tools run into some similar problem once in a while
not sure how its more powerful. They both can do the same thing, maven does beat gradle in the shading department though
you will have to be more specific instead of generalizing
if you don't like Java that is completely fine
yeah by virtue of shading being something it can actually do and not the weekend project of some random dude online
don't have to like every language out there lol
It’s more powerful in the sense that it’s easier to write your own custom scripts. It’s kinda annoying on maven since you have to like import a plugin and stuff
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
depends what you are doing
well ease of use is subjective
True
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
Yeah
it’s the same for gradle too
Though I actually prefer maven sometimes for some niche NMS module stuff
Anyone know of a way to replicate the effects of bonemeal around a specified location?
Block#applyBoneMeal?
that seems new
declaration: package: org.bukkit.block, interface: Block
Yep, you used to have to do the Ageable thing. I wonder when that was added.
I like maven simply because it uses XML instead of a DSL
and that's a lot easier to understand up-front
I think around 2021
does anyone know what plugin is causing my chat to be spammed with "Selected Slots" everytime i click on something?
Show a plugin list
It seems like a plugin forgot to remove a print out statement during debugging lol
how many plugins do you have
?img
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
- 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
no
ill try tomorrow i gotta go to bed but thanks for the help
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?
math
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
going to cry bc of this information
trying to make a plugin so that you can attach leads to players but constant teleportation doesn't allow head movements
ill cry for you aswell
ty 😔
is there a way to allow head movements during teleportation?
yeah
just teleport them with the y/p they had befor
I tried that but it stays static because the delay is 0 tick
show code
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);
This is what I have
you didnt set the y/p
the yaw and pitch are reset when you chang ethe XYZ?
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
'stays locked'
I'm not sure I understand
locked to what direction set by whom, when
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
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
how do i find skin-urls again? (the ones for changing them in the player's GP)
oh what the hell
it keeps teleporting you
you have something else not working
that keeps teleporting
I want it to keep teleporting me but allow head movements during that teleportation
?xy
oh like that imma shush
if you're teleporting its not a thing
you have to use velocity if you want that
damn
teleporting entity while riding it will kick you out
https://streamable.com/g8ysmu this is the issue if anyone is curious
Usage: !verify <forums username>
i feel like velocity would work better for that anyway
i tried to verify but each time i did it says "verified!" then i never got the role
crying again bc of this information
Is there a way to get all the scoreboards on the server and listen for when they are updated?
like he doesn't already have a banger of a song
lol
You should hook into the plugin's custom event if you are trying to passthrough information between plugins. Likely you are trying something wrong if you rely on the Scoreboard. But no, it's not possible without tedious efforts
Ok, thank you. What I'm trying to achieve is synchronizing scoreboards between severs
That should be implemented directly within the scoreboard plugin itself. If you can't modify it then you should check whether it possibly already has that feature or whether there is an API you can hook into
Ok, thank you
like offline?
yeah, do offline players have their display name stored
I would assume not, since it's not in the nbt file
okay okay, thanks
I'll just assume that everything that isn't in the nbt file isn't stored
i.e. like compass target
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?
if it's exposed as api, sure but you still need to add it as an annotation processor
ah damn
Lombok is usually not shaded as far as I'm aware
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
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
Print out the pipeline and let us see where your handler sits
Are you using maven or gradle? The setup is quite different with either of those.
🤡
half and half
Whats the use case for this? OfflinePlayer has a getName() Method which will give you the players minecraft name.

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
I bet
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
yes
good because I might've problemmaxxed my income
debtmaxxing
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
mmmm your ram sure is tasty - windows
I'm absolutely just running laps around how much power this is pulling, I could probably have another 100 projects open
How come bitshifting a chunk coordinate by 4 and adding 8 to the result gives world coordinates of the center of the chunk?
because bitshift 4 = multiply by 16
So chunk coords are just World Coords / 16
Oh nvm it makes sense
chunks are 16x16x16
Thanks
can you give a player double xp instead of int?
does that mean i should be shifting by 4 instead of multiplying by 16? since shifting is faster as far as i know
unless you're doing it millions of times a second a it doesn't matter
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.
i see a lot of people using znpcs, not sure if its any good tho
the fuck is that speed
mans running 2133 
you better have some excuse like "it's ecc" or "I'm running a threadripper"
Actually nvm citizens does offer their plugin free
on their website
I cant wait to use it now
one of the most purchased plugins because they make the free download button tiny lmfao
code's hot garbage but highly functional
mans made 240k
are the total downloads unique
For premium resources I believe so
god damn
it was free way back when so i wanna say 75% of those downloads arent paid
probs more
Yeah I thought when I saw it last time it was free on spigot originally
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
"I've tried everything and it did work"?
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
but is it a dungeon?
i've seen somebody send an imgur pic of a discord cdn link
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
lmaoo
we can also get hit with "What is this I haven't tried it yet"
and then we have the gongas type user: send a screenshot of a question you asked in a diff server
well at least gongas tried something
that something being asking the same question elsewhere
thats a fair one
i wont double down, i will show you that i suffered already
but sometimes even with other people's responses 😭
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"
now i wanna become a magma labber
you wish, you have no shot of joining such a prestigious and historied institution
😔
know your place
you're right, i have to stay here in this spigot wasteland
Meanwhile, geolykt: Asking questions about a completely different game in the spigot discord
kotlin mentioned!?!?
I don't like how reposilite and maven sometimes just break out of nowhere
hopefully the one just now was the last of it
how to use nms in my intellij with gradle
use the spigot artifact instead of spigot-api
can i use paperweight.paperDevBundle("1.18.1-R0.1-SNAPSHOT") and run my plugin on spigot?
?whereami
i dont use paper omg
@remote swallow were you not home
it couldn't be delivered
now they delivered it to a shop near me
ffs
thanks
i mustve been asleep
what is R1 R2 in minecraft version
Depends
what
it changes when protocol changes in simple terms
how i can get list of this versions?
the rev
basically just internal nms ver
it is and it isnt
if somethings protocol compat it would have the same nms ver
you'd have to clone the cb repo to get that version notation iirc
lmfao
That's how cvn does it for remapping
mapping nerd
there is no R in version name
How to prevent a spectator from spectating a specific player (when they left click). Is there an event called for that?
i want version list like this https://github.com/juniffiro/Minecraft-NMS-table
playerteleportevent and then you can use the cause to determine that it was a spec https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/player/PlayerTeleportEvent.TeleportCause.html#SPECTATE
Thanks!
thanks, is there 1.21 version?
yes, but its apparently not updated
but for that you got this
can i force players to use a shader pack?
i made a build and it looks pure shit without one
you can force them to use core shaders :D
core shaders my beloved
ah
i need the shaders for the lightning, which isn't supproted by tps i think
i mean
is it possible to force people to not use fullbright
spheya managed to get coloured lighting with core shaders
probably with some core shader
you can't really force anything client side especially when it comes to mods
Hi, i got problem with placeholdearpi
damn
Everything works until i download Server Expansion
Every other expansion works but when it comes to server it bugs
wdym
the expansion itself is poorly coded
bad code
that messes with other stuff
(theory)
You should just ask in the placeholderapi discord
or in #help-server
This channel is for development
i'm not in, i cannot find it
Player sendBlockDamage
thanks
how i get the block clicked to put a new block on WrapperPlayClientPlayerBlockPlacement
nop
what is raycast
how i get the block clicked to put a new block on WrapperPlayClientPlayerBlockPlacement
how do I get ItemStack from BlockPlaceEvent
As in the itemstack of the block?
yes
declaration: package: org.bukkit.event.block, class: BlockPlaceEvent
how i traverse removed block with packets
wouldn't that fail if the player is holding 1 piece of that item?
how to rotate entity's head to player??
No, it’s not placed yet
I see thanks
how i traverse removed block with packets its possible?
entity#setheadrotatinon?
it is :^)
Unfortunately this don't allow me to get the player that spectator wants to spectate. If I use event.getPlayer().getSpectatorTarget() and cancel the event I get an error:
Failed to handle packet net.minecraft.network.protocol.game.PacketPlayInUseEntity@2e304b13, suppressing error
java.lang.UnsupportedOperationException: null
unsupported is weird but try to run it a tick later
otherwise playerinteractatentityevent is another option
Isnt it cancellable, so acts as an intercept?
it is cancellable, and it rolls back the change
Ah interesting
that's why getPlacedBlock returns a Block (live) and getReplacedBlock returns a BlockState (snapshot)
either way, getItemInHand will return as if it were still in their hand
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
Yeah, the event method
Would anyone know why I can't run pulgin with right version
more info pls
I'm using chucky,tpa and lifesteal it wont allow it to start up
im also using fabric on monkey hosting
spigot plugins don't work on fabric
chunky does have a fabric version, idk about the rest
im not using that im using the fabric chucky
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
oh mb
still one of my best named methods of all time
loading player data, wanted to know what data I should have
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)
mojang mappings don't exist for 1.8
along with actual features
how to use 1.8 NMS
by not trying to use mojmaps?
^ anyone?
i just need to use nms for 1.8, 1.9, 1.10 and newer version up to 1.21
how i make red animation on player for everyone?
i cancelling the entitydaamgebyevent event
the what
You lose about 8% of the server population by not supporting 1.8 you lose fractions of a percent for every proceeding version up to 1.20.4
Its not worth it
Supporting 1.20.4-1.21 casts a net around 75% of servers
I have literally just finished a mod for 1.16.5 lmao
Me and a friend are developing a map for 1.16.5
Most popular version for modded maps in our community
🤢
ur not gonna be able to play it anyways cuz it's russian, so nothing for you to worry about
i could not care less ngl
Yeah and you shouldn't

shouldn't care at all
ok paper guy
does Inventory#getSize start at 0 or 1
i dont care what i lose and get, i just need 1.8 nms
starts from 1
alr thanks
i think size count slot amount
if it default inventory you get 9, 18, 27, 36, 45 or 54
what versions has mojang mappings?
i need github example code with nms on each version
new versions
for spigot? like, 1.18 onwards
yes spigot of course
1.17 or 1.18
how i make red animation on player for everyone?
i cancelling the entitydaamgebyevent event
the what
red animation when you hit
its vanilla animation when you hit
but i cancel the damageevent
then it won't get shown
YOU DO NOT WHAT
IS THAT A THING IN 1🤢8
¯_(ツ)_/¯ (very angry)
(I AM VERY ANGRY AND UNABLE TO OPEN JAVADOCS)
maybe this @slender elbow
?
💀
i need convert entity bukkit to nms
cast getHandle to the nms ver most likely
no need to cast handle
oh its cast to craftbukkit and call get handle
i dont use nms every 8 seconds
smh
let see net.minecraft.server.v1_8_R3.Entity nmsEntity = ((CraftEntity) lentity).getHandle();
nmsEntity.getWorld().broadcastEntityEffect(nmsEntity, (byte) 2);
i thank god for a working playHurtAnimation method
wdym
declaration: package: org.bukkit.entity, interface: Player
i prefer this net.minecraft.server.v1_8_R3.Entity nmsEntity = ((CraftEntity) lentity).getHandle();
nmsEntity.getWorld().broadcastEntityEffect(nmsEntity, (byte) 2);
more beatiful
if by beatiful you mean ugly sure
You're out of luck with 1.8.8 anyways
yeah and not even using spigot 😂
is the inventory action on InventoryDragEvent always PLACE_ALL?
there is no action in the drag event, wdym?
if you listen for "InventoryClickEvent" and broadcast the inventory action and then drag, it just spams you with "PLACE_ALL"
i know
the click event isn't called at all when dragging
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
it is tho
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
no it isn't
also
what's the best way to make countdown
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
hah, creative mode is an absolute disaster
ong
it literally just tells the server "spawn this item with this data in this slot"
oh
and the server thinks it's a click
creative mode is so scuffed when it comes to inventory actions / events
is BukkitRunnable#runTask() single threaded?
it runs on the main thread
does that mean I don't need thread-safe measures when dealing with datas?
Arc<Mutex<T>> in java when
wow rust
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
smh
get ur mom to send it
the fact maven just randomly stops functioning sometimes is infuriating
🤔 Haven't had that happen
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
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.spigotmc
1.20.4-R0.1-SNAPSHOT)
same machine, same build.gradle, same time, different caches, broken
have you ran buildtools with --remapped
never
val spigot = "1.20.4-R0.1-SNAPSHOT:remapped-mojang"
compileOnly("org.spigotmc:spigot:$spigot")
I cant use only gradle for this?
mavenLocal()
PLEASE change your font
i would rather step on a fucking lego brick than seeing that font
Does it hurt? To have this shit a taste?
wow
honestly i can barely tell a difference between the normal font and that
I hope you can collect a disability check for your taste deficiency
but now that i do notice the difference, i do agree that the font sucks
seems like it's contagious, we ought to put the both of you down for the betterment of society
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
hey i did something like this a few months ago. basically i would watch for movement and teleport events and then store the players previous region. if the previous region changed from the current one, i would fire a new custom event and set the previous region to the now current one
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));
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.```
thanks a lot
try updating IntelliJ and all your plugins
ok
git sync is probably the best alias I found online
Hey rad
hi kat
You wouldn’t happen to have a gradient parser would you?
gpr && gp
Trying to put some gradients in text displays and I cannot figure it out
(git pull --rebase && git push)
use minimessage
Effen a cotton, thanks
wat
Nah, git sync removes all local branches that are merged on remote
just forcepush to master bro trust me
whats that one doing?
oh
wait @blazing ocean this isn't it
It got merged with adventure api kek
paper users smhhh
adventure bukkit exists
I'm just trying to figure how to support gradient formatted text in a text display
yk those cool multi colored character shit
I’m trying to find the reference pic
ik what you mean i think
yea that's just small caps with minimessage
cool let me look into that
Do you have any examples? Again minimessages was merged and the examples page linked was archived
righto
?notworking
"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.
Some debugs might do you some good
the problem is that, and the console isnt spaming errors
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
asking in paper now doesn't make it better lmfao
smh
why inteliji does not see some packages when creating a plugin project 1.21 version. Such as org.bukkit.Material for example
update intellij
sniped 
smh
why update inteliji
doesn't have j21 support
is that related?
yes
how lol
mc 1.20.5+ requires j21
spigot-api 1.21 compiles with and to java 21
you are using an intellij version old enough to probably visit preschool
oh shit here we go again
use toolbox
inteliji update is a nightmare.
what
it ain't thaaaaaaatt buggy
it gets drunk from time to time but otherwise it works great
Say that after inteliji crashes five times in one day.
lucky
Eclipse ❤️
Man we got a "modern" ui and buddy is still complaining smh
I love the new ui
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
what does it do
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
Make sure whatever API you are using makes use of connnection pooling
MiniMessage miniMessage = MiniMessage.miniMessage();
Component parsed = miniMessage.deserialize(tagContents);
...
display.setText(String.valueOf(parsed));
I feel like this doesn't work kek
Is there a way to get rotation of the minecart?
