#help-development

1 messages · Page 1160 of 1

quaint mantle
#

nevermind dont answer my question

pseudo hazel
#

and if you have to ask that question it probably means you dont

floral drum
#

You can use minimessage and adventure within spigot if you use a certain serializer to convert it to a string @quaint mantle

quaint mantle
young knoll
#

Or use the adapter

quaint mantle
#

I said dont answer because I would have to elaborate too much to make it worth asking.

young knoll
#

Sorry, platform

quaint mantle
#

You see Adventure had an interface named Audience

#

So it means I don't really have to write too much code twice

#

I was just looking for similar thing for Events too

mortal hare
#

so yeah, about that, i went to sleep without testing to compile it. It turns out this cannot be done due to type erasure collisions between generic types

floral drum
#

I mean you can just use your own BukkitAudiences

#

To have support for spigot

quaint mantle
#

do u by chance know how to add a repository as depedency in gradle?

pseudo hazel
#

sorry I didnt mean to sound aggressive

quaint mantle
#

I know its the other end of what I was asking.

floral drum
#

what do you mean “repository as a dependency”, they’re two different things

quaint mantle
#

you know like how we can import spigot or paper into our projects

floral drum
#

Yea

quaint mantle
#

I wanted to report a github repository into my project

floral drum
#

Use the repository of jitpack

quaint mantle
#

oh okay

floral drum
#

And google “github repository as dependency”

young knoll
#

Jitpack

floral drum
#

and gradle after

young knoll
#

😩

floral drum
#

Do you like jitpack coll?

young knoll
#

No

floral drum
#

F

young knoll
#

I mean it’s cool that it exists

#

But it’s finicky

floral drum
#

What github repo are you trying to use as a dependency? Just incase it’s published anywhere to any public repos

floral drum
mortal hare
mortal hare
#

sneaky but it works, i can probably make an Vector object factory class which constructs dimension types implicitly too

object Vector {
  operator fun invoke(component1: Int): Vector1D<Int> = IntVector1D(component1)
  operator fun invoke(component1: Int, component2: Int): Vector2D<Int> = IntVector2D(component1, component2)
  operator fun invoke(component1: Int, component2: Int, component3: Int): Vector3D<Int> = IntVector3D(component1, component2, component3)
}

now i can do:

val vector1d = Vector(1) // Produces Vector1D<Int>
val vector2d = Vector(1, 5) // Produces Vector2D<Int>
val vector3d = Vector(1, 5, 4) // Produces Vector3D<Int>
#

seems to be way cleaner and aligns with java interop a bit more

#

i swear best ideas come after sleep

floral drum
rough drift
remote swallow
#

i just attempt to remember them think, "What the fuck was i thinking before" and repeat

red venture
#

How to edit resource in spigotmc?

mortal hare
#

does anyone else get that pinkish-red youtube playing status bar?

remote swallow
#

yeah im a bit confused of why its like that

mortal hare
remote swallow
mortal hare
#

kinda weird

#

i dont like it

remote swallow
#

ye fr

mortal hare
#

looks like something Instagram would do

remote swallow
#

i thought it was a sponsor block segment when i first saw it

mortal hare
#

it doesnt fit Youtube's redness

acoustic pendant
#

Hey, how can I use a private repository as a dependency with jitpack? I can't find that

remote swallow
#

You canr

#

Cant

#

Jitpack only works with public repos

acoustic pendant
#

Oh

chrome beacon
#

If it's a private repo just mvn install it

#

?

#

No point in having it on jitpack

acoustic pendant
chrome beacon
#

mvn install

#

the command

acoustic pendant
#

No but

#

It is a "public" resource

chrome beacon
#

Could just make the repo not private

acoustic pendant
#

I remembered having a private resource in jitpack, but maybe i'm confused

chrome beacon
#

well you can get it for free from jitpack anyways

#

so no real difference

acoustic pendant
#

Jitpack page

#

Are you sure you can't use jitpack for this?

lilac dagger
#

you need a subscription

chrome beacon
#

and why would you want to do that anyway

acoustic pendant
#

An API

chrome beacon
#

Keep the API in a public repo

#

and the rest of the plugin in a private one

#

or you know open source premium uwu

acoustic pendant
#

could be

river oracle
#

Just open source your plugin

#

No one loses

silent slate
#

I wanna run this api in my minecraft server to profanity check. Ive never worked with java api before and tried running it with curl because im sitting here for 2 hours and dont understand shit

Now this is what ive got. I just wanna contact that api and get the results as a string

public static String determineOffensiveness(String text) {
        String command =
                "curl -X POST 'https://api.sightengine.com/1.0/text/check.json' \\\n" +
                        "  -F 'text=" + text + "' \\\n" +
                        "  -F 'lang=en' \\\n" +
                        "  -F 'models=general,self-harm', \\\n" +
                        "  -F 'mode=ml' \\\n" +
                        "  -F 'api_user=256010994' \\\n" +
                        "  -F 'api_secret=key'";
        ProcessBuilder processBuilder = new ProcessBuilder(command.split(" "));
        processBuilder.directory(new File("/plugins"));
        try {
            Process process = processBuilder.start();
            InputStream inputStream = process.getInputStream();
            int exitCode = process.exitValue();
            return process.getOutputStream().toString();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }```
lilac dagger
#

this is a convoluted way of doing it

#

most profanity checks i saw use regex

silent slate
#

yeah

#

i use a normal array of words but sometimes where may be mistakes and i want to make a automated check for these mistakes

river oracle
#

Is their any reason you can't use http client

silent slate
#

no

#

i just dont understand it

river oracle
#

It's pretty not smart to rely on a system library that may or may not be present

silent slate
#

i dont know how to use it

river oracle
#

Then learn it!

silent slate
#

i TRIED

#

FOR 2 HOURS

river oracle
#

No better time than when you need it

#

Thats a pretty large skill issue

silent slate
#

ive been through 5 apis

river oracle
#

Here one sec

#

Javas native api is the best

mortal hare
#

kinda contraversial but true

#

just look at Citizens plugin

#

everybody just downloads dev builds instead of paying

river oracle
mortal hare
#

there's a reason the second result in google for citizens plugin is jenkins pipeline 😄

river oracle
#

Check out how I do my http stuff

silent slate
#

which line?

#

huh

#

how do i get the result?

#

see

#

empty code that i dont understand

lilac dagger
#

i made a small util method to download from url

river oracle
silent slate
#

whats a inputstream?

lilac dagger
#

it's the data coming in

#

you can write it to a file, read sequences with a datainputstream or scanner

silent slate
#

thats the code in javascript? how to use that util method with this

const res = await fetch('https://vector.profanity.dev', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ message }),
})```
#

host is just the website?

lilac dagger
#

ye

silent slate
#

what is scheme, post and timeout

lilac dagger
#

scheme is https

#

or sftp

#

or some other protocol

#

and path is the /some/path

#

after the host

silent slate
#

but there is nothing after the host

#

so path is ""?

lilac dagger
#

ye or null

#

not sure

#

null works

#

you can also get the uri as the whole link

#

URI.create("link here")

silent slate
#

now i have this

#

how do i send the message in json

#

and the method and headers?

lilac dagger
#

wait

#

use this instead

silent slate
#

ok

lilac dagger
lilac dagger
#

then you can scrap this oof

silent slate
#

i sent what i wanna do in javascript

river oracle
#

HTTPClient

silent slate
#

do exactly this

const res = await fetch('https://vector.profanity.dev', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ message }),
})

river oracle
#

I'm not spoon feeding you code check out the article above

silent slate
#

whats a completeablefuture, a https response, what does it mean to use "::", what is that -> method, what do i map and what is stream

river oracle
#

This isn't a code problem

#

This is a learn Java problem

#

Please learn Java

floral drum
#

?learnjava

undone axleBOT
#

For Beginners:

Codecademy - Learn Java: Interactive Java programming course from basics to more advanced concepts. Perfect for absolute beginners.
https://www.codecademy.com/learn/learn-java
JetBrains Academy - Java Developer Track: Learn by doing with projects and challenges. It covers Java fundamentals to advanced topics.
https://www.jetbrains.com/academy/
Udemy - Java Programming Masterclass for Software Developers: Updated courses that cover Java 8 to Java 17 features. Suitable for those who prefer structured learning.
https://www.udemy.com/course/java-the-complete-java-developer-course/

For Intermediate to Advanced Learners:

Oracle Java Tutorials: The official guides by Oracle for Java programming—great for understanding the depth of Java.
https://docs.oracle.com/javase/tutorial/
Baeldung - Learn Java and Spring: Focus on Spring Framework and modern Java technologies. Best for intermediate learners aiming to expand their knowledge.
https://www.baeldung.com/

Practice and Hands-on Learning:

Exercism - Java Track: Solve exercises and get feedback from mentors. Great for practicing coding skills.
https://exercism.io/tracks/java
LeetCode: Practice your coding skills and prepare for technical interviews with Java.
https://leetcode.com/

Free Resources and Documentation:

Java Programming and Documentation: A comprehensive collection of Java programming guides, tutorials, and API documentation.
https://docs.oracle.com/en/java/

Community and Support:

Stack Overflow: A vast community of developers. Great for getting help with specific problems or understanding concepts.
https://stackoverflow.com/questions/tagged/java
r/learnjava on Reddit: Join the community of Java learners and get advice, share resources, and discuss projects.
https://www.reddit.com/r/learnjava/

Remember: Learning to program takes practice and patience. Don't hesitate to experiment with code and participate in community discussions. Happy coding! 🎉

silent slate
#

that is a coding for 4 years problem

river oracle
#

No its not

#

I learned java within a few months enough to make most things

silent slate
#

how can i code java for 4 years already and write minecraft plugins and this is so hard

river oracle
#

Considering you already know a programming language it'll be faster for you

river oracle
floral drum
#

if you’ve been coding for 4 years you should at the very least understand completablefutures, using ::, what is ->, and what stream is…

#

what you been doing for 4 years

silent slate
worthy yarrow
#

It should be

silent slate
floral drum
#

coding what?

silent slate
#

plugins

#

methods, inventories, management systems, server managers, etc.

river oracle
#

How you've run into none of this stuff in 4 years is insanity

silent slate
#

basically conding a minecraft server myself

floral drum
#

server… managers?

#

coding a server yourself..

silent slate
#

yeah like player managers and stuff

orchid trout
silent slate
#

i just said

floral drum
orchid trout
#

what apis do you know

worthy yarrow
#

You’ve never used a lambda in your managers?

river oracle
#

I've been coding java for 3 years and I ran into all.of that shit with in the first few months just how...

silent slate
floral drum
#

I’ve been doing it for approx 6-7 years

silent slate
floral drum
#

yeah

silent slate
#

only heard from it, never understood it

river oracle
floral drum
#

think of lambdas, as a math function - f() ->, or f(x)->

silent slate
#

ok..

river oracle
#

It's just an inlined method pretty much

#

Not a super insane concept

silent slate
#

what does inlining mean

floral drum
#

basically lambdas are a shorthand method with no name, no defining. It’s just () -> or whatever args need to be provided

silent slate
#

ok

floral drum
#

Wait… have you done bukkit runnables?

worthy yarrow
#

Does c# have lambdas?

silent slate
floral drum
silent slate
#

kinda

floral drum
silent slate
#

idk copy pasted the code from spigots website

floral drum
#

..

lilac dagger
#

why are we attacking him?

worthy yarrow
#

Coding isn’t copy and pasting lol

floral drum
#

please learn the proper way, don’t just copy and paste please

worldly ingot
#

You can make anonymous classes, implement Runnable, or extend BukkitRunnable. All valid ways to do it :p

silent slate
#

i mean

#

if they post it, why cant i use it?

floral drum
worldly ingot
#

You definitely did it too

silent slate
#

better copy it and have it done the proper way instead of me making it super janky

worldly ingot
#

I certainly did

#

I still do it sometimes

worldly ingot
#

When I'm editing Gradle files I definitely do KEKW

worthy yarrow
#

Copy and pasting code you don’t understand is buns

river oracle
#

Better to make it super janky than copy and paste

silent slate
#

i mean

floral drum
silent slate
#

then the servers just gonna crash and be instable

river oracle
#

Isn't that how you learn? By making a mess

floral drum
#

That’s apart of the learning process

worthy yarrow
#

That’s not the point, get something working and expand on it later

floral drum
#

How to optimize it and make your code better yoursef

silent slate
#

i often come back to stuff ive coded when i began coding and correc tthat

floral drum
#

See your problems you made, relearn on them, and get better over time

silent slate
#

stuff like a nick system where it say String -> Player not Player -> String, etc.

#

i correct that

lilac dagger
floral drum
#

Okay let me tell you one thing, never store the player object inside of a map/list. Only use the UUID of the player.

river oracle
#

An entire article on http post

floral drum
#

I loce Baeldung

river oracle
#

By baeldung

floral drum
#

love

silent slate
#

again

worthy yarrow
#

Hey @floral drum do you think you could do me a huge favor and try to mess with directional params for the physics? (If you’re willing and have time that is <3)

silent slate
#

i dont understand the 2nd link

river oracle
#

But it's not of use if they don't know basic java features

#

So they need to go learn some more java

silent slate
#

go learn more java

#

i code because its fun

#

learning isnt fun

river oracle
#

I do too :3

silent slate
#

i care that it works good

worthy yarrow
#

Learning is very fun what

silent slate
#

i dont care how i get there

floral drum
#

Just to see where you are

river oracle
floral drum
#

I know it’s only 3 questions but yeah

silent slate
floral drum
#

extends

silent slate
#

and threads is with runables

worthy yarrow
#

Abstraction can be best described as abstraction 🤓

floral drum
#

Threads are parallelism. Basically allowing multiple tasks to be executed at the same time.

silent slate
#

i got some background in pc building / hardware

floral drum
#

Right

silent slate
#

thats why i know threads

floral drum
#

Threads within programming concept is different tbh. It’s more about being able to make sure all of your threads can see updates to objects. Knowing good thread-safety practices. And knowing how and where to multi-thread your software.

#

So, a completablefuture is an object that can allow you to execute a task on a different thread. Essentially not locking/pausing the main server thread to do a specific task. Which is your HTTP post request, which you want to do. You never want to execute that on the main thread of the server because it will cause lag, especially if the website isn’t responsive or the ping is too much. @silent slate

silent slate
#

i mean

#

it checks if there is profanity, if the player gets the info 1 second later or earlier doesnt matter

remote swallow
#

use illusions post

floral drum
remote swallow
#

read this

silent slate
#

ohh

#

i know what a promise is

#

if its the same then i know it

ivory sleet
#

theoretically its not too different

remote swallow
#

@fickle spindle that site you tried to send is not offical and shouldnt be used

ivory sleet
#

like JS Promise and Java CompletableFuture kinda go hand in hand

silent slate
#

ok

fickle spindle
ivory sleet
#

we just dont have the async await luxary in java

floral drum
#

juava

remote swallow
silent slate
#

what is Json.Stringify in java?

floral drum
#

bros thinking of guava

ivory sleet
#

puarple

fickle spindle
# remote swallow ask away

idk why but on the exe doesn't load the version and if i try to use the bash it don't build the craftbukkit and spigot

remote swallow
#

@river oracle get in here

ivory sleet
worldly ingot
river oracle
worldly ingot
#

Bukkit provides you with Gson if you'd like

fickle spindle
river oracle
#

I don't take dms

rough drift
#

seeing that swear filter reminded me to work on mine

river oracle
#

?paste

undone axleBOT
remote swallow
#

kekw

#

i can replicate that issue

fickle spindle
silent slate
#

Gson.of("String")?

remote swallow
#

no

umbral ridge
#

Gson.prototypeOf

#

XD

silent slate
#

error

#

not found

umbral ridge
#

restart the app

fickle spindle
fickle spindle
silent slate
#

is this fine?

Gson gson = new Gson();
            JsonElement element = gson.fromJson(text, JsonElement.class);
            JsonObject jsonObj = element.getAsJsonObject();
            
            StringEntity params = new StringEntity(jsonObj.getAsString());```
remote swallow
river oracle
remote swallow
#

something™️

fickle spindle
umbral ridge
#

Gson gson = new Gson();
JsonElement element = gson.fromJson(text, JsonElement.class);
JsonObject jsonObj = element.getAsJsonObject();

StringEntity params = new StringEntity(jsonObj.toString());

river oracle
#

😭 what did you do md it was working so well

remote swallow
#

choco can you wake md up he needs to update spigot

worldly ingot
#

You don't need to getAsJsonObject(), you can just pass the object class itself

fickle spindle
worldly ingot
#

I also think JsonParser still exists so you can skip the Gson instance?

remote swallow
worldly ingot
#

There is. JsonObject object = JsonParser.parseString(text).getAsJsonObject()

fickle spindle
worldly ingot
#

Although I'm realizing... you're just parsing the JSON to then get it back as JSON?

umbral ridge
#

Why use the gui

slender elbow
#

that whole thing is useless

umbral ridge
slender elbow
#

?

umbral ridge
#

¿

worldly ingot
#

!

umbral ridge
#

%

blazing ocean
#

¡

fickle spindle
umbral ridge
#

(  ̄ー ̄)\(^^)/

remote swallow
#

im going back through versions on jenkins to see which broke it

blazing ocean
#

just dont care and tell shadow to fix it

fickle spindle
river oracle
blazing ocean
#

smh

lilac dagger
#

uh , minecraft is 1.21.3 now?

blazing ocean
#

yup

lilac dagger
#

what happened?

#

not even a week

blazing ocean
#

Hotfixes

remote swallow
#

not even 24 hours more like

umbral ridge
#

take down the app and tell everyone to use command line instead.. a buggy app isnt helpful XD

blazing ocean
#

My salmon shrunk

#

Realms breaks with resource packs

remote swallow
river oracle
remote swallow
#

so far no

river oracle
#

Can't be too old

#

It could be an issue with stash

remote swallow
#

well

#

so far im at febury and it doesnt work

river oracle
#

Yeah

#

It's def a stash issue then

remote swallow
#

its gotta be something blocking a query

river oracle
#

Yeah maybe cloudflare or something??

remote swallow
#

is /versions cloudflared?

river oracle
#

Idk

#

If it is that'd probably be it

silent slate
#

how do i make this method with the promise stuff

public static String determineOffensiveness(String text) {
        CloseableHttpClient httpClient = HttpClientBuilder.create().build();
        try {
            HttpPost request = new HttpPost("https://vector.profanity.dev");

            Gson gson = new Gson();
            JsonElement element = gson.fromJson(text, JsonElement.class);
            JsonObject jsonObj = element.getAsJsonObject();

            StringEntity params = new StringEntity(jsonObj.getAsString());
            request.addHeader("content-type", "application/json");
            request.setEntity(params);
            HttpResponse response = httpClient.execute(request);
            return response.toString();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return "not working / no reply from website";
    }```
lilac dagger
#

no print either?

#

check for blocking

rough drift
#

you can also use standard java to do this instead of whatever library this is

#

which would be easier

fickle spindle
#

guys why it say Unresolved dependency: 'org.bukkit:bukkit:jar:1.8.8-R0.1-SNAPSHOT'
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>1.8.8-R0.1-SNAPSHOT</version>
<systemPath>${project.basedir}/src/main/resources/spigot-1.8.8-R0.1-SNAPSHOT.jar</systemPath>
<type>jar</type>
<scope>system</scope>
</dependency>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>craftbukkit</artifactId>
<version>1.8.8-R0.1-SNAPSHOT</version>
<systemPath>${project.basedir}/src/main/resources/craftbukkit-1.8.8-R0.1-SNAPSHOT.jar</systemPath>
<type>jar</type>
<scope>system</scope>
</dependency>
this is my pom
and this is my resources https://imgur.com/a/ftHGGbp

rough drift
#

?1.8

undone axleBOT
silent slate
blazing ocean
#

?maven

undone axleBOT
halcyon hemlock
#

?spigot

magic schooner
#

Wow 1.8 is young

halcyon hemlock
#

?skibid

#

:<

blazing ocean
undone axleBOT
magic schooner
#

Pretty young tbh

blazing ocean
#

?howold 1.21.3

undone axleBOT
pseudo hazel
#

not compared to 1.21

magic schooner
#

New born

pseudo hazel
#

?howold 1.21.4

undone axleBOT
pseudo hazel
#

rip

magic schooner
#

:<

fickle spindle
#

?pastebin

#

?paste

undone axleBOT
fickle spindle
chrome beacon
peak depot
blazing ocean
#

ancient, no features, why even

#

extremely buggy

peak depot
#

1.8 is still goated no matter what

#

it could have spyware and still be the goat

pseudo hazel
#

no

#

woat

river oracle
#

I wish 1.9 never switched combat so we wouldn't have to deal with the amount of brain dead people who stay on that ancient ass version

pseudo hazel
#

I just hope that an actual combat update will fix some of the issues

remote swallow
#

i wish they did it over about 8 versions

#

it slowly changed and you couldnt escape it

#

i bet that would make people not care either

acoustic pendant
#

Hey, so I'm trying to upload a proyect to jitpack so I can use it as an API, however, using gradle I cannot use this proyect

remote swallow
#

the jar hasnt built for it

acoustic pendant
#

I already made a tag which is called 1.0

acoustic pendant
remote swallow
#

1.0 has no jar

acoustic pendant
#

Hmm

acoustic pendant
remote swallow
#

the compilation failed is the issue

acoustic pendant
#

Sorry, I'm not too used to github

acoustic pendant
#

But how could I solve that?

remote swallow
#

read the build log and look at the error

acoustic pendant
#

Okay

#

Uhh

#

Found the error but don't really understand it

#

It says invalid target release: 16

#

Is that java versión or am I confused?

lilac dagger
#

ye

acoustic pendant
#

what's wrong here?

river oracle
#

Java 16

#

💀

#

Looks fine to me just make sure the version is correct for whatever java version you use

lapis lark
#

anyone know what to do with BuildTools on 1.21.1/1.21.2 ?

remote swallow
#

run it in an empty folder

acoustic pendant
#

Let me change that maybe

lilac dagger
#

what's the jdk you're using?

acoustic pendant
#

Let me check de jdk

#

I think 21

#

Which version included records? That's the one i'm using

chrome beacon
#

Why are you trying to target Java 16

acoustic pendant
#

Idk, I never changed lol

#

Mb

lilac dagger
#

there has to be more to this

acoustic pendant
#

Let me send you the link

acoustic pendant
#

But I mean, I can compile the plugin with no problem

#

Why github can't?

acoustic pendant
#

Java 8?

#

Where lol

chrome beacon
#

You need to tell jitpack to use a newer java version

remote swallow
lapis lark
acoustic pendant
acoustic pendant
eternal oxide
#

jitpack.yml

acoustic pendant
#

When making a release it doesn't say anything about java version

acoustic pendant
remote swallow
eternal oxide
#
jdk:
  - openjdk17
before_install:
  - sdk install java 17.0.3-tem
  - sdk use java 17.0.3-tem
  - sdk install maven
  - mvn -v
install:
  - mvn install -DskipTests```
lapis lark
#

worked find before 1.21.1

remote swallow
#

in cmd, git bash or something else

lapis lark
#

windows default shell

#

cmd

acoustic pendant
eternal oxide
#

yes

acoustic pendant
#

Okay, i'll try thanks

remote swallow
lapis lark
#

PortableGit-2.30.0-64-bit

remote swallow
#

@river oracle does bt break on specific git versions

remote swallow
lapis lark
#

I run it using default windows cmd.exe and it does not work

#

I have start.bat file with that command and it runs under cmd.exe

#

What git version should I use? 2.45.2? I can try to update if you think an issue caused by git version

river oracle
#

It should use the one on your system and work fine given you're not wildly out of date

lapis lark
#

The issue came from 1.21.1 (1.21 compiles/builds well)

#

BuildTools started failing on 1.21.1 and still not work on 1.21.2

#

Maybe there is a maven repo with remapped all versions without BuildTools requirement

acoustic pendant
#

It is using nms

eternal oxide
#

then you need remapped as you are remapping

acoustic pendant
eternal oxide
#

you need jitpack to build the remapped jar

acoustic pendant
#

Do you mean to add that in jitpack.yml or?

eternal oxide
#

if you are getting this error when tryign to get from jitpack

acoustic pendant
#

Jitpack is trying to compile

eternal oxide
#

if its local you need -remapped in buildtools

acoustic pendant
#

How could i make jitpack to download buildtools first?

eternal oxide
#

the buildtools stuff should be in your pom

remote swallow
#

it would probably be easier to just use something like repsy

acoustic pendant
#

That's how i relocate it

remote swallow
#

the issue is jitpack doesnt run buildtools, so you would need to make it run it, and it would have to run it for every version

#

so it would be easier to sign up for a free repo on repsy and just publish it from your machine onto it

acoustic pendant
#

But I didn't know how to make jitpack to download buildtools first

eternal oxide
#

you don't

#

all that is done in YOUR pom

remote swallow
#

^^ youd have to make maven run bt

acoustic pendant
#

Oh

#

Let me try that then

remote swallow
#

(its probably easier to just use repsy)

#

takes like 5-10 min to sign up and set up then you publish a version + everything from your pc which means you dont have to wait for bt to run everytime

lapis lark
#

Maybe there is a maven repo with remapped all versions without BuildTools requirement?

sly topaz
#

for that error, what does the buildtools log say?

wet breach
pseudo hazel
#

what about just using the gui

wet breach
lapis lark
lapis lark
pseudo hazel
#

ah

#

well im glad you got it working

wet breach
slate siren
#

I created a banner and in the lore description there are lore like
White Per Pale
Whit Fess
Red Border Indented
Red Chief Fess
Red Base Fess
Red Roundel

Is it possible to remove these? I tried but couldn't

chrome beacon
#

ItemFlags

dire marsh
#

Anyone know a tool to diff mc versions

chrome beacon
dire marsh
#

yes

#

it's been broken for a long time on recent versions now

#

like since 1.20.5

#

or 1.19.4 was broken too I think

#

and I can't find any alternatives

chrome beacon
#

Not aware of any

#

Any reason why you need it?

dire marsh
#

anticheat development stuff mainly

#

since I help maintain grim

#

xD

chrome beacon
#

I see

slate siren
chrome beacon
low marlin
#

moved today from eclipse to InteliJ
does anybody know why it doesn't recognize the net.md_5.bungee.api.ChatColor.of?

sly topaz
#

if you see a squiggly line on a dependency, it means it couldn't resolve the dependency in question

#

if there are no squiggly lines, try pressing the sync button on the top side of the same tab

low marlin
sly topaz
#

uh, did you not import your project as a maven/gradle project?

low marlin
#

I did

sly topaz
#

the IDE isn't detecting it

#

click that reload button in the maven tab

low marlin
#

doesnt work

sly topaz
#

what does it say?

low marlin
#

there are no maven projects to display

sly topaz
#

hm that's weird, it should automatically detect your pom

#

try adding it manually I guess, in the maven tab click the + button and add your pom file

low marlin
#

okay fixed it

#

thank you

winter zenith
#

Anyone know how I can retrieve the top most bounding box of an anvil? VoxelShape spits out a collection, but no way to identify what each bb represents?

zinc lintel
#

Is there someone who created a plugin that made it possible to have your custom motd centered?

chrome beacon
zinc lintel
chrome beacon
#

You just calculate the amount of spaces needed

#

depending on the character width

slender elbow
#

resource packs :clueless:

chrome beacon
#

Not much you can do about that

zinc lintel
#

i did it in my old version of my plugin that supported 1.18+ but that was also in java 21

young knoll
#

You don’t need repeat

#

You can just append to a string builder via a loop

zinc lintel
#

ah alr

remote swallow
bright spire
#

Hey guys general development question I am trying to send a bunch of packets and since update 1.21.2 stuff is not working properly in the client. It seems update light is what I am receiving, based on wikivg thats 0x2A but I have no packet with that ID. I suspect the packet id changed but it isnt available yet on wikivg. How I can get the new ids?

remote swallow
bright spire
#

This is on my custom bungeecord fork, I am trying to update the protocol

zinc lintel
remote swallow
#

i love writing nms for 50 versions

zinc lintel
remote swallow
zinc lintel
#

ok almost 50% does use 1.21 but you know what i mean

young knoll
#

Gotta have that 3% market share from 1.12.2

remote swallow
#

nah i want that 3% from 1.4.2

bright spire
#

@zinc lintelEvery version that is abandoned will lack updates and lacking updates will break your server. Not exactly to "stop using that version" but rather do not use versions that are outdated. Mojang is trash doing server updates and often messes up the game, so if you have some good fork maintained by reputable develpers thats ok. But probably because this is a Spigot community and the mindset is to keep up with mojang the most common recommendation will be to update.

young knoll
#

Ah yes all those trash updates

river oracle
#

?howold 1.12.2

undone axleBOT
remote swallow
river oracle
#

7 years wowee

young knoll
#

Like an entire new lighting engine

#

Terrible

bright spire
# zinc lintel

This is also not relevant, as most people could use any version, but the most played server is still 1.8

river oracle
#

fuck those tbh

remote swallow
young knoll
#

Just because the most played server is 1.8 doesn’t mean the majority is

slender elbow
#

all i want is a clouds update

river oracle
#

Vocal Minority != Majority

young knoll
#

And hypixel isn’t going to use your plugin

bright spire
#

Does someone knows if wikivg updated the protocol numbers? I am looking to update my thing to 1.21.3... Now that we talk about updates

remote swallow
#

did .3 have protocol changes

young knoll
bright spire
#

It seems like some stuff is broken

young knoll
#

.3 should be the same as .2

bright spire
#

This works fine on 1.21.1

bright spire
#

But I dont know what id is light_update on 1.21.2

river oracle
#

I will not fall for slippery slope falacy

bright spire
#

Not sure how to get that information, seems wikivg is outdated and showing light_update as one that is never sent by my server

bright spire
# remote swallow not as many people play 1.8 as you think do

I havent say many people plays it client-side, but most people plays servers that have a 1.8 base. Also this servers pay more to developers because they actually have players. The only thing I saw 1.21 or newer versions being used for at the moment is to make mods and youtube videos on private servers. Making a server out of new versions had been unprofitable since so long, I don't have any close friends that host profitable 1.13+ servers.

#

Not denying new versions are fun, but hard to balance between server costs and profits.

slender elbow
#

there are heaps of servers that have thousands of players and are on either latest or recent versions

#

and they are very much profitable

worldly ingot
#

I don't have any close friends that host profitable 1.13+ servers.
That's a relatively small scope lol

#

If you're only looking at your friends who prefer 1.8 servers, then yes, you're going to get confirmation bias

slender elbow
#

you just have to be original instead of making pvp server number 864145

young knoll
#

What if I make hypixel skyblock server number 864145

river oracle
#

wait till they find out you can do skyblock better in newer versions

#

💀

remote swallow
#

nah

#

fake fr

knotty aspen
#

I don't have any close friends that host profitable servers

#

Guess Minecraft is a dead game, clear evidence

bright spire
knotty aspen
#

but for some actual stats, there are server scanners bots, that have like all servers that are reachable with an IPv4 address. 90% of servers are on latest. 1.8 is dead

#

ofc that includes vanilla and modded, but that does not matter. nobody except some vocal minority cares for a ten year old version

bright spire
#

Also making Survival server number 843487 is also not a great idea, you can use any version as long as you are original. You dont have to be updated or outdated, just make it good for your idea. No reason to use 1.9+ for a bedwars or pvp minigame, also not a wise idea to use 1.8 if you aim for survival, but also not a great idea if you have no income.

bright spire
slender elbow
#

you have bigger problems if you have no income and want to host a server for income

#

a server is an investment

bright spire
slender elbow
#

you do if you want to be original

river oracle
#

👀 I feel like you'd need just as much if not more money

bright spire
blazing ocean
slender elbow
#

who is gonna play on a server that has no players, has no fancy new features and has nothing original to offer?

bright spire
# blazing ocean what

You can host a small server with 1GB and support a decent amount of players to start generating an income

bright spire
#

I am asking why you need money?

#

I dont think you have to be rich to host a good and nice original server

slender elbow
#

you need to sustain yourself while you develop and design your ideas

#

resources don't grow on trees

river oracle
#

they actually do if you use 1.8

bright spire
#

Maybe start with something small instead, right?

slender elbow
#

it's only gonna have one player if you don't have anything to offer

blazing ocean
bright spire
#

Its gonna have 1 player if it lags

slender elbow
#

why would it?

#

modern versions run very well

bright spire
#

Not sure how you want to fit 1.21 on 1GB

#

lmao

slender elbow
#

why do you need 1gb?

#

you don't need to throw a million dollars to run modern versions

bright spire
#

Are you sure you can host it with less?

#

I am not sure thats correct

blazing ocean
#

There is barely any host that gives you only 1GB

sly topaz
#

eh, the cheap ones give you the option

#

whether that serves one anything at all, is a different story though

blazing ocean
bright spire
#

I use my own linux machine with more than that, but host multiple 1.8 servers with different minigames using 1gb each. Each could hold 80 players. Not sure if 1.21 could handle that.

river oracle
#

Newer versions don't run THAT bad. Sure they aren't as good as 1.8, but it'd be idiocracy to ignore the fact mojang continues to rewrite large portions of their code to improve performance

sly topaz
#

I do not believe you

bright spire
#

when I tried to host a survival server I needed 12gb to host 80 players

blazing ocean
blazing ocean
sly topaz
#

with 80 players, even for a minigame 1gb is way too low

river oracle
bright spire
young knoll
#

@worldly ingot leak how much memory mega skywars servers use

bright spire
river oracle
#

sure but comparing Survival to Skywars is inherently unfair.

bright spire
# blazing ocean ?

What amount you expect okay for a server to have all day? I am not understanding.

river oracle
#

again you're cherry picking for the sake of bias

blazing ocean
bright spire
#

I am not cherry picking, what do you mean? I also worked with many other guys and tried to host it with same results.

sly topaz
#

if you have to restart the server every 6 hours, brother you have a memory leak

bright spire
#

I usually cap to 80

#

You lose the fun otherwise

#

It works fine tho, so why would I not want it?

sly topaz
#

a modern server with 80 players can run fine with 6gb of RAM, given a good processor

blazing ocean
#

1GB is still not enough for that

bright spire
bright spire
sly topaz
#

for anything really

blazing ocean
#

for 80 players? for any game to run properly?

#

lol

sly topaz
#

discord takes more ram than that lol

bright spire
#

I was running a capture the wool server with 1GB, running all day

blazing ocean
#

if you're using some server impl written in rust maybe

bright spire
#

Custom fork and custom plugin everything made by me obviously

blazing ocean
#

but not a vanilla derivative lol

bright spire
#

You wont expect a random plugin from spigotmc to work

sly topaz
#

yeah, I believe you even less now

blazing ocean
#

^^

bright spire
#

I could send them to you

sly topaz
#

anyhow, what even triggered this conversation

#

what was the goal here

#

lol

bright spire
#

Nothing, just a debate

#

Anyways

blazing ocean
bright spire
#

Does anyone knows where I can see latest 1.21.3 protocol changes so I can update?

river oracle
blazing ocean
bright spire
#

You dont need that much features on ctw

slender elbow
#

minecraft source

chrome beacon
sly topaz
#

1.21.3 didn't introduce any changes to the protocol

chrome beacon
#

or give it a bit for wiki vg to update if it hasn't already

bright spire
chrome beacon
#

and yeah .3 is a tiny hotfix

bright spire
chrome beacon
#

.3 is a hotfix

bright spire
#

Seems some of the packets are being read as light_update

sly topaz
#

that would be 1.21.2 not 3

bright spire
#

.3/.2

blazing ocean
chrome beacon
#

.2 is a packet change
.3 is not

bright spire
#

Does someone knows where to see the updated protocol ids?

chrome beacon
#

and wiki vg should be up to date no?

bright spire
#

It isnt

chrome beacon
#

Then open the source and take a look

sly topaz
bright spire
slender elbow
#

i mean the ids are dynamically generated depending on the order in which packets are registered, so if you can't rely on someone else's work, looking at the source is the way to go

sly topaz
#

if it isn't updated then there isn't anywhere else

#

you'd have to read the source

bright spire
#

Okay

#

thanks

young knoll
blazing ocean
young knoll
#

Can’t wait for ClientboundGrowSalmonPacket

blazing ocean
#

It was a joke as they were insisting 1.21.3 had proto changes

river oracle
#

@blazing ocean Help me with website CODING :#

#

since you're a profesional

remote swallow
#

I think you mean cooking

river oracle
#

oh yeah I'm cooking

#

look at this website

slender elbow
#

bro got the 2010 Justin Bieber haircut

river oracle
#

ig that's the price of being attractive 😭

slender elbow
river oracle
#

nah his hair is way longer

#

I can def see it on the top but not the sides

slender elbow
#

fair

#

let it grow a bit

river oracle
#

abs not

#

if the sides grow to long my side burns grow into my ear

#

its annoying asf

worthy yarrow
#

Loser aint got the locks like me

frosty geyser
#

How can I play custom sounds from resource packs? For example when you join a game of TurboKartRacers on Hypixel it plays a "Welcome to Turbo Kart Racers!" sound and in the server resource pack it has it's own custom sound named "announcer.welcome". How would I go about doing custom sounds in 1.20.4 so I don't need to use other built in sound paths?

violet blade
frosty geyser
#

I have

violet blade
#

it should be able to play it since it accepts strings

frosty geyser
#

tried:
player.playSound(player.getLocation(), "minecraft:announcer.welcome", SoundCategory.MASTER, 10F, 1F);
and
player.playSound(player.getLocation(), "announcer.welcome", SoundCategory.MASTER, 10F, 1F);

#

the player does have the resource pack with sound file too

#

also tried the /playsound and still nothing

kind hatch
#

Custom sounds aren’t going to be in the Minecraft namespace

violet blade
#

it is

frosty geyser
#

thought so, but from a post someone did before it seemed to have worked for them

kind hatch
frosty geyser
#

but yeah, tried the /playsound announcer.welcome master ign method too and it still doesn't seem to work

#

this is what's in the sounds.json:

    "category": "master",
    "sounds": [
      "announcer/welcome"
    ]
  },```
#

just using the TKR sounds as a example since I can test out the resource pack on hypixel and on my server

#

and it works on hypixel, just not my server

cedar saffron
#

I LISTEN!!!

#

What do we do for now, king?

kind hatch
frosty geyser
#

so how could hypixel play the noise?

kind hatch
#

Cause they point to the correct folder.

#

Where does your sound file reside?

#

What’s the full path?

frosty geyser
#

huh, tried on 1.20.4 and it worked, so it might be a viaversions issue

#

I was trying on a 1.8.9 client while the server is 1.20.4

#

which didn't work, but once you go onto 1.8.9 it then decide to work

violet blade
#

well a lot has changed since so yeah, dont test like that

frosty geyser
#

fair

#

now just need to figure out how I could play audio on all versions

#

since they can somehow do it

kind hatch
#

Could be packets

#

Since there are significant differences between the versions.

frosty geyser
#

maybe

#

ig I could use placeholderapi and send the packets required

#

thanks for the help, hopefully using packets work

frosty geyser
#

When dealing with sound packets in ProtocolLib 5.1.0, I can't use packet.getSoundEffects() due to it requiring a sound from the Sound class, and using getMinecraftKeys() or getStrings() doesn't work due to Field index 0 is out of bounds for length 0 (just writing to 0 with the sound name). How would I go about fixing this? Not too great with packets and I am out of ideas

#

(this is for custom resource pack sounds to support multiple versions)

fading drift
#
[--nogui, --rev, 1.8.8, --remapped, --output-dir, C:\Users\charlie\Desktop, --final-name, spigot-1.8.8-buildtools.jar]
Loading BuildTools version: git-BuildTools-5411f5b-186 (#186)
Java Version: Java 8
Current Path: C:\Users\charlie\Desktop
*** Using downloaded git PortableGit-2.45.2-64-bit\PortableGit ***
*** Please note that this is a beta feature, so if it does not work please also try a manual install of git from https://git-for-windows.github.io/ ***
git version 2.45.2.windows.1
Error occurred during initialization of VM
Unable to allocate 261568KB bitmaps for parallel garbage collection for the requested 8370176KB heap.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Could not successfully run Java.Error running command, return status !=0: [C:\WINDOWS\system32\cmd.exe, /D, /C, C:\Program Files\Java\jre1.8.0_202/bin/java, -version]
#

getting this error with buildtools

river oracle
#

I reccomend If you're going to use such an out dated version you atleast use a public fork that patches known issues

#

If you still refuse to listen to me and do this very stupid thing anyways I've hear a decent work around is downloading a latest version than download 1.8.8

#

Also looks like you're allocating not enough memory to BT as well

carmine mica
river oracle
#

Fortunate for us unfortunate for him xD

rough ibex
#

1.8 issues L

blazing ocean
spiral light
#

i have a problem while running buildtools on ubuntu: my java-version is openjdk 21.0.4 2024-07-16 and the error while running is: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project bukkit: Fatal error compiling: error: release version 17 not supported

when i switch to java 17 the error shows this: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project craftbukkit: Fatal error compiling: error: release version 21 not supported

chrome beacon
#

(you just have the jre installed, you need the jdk)

spiral light
#

ah ok thanks ... it showed me the JDK in the environment variable selection for "java" ...

low marlin
#

I'm trying to showcase an item in chat in 1.21 but it shows me the item without the custom name or the lore or the enchantments, does anybody know why and how to make it work?

inner mulch
#

Is minecrafts crafting system O(1)?

eternal night
#

no

inner mulch
#

How does minecraft find the recipe?

#

With 9 items

undone axleBOT
#

It’s hard to answer a programming question without code
Oh no! You ran into a problem. But no worries, people are willing to help, but first they need to see your code. This is because otherwise, they would be providing help based on guesses instead of concrete knowledge. Whether it be a compile error, runtime error, or an unexpected output, I'm sure that if you were to provide code, you'd receive a quick solution.

low marlin
#
ItemTag itemTag = ItemTag.ofNbt(i.getItemMeta() == null ? null : i.getItemMeta().getAsString());
        
        String[] parts = message.split("\\[item\\]");
        
        String before = "";
        String after = "";
        
        String itemName = i.getItemMeta().hasDisplayName() ? i.getItemMeta().getDisplayName() : messageManager.format(i.getType().name());
        int itemAmount = i.getAmount();
        
//        for (String s : parts) Bukkit.broadcastMessage("s: " + s)
        
        if (parts.length > 0) before = parts[0];
        if (parts.length > 1) after = parts[1];
        
        String tag = mainClass.tu.getPlayerTag(p).equalsIgnoreCase("") ? "" : " " + mainClass.tu.getTagTitle(mainClass.tu.getPlayerTag(p));
        
        TextComponent main = new TextComponent(TextComponent.fromLegacyText(messageManager.translateHexColorCodes(mainClass.gm.getGroupPrefix(mainClass.gm.getGroup(p)) + mainClass.su.getPlayerNickname(p) + tag + " &f&l: &r" + before + "&8&l► ")));
        TextComponent item = new TextComponent(TextComponent.fromLegacyText(messageManager.ChatColor(itemName + " &7(x" + itemAmount + ")")));
        TextComponent afterCom = new TextComponent(TextComponent.fromLegacyText(messageManager.ChatColor(" &8&l◄&r" + after)));
        item.setColor(ChatColor.AQUA);
//        item.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_ITEM, )));
        item.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_ITEM, new Item(i.getType().getKey().toString(), i.getAmount(), itemTag)));
        
        main.addExtra(item);
        main.addExtra(afterCom);
        
        for (Player online : Bukkit.getOnlinePlayers()) {
            online.spigot().sendMessage(main);
        }
smoky anchor
#

pls put java after the 3 ```
so it has pretty colors
```java
code-here```

pseudo hazel
#

version?

low marlin
#

1.21

pseudo hazel
#

why not use itemmeta api

#

oh wait you are

smoky anchor
#

item.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_ITEM, new Item(i.getType().getKey().toString(), i.getAmount(), itemTag)));
Could be this ?

#

oh wait it has the tag
sry its hard to read

young knoll
#
ItemStack stack = new ItemStack(Material.DIAMOND_SWORD);

// stuff about modifying stack

TextComponent component = new TextComponent();

String nbt = itemStack.hasItemMeta() ? itemStack.getItemMeta().getAsString() : "{}";
Item contents = new Item(stack.getType().getKey().toString(), stack.getAmount(), ItemTag.ofNbt(nbt));
component.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_ITEM, contents));

Bukkit.spigot().broadcast(component);
#

That’s what choco said to use on the forums

#

You may need to use getAsComponentString in new versions? Not sure

low marlin
#

checking

#

nope still doesn't work

#

both as getAsString as getAsComponentString

smoky anchor
#

@young knoll
I am not entirely sure but this feels a bit sussy

#

or do I tag green ppl
I don't fricking remember this

remote swallow
#

coll is fine to ping for that

young knoll
#

?kick @rose thunder No advertising

undone axleBOT
#

Done. That felt good.

river oracle
#

You can't make O(1) crafting it's quite literally impossible

rough drift
#

Shaped recipes for example can be O(1)

#

shapeless recipes would require storing the permutations if you want O(1)

#

@inner mulch

smoky anchor
#

Ye, have fun storing permutations of all possible dying recipes :D

ivory sleet
pseudo hazel
#

that sounds like its possible

#

given it should only care about the material in most cases

#

and the slot ofc

rough drift
slender elbow
#

I mean even with shaped recipes you have to consider all positions on the crafting grid

pseudo hazel
#

yeah like for small recipes

#

i.e. torch

#

thats like 6 ways to put it in

river oracle
slender elbow
#

you totally can

river oracle
#

Okay let's say you use a hashing algo don't you still have to hash every item

#

While it's technically capped at 9 it does grow linearly

slender elbow
#

it doesn't if you hash all 9 items :^)

#

skipping some is an optimisation :thinksmart:

river oracle
#

Does big O just ignore the actual hashing algorithm?

slender elbow
#

like a crafting grid is nothing but a Map from all 9 items -> one result (or, multiple, cuz remainder)

#

all big O concerns itself about is how a function responds to differently sized inputs

#

9 items are 9 items

#

rather, n items are n items

river oracle
#

I mean if you ignore the possible growth of the amount of items you'd have to hash given an infinitely sized crafting table sure it's O(1) I suppose

#

Because 9 is a constant it's technically negligible

slender elbow
#

it'd be O(1) because 9 is a constant

#

if you have multiple crafting grids, 2x2, 3x3, 4x4 etc .... then each one would have its own map if you absolutely must have it for amortized O1

river oracle
#

I mean valid sure ig 🤷 I just modeled it against some form of infinitely scaling table that could contain N items which is flawed because that's not really how it is

worldly ingot
#

We've now explored why BigO kind of sucks as a notation for performance

#

Because O(1000000) is still O(1)

slender elbow
#

it doesn't tell you how slow or fast something runs, it just tells you how it responds to differently sized inputs

#

crafting can totally be O1

river oracle
#

My favorite sorting algo is O(N)

pseudo hazel
#

bogo sort

river oracle
pseudo hazel
#

oh xD

#

TIL

river oracle
# pseudo hazel TIL

It is O(N) because it kindly eliminates every number that isn't already sorted

#

Many times the list sorts itself out of pure fear prior to Stalin sort even running

pseudo hazel
#

O(N) worst case when everyone is already in order

#

nvm

#

its O(1) best case because everyone else will run away after the first death

river oracle
#

OS reassigns the memory locations to save it after the first element

rough drift
rough drift
zinc lintel
#

Does anyone know how to fix gson not importing as a dependency in some versions of minecraft?
error: pastebin

slender elbow
#

i mean, that just wasn't a method in whatever gson version 1.17 used

#

so either don't depend on newer versions (depend on the lowest version you intend to run the plugin on), update the server, or just avoid using new methods

zinc lintel
#

hmm k

sly topaz
pseudo hazel
#

exactly

#

has the potential to be very fast

#

and im all about potential

ivory sleet
#

Sleep sort is cool also

lilac dagger
#

lucky sort is the best

#

bogo sort is always O(n) for the lucky ones

#

and all other sorts will get the best case scenario

river oracle
blazing ocean
#

Schrödinger Sort is my favourite sorting algorithm

blazing ocean
#

(log n is the seed)

slate siren
#

It's a ridiculous thing, but when I give op permission to 1 out of 100 people on the server, No one except the op can do anything, right clicking on the enderchest chest does not open, the enchantment table is still the same

#

But when we get op everything is normal

#

Warum

blazing ocean
#

spawn protection I assume

ocean frost
#

Im making a server for me and my friends but i dont know anything about making plugins and i want to add custom stuff can anyone help?

slate siren
blazing ocean
#

OPs bypass spawn protection

slate siren
#

All the ballot boxes open normally, but when you give op authority to even one person, no one can do anything.

slate siren
slate siren
#

Where do we turn this off? I've never done anything like that

blazing ocean
#

server.properties

slate siren
# blazing ocean oh wat

Look now, 10 normal players can open chests without any problems and the enchantment table, but when I give op authority to one person, the remaining 9 people cannot do anything except op.

slate siren
ocean frost
blazing ocean
#

wha

river oracle
blazing ocean
#

huh??

river oracle
#

?services

undone axleBOT
slate siren
blazing ocean
#

WHAT

#

also stop yelling lmfao

river oracle
#

Nothing makes sense here 💀 Google translate moment

blazing ocean
#

^^

slate siren
blazing ocean
#

"bitte" lol
spawn protection is in the server.properties spawn-protection

slate siren
#

spawn-protection=16

#

Ich habe die Zahl 0 gemacht

blazing ocean
#

english only

#

just use deepl or something but please no denglisch 😭

slate siren
#

Scheiße

echo basalt
#

Scheiße

nova notch
slate siren
#

sehr viel

#

By the way, isn't there a way to disable damage in the player's spawn area in Worldguard, so that if the player is burning in the fire, the spawn won't burn either?

#

I couldn't find

patent quarry
#

Hello, I dont find with which method has been replaced the method setEatSeconds from the FoodComponent

/**
* Sets the time in seconds it will take for this item to be eaten.
*
* @param eatSeconds new eat time
*/
void setEatSeconds(float eatSeconds);

Someone know ?

eternal night
#

nothing rn I think ✨

patent quarry
#

Okay yeah I see, a new ConsumableComponent will probably arrive soon

river oracle
young knoll
#

I love eating lava

sly flint
#

@young knoll

#

anywone is here

#

i want help[

cedar saffron
#

"I want help" but doesn't give the details on what he needs help with

#

Would recommend that you explained ur problem, and without a doubt someone will help you eventually

slate siren
#

How do I prevent a player from burning if he is in a certain area? guys

wet breach
#

water is generally effective against fire

clever lantern
#

does someone know why when i build the project with gradle (shadow jar) it does not have the polish letters (for example 'ą') also, when the message comes from config the letters are displayed correctly

#

i tried to fix it but i cant guess why it happens

eternal oxide
#

must target utf-8 encoding

clever lantern
#

but how to set it

#

ive set it in the run.bat but doesnt work

fossil flax
#

how can i make a totem pop by clicking on it?

slate siren
sly topaz
#

you have to set it in your build.gradle.kts

#
tasks.withType<JavaCompile>().configureEach {
    options.encoding = "UTF-8"
    //options.release = 21

}

tasks.withType<Javadoc>().configureEach {
    options.encoding = "UTF-8"
}
fossil flax
#

like explode

rough ibex
#

huh

#

oh, sorry

#

wrong reply one moment

fossil flax
#

how can i use a totem with a PlayerInteractEvent

rough ibex
#

i'm not sure there's an API method for it

slate siren
#

Guys guys

#

I'll make some adjustments for PvP

#

For example, reducing recoil during pvp.

#

What can I do for this? Should I code it myself or are there other methods?

thorn crypt
#

Hey, is there a way I can retrieve from my spigot plugin all servers on my proxy ? using the channel or idk smth like this

eternal oxide
#

?pmc

thorn crypt
#

thx

winter zenith
#

Anyone know where I can find the spigot mappings?

eternal oxide
#

?mappings

undone axleBOT
winter zenith
#

Thanks