#help-development

1 messages · Page 159 of 1

sterile token
#

yes it doesnt make sense

hasty prawn
#

The amount is 0

#

Golden Axe x 0

sterile token
#

oh

#

Im an idiot

#

that why LMAO

warm saddle
#

oh i didn't register that bit in my brain either lmaoo

sterile token
#

that why i thought sever is either trolling

#

Because everything was okay and it wanst worker

#

Lmao i have been 30m trying to realize

#

why?

#

haha

#

But i mean if something is not working and there is no clarify reason you can think the sever is trolling you

#

right

#

but dont joke with brains

#

i make me feel bad because i have an ACV (Stroke)

#

im dumb i thought it was the same on english

atomic swift
#

what can i use to check if a locatioon contains an entity

tall dragon
#

any1 here use Lettuce redis client lib?

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!

tall dragon
#

is it possible to have a program Publish and Subscribe simultaneously

#

because it seems i rlly cannot do that...

echo basalt
#

just like jedis, you gotta subscribe on another thread

#

as subscribing appears to be blocking

tall dragon
sterile token
#

🤔

tall dragon
echo basalt
#

ok nvm jedis handles this different

tall dragon
#

if its rlly not possible to have a program both subscribe and publish that would.... really suck

echo basalt
#

it kinda is

tall dragon
#

would mean i need to rewrite it all with a different library

echo basalt
#

you just need to use different instances

tall dragon
#

different Connection instances?

echo basalt
#
connection.sync().subscribe...
connection.async().publish...

for example

#

with jedis you just get 2 separate instances from the pool

tall dragon
#

huh

#

i am now not getting the error. but i am not getting the messages either

grave lagoon
#

is there an event that detects if an item is clicked into a menu

#

and how can i check if its an inventory or not

quaint mantle
#

How do I display coordinates on a scoreboard with placeholders?

grave lagoon
ivory sleet
#

ye

#

Ive used it alot

tall dragon
#

well would you be able to help me out of this pickle

#

or is it simply not possible

ivory sleet
#

yes I will help you

#

tho first and foremost you probably need more than one connection

#

since listening iirc is blocking

tall dragon
#

so i need to have 2 RedisClient instances?

ivory sleet
#

na

#

take a peek at this

#

(basically I have one for subscribers, and one for publishers)

#

but you can ofc reuse the client

quaint mantle
#

Is creating multiple classes like this one below affects server performace? public class gui() { public Inventory initialize() { Inventory inv = .........; return inv; } } I'm using them like this openInventory(new gui().initialize())\

tall dragon
tall dragon
#

danggg ur a lifesaver

ivory sleet
#

pog pog

tall dragon
#

thanks alot

ivory sleet
#

oh yeah

#

you can pool the connections if you want to

tall dragon
#

rewriting the whole thing wouldve been... painnn

ivory sleet
#

true

ivory sleet
tall dragon
#

yea i will make some good ways to handle it all now that i know how it works

crimson terrace
#

How do I check whether a certain spot in the world is loaded?

#

nvm, found it in Chunk

#

#AskingYourMomToFindSomethingAndImmediatelySeeingIt

untold jewel
#

How would I loop through a config and get the numbers in order?

#

for example

#

player:

  • 10
    player:
  • 1235
    player:
  • 0

and get the numbers in order

#

from lowest to highest or vice versa

crimson terrace
#

you would get all key value pairs, then sort them after the values

grave lagoon
#
    public void SoulBoundInventoryClick(InventoryClickEvent event) {
        if (event.getWhoClicked() instanceof Player player) {
            ItemStack clickedItem = event.getCurrentItem();

            if (!(clickedItem == null)) {
                if (!(clickedItem.getItemMeta() == null)) {
                    if (clickedItem.getItemMeta().getLore().contains("SoulBound")) {
                        event.setCancelled(true);
                    }
                }
            }
        }
    }```

this works but I would like to be able to move it around only in my own inventory
#

how would i achieve this?

untold jewel
#

U need to specify the inventory

#

so check if the inventory is your gui and then do all that stuff

crimson terrace
#

sounds like the solution

untold jewel
#

also why are you doing

#

instanceof Player player

delicate lynx
#

that is a newer java thing

crimson terrace
#

yeah its a cool cast

delicate lynx
#

let's you assign a variable to the instanceof thing

untold jewel
#

rly

#

wow

#

learn something every day

crimson terrace
#

yeah, java 16

grave lagoon
#

i'm not sure how to get to it

crimson terrace
#

you havent given enough information for us to properly help you. what exactly are you trying to do

untold jewel
#

A Map I guess? Not really sure what u want

#

tbh

grave lagoon
#

e.g. a chest

crimson terrace
#

so you want to basically bind an item to your inventory?

grave lagoon
#

this is the last

untold jewel
#

so the only player who can take things out of the gui is the player who died

#

is what ur saying

crimson terrace
#

you could compare the Player#getInventory() to the event#getClickedInventory()?

untold jewel
#

if that doesnt work send the class with comments

grave lagoon
#

alright

untold jewel
#

so its easier to understand what ur trying to do

#

but hopefully that works

#

what shreb said

crimson terrace
#

I love the spigot java docs, they can tell you basically everything XD

grave lagoon
#

lemme test that rq

untold jewel
#

literally the point of docs xD

crimson terrace
#

yeah but most devs dont do them properly

untold jewel
#

^

echo basalt
#

I like how javadocs are made from the actual commends within the java code so I can just middle-click and read it live on my IDE

crimson terrace
#

I have to force myself to make comments on my methods because I am so sure they are properly named and self explanatory

floral drum
echo basalt
#

🤨

crimson terrace
#

:3

grave lagoon
# crimson terrace you could compare the Player#getInventory() to the event#getClickedInventory()?

this is my new script:

    public void SoulBoundInventoryClick(InventoryClickEvent event) {
        if (event.getWhoClicked() instanceof Player player) {
            ItemStack clickedItem = event.getCurrentItem();

            if (!(clickedItem == null)) {
                if (!(clickedItem.getItemMeta() == null)) {
                    if (clickedItem.getItemMeta().getLore().contains(soulB)) {
                        if (!(player.getInventory() == event.getClickedInventory())) {
                            event.setCancelled(true);
                        }
                    }
                }
            }
        }
    }```
#

it works

#

but when i put it into a container

#

i cant take it out

#

it shouldnt even go into a contianer

quaint mantle
#

HOLY IF STATEMENTS

untold jewel
#

exactly pyramid of doom

grave lagoon
#

you havent seen anything 💀
im like yandere dev

quaint mantle
#

please

#

i beg

#

stop

untold jewel
#

just check and return

#

if (blabla == null) return;

mossy gazelle
#

Is this wrong?

#

name: BowPlugin
version: 1.0
author: Sebbe
main: me.sebbe.BowPlugin.Main
api-version: 1.14

#

In the Yml

grave lagoon
#

no

#

unless u have commands

grave lagoon
#

lol

coral oyster
#

hi i know this isnt exactly a spigot question but i thought some people here might be able to help anyway, I'm trying to make Maven deploy my packaged JAR to a remote SFTP server so I added the maven wagon extension:

<extension>                <groupId>org.apache.maven.wagon</groupId>
  <artifactId>wagon-ssh</artifactId>
  <version>3.5.2</version>
</extension>

and the sftp site:

<distributionManagement>
  <repository>
  <id>ftp-repository</id>
  <url>sftp://REDACTED.net:2022/plugins</url>
  </repository>
</distributionManagement>

and the server in settings.xml

<server>
  <id>ftp-repository</id>
  <username>REDACTED</username>
  <password>REDACTED</password>
</server>

but it returns me this error when I hit "deploy":

Algorithm negotiation fail
trim lake
#

Can someone explain me, why this is called twice?

    public void onClick (PlayerInteractEvent event) {
        if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
            if ( event.getHand() == EquipmentSlot.OFF_HAND ) return;
            Player player = (Player) event.getPlayer();
            ItemStack itemInMainHand = new ItemStack(event.getPlayer().getInventory().getItemInMainHand());
            if ( itemInMainHand.getType().equals(Material.WATER_BUCKET) ) {
                player.sendMessage(ChatColor.GOLD + "test");
                    
            }
        }
    }```
ivory sleet
#

iirc one for right hand and one for left hand

trim lake
#

I google it, and if ( event.getHand() == EquipmentSlot.OFF_HAND ) return; this should prevent that. But its not working.

fluid river
#

wdym not working

trim lake
#

I get messages, instead of 1. Event is called twice for some reason. I only need event to be called for main hand.

sterile token
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.

worldly ingot
#

Your plugin.yml should be in the src/main/resources directory

mossy gazelle
#

DUDE UR A LEGEND

#

Thanks, been on that for a good hour

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.

quaint mantle
#

how would i fix this error?

#

java.lang.IllegalArgumentException: Invalid BSON field name _id

#

coming from

#
collection.updateOne(Filters.empty(), document);```
sterile token
#

Its telling you

#

That _id its invalid

#

Check if the field exists on the Document*

quaint mantle
#

alr we good

#

has to-do replaceOne

#

instead of updateOne

sterile token
#

Depends on wha tyou want

#

remplace is for overring the Document on the collection

#

And update as it mention it update a Document

quaint mantle
#

well, does it matter?

sterile token
#

Yes

quaint mantle
#

how so?

sterile token
#

Because we have the same in food, the knife and the fork which are for eating but they dont the same función

#
User user = getUsers().getUser(uuid);
Document document = Document.parse(gson.toJson(user));

getStorage().getUsers().insertOne(document);
quaint mantle
#

i c

sterile token
#

Oh

#

Sorry

#

I sent it accidental ly

#

😂

#

O was Testing stmy

quaint mantle
#

xD

sterile token
#

Sorry but im on cellphone

#

And i connected to my machine to test smth

#

And i had in the xlipboard the code I run

#

Hahahaha

quaint mantle
#
java.util.UnknownFormatConversionException```
#

how would i fix this?

#
e.setFormat(ChatColor.translateAlternateColorCodes('&', "&7" + display_name + " &8» &f" + e.getMessage()));```
#

this line

#

nvm

grave lagoon
#
    @EventHandler
    public void SoulBoundInventoryClick(InventoryClickEvent event) {
        if (event.getWhoClicked() instanceof Player player) {
            ItemStack clickedItem = event.getCurrentItem();
            
            if (!(clickedItem == null)) { return; }
            if (!(clickedItem.getItemMeta() == null)) { return; }
            if (!(clickedItem.getItemMeta().getLore() == null)) { return; }

            if (clickedItem.getItemMeta().getLore().contains(soulB)) {
                if (!(player.getInventory() == event.getClickedInventory())) {
                    event.setCancelled(true);
                }
            }
        }
    }```

i'm trying to make it so I can move it around in my inventory but not in other containers
#

i can move it around

#

but can put it in other containers and cant take it out of it

drowsy helm
#
  1. check type instead of matching the inventory
grave lagoon
drowsy helm
#

and have you verified what point it is stopping at?

grave lagoon
#

everything is going through

drowsy helm
#

if(event.getClickedInventory() instanceof PlayerInventory)

grave lagoon
#

alright

#

1 sec

drowsy helm
#

and

     if (event.getWhoClicked() instanceof Player player) {

this is a useless if statement

grave lagoon
#

true ebcause no entities can click in their inventories

#

lemme do that rq

quaint mantle
#

how would i sort a tabcompletion?

#

if i have "s" it'll sort from everything that starts with s

grave lagoon
#

@drowsy helm uh so just an hour ago this was working but now when i do java if (!(clickedItem == null)) { return; } if (!(clickedItem.getItemMeta() == null)) { return; } if (!(clickedItem.getItemMeta().getLore() == null)) { return; }
it gives me java.lang.NullPointerException: Cannot invoke "java.util.List.contains(Object)" because the return value of "org.bukkit.inventory.meta.ItemMeta.getLore()" is null

quaint mantle
#

there's no lore on the item

grave lagoon
#

theres a check

#

and yes there is

#

oh weait

#

1 sec

#

im dumb

#

gimme sec

#

ok now it says the item is null

quaint mantle
#

how tf do i cast to a chest

#
            var block = e.getClickedBlock();
            var hand = e.getPlayer().getItemInHand();
            if (hand.getType() != Material.BLAZE_ROD) return;
            if (block.getType() == Material.CHEST) {
                e.setCancelled(true);
                Chest chest = (Chest) block;```
#

=

#

java.lang.ClassCastException: class org.bukkit.craftbukkit.v1_19_R1.block.CraftBlock cannot be cast to class org.bukkit.block.Chest (org.bukkit.craftbukkit.v1_19_R1.block.CraftBlock and org.bukkit.block.Chest are in unnamed module of loader java.net.URLClassLoader @504bae78)

hasty prawn
#

You have to cast the BlockState I think

quaint mantle
#

ah

#

let me try

#

works now, thanks

tender anvil
#

would you ever be able to run something faster than 20 hertz?

quaint mantle
#

why is the service null?

#
RegisteredServiceProvider<Economy> rsp = getServer().getServicesManager().getRegistration(Economy.class);```
#

to be exact

vast kelp
quaint mantle
#

yeah, i fixed it

#

and i didn't have essentials

#

thanks

spare marsh
#

Does PlaceholdersAPI automatically detect where a Placeholder is used and update it? For example if I use %player_name% in a gui... Or I have to translate manually?

vast kelp
toxic haven
#

How can i save coords/ID of an armour stand so I can request for it later?

torn shuttle
#

@echo basalt good night sweet prince

vast kelp
spare marsh
#

when was Class PlayerArmorStandManipulateEvent added? In what MC version?

shadow zinc
#

kinda not really a dev question but I can code so why does this not work?

#

if I try to connect to it stalls and then shows this error

#

pressing continue to site does nothing

#

should I setup something on my server to forward it instead of using godaddy?

grave lagoon
shadow zinc
#

wanna give me some forwarding advice as well?

grave lagoon
shadow zinc
#

I never said that

grave lagoon
#

I can code so why does this not work?

shadow zinc
#

k you're pissing me off

grave lagoon
#

i'm just trying to help you

shadow zinc
#

how are you helping me?

#

you're just arguing and saying dumb shit that doesn't help anyone

#

i appreciate that you think that you're helping, congrats, but maybe next time be a little less argumentative and more constructive and helping

wet breach
# shadow zinc kinda not really a dev question but I can code so why does this not work?

that is DNS forwarding, this works for some clients but not completely for browsers because a browser is still expecting to see the headers for it. The headers will contain more information in regards to security. Second some browsers do accept dns forwarding and the server you have is probably not serving up the certificate in order to be truly secure as well.

grave lagoon
#

it works

#

its urself

shadow zinc
#

it does now?

#

sick

grave lagoon
#

so u have to change ur firewall

#

because its too secure

wet breach
shadow zinc
#

no

#

yeah I just tried it on my phone and it doesn't connect

wet breach
#

then clear your dns cache or the browser cache

grave lagoon
#

^

wet breach
#

if that isn't it, then its just that the dns that is responsible for your domain

#

hasn't propagated the info to all the dns servers in the world

#

and you are just unlucky to have a dns provider that is slow at getting it

shadow zinc
#

well I set it up a month ago

wet breach
#

the domain, or the subdomain

shadow zinc
#

then I tweaked some things just then and now its working I guess

#

the subdomain

wet breach
#

well clearing your cache then should most likely fix your issue

#

or changing dns server

shadow zinc
#

i'll try get a friend to connect

#

so godaddy is just slow I guess

#

no one can connect in australia

#

guess I got to wait 48 hours

#

yay...

quaint mantle
#

How would i teleport something to the left of the player no matter what their pitch is

quaint mantle
#

Like an armor stand

#

I need it always to the left of the player no matter their direction

buoyant viper
#

pitch has nothing to do with left/right anyway lol

#

pitch is up n down

#

yaw is left n right

quaint mantle
#

Im curious

buoyant viper
#

vectors, idk math tbh

quaint mantle
#

Obviously

untold jewel
#

Looping through values in config and sorting ?

torn shuttle
#

well this is fun, I think I have a memory leak but now that I have a way to analyze the mem dump it's not happening anymore

tender shard
torn shuttle
#

we're going to the moon baby

tender shard
#

erm wtf

viscid wharf
#

CraftMerchantRecipe#fromBukkit(MerchantRecipe) doesn't use priceMultiplier, demand, specialPrice from MerchantRecipe, so these things are missing for me...

quaint mantle
#

how would i do this?

torn shuttle
quaint mantle
#

wherever the player is looking it'll shoot an armor stand

torn shuttle
#

there's more than one way of doing this

quaint mantle
#

idc what way

#

i'd rather have a tutorial

#

on "directions"

#

so like 2 blocks left of the player

torn shuttle
#

get the player eye direction and spawn an armorstand, then apply a velocity to it

quaint mantle
#

would be always 2 blocks left no matter what their yaw is

quaint mantle
#

bro, how do i get a location based of the head rotation?

boreal topaz
#

"The system is currently not working. Try again later."

It's been 2 days since I got this message.

remote swallow
#

does paypal work else where

boreal topaz
#

yes

remote swallow
#

look at the link again

#

right at the top

#

red banner

boreal topaz
#

I see that the owner no longer has his paypal on this resource

remote swallow
#

and what do you think would happen if they dont have their paypal linked, and the resource is marked as inactive and not accepting buys

boreal topaz
#

oh i didn't see this message

tender shard
boreal topaz
#

nah but there is no living room for problems of this kind

tender shard
#

?email

undone axleBOT
boreal topaz
#

yes okay I'm going to wait 3 days just for a small question lol

#

@tender shard and I think that politeness is the least of things

quaint mantle
#

mfn

#

would you by chance know how to get a location based on the player's head rotation?

tender shard
#

that's something only staff can help you with

#

so either ask in general and wait until staff is online, or send an email

#

help-development is definitely not the right channel

tender shard
#

a location is X, Y, Z, Pitch, Yaw, and World

quaint mantle
#

i mean like, 2 blocks left of the player

#

no matter their yaw

tender shard
#

oh you need some fancy math for that, sin/cos

quaint mantle
#

yeah

#

which i dont know how to-do 😢

boreal topaz
#

@tender shard you are so rude, it's unbelievable

tender shard
remote swallow
#

hes correct though

tender shard
#

I only told you that this is not the correct channel

boreal topaz
#

lol

torn shuttle
#

r00d

#

and mean

tender shard
#

yeah I'm so evil

torn shuttle
#

I once went to pet alex and he bit me

tender shard
boreal topaz
#

yes in an unpleasant way is without politeness, it's perfect as it is

tender shard
quaint mantle
tender shard
#

yeah you'll definitely get a reply on the forums, that's a good idea

torn shuttle
#

I once asked alex how to rotate an armorstand and he shot my dog

tender shard
#

I remember that day

#

just a regular tuesday afternoon

torn shuttle
#

worst part

zealous osprey
torn shuttle
#

I still don't know how to rotate that armostand

tender shard
#

btw talking about dogs, my new dog bed arrived today

remote swallow
#

alex sleeps in a dog bed confirmed

torn shuttle
#

this man shoots my dog then goes on craigslist and buys my dog's bed so he can sleep on it

#

how messed up is that

tender shard
torn shuttle
tender shard
torn shuttle
#

are you a dwarf?

tender shard
#

the width

#

not the length

torn shuttle
#

are you a dwarf?

remote swallow
#

is it like 4cm long

tender shard
#

so I guess, no

#

but I cannot be sure

torn shuttle
#

there's only one way to make sure

tender shard
#

how?

#

instanceof?

torn shuttle
#

I'm going to try to fling you across a gap at a group of orcs

tender shard
#

hmmm

#

but where do orcs grow

#

maybe they are on amazon?

torn shuttle
#

pretty sure they're LARPing in the woods

tender shard
#

damn, 3.99€ for orcs

#

that's too much

torn shuttle
#

we just have to make sure to go to the right site or else we'll find the furry LARPers instead

#

and we might not survive that one

remote swallow
#

i bet theres a chance alex is german

tender shard
#

looking into my bio would help you to confirm this statement

#

:3

remote swallow
#

ive read that a few times on accident but i still dont remember

torn shuttle
#

imagine having a bio

tender shard
#

"on accident", yeah yeah... you wanted to creep on me

remote swallow
#

lmao

#

opinion on the new join date feature

tender shard
#

I like it

#

but my spigot join date is not correct

#

I'm here since 2020 or so

#

I once got banned, and once left myself, then rejoined the same day

#

?userinfo

undone axleBOT
#

Chilling in offline status

Joined Discord on

<t:1570988034>
(<t:1570988034:R>)

Joined this server on

<t:1659361247>
(<t:1659361247:R>)

Roles

<@&690689768996208726>, <@&695824786605080576>

remote swallow
#

it prob checks for most recent join date

#

not first joindate

tender shard
#

yeah, makes sense

molten hearth
#

?userinfo

undone axleBOT
#

Custom: ★━━─

Joined Discord on

<t:1563898055>
(<t:1563898055:R>)

Joined this server on

<t:1585758870>
(<t:1585758870:R>)

Role

<@&695824786605080576>

remote swallow
#

it probably doesnt track priors

tender shard
#

I mean...

molten hearth
#

suii

tender shard
torn shuttle
#

my upstairs neighbors are in a race and they don't even know it

tender shard
#

would be frightening if I wrote 128k messages within 2 months lol

torn shuttle
#

the race is will I go insane from their noise before I leave this place

tender shard
remote swallow
#

what would that become if you include sleeping for 8 hours per day

tender shard
#

lets see

#

2.22 messages per minute while awake

remote swallow
#

how would you send .22 of a message

#

is that just typing

tender shard
#

roughly by sending 10 messages in 4 minutes

remote swallow
#

doesnt seem to hard

#

especially that theres no character count per message

tender shard
#

yeah but remember that you have to do this straight for 2 months without pause

remote swallow
#

macro go

tender shard
#

that's cheating

#

I will notify Conclure about your attempt to cheat

tender shard
torn shuttle
#

yeah, it's a statement on bios

remote swallow
#

ill make an Orangutan do it

tender shard
#

yeah, fuck monkeys

#

they suck

tender shard
#

I stole the orangutan sentence from some other dude

remote swallow
#

smh

tender shard
#

his english wasnt good

#

he meant he allows it by saying yes

#

I was also a bit confused

remote swallow
#

by saying yes to that doesnt it mean he does mind that your stealing it

tender shard
#

I know, but

#

he clarified it later on

tender shard
#

"do you mind ...?" "yes"

#

that means that he minds it, e.g. he doesnt want it

#

or is my english stupid

remote swallow
#

he minds that your taking it

tender shard
#

I thought "do you mind" means something like "it annoys me"

remote swallow
#

doesnt it have a load of meanings

#

all based on context

tender shard
#

probably

#

I still wonder wtf is wrong with intelliJ's maven tool

#

why does it only say "null"

#

and yeah I already tried to invalidate caches etc

zealous osprey
#

Doesnt want to work today

tender shard
#

I mean, fair enough, it's saturday

remote swallow
#

gradle on top

#

also how are you eyes

#

do they still work

tender shard
#

they are fine, thanks

remote swallow
#

bet you use github light

tender shard
#

nope, there I got dark mode

remote swallow
#

good

tender shard
#

gotta enojy those warnings in dark mode

remote swallow
#

whats your opinion on paid plugin devs putting all of their code on github

tender shard
#

I do that too for my newer plugins

#

Eg stackresize

remote swallow
#

would love to know how you managed to make the inv unload and auto shulkers

tender shard
#

Invunload is on github

#

And its a mess

#

It was one of my first plugins

#

I wanted to rewrite it, but its working fine sooo

remote swallow
#

when i started coding i dropped myself in the deep end lol

tender shard
#

My most messy code is probably BestTools

remote swallow
#

just looked at inv unload, your main class is called main lmao

#

also so many unsorted files

tender shard
#

Yeah i didnt use packages earlier

#

As said, it was one of my first plugins lol

remote swallow
#

yeah

tender shard
#

But i dont see anything wrong in using Main as class name

remote swallow
#

i guess if theres no reason for other plugins to hook into it i guess its not that bad

tender shard
#

Well well

#

Thats exposed theough interfaces ofc

remote swallow
#

yeah

tender shard
#

so yeah, it's called Main, but people shouldnt use that, they should use AngelChestPlugin interface to hook into it

remote swallow
#

do you use your own lib for most things

tender shard
#

yes

#

otherwise it'd be a pain in the ass when a new NMS update gets released

remote swallow
#

i cba to make my own and why not use a premade one i use jishunacommonlib

#

quite good for commands

tender shard
#

although the documentation is shit

tender shard
#

wdym

remote swallow
#

you dont give us pre-typed gradle stuff

tender shard
#

here you go lol

tender shard
remote swallow
#

i could type it out

#

and convert it

#

but im lazy

tender shard
#

nexus can show the correct "thing" for every build system anyway

#

damn wtf is this

remote swallow
#

tf

#

kotlin is also shit

tender shard
#

agree

#

I know how to use it, I still dont like it

#

like wtf, parameter names BEFORE the type? that suggests that the name is more important than the type

remote swallow
#

tf

#

havent even used kotlin but from what ive heard from friends and things on yt its shit

hybrid spoke
#

kotlin is unnecressary

remote swallow
#

could probably agree on that

tender shard
#

or stuff like this:

public class Person {
  int age;
  void setAge(int newAge) {
    if(newAge < age) throw new IllegalArgumentException();
    age = newAge;
  }
}

and now I do this

myPerson.age = 27;

does this now set the field directly, or use the setter?

#

kotlin's behaviour for this is random

#

there isn't a way to know whether you access a field, or a method

remote swallow
#

opinion on lombok

tender shard
#

lombok has many useful features and many shitty ones. I mainly use it for @Getter and stuff, but that's basically it

remote swallow
#

your not welcome here anymore

manic furnace
#

I'm making a small library which uses nms, but each time when I want to install it to the local repository, I get this error:

cannot access com.mojang.authlib.GameProfile
torn shuttle
#

lombok getters are pretty good

tender shard
#

because I rather have a 30 lines class than a 150 lines class

hybrid spoke
tender shard
torn shuttle
#

if I was using normal getters my config initialization classes would be 3000+ lines long

manic furnace
#

Oh 8
I think this is the problem

tender shard
#

I wonder why it says "101+ matches"

#

why is 101 the limit lol

#

why not "100+ matches" or "127 matches"

#

they can, if you don't need to support 1.16

remote swallow
#

minecraft should delete all versions older than the latest stable

tender shard
#

there are still many people using java 8 so I still compile for that :/

remote swallow
#

keep 1.19

#

delete all future too

manic furnace
#

Ok turning the version up to 17 fixed it

tender shard
#

md_5 could have fixed this by not releasing a log4j fix for older versions

#

well I compile with java 17 but for java 8 lol

#

I wonder how many people have seen this screen

#

true, but almost everything that java 17 adds in addition to java 8 is just "conventient features" that can easily be done without those

remote swallow
#

how many people do you get in your dms asking for you to help with easy as fuck things

tender shard
#

I mean, sure, java 17 is much better, but it doesn't add anything "really needed" like e.g. try with resources, enums, etc

remote swallow
#

i remember when someone was like "YOU CODE?" "CAN YOU TEACH ME" when they couldnt even download a plugin off spigot

tender shard
#

lmao

#

yeah some people are a bit... erm... slow

remote swallow
#

then recently they came to me asking about skript

#

had to repeat myself around 5 times before they got the message

torn shuttle
#

so I think I've discovered a pretty funny bug

#

I have this whole complex structure for my custom scripts

#

gave me a headache for 4 days

#

because I had to negotiate with my own designs from 5 years ago

tender shard
#

yeah sure, it's quite handy, but you could also just do the old way

        if(entity instanceof ArmorStand) {
            ArmorStand armorStand = (ArmorStand) entity;
            //( do stuff
        }

So sure, pattern matching is nice, but it's not needed at all

torn shuttle
#

today I realize, massive memory leak

tender shard
#

true

#

I also like how it works after returning

torn shuttle
#

I spend all morning trying to find which part of the script is bugged

tender shard
#

e.g. you can also do this

if(!(entity instanceof ArmorStand armorStand)) return;
armorStand.setWhatEver(...);
torn shuttle
#

now I'm almost certain it's when the boss dies, you know, when nothing is meant to be running lol

remote swallow
#

did you hear about the leaked mobvote mobs

tender shard
#

I'd rather see GTA 6 finally being released D:

#

my graphics card is bored all the time, GTA 6 when?!?!

#

tbh I havent looked at it

#

also I am pretty sure that rockstar "leaked" it themselves for PR or something lol

remote swallow
#

would it surprise you if the person leaking this is mojang creating this account and posting it to get people hyped

tender shard
#

I mean, noone can confirm or deny it anyway

remote swallow
#

true

tender shard
#

oh ok

torn shuttle
#

watch him get the electric chair

molten hearth
remote swallow
#

bet the really annoying mob will get added

molten hearth
#

me still waiting for copper golems

iron glade
#

they should add skunks

molten hearth
#

so I can finally find a use for copper

tender shard
#

they should finally add booze to MC

remote swallow
#

yes

tender shard
#

a brewing block

molten hearth
#

apart from fucking lightning rods and funi zoom

tender shard
#

add hops, wheat, and water, and you get a beer

#

add garlic too and you get a disgusting beer

remote swallow
#

would love to see an end update

torn shuttle
#

they should appeal to the youth and add vapes

tender shard
#

lol

molten hearth
#

I think they should add more structures in the world

remote swallow
#

its been like 8 versions since we got one

molten hearth
#

or at least add a new type of generation with more structures

#

all we have is Villages/With Huts/Shipwrecks/Igloos

tender shard
#

fun fact: there are more release versions released after 1.8 than before 1.8, yet some people still use 1.8 because they are a bit weird

molten hearth
#

oh and woodland mansions I never find those tho lol

remote swallow
tender shard
#

that's why I said "release versions" 😄

molten hearth
#

I am a pvp enjoyer

remote swallow
#

also does that include snapshots

#

question got answered before i sent it

tender shard
iron glade
tender shard
#

thank god it stopped meanwhile

molten hearth
#

someone just needs to rewrite the 1.8 api to use the 1.19 one so everything works again ggwp

#

but then 1.8 plugins stop working 🤔

#

nahh

#

pvp down the drain

remote swallow
#

someone should find another really game breaking bug

#

that applyies to all version

#

s

#

then we just force md_5 not to update 1.8

molten hearth
#

it is like full auto and semi-auto, full auto is just more fun

remote swallow
#

and any other fork

manic furnace
#

Im using the remapped version of nms in my api that im making, but when I run the plugin I get the error that It can't fin the nms-classe (because they have the remapped names, but I already reobfuscate them!)

torn shuttle
#

something's wrong I can feel it

undone axleBOT
remote swallow
#

cant help without code

manic furnace
tender shard
#

btw you cannot cast a Bukkit Player to a ServerPlayer

#
ServerPlayer nmsPlayer = (ServerPlayer) ((CraftPlayer)bukkitPlayer).getHandle();
#

that's how to get a ServerPlayer from a Bukkit Player ^

iron glade
#

Ayo can someone recommend a good (free) Discord Bot host?

tender shard
#

what bot? a .jar you wrote yourself?

iron glade
#

ye

tender shard
#

you could just get your free oracle cloud server and run it yourself

iron glade
#

that exists? good to know

tender shard
#

yep

iron glade
#

ty, will check it out!

tender shard
#

are you using maven?

manic furnace
#

yes

tender shard
#

how did you compile?

manic furnace
#

I install it in the local repo

tender shard
#

how? using mvn install?

manic furnace
#

yes

tender shard
#

?paste your pom

undone axleBOT
manic furnace
tender shard
#

you messed up the remap execution phase

#

why did you set it to install?

#

it's supposed to be set to package

manic furnace
#

Because I dont package

tender shard
#

ofc you package

manic furnace
#

I dont runn it

tender shard
#

otherwise there wouldnt be any jar to install

#

set the <phase> to package

#

in all <executions>

remote swallow
#

isnt the normal maven build command mvn clean package

tender shard
#

or mvn clean install

#

or mvn clean package install

#

install automatically includes package

#

you want to get a Bukkit object, without spawning it?

#

what do you need it for?

#

do you have any NMS entity already?

#

you need to create an NMS entity, then you can just do getBukkitEntity

#
        Entity nmsEntity = new Boat(/* World */null, /* Coordinates */0, 0, 0);
        org.bukkit.entity.Entity bukkitEntity = nmsEntity.getBukkitEntity();
#

this will not spawn it yet

torn shuttle
#

ok well I did find a weird bug but it was with my startup script, somehow

#

forgot to define how much mem I wanted to allocate, it said it was doing 4gb but it was showing stats for 2gb somehow?

tender shard
#

if you wanna spawn it later, you can use ServerLevel#addFreshEntity:

        Entity nmsEntity = new Boat(/* World */null, /* Coordinates */0, 0, 0);
        org.bukkit.entity.Entity bukkitEntity = nmsEntity.getBukkitEntity();
        ServerLevel level = ((CraftWorld)Bukkit.getWorld("world")).getHandle();
        level.addFreshEntity(nmsEntity);
untold jewel
#

So I have this

uuid:
balance: number

and I want to sort through every players balance and get them in order. How would I do this?

#

in yml

tender shard
#

You can use a HashMap<UUID, Double> to read all balances, then sort them by value?

untold jewel
#

it's in a config

iron glade
#

bruh moment

tender shard
#

You read the config into a hashmap

#

Then sort it

manic furnace
#

Im changing the skin of an Player like this:

        ServerPlayer serverPlayer = (((CraftPlayer) player)).getHandle();
        GameProfile gameProfile = serverPlayer.getGameProfile();

        for (Player p : Bukkit.getOnlinePlayers()){
            System.out.println("Sent");
            (((CraftPlayer) p)).getHandle().connection.send(new ClientboundPlayerInfoPacket(ClientboundPlayerInfoPacket.Action.REMOVE_PLAYER, serverPlayer));
        }

        gameProfile.getProperties().removeAll("textures");
        Skin skin = skins.get(skinName);
        Property property = new Property("textures", skin.getData(), skin.getSignature());
        gameProfile.getProperties().put("textures", property);


        for (Player p : Bukkit.getOnlinePlayers()){
            System.out.println("Sent");
            (((CraftPlayer) p)).getHandle().connection.send(new ClientboundPlayerInfoPacket(ClientboundPlayerInfoPacket.Action.ADD_PLAYER, serverPlayer));
        }

But the Skin only changes on Tab

tender shard
#

you have to send an EntityRemove and EntityAdd packet to all players

#

oh wait

#

you did that

#

nvm

#

lol

manic furnace
#

So what can I do ?

tender shard
# untold jewel it's in a config

read your config into a Map:

        Map<UUID, Double> balancesPerPlayer = new HashMap<>();
        for(String uuidAsString : getConfig().getKeys(false)) {
            UUID uuid = UUID.fromString(uuidAsString);
            Double balance = getConfig().getDouble(uuidAsString + ".balance", 0);
            balancesPerPlayer.put(uuid, balance);
        }

then sort the map by values, see the stackoverflow link I sent above

gray merlin
#

Can we make mobs with custom animations here or is it modded only?

torn shuttle
#

closest you can get is something like modelengine

#

which is rotating armorstands

tender shard
#

yeah, either dirty workarounds, or client mods

torn shuttle
#

I managed to make a boss script that uses 2gb of ram when it switches phases wth

gray merlin
#

Oh.

torn shuttle
#

maybe I shouldn't cache these hundreds of particles lol

gray merlin
#

To modded I go lol

#

You'd bw surprised at what armourstand art can do

#

Yeah but now I'm still sharing this

#

Because it's stupid pretty

torn shuttle
#

no you're not

#

no you're not

#

yes I am

#

I mean, fuck

#

reread your message

#

the one where you said you are looking to modify a mobs model while keeping the old model

gray merlin
#

I've been trying to make sense of it but I really can't, what do you mean "modifying the model while keeping the old model?" That's the same as "peeling an orange while keeping the skin"

#

Or... "Killing a sheep whilst keeping it alive"

#

Ahh that makes more sense

torn shuttle
#

you need to learn the difference between modifying and cloning

gray merlin
#

IIRC there's this custom entity making concept that fits perfectly into what you wanna do

#

One sec lemme try to find the article

tender shard
#

reflection?

#

what did you do?

#

and how did you create the entity without spawning it?

gray merlin
#

There's a way to do that without reflection

#

But it uses some pretty obscure nms that I don't have the patience or time to explain lol

torn shuttle
#

where did that even come from

neon brook
#

Howdy, I'm trying to send a message to the player's action bar in the latest 1.19.2 build but I get this error:
java.lang.NoSuchMethodError: 'org.bukkit.entity.Player$Spigot org.bukkit.entity.Player.spigot()'
When trying to send this:
p.spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText(message));
message is just a normal string

glossy venture
#

rather CraftBukkit or another fork below spigot

#

the Spigot API is not implemented

neon brook
#

ah yes, i'm suing bukkit

#

So what can I do ?

glossy venture
#

upgrade to Spigot

neon brook
glossy venture
#

well thats the only way to use the spigot api

#

just disable some shit in the config idk

tender shard
#

wtf

glossy venture
#

yeah

#

lmao

tender shard
#

CraftBukkit isn't meant to be run since like 8 years or so

neon brook
#

You could use Bukkit.getOnlinePlayers() to get all the players and Bukkit.getOnlinePlayers().size() just generate a random number and get the player at the generated index. Idk if I'm being clear.

neon brook
tender shard
#

you could of course also send action bar messages with craftbukkit, but that requires NMS

remote swallow
#

if you want vanilla use vanilla server

young knoll
#

Or consider fabric

neon brook
neon brook
young knoll
#

What does spigot actually change anyway

tender shard
#

I also wonder

young knoll
#

I know it has some settings, but iirc they match vanilla by default

#

Or close to it

vocal cloud
#

I don't believe spigot does anything big. That's why paper exists

neon brook
#

Ohh, my bad, I used paper 🤦 , spigot doesn't really change anything

#

big 🤦

torn shuttle
#

oh my god

neon brook
#

x)

torn shuttle
#

I just randomly found the dumbest mem leak

#

it has nothing to do with my cool scripts, I forgot to do a check to see if a world allows mobs to be spawned as of an update a while ago

#

seems like it tried to spawn them 7 million times?

young knoll
#

Sounds good to me

torn shuttle
#

wait not I didn't, I can see where I took that into account, wth

tall dragon
#

i am so confused right now. im using java 17. which contains Files#writeString but somehow intellij thinks i am using java 8. but it also knows i am using java 17....
it suggests me to change Files.write(path, gson.toJson(settings).getBytes(StandardCharsets.UTF_8)); this to Files#writeString but when i do so it errors out....

#
    <properties>
        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>
    </properties>

ive got this in my pom

#

so that should do it

#

ide getting mad

#

this is also right

#

as well as the module's language level

#

since when

#

ive used it tons before

#

with 2 parameters...

#

the third one is optional

#

as you can see for some weird ass reason its using java 8. even though that has not been set in my project anywhere

young knoll
#

Did you try restarting

tall dragon
#

multiple times

#

its also worth noting this is happening in a sub module

#

but the parent module does not contain anything that could overwrite it to use java 8 either

#

also invalidated caches multiple times

tender shard
tall dragon
manic furnace
#

How can you change the skin of an player in 1.19.1?

tall dragon
#

thats so weird man

tender shard
manic furnace
#

No I didn't

tender shard
manic furnace
#

is ther no way to change your own skin

tender shard
#

I dont think there's any way to change your own skin

molten hearth
#

damn thats scuffed

torn shuttle
#

have you tried spray tan?

young knoll
#

There should be

#

There was back in the day at least

molten hearth
tall dragon
#

@tender shard that did it....

#

thats super weird man

young knoll
#

My next suggestion was going to be a blood sacrifice

tall dragon
#

that wouldve done it too prolly

manic furnace
#

Does that change it for other players to?

grim ice
#

what is the difference between

#

256 bit encryption and 4096 bit RSA encryption

#

is the "256 bit encryption" we know, called AES 256 bit encryption?

#

since i heard smth like that

torn shuttle
#

ok I finally discovered the issue, I managed to recursively schedule a task

molten hearth
#

well you see one is AES one is RSA

torn shuttle
#

presumably because I was halfway into a coma while writing that bit of code

molten hearth
#

AES is symmetric and RSA is asymmetric, the numbers are the key size

torn shuttle
#

rsa is bae

molten hearth
#

you generally use AES if you just want to encrypt your data and you use RSA if you want 2 users to be able to access something without anyone else having access

manic furnace
#

How can I get the player-profile

tender shard
manic furnace
#

How can I get it from an Online-Player?

tender shard
young knoll
#

(Player extends OfflinePlayer)

manic furnace
#

I mean with the PlayerTextures

tender shard
torn shuttle
#

huh I'm pretty surprised, the system I made turned out pretty dang efficient

echo basalt
#

impossible

icy beacon
#

&b- Use the following command: &6[command:/town invite <player>]/town invite <player name>[/command]
how would I detect the command inside of the [command] tag's body, and then encapsulate the text inside the tag as a TextComponent? i thought of starting with regex, but i don't know what exactly to do

ivory sleet
#

Hi, do you know how I can modify this code so that it is for custom skull with base 64 plz?

    public static ItemStack createItem(Material material, int amount, String displayName, List<String> lore) {
        ItemStack itemStack = new ItemStack(material, amount);
        ItemMeta itemMeta = itemStack.getItemMeta();
        itemMeta.setDisplayName(displayName);
        itemMeta.setLore(lore);
        itemStack.setItemMeta(itemMeta);
        return itemStack;
    }
hybrid pulsar
#
public Player getRandomPlayer() {
      Random random = new Random();
      List<Player> players = new ArrayList<>(Bukkit.getOnlinePlayers());
      return players.get(random.nextInt(players.size()));
}
vocal cloud
tender shard
echo basalt
#

why are you initializing randoms

tender shard
#

yeah just use ThreadLocalRandom.current()

echo basalt
#

you can change your own skin

tender shard
#

\[command:(.*?)\]

#

match 1 group 1 will be the command

icy beacon
#

yep, I too was thinking of regex, but after capturing the command I don't know where to go next, when do I detect the body of the tag?

tender shard
#

(the green part)

echo basalt
#
public static void changeSkin(Player player, Property property) {
    ServerPlayer nmsPlayer = ((CraftPlayer) player).getHandle();
    ServerLevel nmsWorld = nmsPlayer.getLevel();

    GameProfile profile = nmsPlayer.getGameProfile();
    ServerGamePacketListenerImpl connection = nmsPlayer.connection;

    broadcastPacket(new ClientboundPlayerInfoPacket(ClientboundPlayerInfoPacket.Action.REMOVE_PLAYER, nmsPlayer));
        // connection.send(new ClientboundPlayerInfoPacket(ClientboundPlayerInfoPacket.Action.REMOVE_PLAYER, nmsPlayer));

    PropertyMap properties = profile.getProperties();
    properties.removeAll("textures");
    properties.put("textures", property);

    broadcastPacket(new ClientboundPlayerInfoPacket(ClientboundPlayerInfoPacket.Action.ADD_PLAYER, nmsPlayer));
    // connection.send(new ClientboundPlayerInfoPacket(ClientboundPlayerInfoPacket.Action.ADD_PLAYER, nmsPlayer));
    connection.send(new ClientboundRespawnPacket(
            nmsWorld.dimensionTypeRegistration(),
            nmsWorld.dimension(),
            BiomeManager.obfuscateSeed(nmsWorld.getSeed()),
            nmsPlayer.gameMode.getGameModeForPlayer(),
            nmsPlayer.gameMode.getPreviousGameModeForPlayer(),
            nmsWorld.isDebug(),
            nmsWorld.isFlat(),
            true
        )
    );
}

private static void broadcastPacket(Packet<?> packet) {
    for (Player player : Bukkit.getOnlinePlayers()) {
        ((CraftPlayer) player).getHandle().connection.send(packet);
    }
}
#

it does a tiny flicker on the client but that's a rendering issue

#

you could give blindness for 10 ticks to solve that

tender shard
#

match 1 group 1 will be the command, match 1 group 2 will be the "body"

icy beacon
#

ohh yes i forgot there could be multiple captures 😛

young knoll
icy beacon
#

thanks Alex!

tender shard
#

np!

echo basalt
tender shard
young knoll
#

As they should

tender shard
#

but they haven't yet

young knoll
#

Well

#

Make your plugin send their server IP directly to Putin if they are on old versions

tender shard
#

still got over 100 servers on 1.16 D:

echo basalt
#

put an embed zip bomb on your plugin that only triggers if you're on 1.8

young knoll
#

Perfect

tender shard
#

I just return in onEnable when not on version X or later

young knoll
#

Should call it shameMode

tender shard
#

it's so ugly, I love it

echo basalt
#

´why do you use light theme

tender shard
#

why do you use dark theme

echo basalt
#

you're making me physically aggressive

echo basalt
#

Easy on the eyes

tender shard
#

dont you have windows? do you live in the basement

echo basalt
#

I have my blinds all the way down

tender shard
#

I dont

echo basalt
#

then you have tons of light, you could use some contrast

young knoll
#

What if you’re programming at midnight

#

Yknow

#

As one does

echo basalt
#

midnight lol

#

What if you're programming at 4:30am

young knoll
#

What if you live in the arctic and it’s dark for 6 months

tender shard
#

Idk my eyes can handle a monitor with normal brightness

echo basalt
#

I got monitor on like 20% brightness

young knoll
#

Mines on min

echo basalt
#

I used to use my old monitor at 0%

young knoll
#

Still too bright

echo basalt
#

I really like to tune my monitors with minimal brightness, high contrast and tons of sharpness

#

then run cleartype

#

so that text is instantly readable but nothing is too sharp

tender shard
#

Ok

#

Ok

#

I can read it just fine

#

Ok

gray merlin
#

Is there a way to play a custom sound?

young knoll
#

Yes

#

There’s a playSound that takes a string rather than enum

eternal night
#

presumably the block at which the skull is that you wanna change ?

young knoll
#

Mhm

ivory sleet
gray merlin
#

I can now make ZA WARUDO

young knoll
ivory sleet
gray merlin
#

Can I listen to Event?

vocal cloud
#

Why would you want to

gray merlin
#

Because why not?

young knoll
#

No

#

Not the traditional way anyway

gray merlin
#

I see

#

Ehh that's pain

icy beacon
#

considering the variety of events happening, it'd probably be called about every tick

#

just use a runnable

young knoll
#

Way more than every tick

vocal cloud
#

There is good reason why they don't let you listen to it KEKLEO

gray merlin
#

Welp

ivory sleet
#

Hum, i have another problème x)
Can you help me?

gray merlin
#

I wanna cancel all events.

ivory sleet
young knoll
#

You want to cancel all events…

#

Well 1. Not all events are cancellable

vocal cloud
#

Then don't use Spigot 🤡

young knoll
#
  1. Why
crimson terrace
#

If I have a dependency that is written in kotlin is it possible to use that when programming in java?

crimson terrace
#

nice

crisp forum
#

you can call Java from Kotlin and Kotlin from Java

gray merlin
crisp forum
#

I'm trying to add com.github.DV8FromTheWorld:JDA:v5.0.0-alpha.20 library to the plugin, but it throws ould not find artifact com.github.DV8FromTheWorld:JDA🫙v5.0.0-alpha.20 in central (https://repo.maven.apache.org/maven2) error on startup, is there any way to add repos of it?

gray merlin
fluid river
#

who tagged me

#

i see

mellow pebble
#

i have this piece of code and for some reason password1 returns to be null can someone help me out ?

spice shoal
#

Some servers have the ability to see the cosmetics of the lunar client or badlion despite the server is in online mode: false
How i can do that? pls help me guys

worldly ingot
#

Lunar has an API

#

Rather, they have a messaging protocol and a Bukkit API to wrap around said protocol

hard socket
#

why is this showing?

tardy delta
#

didnt shade it?

#

what are you evn doin

eternal night
#

smells like plugman

spice shoal
hard socket
#

?

worldly ingot
#

It's a plugin. Drag and drop into your plugins folder, then have your plugin use its methods

spice shoal
#

thanks

worldly ingot
#

They have a .jar file on the releases tab

#

(on the right side)

remote swallow
#

intellij docs are really unhelpful, it defaults to gradle 7.3.3 for some reason and i cant find where to change it

worldly ingot
#

Are you using a gradle wrapper by chance?

spice shoal
#

So I just put it on the real server?

worldly ingot
#

Yes

mental nymph
#

how to log message without prefix?

spice shoal
#

ok thanks men

remote swallow
worldly ingot
#

You can upgrade the wrapper via command line

#

./gradlew wrapper --gradle-version 7.5.1

remote swallow
#

tyty

worldly ingot
#

I don't know if IJ will recognize that. It should. But that will at least upgrade the wrapper you're using

fossil lily
mental nymph
spice shoal
worldly ingot
#

Oh you're asking a completely different question than I thought. I thought you wanted to know what cosmetics a player had equipped via code

spice shoal
#

It happens. Can you help me with that? : D

#

@worldly ingot

tardy delta
#

my school pc has 50gigs storage and its already half full lol

echo basalt
#

schools here give you a network drive with 10gb

#

that you can access with your user across all computers

#

it's absolute garbage lol

#

at least the EU-issued school laptops have like a 120gb ssd

young knoll
#

Distance

#

32 blocks is the soft despawn range

#

128 is the hard one

#

Yes

tardy delta
young knoll
#

Also most friendly mobs don’t despawn

tardy delta
#

savning everything on my laptop now

vivid skiff
#

What is causing this error and how can i fix it?

        at me.gurwi.FiftyMagazzino.onEnable(FiftyMagazzino.java:115) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.5.jar:git-Paper-794]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[patched_1.16.5.jar:git-Paper-794]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.16.5.jar:git-Paper-794]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:518) ~[patched_1.16.5.jar:git-Paper-794]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:432) ~[patched_1.16.5.jar:git-Paper-794]
        at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:599) ~[patched_1.16.5.jar:git-Paper-794]
        at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:298) ~[patched_1.16.5.jar:git-Paper-794]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1074) ~[patched_1.16.5.jar:git-Paper-794]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Paper-794]
        at java.lang.Thread.run(Thread.java:829) [?:?]```
tender shard
#

what's FiftyMagazzino line 115?

tardy delta
#

fuck

#

should type faster

vivid skiff
tardy delta
#

imagine not using a command framework

errant narwhal
#

is there have any api to play music in minecraft with plugin??

tender shard
#

World#playSound or Player#playSound

#

ofc it can only play music included in the resource pack, or builtin sounds

errant narwhal
#

oh

tender shard
#

there's also stuff like NoteblockAPI

#

it's basically like a cheap-ass version of midi files lol

#

but at least it doesnt require any resource pack

errant narwhal
#

nice

#

thank you

#

thats whats i need

tender shard
#

np

charred blaze
#
        for (int i = 0; i < sityvebi.length; i++) {
            System.out.println(i);
            Player pingedPlayer = Bukkit.getPlayer(sityvebi[i]);
            if (!(pingedPlayer == null)) {
                pingedPlayer.getWorld().playSound(pingedPlayer.getLocation(), Sound.BLOCK_NOTE_PLING, 1, 2);
            }
        }```
What am i doing wrong? when i type someone's name only in chat like "GreenedDev" it sends me a sound but if i do "GreenedDev + text" it doesnt
tender shard
#

why do you split the message by : instead of by space?

charred blaze
#

uh

#

wtf

#

im dumb

#

thanks

tender shard
#

np 🙂

tardy delta
#

also use Bukkit.getPlayerExact to get a player on name

tender shard
#

I actually think the normal getPlayer is better here

tender shard
#

e.g. people might just so "yo mfn where you at" and obviously they talk to me

tardy delta
#

its based on prev stored player names

tender shard
#

I always required people to use @ to ping

charred blaze
tardy delta
#

nvm

#

wtf copilot

tender shard
kindred valley
#

too much cases