#help-development

1 messages · Page 291 of 1

vale ember
#

is there a way to get item's default name if there is no display name (e.g. "Diamond Sword" for diamond sword)?

tender shard
#

you'd need to have the language .json file

#

e.g. for me it would be called "Diamantschwert" instead

vale ember
#

I just wanna append a string to the name, how can i do that?

remote swallow
#

if you need a name format Material.SOMETHING

tender shard
#

but that only works for english and not all items IIRC

#

I think some items have a different name than their MATERIAL

remote swallow
#

yeah

#

thats the main problem

tender shard
#

although I dont remember any right now

remote swallow
#

isnt there an I18N method or something like that for them

tender shard
#

you need the client's translation json files

remote swallow
#

ah

tender shard
remote swallow
#

does the server have language json?

#

i thought that was client

tender shard
#

yeah

#

you have to unzip your client .jar, get the translation .json and upload it to the server lol

#

quite annoying

remote swallow
#

ah yeah

#

didnt one of the hypixel make a website for that

#

devs**

tender shard
#

idk

#

if you find it, send it pls

remote swallow
#

one serc

vale ember
#

i can embed the language .json into the plugin resources or query it at runtime from web right?

remote swallow
#

this

tender shard
#

that's why I make the admins upload it themselves

livid dove
#

I'm brainstorming a way to edit every it in the game at once...

We ha da huge exploit that was carchdd waaaay too late to reser.

#

So we need to delete all the gold blocks and enchanted tools

livid dove
#

Every one of of

#

*of them

eternal night
#

every item I presume

tender shard
#

every one of what?

livid dove
#

Jesus this phone lol

tender shard
#

lol phone keyboards suck

eternal night
#

We ha da huge exploit that was carchdd waaaay too late to reser.
hurt my brain

remote swallow
#

i think its ifne

livid dove
#

Every Gold Block and enchanted item

remote swallow
#

wrong link

tender shard
vale ember
#

so like

"https://assets.mcasset.cloud/1.19.2/assets/minecraft/lang/%s.json".formatted(player.getLocale())

remote swallow
#

they have every language

remote swallow
vale ember
#

what;s the difference?

remote swallow
#

oh wait

#

i thought that was the popup thing

#

yeah that should work lol

tender shard
#

formatted()?

#

isn't it a huge json file?

vale ember
#

the url string

#

not json file

tender shard
#

oooh

remote swallow
#

but you might get timed out because github requests

tender shard
#

I am stupid

delicate oak
#

@tender shard
Do you know what do I need to change to show the messages for everyone (global chat) not for only the for the command sender?

remote swallow
#

use Bukkit.broadcastMessage or loop over online players

tender shard
#

Bukkit.broadcastMessage

delicate oak
#

ty.

humble tulip
tender shard
fierce whale
#

I changed package name in Intellij but It wasn't changed after complied in jar file
Does anyone know how to fix it?

humble tulip
tender shard
#

oh my bad

#

if you only need it for one version, you can also easily load player files with like 2 codes of NMS

#

but yeah NBTAPI is probably easier

quiet ice
#

I.e. have a Chat component consisting of a translation component and a literal string

#

However for that you will either need NMS or Paper

remote swallow
#

does minimessage components require paper for that

vale ember
#

that's worth considering but i don't really wanna do nms

remote swallow
#

if not just shade minimessages in

quiet ice
#

You can apply minimessage stuff to itemstacks?

remote swallow
#

ah

#

not in spigot

#

you could convert it to strings

#

just use minimessage for the translation

quiet ice
#

That would defeat the while point

#

Unless ...

#

?jd-s

undone axleBOT
summer agate
tender shard
remote swallow
#

he joined paper sometime after minimessage though

quiet ice
tender shard
#

however you can easily get the translation key using reflection, version independent

nimble hill
#

Is there any way that you can specify a plugin is to unload before you if its in the environment? Or is it a ffa? Or are there some orders im missing

rotund ravine
#

?stash

undone axleBOT
tender shard
#

is there a way to turn a bukkit EntityType into an NMS EntityType without doing it by it's enum name?

analog vapor
#

It worked fine on 1.12.2, it broke when we moved to 1.18.2

golden turret
#

when a falling block falls and drops the item is there a way to detect that the item that is spawning is from a falling block?

glossy venture
#

how do i listen for and receive this data on the bukkit side (this code is on the BungeeCord proxy)

analog vapor
#

@remote swallow is there a different way to mention blocks? Because everything works fine other than the soft blocks

rotund ravine
tender shard
#

can someone explain to me how to compile CraftBukkit? I added some methods and it won't compile because e.g. of this. I have not touched this class, btw

tender shard
remote swallow
#

oh that was happening to other people

#

@opal juniper might know

tender shard
#

I have tried to contribute to spigot so many times, but it simply will never compile

rotund ravine
#

?stash

undone axleBOT
remote swallow
tender shard
#

it's full of useless pictures and the only important part is at the very bottom lmao

opal juniper
#

very true

remote swallow
#

thats normally most spigot wikis ive found

tender shard
#

I'll try again when buildtools is done

remote swallow
#

its all loads of pictures or useless stuff

#

like the scheduler wiki

tender shard
#

yeah I mean, as if anyone didn't know how to fork a repo lmao

analog vapor
tender shard
#

people who don't know how to click on "fork" will probably not contribute to craftbukkit lol

remote swallow
analog vapor
#

yeah

remote swallow
#

one sec

#

?stash

undone axleBOT
remote swallow
analog vapor
remote swallow
#

to me it looks like that sections means those blocks can be broke in a siege

analog vapor
#

no all are capitalised, and when we initiate siege they do not break

remote swallow
#

one moment

quiet ice
#

So if you alter the loading order you alter the unloading order - although that can have issues in in itself

nimble hill
#

:)

#

Thats what i figures

#

Unless something is messing with the turn order

next stratus
#

Hey, I've come across a real strange bug. If I run the method in the Java main method the code works perfectly fine, but if I try using onLoad or onEnable neither work correctly. What on earth is going on 🤨

remote swallow
#

?paste the class

undone axleBOT
eternal oxide
#

plugins do not use the Java Main method

hazy parrot
#

I hope you are not using main(args)

next stratus
tender shard
#

why the heck does it mark "item stack" in green lol

cold field
#

CTRL - F?

opal juniper
#

^

next stratus
#

Hm?

remote swallow
#

that does nothing to a server

tender shard
#

but yeah it does look like search

analog vapor
next stratus
remote swallow
analog vapor
#

ah okk

next stratus
#

I tried in onEnable also

remote swallow
hazy parrot
eternal oxide
remote swallow
tender shard
#

i love it when people only paste one method instead of the class lol

analog vapor
next stratus
#

Sorry 😛

remote swallow
remote swallow
#

i cant find anything in config

next stratus
remote swallow
#

because thats an ide

eternal oxide
#

yes, but in teh ide it's not a plugin

analog vapor
remote swallow
next stratus
#

I mean, I thought if it was working in the ide it should work fine on the server also no?

#

I mean I moved it to onEnable ofc

eternal oxide
#

main is never called by a plugin on a server

next stratus
#

I moved stuff to onEnable and onLoad with no luck

eternal oxide
#

yes, in onEnable it will work, IF your plugin is even working

#

check servers latest.log for any plugin errors

next stratus
#

there's no logs that's the fun bit

warm dagger
#

Hello is there an api for voice recognition

eternal oxide
#

probably one about can;t find a plugin.yml or can;t find main

next stratus
#

[15:32:59 INFO]: [IceCore] hi from onLoad
[15:32:59 INFO]: [IceCore] [STDOUT] loaded classSet: []
[15:32:59 INFO]: [IceCore] [STDOUT] loaded classSet: []
[15:32:59 INFO]: [IceCore] []

eternal oxide
#

there are always logs

next stratus
#

it just says that where as in the IDE that classSet isn't empty

analog vapor
#

strange

remote swallow
#

yeah

#

this is the main reason i never use gp

#

docs are awful

#

config is documented

#

isnt**

analog vapor
#

Sadly thats what the server relies on 😭

next stratus
#

I'm so confused upon why it works fine with the main but onEnable seems to be handling it differently lol

hazy parrot
#

are you just running it from ide

#

because that surely wont work

next stratus
#

No, I'm exporting to a local test server and testing from there

remote swallow
remote swallow
#

ah

trim creek
#

I used to code all day

remote swallow
next stratus
trim creek
vale ember
#

is there a way of getting the default attack damage and speed of a weapon (e.g. Material.DIAMOND_SWORD) or do i have to hard-code those values?

remote swallow
#

thats stored in nbt iirc

remote swallow
#

put the code you want to run when the plugin gets started in onEnable

#

add a debug message if you want

next stratus
#

i'm going through the debug message system now lol so confused upon where the issue is

trim creek
#

to debug a message just send a message to the console

#

e.g Bukkit.getLogger().info("gugugágá");

remote swallow
#

brodcast better imo

trim creek
#

who cares

#

both works

#

XD

#

and also

#

why broadcast a plugin load to the whole server? :DD

fluid river
#

getServer().getConsoleSender().sendMessage("§aHello bro"); 💀

trim creek
#

playersa should nota see-a plugins-a

remote swallow
#

because i would never have debug messages on a public servers

#

most debug messages arent ever left in a plugin

#

i havent had a plugin with config debug messages

#

that i would use logger for

trim creek
#

"testing it on a local server" he said

#

ergo

#

he can use debugs

#

and just remove them after the plugin is complete

remote swallow
#

yeah

analog vapor
#

@remote swallow how do I find the trigger

remote swallow
#

of

fluid river
next stratus
fluid river
#

and use trigger

analog vapor
humble tulip
#

Just have a debuglogger that reads a value from config ti determine whether it should enable

remote swallow
analog vapor
fluid river
#

like rainbow six

fluid river
analog vapor
#

Like you asked where the trigger to initiate siege

remote swallow
#

ohhh

#

i couldnt find a config option to enabl eit

analog vapor
#

enable it?

remote swallow
#

and just doing /siege says its not enabled

fluid river
next stratus
#

I'm so confused upon why it works on the main method, but in spigot it doesn't load. Is there possibly a bug within spigot what's breaking this?

analog vapor
remote swallow
fluid river
#

D trigger

analog vapor
remote swallow
#

the addonds class

fallow violet
#

its d latch isnt it?

next stratus
#

It allows me to load addons in using our annotation system

fluid river
#

spigot loads classes own way

remote swallow
fluid river
#

that's why plugins don't have main()

next stratus
#

But it's strange it breaks when it gets to spigot and works fine in plain java

analog vapor
remote swallow
#

thats plugin.yml

#

thats just for a command

analog vapor
#

ikik

fallow violet
#

lol

remote swallow
#

i just get this if i attempt to use it

analog vapor
#

im just sobbing because thats all i could find, boutta dig deeper

remote swallow
#

fair lol

analog vapor
#

wait

next stratus
#

But something can't be right for it to work with no spigot then break with spigot

analog vapor
#

@remote swallow add the world name

remote swallow
#

ohhh

#

from how this config looks does the breakable blocks in siege mean those can be broke in a siege?

analog vapor
#

that are present in a claim

remote swallow
#

it looks like a gp bug

analog vapor
#

so theres no way to fix it?

remote swallow
#

without knowing what causes it not really

humble tulip
#

lol

#

you need to have 2 spaces before the -

fluid river
#

async for example(spigot has exception handling for async things tho)

remote swallow
humble tulip
#

yeah well it's formatted wrong

fossil pike
#

anyone know how to fix this error?

Executing pre-compile tasks...
Running 'before' tasks
Checking sources
Parsing java… [spigot]
java: error: release version 19 not supported
Checking dependencies… [spigot]
Dependency analysis found 0 affected files
Errors occurred while compiling module 'spigot'
javac 17 was used to compile java sources
Finished, saving caches…
Compilation failed: errors: 1; warnings: 0
Executing post-compile tasks...
Compilation failed: errors: 1; warnings: 0
Synchronizing output directories...
1/3/2023 12:02 PM - Build completed with 1 error and 0 warnings in 2 sec, 786 ms

humble tulip
remote swallow
fluid river
fossil pike
#

i dont know which version is

#

how do I check

humble tulip
#

java --version

fluid river
#

java --version

remote swallow
#

its greif prevention config

fossil pike
#

PS C:\Users\King\Desktop\spigot> java --version
java 11.0.17 2022-10-18 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.17+10-LTS-269)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.17+10-LTS-269, mixed mode)
PS C:\Users\King\Desktop\spigot>

humble tulip
#

that's java 11

fossil pike
#

perfect thanks

remote swallow
#

but yeah @analog vapor it looks like a gp issue that it cant figure out those blocks can be broke, even after changing formatting the issue still persists. this is also a fresh server with just gp so pretty much can only be a gp issue

analog vapor
remote swallow
#

you could check source and see whats causing the issue and attempt to fix it but otherwise not really

analog vapor
#

how do i check the source?

remote swallow
#

the source is the code on the github

#

but their codebase is just a mess and i doubt you would find it easily

humble tulip
#

@analog vapor

analog vapor
humble tulip
remote swallow
analog vapor
humble tulip
#

add 2 spaces before every -

#

and try again

remote swallow
#

even with correct formatting their issue persists lol

analog vapor
analog vapor
remote swallow
#

somewhere in src/main folders

humble tulip
#

now add a world name that doesnt exist

#

and load up your server

#

look for

#

this error

#

lmk what you see

analog vapor
#

its starting wait

fossil pike
#

installed java 11 on my machine and still getting "java: error: release version 19 not supported"

#

should I completely uninstall java and install v11 again? or am I missing something here

tender shard
#

whatever you are trying to run was compiled for java 19

humble tulip
last sleet
#

How do I know if an entity is a pillager captain?

fossil pike
#

when I try to build the artifact

#

Executing pre-compile tasks...
Running 'before' tasks
Checking sources
Parsing java… [spigot]
java: error: release version 19 not supported
Checking dependencies… [spigot]
Dependency analysis found 0 affected files
Errors occurred while compiling module 'spigot'
javac 17 was used to compile java sources
Finished, saving caches…
Compilation failed: errors: 1; warnings: 0
Executing post-compile tasks...
Compilation failed: errors: 1; warnings: 0
Synchronizing output directories...
1/3/2023 12:14 PM - Build completed with 1 error and 0 warnings in 2 sec, 769 ms

tender shard
last sleet
#

yeah

tender shard
#

you could check whether the entity is instanceof Pillager, and then check if their main hand (or whatever) contains a banner

analog vapor
last sleet
#

oke

tender shard
#

is there a special NBT tag for these "captains"?

humble tulip
tender shard
#

aah

#

I have looked for "captain" in the javadocs but couldnt find anything

last sleet
#

oke

humble tulip
analog vapor
humble tulip
#

no

analog vapor
#

oof

analog vapor
humble tulip
#

what.. what's the issue?

analog vapor
humble tulip
#

?paste

undone axleBOT
fossil pike
#

how do I make this run in java 11 instead of java 19?

ERROR code when trying to build the artefact:

Executing pre-compile tasks...
Running 'before' tasks
Checking sources
Parsing java… [spigot]
java: error: release version 19 not supported
Checking dependencies… [spigot]
Dependency analysis found 0 affected files
Errors occurred while compiling module 'spigot'
javac 17 was used to compile java sources
Finished, saving caches…
Compilation failed: errors: 1; warnings: 0
Executing post-compile tasks...
Compilation failed: errors: 1; warnings: 0
Synchronizing output directories...
1/3/2023 12:14 PM - Build completed with 1 error and 0 warnings in 2 sec, 769 ms

Upon typing java --version, this is displayed in terminal:

PS C:\Users\King\Desktop\spigot> java --version
java 11.0.17 2022-10-18 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.17+10-LTS-269)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.17+10-LTS-269, mixed mode)
PS C:\Users\King\Desktop\spigot>

#

where it says runtime environment, is that whats running on MY machine?

#

because I JUST downloaded java 11, idk why its showing 18.9

fossil pike
#

yes sir

humble tulip
#

do ctrl+alt+shift+s

#

change the sdk to the one in your pom.xml

analog vapor
#

Alright

#

can you boot minecraft?

fossil pike
#

dont have one call pom

humble tulip
#

do you use maven?

remote swallow
#

looks like intellij build system

humble tulip
tender shard
#

when I only changed CraftWhatever classes in my CraftBukkit pull request, I do NOT have to run makePatches.sh right?

humble tulip
humble tulip
analog vapor
tender shard
humble tulip
analog vapor
analog vapor
fossil pike
tender shard
#

why are you talking about griefprevention configs in help-dev lol

tender shard
#

some shitty geoblocking

fossil pike
#

lol one sec

#

let me try to copy image

remote swallow
fossil pike
#

that works

remote swallow
#

thats them

humble tulip
#

@fossil pike change your language level

tender shard
#

you cannot set language level to 19 when you use jdk 11

fossil pike
#

oh

humble tulip
#

Lol

tender shard
#

the language level must be equal or lower than the SDK you use

fossil pike
#

to what lol

#

oh ok

tender shard
#

the language level should be the same as you set in your pom.xml or build.gradle

remote swallow
#

they use intellij build sys lol

humble tulip
#

They don't use maven or gradle

tender shard
#

what the fuck

humble tulip
#

🤣

tender shard
#

I haven't seen that in a looong time

#

must have been months ago

#

switch to maven RIGHT NOW

#

or at least gradle

fossil pike
#

I'll be real honest, the only reason I even have intellij installed is because I'm trying to add a dependency to a single plugin that doesnt run on 1.15.2, but works on 1.8, 1.12, and 1.16. It should work fine in 1.15.2, but there isn't a dependency for it, that's why I'm here. just to add that dependency

#

i have no clue what gradle or maven are

humble tulip
#

lol

fossil pike
#

I can send someone the root and 5 bucks to do it for me lmao

#

im sick of this

tender shard
#

it handles the dependencies like spigot-api

#

it automatically compiles your code and packages it

quiet ice
#

It's more difficult that just adding the dependency

tender shard
#

shades stuff when required

#

also who the heck uses 1.15.2 o0

tender shard
fossil pike
#

free

tender shard
#

spigot link?

fossil pike
#

it's the plugin root

remote swallow
#

that just seems fishy

fossil pike
#

i just uploaded it myself

crude estuary
#

Still you shouldn't do that

remote swallow
#

what does the plugin actually do lol

crude estuary
#

People doesn't usually Feel Safe downloading a Jar From Mega

fossil pike
#

its a zip

#

not a jar

crude estuary
#

i missed Context

#

nvm

remote swallow
#

does that just add fake players

fossil pike
#

yep

tender shard
crude estuary
#

then Perfectly Fine

#

thanks for the Context

fossil pike
#

🙂

remote swallow
fossil pike
#

its not good enough

#

I need this specific one to work

#

I've tried alternatives

#

this is the superior plugin

tender shard
#

probably would only take 10 minutes to update the nms packages

fossil pike
#

that would be great if you could help me out with that bro

#

you got paypal? I'll send you a few bucks

#

dm it

alpine urchin
#

i am the best man

#

for the job

crude estuary
#

xD

alpine urchin
#

is it open source

remote swallow
remote swallow
alpine urchin
#

still

#

im a g

tender shard
alpine urchin
#

aaa

tender shard
#

first I gotta compile spigot 1.15.2

alpine urchin
#

pick mfnalex

#

ima go in my corner

remote swallow
#

does jefflib not have 1.15.2

alpine urchin
#

and cry

tender shard
#

1.16+

crude estuary
#

mfnalex does nms

remote swallow
#

ah

crude estuary
#

Likes Pain

remote swallow
#

fair

tender shard
#

btw spigot now supports java 19 lol

alpine urchin
#

i’ve gone so deep into nms

#

its all i know

tender shard
#

that plugin is using my updatechecker lol

alpine urchin
#

i know more nms than bukkit

fossil pike
#

what are the odds 😛

thick oracle
#

quick question: is it possible to get statistics from an offline player?

remote swallow
#

you have to read the file yourself

fossil pike
#

like server-stats?

remote swallow
#

i was trying to earlier lol

#

gave up lol

fossil pike
#

you should be able to

remote swallow
#

they probably mean code wise lol

remote swallow
#

you can get stats for an offline player just not via code

#

i was trying earlier

thick oracle
#

damn

#

guess I need a database then

tender shard
remote swallow
#

tf

thick oracle
remote swallow
#

maybe it was 1.12 thing

thick oracle
#

for Statistic.ITEM_ENCHANTED I get 0, but the value is supposed to be 2

remote swallow
#

the next best option you have is parse the players stat json

#

world/stats/uuidString.json

#

currently i doubt that exists

#

idk how you would check when its been downloaded

lethal knoll
#

Yea Indeed

daring elm
#

anyone have a StartALL.sh i hate to start my server with Cd Path Typing .-.

lethal knoll
#

Sorry moved the question to the #verified channel

lethal knoll
remote swallow
daring elm
wet breach
daring elm
#

i have only 5
Bungee etc

remote swallow
wet breach
#

probably

remote swallow
daring elm
wet breach
remote swallow
#

ah, no idea how to write linux ones

iirc you have to start it #!/usr/something
then can just type anything

#

@tender shard probably knows

thick oracle
tender shard
#

that's called a shebang

tender shard
#

yeah ik

#

funny name

wet breach
#

not even sure what that statistic is even for

thick oracle
tender shard
wet breach
#

what does it show for the stat and what is the expected?

thick oracle
#

supposed to be 1 currently. but returns 0

wet breach
#

did the server save the world when you checked?

thick oracle
#

yes

wet breach
#

interesting, what mc version?

tender shard
thick oracle
#

1.19.2

wet breach
#

wonder if it is a bug then or just overlooked in terms of fixing code for updated versions

daring elm
#

i try

#!/bin/bash

cd /home/minecraft/CityBuild/
screen -S -d CityBuild ./start.sh


cd /home/minecraft/BungeCord/
screen -S -d Proxie ./start.sh

cd /home/minecraft/Lobby/
screen -S -d Lobbie ./start.sh

thick oracle
#

currently checking some older code to see if I made any mistakes

daring elm
#

isnt work 🤔

wet breach
tender shard
daring elm
#

lol

#

Thanks

wet breach
#

also if you want to improved version of what I said

#

you can create a single symlink

#

and then tell it to run in a particular directory instead

#

thus only need a single jar with directories containing multiple configs instead

#

most people don't know that Java is happy to use a symlink

wet breach
#

symlink is the way I used to update like 20 servers by just replacing a single jar 🙂

misty current
#

what's the correct way to send an action bar message?

wet breach
#

pretty sure there is a method part of the player object to do such things

misty current
#

rn i'm using player.spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText("hi")); but it's all deprecated

wet breach
#

probably don't want to use the method for legacy

lethal knoll
misty current
#

the sendmessage method itself id not

#

but ChatMessageType and TextComponent are

tender shard
lethal knoll
#

Is there a known alternative?

daring elm
misty current
#

that's what i was wondering

vocal cloud
#

Are you using paper?

daring elm
misty current
#

i have both spigot and paper in my pom

vocal cloud
#

They've probably deprecated it

misty current
#

i have both because i don't know whether you can run buildtools on paper

#

so i just have spigot (not spigot's api) imported and paper's api

wet breach
#

ChatMessageType is not deprecated

lethal knoll
#

It does kinda make sense. I never understood why the text in the hotbar was classified as chat message

misty current
#

so what's the new way to do it?

tardy delta
#

tf is /usr/bin/env bash

misty current
lapis swan
#

Hey, I know that you can use invisibel armor stands to create flying text but is this still state of the art if I need many of them that also move ? and is it possible to only show the text to some players ?

remote swallow
#

you dont need paper api in the project

misty current
#

i need paper's api for some things that are unique to paper

#

such as armor equip event

#

i rarely use paper's api and just import spigot but this time i need paper

wet breach
# misty current so what's the new way to do it?

sorry Basecomponent is deprecated, and it is done so because it is mainly for internal classes. Currently I am not aware of a different way but it is deprecated because it is planned in the future to be changed or removed.

#

remember deprecated doesn't necessarily mean unusable

lethal knoll
#

No that is true, but deprecated means sooner or later, it will be removed

misty current
#

i'm aware but i was just wondering if there was an alternative since they've deprecated that stuff

#

i'll just use that then

#

thanks

lethal knoll
#

And as a developer you should be extra cautious when using it

wet breach
misty current
#

that's a bad way to use deprecation tho

wet breach
#

This is why you should read the javadocs

wet breach
#

especially when most of those using the api are not very experienced to begin with and fail to read javadocs or even look at them

remote swallow
wet breach
#

?jd

hazy parrot
#

What is the best way to intercept console output ? Tried adding custom java.util.logging.Handler, but it seems it doesn't intercept all messages

wet breach
#

you need to hook into Jansi to capture the output

tender shard
# daring elm

looks like your server folder is NOT exactly called "CityBuild"

#

but sth else

lethal knoll
#

Deprecation is a general term in the programming world. Whether you are a beginner or not, it's something you should know

tender shard
wet breach
#

in general just means should not be used, however it is also a good way to get someone's attention when you want to warn them about something. Seems to work as intended for said purposes because many people come here asking about another way to do something because of deprecation. Sadly it still hasn't made them actually read the javadocs to see why something was deprecated though

misty current
#

ah interesting

wet breach
#

As I said, deprecated for spigot doesn't necessarily mean unusuable

hazy parrot
lethal knoll
#

Exctly, I cannot think of a better way to inform developers then using deprecation

misty current
#

i have used the discontinued plugin in the past

#

i've checked the javadoc and it says most stuff regarding components has been deprecated in favor of adventure's api

remote swallow
#

yeah

lethal knoll
#

However when something becomes deprecated, there should also be an alternative communicated on the docs (unless the functionality itself doesn't make any sense)

remote swallow
#

they did that when mini joined paper

wet breach
#

I can't say anything for the other api that isn't spigot

#

they are their own thing

lethal knoll
#

There used to be clear alternatives communicates on the spigot docs. Not quite sure why it's not there now

wet breach
#

or one of the two, can't remember but those two are responsible for basically console output

ivory sleet
#

@Deprecated#forRemoval exists (:

#

Which, Spigot does not really take advantage of afaik

lethal knoll
#

Yes and usually with a date defined on when it's scheduled for removal

tender shard
ivory sleet
#

No date is not necessary

remote swallow
ivory sleet
#

But usually you add a “since” also

wet breach
ivory sleet
tender shard
lethal knoll
tender shard
#

but those only work for up to 48 blocks. Invisible armor stands work up to 64 blocks

tender shard
ivory sleet
#

Yeah, but its not a convention realy

#

If you want to commit to a date, sure add it

tender shard
#

11 would be nice since every distro and macOS have at least java 11 included, but not everyone has java 17 yet in the repos

wet breach
ivory sleet
hazy parrot
lapis swan
tender shard
#

why the heck did paper remove their api .jars from their repo for versions older than 1.17

wet breach
#

you could just use use API's people have created already

#

and not worry about NMS

wet breach
wet breach
misty current
#

anyways it's not as bad as you think

remote swallow
#

use something like protocol lib

wet breach
#

especially when API's exist

#

like the one stated above

misty current
#

if i were to make holograms i'd use packets and AOE clouds instead of stands

tender shard
tender shard
#

huh

eternal night
#

different group id

tender shard
#

1.15.2 is not in the repo

#

oh

#

what's the group id

wet breach
eternal night
#

com.destroytokio

remote swallow
#

paper weird

misty current
tender shard
tender shard
remote swallow
#

oh was 1.17 when you changed from destroystokyo

wet breach
#

you could just build it yourself

remote swallow
eternal night
#

oh

#

yea

wet breach
#

pretty sure paper didn't remove all their patches

eternal night
remote swallow
#

when i know more about paper than the paper dev

eternal night
#

smh 😭

#

spelling is hard

wet breach
#

I don't even use paper

eternal night
#

kewl

remote swallow
#

i only use it as server ar

#

jar

#

fuck paper api

wet breach
#

ironically I am part of their discord, only am just to really keep tabs on the progress of it

remote swallow
#

to do what

tender shard
tender shard
quaint mantle
#

hello, could someone explain to me, why this is not working?


        AttributeModifier attributeModifier = new AttributeModifier(UUID.randomUUID(), "gak",
                5.0, AttributeModifier.Operation.ADD_NUMBER, EquipmentSlot.HAND);

        itemMeta.addAttributeModifier(Attribute.GENERIC_ATTACK_KNOCKBACK, attributeModifier);
remote swallow
#

no

#

get out

#

go to paper

eternal night
#

Well cool kids just PR paper patches to spigot 5Head

wet breach
#

spigot has components?

remote swallow
#

meh

eternal night
#

LOL

remote swallow
#

not really

tender shard
wet breach
#

to do what?

eternal night
#

I saw that eyes_sus

remote swallow
#

i will give you adventure components are better than bungee ones

wet breach
#

superior in what way?

tender shard
wet breach
#

not sure how you can get more superior then a string

#

you can't understand a string?

tender shard
remote swallow
#

i fucking hate using minimessages format

molten hearth
#

its too verbose

remote swallow
#

MiniMessage.minimessage().desterilize

#

fuck that

wet breach
#

also, what is hard in customizing a string?

eternal night
#

strings don't fully represent the entire possibility of a component

#

¯_(ツ)_/¯

tender shard
eternal night
#

well

remote swallow
#

give me a MiniMessage.desterilise

eternal night
#

legacy strings don't

tender shard
remote swallow
#

i just couldnt understand it

#

so i made my own

tender shard
#

fair enough, I never wrote any docs

remote swallow
#

its like 6 lines total lol

patent reef
#

Hi can i somehow in residence make that people cant use commands like /spawn ?

wet breach
#

sure

remote swallow
#
public static final LegacyComponentSerializer SERIALIZER = LegacyComponentSerializer.builder().character('&')
            .hexCharacter('#').hexColors().useUnusualXRepeatedCharacterHexFormat().build();

    public static String translate(String toTranslate) {
        return (ChatColor.translateAlternateColorCodes('&', SERIALIZER.serialize(MiniMessage.miniMessage().deserialize(toTranslate))));
    }
lapis swan
wet breach
patent reef
tender shard
#

IT'S THE DEFAULT FORMAT FFS

remote swallow
#

yes

eternal night
#

it isn't lol

#

its spigot added

tender shard
#

yeah same for the general &ccolors

eternal night
#

no

#

the client speaks those

tender shard
#

no the client speaks § law

eternal night
#

well & is never used

remote swallow
# patent reef residence

ah, its paid i doubt many people here would know. Best to ask on the discussion page for the plugin

eternal night
#

you always translate colour codes

tender shard
eternal night
#

as a community standard on top

#

not as a default from anywhere

tender shard
#

I don't think the &x&1&2&3&4&5&6 thing is unusual, since it works with EVERY plugin that does translateAlternateColorCodes, so it even works with plugins pre 1.16 that never knew hex colors will be a thing

#

that's why I would not call it "unusual" but rather the default spigot way

wet breach
# tender shard & is used in every config.yml

because it makes it easier on users since you know keyboards don't have those characters on a key somewhere, and it helps developers because Java does funny things with native utf characters and what not

eternal night
#

the §x format does not work because of translate alternate colour code lol

#

spigot on top jumps places to make those work

molten hearth
#

why would you even use § over &

eternal night
#

because players cannot use §

#

hence that is what minecraft speaks

wet breach
#

translatealternatecode is a super old method and was created by the original devs for the purpose I stated above.

tender shard
#

client doesn't let you enter §

#

to keep players happy instead of being harrassed with law speak

eternal night
#

if only there was like

#

a nice format 😭

#

maybe json based

tender shard
#

you can type anything with every keyboard

#

eternal night
#

CraftChatMessage

tender shard
#

Ž

#

Ó

#

Û

#

I don't know the alt code for that

#

wait

wet breach
#

One day, we will have a cleaned up MC version

tender shard
#

yes

hazy parrot
#

There is

vale ember
#

why not %color_name% instead of color codes?

tender shard
#

keep pressing alt, then enter "0137" on your keypad, then release alt

#

then you got ‰

wet breach
#

the alt code for it is alt + 0189

tender shard
#

½

#

0189

vale ember
remote swallow
#

that would be too confusing imo

vale ember
#

is %red%Hello confusing?

tender shard
wet breach
#

technically your keyboard is

remote swallow
#

what about placeholders

#

<red>

#

is better

molten hearth
#

cring

remote swallow
#

minimessage in writing is cool

#

but using it i fucking hate

wet breach
#

just your keyboard gives you a more stream lined way to input those things

tender shard
#

{"color":"red","text":"Hello"}

#

admins love json

quaint mantle
tender shard
#

<span style="color: red;">Hello</span>

remote swallow
molten hearth
#

btuh

wet breach
#

I typically see kids being the ones that misuse json and typically love javascript

remote swallow
#

it takes forever to type, i have to convert these components to strings and all that

tender shard
#

because they never get any compile errors with JS lol

molten hearth
#

who needs compile errors

#

just compile and throw errors later 😎

tender shard
#

i just throw everything into their PDC

quaint mantle
wet breach
remote swallow
tender shard
#

save it in a structure

remote swallow
#

paper uses components

tender shard
wet breach
#

lol

lapis swan
tender shard
remote swallow
eternal night
remote swallow
#

get out

eternal night
#

new trick to just link paper docs KEKW

quaint mantle
tender shard
#

three links, should be enough lol

remote swallow
#

pdc is still saved in nbt just easier to access

wet breach
#

4 if you want to link them to the NBT structure stuff

tender shard
#

since when does Structure iumplement PDH?

wet breach
molten hearth
#

yes use the adventure platform

#

then use LegacyComponentSerializer

#

💯

tender shard
#

PersistentDataHolder

#

the thing that declares the getPDC method

wet breach
#

shouldn't that be PDH then?

#

not PHD?

molten hearth
#

PHD in PDH

tender shard
#

typo

wet breach
#

in like a doctorate

tender shard
#

wait

molten hearth
#

lmao

tender shard
#

I wrote PDH

#

I wrote it correct

quaint mantle
tender shard
#

i might be stupid, but at least I don't have a PHD

quaint mantle
#

you just get an audience from the player and just call sendMessage (or other methods), platform does the rest

molten hearth
#

i just gotta

wet breach
tender shard
#

oh no wait I'm confusing it

remote swallow
molten hearth
#

tbh I use adventure but I never used the audiences feature or anything

#

seems like effort

tender shard
lapis swan
#

Thanks for the links but this answer describes it best 😄

tender shard
#

PHD is doctor for philosophy here and many people claim it's not a proper science

molten hearth
#

lmao

remote swallow
# quaint mantle Not really

instead of just Formatting.translate i would have to get audience from my player instance, serialize the minimessages text

#

ect

wet breach
molten hearth
#

me after getting my phd in gender studies: 🤑

tender shard
molten hearth
#

(hmm yes the woman is womaning)

tender shard
#

phd is definitely always doctor of philosophy in germany

quaint mantle
molten hearth
#

looks wonderful

#

truly dont see a problem

tender shard
#

yeah it's also "Hello, where can I compile the latest version of Spigot to use on my server?" instead of "help craftbukkit download 1.8.8 where"

remote swallow
wet breach
remote swallow
#

much easier

tender shard
#

you can be a doctor in law, in medicine, in ...

#

what does PHD stand for?

molten hearth
#

doctor in cooking

#

😈

wet breach
#

What you said, we just don't care and apply it for everything

quaint mantle
#

or a keybind

#

or any chat feature not from 2012

remote swallow
#

dont need to

tender shard
#

Dr. med Dentist

#

I mean what the english PHD means

remote swallow
#

if i need translations ill just steal alexs code

wet breach
tender shard
#

wtf it really only means doctor i nphilophy in english too, why do guys call every academic grade a PHD lmao

#

that makes so much... NOT sense

molten hearth
#

because they are all philosophers in their fields

wet breach
# tender shard I mean what the english PHD means

It means the same thing, but we typically just use it to generally refer to doctorate and not really the actual thing it means because it is easier then calling everyone a doctor when they are not medical doctors because you know the pleebs in the US have a real hard time understanding the differences

molten hearth
#

(I have no idea)

tender shard
#

yeah okay true, you only have the word "doctor" to refer to people who treat you in hospitals

quaint mantle
tender shard
#

we have a separate word for that

#

which one

molten hearth
#

someone with a phd is a doctor

#

pretty sure

wet breach
#

We established this already

remote swallow
tender shard
#

I just checked

molten hearth
#

yeah but they're stil Dr. XYZ

#

even if they're skill issued in the ways of medicine

tender shard
#

yeah but a neurologist is a doctor and the nurse isn't exactly a "real doctor" lol

molten hearth
#

you dont call them Dr. in philosophy XYZ

wet breach
#

a nurse is not a doctor

molten hearth
#

and copilots are not pilots

tender shard
tender shard
wet breach
#

ok, but a co-pilot can still fly a plane, a nurse can not do anything remotely the same as a doctor

molten hearth
#

😂

quaint mantle
#

How do I connect two plugins into one?

tender shard
#

yeah sure, but yo uknew exactly what I meant

remote swallow
tender shard
#

in germany we have two words - Arzt, as in medical doctor, and Doktor, which is EVERY kind of doctor. it can be a medical doctor, or a doctor in law, whatever

remote swallow
#

just add the 2 plugins

wet breach
#

point is the average person in the US only understands that when you say doctor they automatically think a doctor for medical stuff

lethal knoll
wet breach
#

and typically don't understand that is what you call someone with a doctorates

tender shard
molten hearth
#

i had a biology teacher called Dr. Iforgot and everyone assumed she was a real doctor

molten hearth
#

turned out she wasnt she just had a phd

wet breach
#

unless they really are a professor

tender shard
molten hearth
#

omw to call my german friend working in kindergarten a professor

tender shard
#

you even call your neighbour by lastname in germany

wet breach
#

its very rare to have a professor that teaches at a high school

tender shard
#

it's shitty, yes

#

thanks SPD

wet breach
tender shard
#

every german state has their own abitur (highest graduation you can achieve in normal school)

molten hearth
#

breh

tender shard
#

abitur is like A levels I guess

molten hearth
#

over here you just get a high school diploma and then a bachelor then a master then a phd

wet breach
#

I am curious though what the German high social class is like

tender shard
#

I only have my abitur and two STAATSEXAMEN (state exams) in law

wet breach
#

like how they act and talk etc

molten hearth
#

staat sex men

#

😈

lavish hemlock
#

sexy men

molten hearth
#

amen

lavish hemlock
#

😏

tender shard
#

they usually also just live in normal houses like these

#

they drive an expensive bmw or mercedes

molten hearth
#

looks like an average house

tender shard
molten hearth
#

oh yeah

#

dang

tender shard
#

the difference is:

molten hearth
#

does germany have a housing problem or smth

tender shard
#

average person only rents one apartment in of those houses

molten hearth
#

oh

tender shard
#

the rich people own the full house lol

wet breach
#

house

molten hearth
#

that is a normal house in europe

tender shard
#

that's like 500 meters away from my place

#

in münster that's definitely one of the more expensive houses

molten hearth
#

i dont get how americans can afford those big ahh houses thats prolly like 200k here

wet breach
tender shard
#

this is my street

molten hearth
#

bro lives in detroit

lavish hemlock
#

looks like britain

remote swallow
#

yes it

#

does

#

i wound know

tender shard
wet breach
molten hearth
lapis swan
#

Is a pdc faster than a database connection 🤔 would using them async be an option ? 🫣

tender shard
#

the westphalian treaty of peace was signed in my city like 500 years ago lol

molten hearth
#

yeah idk every time I see pictures of US houses I'm like damn, you get it so nice

tender shard
#

it ended the 100 year war

lapis swan
molten hearth
#

I lived in the UK and people just had these small ass houses stuck to each other

ivory sleet
molten hearth
#

its very similar in France

ivory sleet
#

And it is probably faster

#

But less scalable than a proper database

molten hearth
#

i'd hate to live in a house attached to someone else's

tender shard
molten hearth
#

stuff like this

remote swallow
#

i live in a house not connected to anyone

molten hearth
#

was what I saw in the UK

remote swallow
#

in the uk

#

that is quite large

molten hearth
#

fuckin terrible

remote swallow
molten hearth
#

glorified apartment block

remote swallow
#

villages are not like that

molten hearth
#

uh no I lived there lol

remote swallow
#

i live in a place with mostly semi detached houses

molten hearth
#

I lived here at some point

tender shard
#

I found a pic of my former school

#

the one in the back, in the forests

remote swallow
#

you lived in a council estate

lapis swan
wet breach
molten hearth
#

idk I guess the whole city was a council estate

ivory sleet
#

Think that could introduce concurrency updating issues

ivory sleet
#

Since it is not assumed of api consumers to call the api in asynchronous manners

wet breach
#

just go with threading

#

threads solve all the problems 😉