#help-development

1 messages · Page 2084 of 1

sterile token
#

When?

normal isle
#

can you help me?

#

):

#

why

#

):

#

how much it takes

#

this his page

#

i asked him to modify the plugin a little

#

just like 3 lines changed from the original

vocal cloud
#

Wait isn't Kaspian in here somewhere

normal isle
#

he is

vocal cloud
#

Just ask them to?

normal isle
#

there no project

#

so he cant

vocal cloud
normal isle
#

yep

#

prety much

vocal cloud
#

Well I mean you'd either have to pay someone to do it or set it up yourself

viral crag
#

dont ask mike

normal isle
slim kernel
normal isle
vocal cloud
#

Well you can do it yourself. It's not rocket science

normal isle
#

for me ye

#

i have no idea how to

slim kernel
glossy scroll
#

Why is it trying to read a .lock file

#

Thats the real question

tardy delta
vocal cloud
#

No package manager like gradle/maven

normal isle
vocal cloud
#

Basically it's good old manually packaged

tardy delta
#

why would you need a project?

normal isle
#

to compile the plugin

viral crag
tardy delta
#

if there is code there is a "project" no?

sterile token
#

Any good tutorial to understand how minecraft x, y, z works like what does them

vocal cloud
#

My German is as good as my French I assume it's command not found

viral crag
#

me too

tardy delta
#

thats like dutch

normal isle
#

nothing

viral crag
#

was that in your intellij console/terminal?

slim kernel
vocal cloud
#

just do ctrl+ctrl then run it

#

or use the maven sidebar

sterile token
# viral crag that makes no sense

Because i need to calculate a cuboid (2 corners) of x (any radius size) blocks around a center locatio. So i want to start from the begining learning how x, y, z works to them apply math

tardy delta
slim kernel
vocal cloud
#

or the sidebar

normal isle
#

can you help me out?

vocal cloud
sterile token
#

Hmn yes but i get rlly messed

#

People say me to use Math.min and Math.max

slim kernel
#

why does it even try that

viral crag
#

perhaps you should see what validate tells you

tardy delta
#
viral crag
#

you shouldnt have stuff from other projects linking into maven ...

slim kernel
sterile token
#

Lmao working with math sucks a lot and even more when you have 3d plain

viral crag
#
This command validates the maven project that everything is correct and all the necessary information is available. ```
sterile token
#

If having 2d sucks (x, y) its diff

slim kernel
sullen canyon
#
   "0":{
      "name":"magicdust",
      "timePlayed":"579259"
   },
   "1":{
      "name":"player684",
      "timePlayed":"97759"
   },
   "2":{
      "name":"defreeyay",
      "timePlayed":"299808"
   },
   "3":{
      "name":"IIl1Il1IIl1IlI1l",
      "timePlayed":"119975"
   },
   "4":{
      "name":"shinaoki",
      "timePlayed":"56001"
   },
   "5":{
      "name":"prava",
      "timePlayed":"558187"
   }
}```

I have this json, how can i parse it? i want to get *name* and *timePlayed* i tried many times different ways but idk
#

any help please

viral crag
slim kernel
vocal cloud
#

Also probably want to learn JSON if you don't understand the structure

ivory sleet
slim kernel
sullen canyon
ivory sleet
#

gson is a library

vocal cloud
ivory sleet
#

so just check its github page out

#

(since the documentation is also located there)

slim kernel
vocal cloud
sullen canyon
#

im using gson for printing json, what a type adapter is?

slim kernel
#

but will that fix my problem?

vocal cloud
#

It'll help prevent issues lol.

ivory sleet
#

like from json to your object and the opposite

vocal cloud
#

ObjectMapper kekw

slim kernel
vocal cloud
#

You're using intellij?

slim kernel
#

yes

vocal cloud
#

Then you just need the browser and you can handle everything else in intellij

#

Oh you'll need to install git tho

slim kernel
#

i have that

slim kernel
vocal cloud
jagged thicket
#

isn't github desktop easier?

#

like very

vocal cloud
#

lol no

ivory sleet
#

I mean gitkraken is just more sophisticated than github desktop but ye

smoky oak
#

not if you use intellij. Using the integrated version in intellij is literally writing commit message and hitting 'ignore warnings'

vocal cloud
#

Intellij has way better features

ivory sleet
#

they're nice if u dont wanna learn git cli

vocal cloud
#

It's a breeze to fix those pesky conflicts

ivory sleet
#

I mean intellij is a bit weird, "Commit and push anyway"

vocal cloud
#

I wish intellij would push me

sterile token
#

3 round people:

1- Calculate the 2 corners (in blue) knowing a center (x, y, z) location
2- Calculate a cuboid from the corners knowing a max size (so the cube size is 3 blocks around the center block)

vocal cloud
ancient plank
#

what's a math

sterile token
ivory sleet
#

git or intellij?

vocal cloud
ivory sleet
#

I have been prompted with several issues as well

#

so relatable

vocal cloud
#

you need to do a AABB box

sterile token
#

You giveme a code but people told that it should be abstractive or something like that

vocal cloud
#

Yeah well some people are wrong some people are me.

ancient plank
#

I've never had any issues with git in intellij 🤔

smoky oak
#

on a different topic guys...
if you replace the plugin jar, you need to reload the plugin to get it active
it still works as if you wouldn't have changed the file
but
if you remove the file it stops working?
how does that make sense?

#

imean

#

its either in RAM or it isnt

#

but not both

sterile token
vocal cloud
#

Yes

viral crag
vocal cloud
#

Let me show you

smoky oak
viral crag
#

only stuff that is being used currently or frequently is always in ram

sterile token
smoky oak
#

...like event handlers. And static shit isin the file...

sterile token
#

So im rlly messed

viral crag
#

you wouldnt want a everything in ram if its not being used, unless you can afford ram-drives

vocal cloud
#

Well in 3d space (like MC) you can have a corner be at -x,y,z x,y,-z

kind hatch
#

Not me booting off my RAM.

sterile token
kind hatch
#

Fuck a page file. Once I’m out. Im out. Lmao

vocal cloud
viral crag
#

does verano123 understand how 2pi makes a circle?

river oracle
#

Maths is too complex just yhrow enough plus and minus at it till it works

sterile token
grim ice
#

wait

#

actually

smoky oak
#

if i add two tasks to the bukkit scheduler with different ticks to execute in, does the first one finish before the second one, no matter what happens?

smoky oak
#

damn

viral crag
#

they run roughly when you schedule them

grim ice
#

yeah

#

im good

smoky oak
#

im asking because i recall bukkit being single threaded tho

viral crag
#

and...

smoky oak
#

so shouldnt it work through all run() of the scheduled tasks for tick 1 before it goes onto the scheduled tasks for tick 2?

vocal cloud
#

The reason you use min and max is so that you make sure that you don't invert your points and do your math wrong.

    public CustomBoundingBox(double x1, double y1, double z1, double x2, double y2, double z2) {
        this.x1 = Math.min(x1,x2);
        this.y1 = Math.min(y1,y2);
        this.z1 = Math.min(z1,z2);

        this.x2 = Math.max(x1,x2);
        this.y2 = Math.max(y1,y2);
        this.z2 = Math.max(z1,z2);
    }
viral crag
#

if you set timer A for 1 hr and timer B for 5 min, B does not run at 1hr5min, it runs at 5min

kind hatch
viral crag
sterile token
#

This my final contains

@Override
public boolean contains(Location location) {
  boolean xMatch = location.getBlockX() >= Math.min(point1.getBlockX(), point2.getBlockX()) && location.getBlockX() <= Math.max(point1.getBlockX(), point2.getBlockX());
  boolean yMatch = location.getBlockY() >= Math.min(point1.getBlockY(), point2.getBlockY()) && location.getBlockY() <= Math.max(point1.getBlockY(), point2.getBlockY()); 
  boolean zMath = location.getBlockZ() >= Math.min(point1.getBlockZ(), point2.getBlockZ()) && location.getBlockZ() <= Math.max(point1.getBlockZ(), point2.getBlockZ());
  return xMatch && yMatch && zMath;
}
rugged cargo
#

how can I spawn a particle exactly where I want it and not have any positional variation put in automatically?

vocal cloud
grim ice
#

do what mike sent

sterile token
vocal cloud
grim ice
#

^

sterile token
#

oh ok

vocal cloud
viral crag
#

negative is just below and behind the center - its just notation for orientation

vocal cloud
#

The beauty of using min and max is you can pass in 2 arbitrary locations and you don't have to care which one is the lower value/higher value

grim ice
#

centerLocation.add(radius, radius, radius); is top right corner
centerLocation.substract(radius, radius, radius); is bottom left corner

#

in here radius is 3

glass inlet
#

So RGB colors work in chats, scoreboards, signs, books... Is there a way to have them in titles/subtitles as well or is that not possible? And if not why?

kind hatch
#

It’s possible in titles.

glass inlet
#

is it?

#

how?

pine elbow
#

How do you get the internal ID from a Material?
Like minecraft:stone

kind hatch
# glass inlet how?

The same way it’s available in every other context. You just need to use the bungee ChatColor.of() method and pass in a valid hex color code.

kind hatch
#

Along side your text that you want colored.

grim ice
#

my brain worked in 2d

#

anyways

sterile token
#

Im not workign 2d

grim ice
#

i think what i edited now is right

#

ik

sterile token
#

im working 3d

grim ice
#

try what i edited

#

it might work

viral crag
#

0 would be whatever center is - although say that is the corner wouldnt be quite right

sterile token
#

So that would be in the boolean contains?

kind hatch
#

IIRC, titles work off JSON internally, so it should have the same values/parameters as the tellraw command.

mighty pier
#

can i use the vault api instead of luckperms api?

viral crag
grim ice
#

right three

#

and forward three

mighty pier
#

e

grim ice
#

which leads to max corner

#

if radius is 3

#

and second ur going down three

#

left three

#

back three

#

which is the min corner

vocal cloud
#

The question is why do you want the corners?

grim ice
#

centerLocation.clone().add(radius, radius, radius); is top right corner
centerLocation.clone().substract(radius, radius, radius); is bottom left corner

#

this

sterile token
#

So hex this is the final code?

grim ice
grim ice
vocal cloud
#

You only need 2 not 4

grim ice
#

biggerPoint()

grim ice
vocal cloud
#

unless you don't want a cube you want a rectangle

kind hatch
sterile token
#

This are the reason of getting messed

grim ice
#

oh right

#

mine will only work

#

for cubes

sterile token
#

So what shoudl i do?

cobalt dust
#

does any1 know what the Material type is for patatoes?

vocal cloud
#

Mine works if it's a cube or a rectangle. You only ever need 2 points

grim ice
#

u cant

sterile token
kind hatch
grim ice
vocal cloud
#

I'm saying you don't need to store 4 points just 2

grim ice
cobalt dust
grim ice
#

u cant get a cuboid from a radius

viral crag
#

you only need 2 point or 2 frames for a rectangular prism

grim ice
#

without it being

#

a cube

#

yall dont get what hes tryna do

sterile token
#

Oh lmao i send a picture of what i wanted

#

😂

grim ice
#

hes tryna get a cube of a center location

viral crag
#

yeah

sterile token
#

But knowing a size around

grim ice
#

i told him wat to do

#

yes

#

with radius

sterile token
#

Yeah

grim ice
#

it cant be a rect tho

sterile token
#

I dont kno why i get messed

grim ice
#

only a cube

#

u cant get a rect with radius

#

since not everything is equal

sterile token
#

i dont want rect

mighty pier
#

i put the luckperms dependency in my pom.xml but it not doing the working

sterile token
#

Forget about them

grim ice
#

ok

viral crag
#

a cube with zero depth in one axis is a rectangle

sterile token
#

So the code is correct or not?

sterile token
viral crag
mighty pier
#

yes it just didnt tab complete

#

i did alt enter

vocal cloud
#

Well if you used my code I imagine you'd just need to do something like

    public CustomBoundingBox(Location location, int radius) {

        int x = location.getBlockX();
        int y = location.getBlockY();
        int z = location.getBlockZ();
        radius--;
        this.x1 = x - radius;
        this.y1 = y - radius;
        this.z1 = z - radius;
        this.x2 = x + radius;
        this.y2 = y + radius;
        this.z2 = z + radius;
    }
sterile token
#

i try the code and tell me that my location its not inside the claim when im inside

grim ice
#

it hasnt released yet

mighty pier
#

lol

vocal cloud
#

Apparently

grim ice
#

thats weird

sterile token
#

So please decide what code me i have to use

grim ice
#

imma try that myself

#

no wtf it should work

vocal cloud
#

Like yeah the code should work. But I hate having to have Locations instead of simple variables for the points shrug1

viral crag
#

it will be offset

sterile token
#

Mike please tell me if i have to change code or not

vocal cloud
#

You need to subtract 1 from the radius I believe

grim ice
#

wait wtf ru doing

#

what i told u to do

sterile token
grim ice
#

was when u create

#

the radius

#

cuboid

vocal cloud
#

Unless it's included in the radius

sterile token
#

Heee?

grim ice
#

not how to expand it with another location

sterile token
#

hee

#

No no

#

expand method its the that create the cuboid

#

😂

viral crag
#

will still be offset with an even radius

sterile token
#
public class CuboidRadius implements Cuboid<Location> {

    private final Location center;
    private final double radius;

    private Location point1;
    private Location point2;

    public CuboidRadius(Location center, double radius) {
        this.center = center;
        this.radius = radius;
        this.expand(center);
    }

    @Override
    public void expand(Location location) {
        this.point1 = this.center.add(radius, radius, radius);
        this.point2 = this.center.subtract(radius, radius, radius);
    }

    @Override
    public boolean contains(Location location) {
        boolean xMatch = location.getBlockX() >= point1.getBlockX() && location.getBlockX() <= point2.getBlockX();
        boolean yMatch = location.getBlockY() >= point1.getBlockY() && location.getBlockY() <= point2.getBlockY();
        boolean zMath = location.getBlockZ() >= point1.getBlockZ() && location.getBlockZ() <= point2.getBlockZ();
        return xMatch && yMatch && zMath;
    }

    @Override
    public Location getPoint1() {
        return this.point1;
    }

    @Override
    public Location getPoint2() {
        return this.point2;
    }

    @Override
    public Location getCenter() { return this.center; }

}
grim ice
#

oh u didnt do

tardy delta
#

return this.point1

grim ice
#

as i said

#

u forgot one thing

#

.clone()

#

ur making changes to the center loc

#

then changing it again

#

we want the center loc to never change

tardy delta
#

can someone tell me why to clone locations? arent they immutable?

#

atleast in newer versions

grim ice
#

clone() to get a copy of it then apply ur changes to the newly made copy

sterile token
#

@Override
public void expand(Location location) {
this.point1 = this.center.clone().add(radius, radius, radius);
this.point2 = this.center.clone().subtract(radius, radius, radius);
}

#

so like that?

grim ice
#

yea

sterile token
#

Allr

grim ice
#

point1 is the maxPoint

viral crag
sterile token
#

I will test

tardy delta
#

stupid

grim ice
#

the bigger point (upper right corner)

tardy delta
#

should be immutable

#

_<

sterile token
#

So if i test it and dont move from the top of the center block, it should tell me that inside the claim

mighty pier
#

why does luckperms start with a lowercase l? what do i have to do

sterile token
mighty pier
#

e

vocal cloud
#

if your radius is 2 won't that make the cube 5,5,5?

mighty pier
#

but what do i make variable

#

just empy

#

string

sterile token
vocal cloud
#

So 5x5x5

sterile token
vocal cloud
#

No that's a 5x5x5 square.

mighty pier
#

yes

sterile token
vocal cloud
#

That's the total amount of blocks that would be protected

sterile token
#

Heee

tardy delta
#

private LuckPerms api

sterile token
#

Im so messed again

#

Im so dumb

slow burrow
#

Yo Im working on a item system, how bad would it be to have an object for every item?

#

Memory wise

sterile token
rugged cargo
#

yo, anyone familiar with how to spawn particles in precise locations?

vocal cloud
#

world#spawnParticle?

#

orwhateveritscalled

#

?jd-s

undone axleBOT
rugged cargo
#

they jump around and are definitely not precise. i think its due to the particle i used

sterile token
# vocal cloud

Only right and left? It should protect bottom and top too :/

viral crag
#

up and down and in and out

sterile token
#

ohh ok

vocal cloud
#

To show you that it's going to be 5x5x5 so if your radius is 2 it'll be 5x5x5

viral crag
vocal cloud
#

Do I need to make a video to explain it lol

vocal cloud
viral crag
slow burrow
#

I mena like a Item object that has methods like lets say

#

um

#

equip/unequip

#

etc

vocal cloud
slow burrow
#

like would the size of the object be much of an issue?

vocal cloud
#

I don't understand what that would be an issue

viral crag
#

other than running out of memory?

slow burrow
#

yeah i meant memory wise

vocal cloud
#

You'd have to write some pretty dumb stuff to do that

grim ice
#

SO basically, ur center is the star, u have to go up by radius (y) and by radius for x and z to reach point 1, reverse for point 2
and here radius 1 generates a 3x3 cube

#

@sterile token

slow burrow
#

no but like having the items active in the memory all the time

grim ice
#

ignore to get to the star thingy

vocal cloud
#

Well do you need to?

grim ice
#

the star is ur center

vocal cloud
#

That's the million dollar question

slow burrow
vocal cloud
#

And how many items would there be?

#

Hundreds, thousands

slow burrow
#

idk..

#

hundereds?

vocal cloud
#

Figure out what the minimum amount of information you can store while maintaining the data required and use it

viral crag
#

gives 2hex a grade 6 mather certificate

grim ice
tardy delta
grim ice
#

at least i explained it

vocal cloud
#

Gimme a sec to record it lol

viral crag
#

i want to know if he can speedcube in minecraft

grim ice
#

dont think itll be that easy with a video

#

my low quality paint is enough

#

if ur 10 years old or older

tardy delta
#

ur 11

viral crag
#

looks for a rubikscube plugin

grim ice
#

at least i can understand it :OOOOO

sterile token
#

Im back

#

What

grim ice
#

read what i said

sterile token
#

Yeah i read

grim ice
#

the image too

sterile token
#

But why its giving 5x5x5?

grim ice
#

cuz

sterile token
#

That what i dont understand mike explain

grim ice
#

listen

sterile token
#

ok

grim ice
#

a radius of 1

#

gives

#

3x3x3

#

cuz

#

ur giving each side

#

1 block

slow burrow
#

🟦 🟦 🟦
🟦 🟫 🟦
🟦 🟦 🟦

#

radius of 1

#

well the corners would be more like a triangle but

slow burrow
#

🟦 🟦 🟦 🟦 🟦
🟦 🟦 🟦 🟦 🟦
🟦 🟦 🟫 🟦 🟦
🟦 🟦 🟦 🟦 🟦
🟦 🟦 🟦 🟦 🟦

sterile token
#

So gives 3x3

slow burrow
#

radius of 2

sterile token
#

Allright now i u understand

slow burrow
#

2 blocks on each side

sterile token
#

I wasnt understanding wiuthout explaime

#

Its like if i dont get an example i get hougman inside a water of water

#

Its like i yes or yes need example to understand

grim ice
#

if u dont understand this

#

idk what can i do

sterile token
#

Ohh

slow burrow
#

i think

#

mostly cuz you can relate it to minecraft in some way

vocal cloud
#

Well I can show you in MC

grim ice
#

ur going right 1, left 1

#

counting 1 and 1 and the center (1)

#

makes 3

#

same for 2

#

go right 2, left 2, and center is 1

jagged thicket
#

wow there is a whole physics class going on here actually interesting

grim ice
#

1+2+2 = 5

#

thats why its 5x5x5

#

got it?

viral crag
#

not really physics

jagged thicket
#

from the image i thought it was

#

but ig mafs?

viral crag
#

in verano123's head anyway

sterile token
#

So if:

center = 0, 0, 0
radius = 2

point 1 = 2, 2, 2
point 2 = -2, -2, -2

#

?

grim ice
#

ye

vocal cloud
#

it'll be 2k eventually when youtube processes it

terse arrow
#

if i want to use player.sendBlockChange(location, BlockData)
and i want to send a TNT block for Block data how do i tell my BlockData instane to be of the type TNT

sterile token
jagged thicket
vocal cloud
#

I bought a nice mic and now I make youtube tutorials explaining radius. Send help

sterile token
#

And really thanks for the example

sterile token
#

Mike why dont you do a good tutorial about location and vectors?

#

Not now its a suggest

#

😂

vocal cloud
#

Cause I don't have a reason to

grim ice
#

because everyone understands that

#

maybe twelve years olds dont

jagged thicket
#

make spigot a full course on java cuz yes i actually understand what you are saying

#

also a suggestion lol

grim ice
#

i doubt you can get to 7th grade without knowing whats a vector or location

sterile token
#

Im 15 and i dont understand

grim ice
#

what

vocal cloud
#

back in mah day

tardy delta
#

lemme listen to that voice

sterile token
#

which is the axes on minecraft?

#

x = axe?

grim ice
sterile token
#

Yeah because x y z they mean something

grim ice
#

netherite axe

#

HAHAHA

#

ok im not funny

sterile token
vocal cloud
#

axis

sterile token
#

Ah that

#

so what means x, y z

vocal cloud
#

x axis y axis and z axis

viral crag
#

means you need to go back to school...

sterile token
#

x, z y are all axis?

vocal cloud
#

Not unless they're axis. If they're coordinates then they're points on an axis

grim ice
#

veran ru actually 15

viral crag
#

xyz are arbitrary variables to denote a position on a plane. x,y are common western notation for cartesian plane charts/graphs

grim ice
#

we learnt that at 5th grade, dunno about ur country

vocal cloud
#

xyz actually aren't axis. They're variables to replace the actual names for them

#

Horizontal, Vertical, Diagonal

sterile token
#

im 15y, 4th high-schol (2 before university, 18y its the age you start university) and from Uruguay

#

Its really diff

vocal cloud
#

They replace the names cause no one would understand if you said 15 horizontal 16 diagonal.

grim ice
#

most would

vocal cloud
#

Yes really

viral crag
#

thinks they use variables so they can make word problems longer and worse

vocal cloud
#

It's a lot easier to use X Y Z

grim ice
#

thats such a shit point mike

#

lol

#

i would understand that even though i use x,y,z

sterile token
#

What do you recommend me ti store the cuboid or location on my claim object?

grim ice
#

some kids dont even understand difference between x and z

jagged thicket
#

can we put it like y is horizontal pos and x and z and vertical pos

jagged thicket
vocal cloud
#

Yeah you would never write a*10^horizontal

#

It is the same thing

sterile token
#

and vectors are diff right?

vocal cloud
#

Yes? What is y but a vertical line?

#

No you don't say

viral crag
#

you can always go greek alphabet

vocal cloud
#

Axis usually are bound to a relative dimension. Vectors aren't

viral crag
#

vectors are single dimension

vocal cloud
#

You can have 3d vectors

viral crag
#

yes you can

#

but the vector itself is still single

grim ice
#

ah yes

#

reminded me of Phoenician

vocal cloud
#

Learning Phoenician are we

viral crag
#

trading in the orient?

vocal cloud
#

The only thing I like to do on the orient is murder

drowsy harness
#

never initializing it, as i said, just sending a spawn packet from an existing entity (sry for late response)

grim ice
sterile token
#

So x y z - x y z (2 diff locations) will give the center right?

grim ice
#

Alpha, Beta, Gama, Delta

#

is derieved from Phoenician

#

same for arabic's ابجد هوز

vocal cloud
sterile token
#

What methods would be useful for a cuboid interface?

grim ice
#

see

#

' is A

#

like in Alpha

#

B beta

#

G Gama

#

D delta

grim ice
#

A ا
b ب
g ج
d د

vocal cloud
#

If you're asking yourself the question of "what do I need for xyz" implement it and when you think to yourself "dang I need this" then do it

cyan compass
#

Can i not use setvelocity on fireballs?

#

Cause i want to spawn a static fireball

vocal cloud
cyan compass
#

But i can't make it static that way can i?

vocal cloud
#

I was hoping you'd see the

cyan compass
#

Yeah i saw that

vocal cloud
#

In otherwords you might have to use NMS but even that might not fix it

viral crag
#

you could reskin a block with the firebal texture

modern vigil
#

I have this formatMessage method, which is static

private const val MESSAGE_PLACEHOLDER = "&%b[&%t&lLemonMines&%b] &r:"
        fun formatMessage(input: String, severity: MessageSeverity): String {
            return when (severity) {
                MessageSeverity.SUCCESS -> formatColors(input, arrayOf("%b" to "2", "%t" to "a"))
                MessageSeverity.INFO -> formatColors(input, arrayOf("%b" to "1", "%t" to "9"))
                MessageSeverity.DEBUG -> formatColors(input, arrayOf("%b" to "6", "%t" to "e"))
                MessageSeverity.ERROR -> formatColors(input, arrayOf("%b" to "4", "%t" to "c"))
            }
        }```But there seems to be an error, I found the pair method to do it on some random kotlin guide site, but this keeps erroring
#

I have a repeating placeholder that I want to replace

viral crag
#

are you using kotlin?

modern vigil
#

yes

#

dont laugh at me

viral crag
#

was just checking

vocal cloud
#

hahaahahahahahaaha emacs

modern vigil
#

what emacs

viral crag
#

what is the error you are getting?

vocal cloud
#

Oh my sweet summer child

sterile token
#

how do you get the size of claim?

modern vigil
#

i found out %s is for string

viral crag
sterile token
#

radius = 1

2x2x2 right?

modern vigil
#

i fixed it

sterile token
#

Its possible to?

String text = "User {user} conencted {server}";
String replaced = String.format(text, "{user}", user, "{server}", server);

ivory sleet
#

nope

#

or well

#

wont output what u think it will

modern vigil
#

alright, got a new error

#
private const val MESSAGE_PLACEHOLDER = "&%s\\[&%s&lLemonMines&%s\\] &r:"
        fun formatMessage(input: String, severity: MessageSeverity): String {
            return when (severity) {
                MessageSeverity.SUCCESS -> formatColors(input, arrayOf("2", "a", "2"))
                MessageSeverity.INFO -> formatColors(input, arrayOf("1", "9", "1"))
                MessageSeverity.DEBUG -> formatColors(input, arrayOf("6", "e", "6"))
                MessageSeverity.ERROR -> formatColors(input, arrayOf("4", "c", "4"))
            }
        }```
viral crag
#

it complained about that shade of green?

modern vigil
#

Caused by: java.util.MissingFormatArgumentException: Format specifier '%s'

#

formatColors is the following:

#
private fun formatColors(input: String, replacements: Array<String>) = ChatColor.translateAlternateColorCodes('&', (MESSAGE_PLACEHOLDER + input).format(replacements));```
sterile token
tender shard
modern vigil
#

i provided 3

#

when there are 3 needed

#

ill try the spread operator tomorrow

twilit wharf
#

I want to set the world world's biome provider, how would I go about doing this? I tried a world creator but the issue is that the world already exists

tender shard
#

is your plugin loading before the worlds?

#

try to set "load: STARTUP" in plugin.yml

twilit wharf
#

yeah

#

That might fix it

sterile token
#

What shoudl i use on PlayerMoveEvent to check if claim exists, getFrom() or getTo()?

tender shard
twilit wharf
#

I am using WorldCreator

tender shard
#

hm then I don't know

tender shard
twilit wharf
#

where would I learn more about that?

tender shard
#

I'm currently trying to find something about it myself lol

sterile token
#

Why dont you check on github

#

Maybe you find someone who already do that

tender shard
#

in bukkit.yml:

worlds:
  YourWorldNameHere:
    generator: YourWorldGeneratorPlugin
#

basically you have to create a public ChunkGenerator getDefaultWoreldGenerator(String, String) in your main class, as it seems

#

and ofc use load: STARTUP

twilit wharf
#

I have a BiomeProvider

#

not a ChunkGenerator

#

wait

twilit wharf
#

maybe what I can do, is just create a new world

twilit wharf
#

and just reroute everyone to that world

tender shard
#

you can override these two methods from javaplugin to use them for your custom worlds

twilit wharf
#

I know about that to

#

but that takes a lot of work on my end to make sure that the nether and end are not being overridden

tender shard
#

well you could simply only add "world" to the bukkit.yml, and not world_nether and world_the_end

#

this

#

oh hm maybe you just have to remove the players from the iterator to lower the number

#

i thought there was a "setNumPlayers" method

lavish hemlock
#

That's probably just on the uhh base class

#

If anything extends that class it's probably overridden

chrome beacon
#

Exactly what it says. You might not always be able to remove a player from the list

severe oracle
#

Hi, is it possible to display an open map in armorstand's arms ?

small lynx
#

what is the yaml error here?

tender shard
small lynx
#

i already have done that

#

but i dont know how to fix

tender shard
#

your flora thing is fucked

#

you can't just mix the - part with regular keys

#

there can be only the red part or only the green part inside "flora"

small lynx
crude loom
#

Is there something I can put in the plugin.yml that will automatically detect if the sender is a player and will send an error a message?
Kind of like it does it with permissions

echo basalt
#

what's the problem with writing 4 lines of code?

crude loom
#

Or is the best option to just check for the instance and return true?

crude loom
hasty prawn
#

4 lines of code for checking an instance? pepeMeltdown

rough drift
#

you must
A use a good command lib
B do it yourself

crude loom
#

So if I want the command to only work for a player I do

{
return true;
}```
?
hasty prawn
#
if(sender instanceof Player) return true;

is a little cleaner.

rough drift
#
if(!(sender instanceof Player)) return true;
hasty prawn
#

^

rough drift
#

that will filter anything that isn't a player

crude loom
#

Oh right, thanks!

rough drift
#

np

crude loom
#

Is UUID ConfigurationSerializable?

smoky oak
#
HashMap<String, Object> dmap = new HashMap<>();
dmap.put("Integer",5);

int putinteger = Integer.parseInt(dmap.get("Integer"));
//or
int putinteger = (Integer) dmap.get("Integer");
```Which one is correct?
#

ah nvmind its number 2

hasty prawn
crude loom
#

Ah, alright

#

Any idea on how to change my default config name? I can't find it in the pom.xml

hasty prawn
#

Default config name?

#

Do you mean changing the config.yml name? Because afaik you can't change that. You just need to make another file if you want to change the name.

crude loom
#

No I mean the folder that contains the config.yml

hasty prawn
#

That's just the name in your plugin.yml

crude loom
#

Oh right, thanks for the help!

smoky oak
#
func put(HashMap<K,V> map) {map.put(some_key, some_value);}

HashMap<K, V> map = new HashMap<>();
put(map);

Object o = map.get(some_key);

Is o null or some_value ?

crude loom
#

o would be some_value

smoky oak
#

noted

terse arrow
#

how can i get the display name of a block or material?

echo basalt
#

minecraft's registry

#

I mean

#

it's kinda weird

#

if you want the custom name, the item meta is for you

#

if you want the default name, you must use a combination of both the registry and some string processing

crude loom
terse arrow
echo basalt
terse arrow
echo basalt
#

anything else is just
material.replace("_", " ") and then formatted

#

keep in mind these are minecraft's material names, not bukkit's

terse arrow
#

ok, thanks

quaint mantle
echo basalt
#

most items there are useless indeed

#

but I did need it mostly for tools

quaint mantle
#

bro

#

literally

#

not here

noble lantern
#

Hey

quaint mantle
#
private final Set<String> materialNames = Arrays.stream(Material.values())
                                                .map(s -> upperCaseWords(s))
                                                .collect(Collectors.toSet());

private static String upperCaseWords(String text) {
    String regex = "\\b(.)(.*?)\\b";
    return Pattern.compile(regex).matcher(text.replace("_", " ")).replaceAll(
            matche -> matche.group(1).toUpperCase() + matche.group(2)
    );
}
#

instead of writing out an entire yml

grim ice
#

nah

#

the yml one

#

has better names

#

e.g

#

hay_block is Hay Bale

quaint mantle
#

omg such a difference

grim ice
#

Yes it is

cyan compass
#
[17:09:34 ERROR]: Cannot load plugins/pluginname/../../arena/map-info.yml
org.bukkit.configuration.InvalidConfigurationException: while scanning for the next token
found character '\t(TAB)' that cannot start any token. (Do not use \t(TAB) for indentation)
 in 'reader', line 5, column 1:
        SouthTeamDisplayName: "Purple"
    ^

So i'm getting this error and i'm not sure why it's not okay with my indentation

grim ice
#

you forgot removing the underscore

cyan compass
#

It says don't use tab

hasty prawn
#

You used a tab somewhere, it no likey

#

Yeah you have to replace that tab with spaces

quaint mantle
cyan compass
#

That sucks

grim ice
#

than before

#

you're having a method

#

do 2 things

quaint mantle
#

are you mentally disabled?

grim ice
#

No

#

Though this is bad design

#

thank you

quaint mantle
#

bro

#

how is this bad design

hasty prawn
quaint mantle
#

its literally a fucking method

#

are you trolling rn

grim ice
#

upperCaseWords() shouldnt remove underscores

#

that has no relationship to the method name

quaint mantle
#

shoot me

grim ice
#

im not trolling, youre just an idiot

#

lol

#

man literally at wrong and keeps insulting others

quaint mantle
#

bro

#

then rename the method

#

i dont care

#

its better than hand writing an entire yml with every material value just for better names

grim ice
#

you shouldnt put it in the method

#

bad design

quaint mantle
#

because methods are bad design

#

hardcode everything

grim ice
#

why have a method for that particular thing

#

nah

quaint mantle
#

who needs abstractation either

grim ice
#

Lol

#

so mad huh

quaint mantle
#

you cannot be serious

grim ice
#

Well

#

what you did sucks

quaint mantle
#

mhm

grim ice
#

and you cant get over it

#

and im completely serious lol

quaint mantle
#

you're completely wrong

#

lets get a third opinion

#

someone join in

#

hi

#

imajin very good

hexed hatch
#

I disagree with both of you

#

You’re both complete baffoons

tall dragon
#

is this really about a method name?

quaint mantle
#

yes

#

and hes mad because its put into a method

grim ice
#

No

hexed hatch
#

name the method fatNuts

quaint mantle
#

instead of manually writing the entire material enum

grim ice
#

Clearly, no one here is mad except you

quaint mantle
#

bro

grim ice
#

@quaint mantle i didnt say that

smoky adder
#

Hi sorry de I intrude, how can I create a command for the reload of the config.yml I have searched on the internet but nothing works. Do you have any guides?

grim ice
#

woah there you changing what i said

#

i said youre having a method named upperCaseWords() remove underscores

#

that dosnt make sense

quaint mantle
#

bro just rename the fkin method

#

is it that hard?

grim ice
#

woah there why so mad

hexed hatch
#

name the method whatever the fuck you want

quaint mantle
#

2Hex, he's not wrong

eternal night
#

A real spigot discord moment

quaint mantle
grim ice
#

dont rename it

hexed hatch
#

name it imajinIsDumb

quaint mantle
#

you're just acting dumb at this point if I'm honest

tall dragon
#

why all this drama over a damn method name

echo basalt
#

y'all are arguing over a WordUtils.capitalizeFully(material.name().replace("_", " ")) clone

grim ice
#

you dont need to specify it

quaint mantle
cyan compass
grim ice
#

replace the underscores in the mapping line

tall dragon
#

?paste

undone axleBOT
echo basalt
#

for a YML I grabbed from the game's internals

quaint mantle
#

ok, you do it then 2Hex

grim ice
#

im not doing any drama and you can know that from the conversation lol

tall dragon
#

this is what i do

grim ice
#

also stop siding with imajin since hes a staff that doesnt make you look good ^^

quaint mantle
#

...

#

or maybe hes siding with me because im right 😂

grim ice
#

if thats so then good

quaint mantle
#

^

#

you're getting all defensive over a freaking method name

grim ice
#

What

quaint mantle
#

if you just said

grim ice
#

bro

#

whos the defensive person

quaint mantle
#

you 2hex <3

#

"hey you should probably change it to .. it would make more sense"

grim ice
#

you literally said a few ten swears

viral crag
#

what are we squeeking about?

grim ice
#

you started swearing over a suggestion

tall dragon
grim ice
#

??

quaint mantle
#

can you guys stop arguing ;(

#

it wasnt a suggestion

#

it's like my parents bro

grim ice
#

it was an order by the royal king

#

for you, the slave

#

to do what the master ordered you to do

#

right?

viral crag
grim ice
#

ofc its a suggestion

#

holy shit

tall dragon
grim ice
#

man threw a few dozen swears

#

and called me defensive

#

this is so funny

quaint mantle
#

omg potty mouth

#

you're literally trying to act better

#

just say the suggestion

#

i wouldve renamed it

grim ice
#

i said it before you started swearing

quaint mantle
#

because i can agree that its a bad name

grim ice
#

like a 12 years old that learnt how to swear from their parents fights

quaint mantle
#

holy pizzaria

#

i dont get paid for this

grim ice
#

i dont either

#

but i waste my time talking with shitheads like you

#

that dont accept a freaking suggestion

#

there are dozens that know a few 10x your knowledge here dude

#

dont get all cocky

#

and they have much better personalities

tall dragon
#

well its not a competition is it

grim ice
#

e.g Elgar

#

he knows a ton

quaint mantle
#

@grim ice I re-read the conversation, you told him to make it remove the underscores from the names, then you say it's worse than before even though you told him to do that. Like, seriously, can yall stop arguing.

grim ice
#

but he accepts suggestions

lavish hemlock
#

Who the fuck cares about swearing

quaint mantle
#

omg i said a bad word

#

it doesn't matter who swore first

lavish hemlock
#

It's a Discord server

#

Not a fucking school

grim ice
#

he couldve listened carefully without bringing aggression

quaint mantle
#

it's literally a word

eternal night
#

*Christian discord server

#

child friendly

grim ice
#

Yeah but give yourself a worth lmao

quaint mantle
#

😱

lavish hemlock
#

I personally use swears for emphasis :p

quaint mantle
#

same

grim ice
#

I swear as well

quaint mantle
grim ice
#

but I dont swear at people for giving me suggestions

lavish hemlock
#

Oh yeah I noticed that when you called him a shithead

grim ice
#

^^

#

Yeah

quaint mantle
#

like fucking hell bro

quaint mantle
grim ice
#

So giving suggestions makes you the bad person

#

Nice

grim ice
lavish hemlock
#

No but having a hissy fit puts you on the wrong side of the argument :p

grim ice
#

Why else?

quaint mantle
#

not exactly a suggestion. You told him to do something > he does it > you call it worse and bad design

echo basalt
#

here

eternal night
#

does anyone recon if spigot discord has a mute feature

echo basalt
#

let me just clean up the file

grim ice
#

it is a suggestion

echo basalt
#

to only have the names that are actually different to your method

grim ice
#

i told him that its bad

#

and then told him

quaint mantle
#

when you told him to do it

grim ice
#

the solution

#

even though, i assume hes grown enough

eternal night
#

wasn't this about like i18 display names in the first place ?

grim ice
#

to accept criticism

quaint mantle
#

if you had just said

#

"i think the method name should be ... because it correlates to the function more"

#

i wouldnt have been mad

grim ice
#

you shouldnt be mad cuz of a online stranger eitherway

#

Why do you value me that much

quaint mantle
#

jesus christ

grim ice
#

lol

lavish hemlock
#

Yeah honestly, Hex, you were kinda the shithead here

grim ice
#

What

#

How though, Maow

quaint mantle
#

2Hex, I honestly think you need to both calm down, it's literally just an answer to a question that someone or you asked. If you don't like it how it's "designed", you can go ahead and change it instead of just giving suggestions on what to change.

grim ice
#

if you convince me ill apologize

quaint mantle
#

:3

lavish hemlock
#

Also you're spouting a lot of hypocritical shit rn

tall dragon
#
    private static transient default void printShit()
    {
        System.out.println("Fuck");
    }

i got the popcorn ready. rounddd 2!

quaint mantle
#

It's like you want someone else to do something that you can clearly do

grim ice
#

Possibly

#

Since i get mad at strangers as well

#

and i swear as well too

quaint mantle
lavish hemlock
quaint mantle
#

I'm going to kiss you

grim ice
#

i also sometimes not accept criticsm but i shut my mouth up

tall dragon
quaint mantle
#

yep

eternal night
grim ice
#

Well actually

quaint mantle
#

make it abstract too! @tall dragon

grim ice
#

I swore once

#

so I assume I am

#

Alright, Sorry

tall dragon
#
private static abstract transient default void printShit()
    {
        System.out.println("Fuck");
    }

right fixed my mistake.

quaint mantle
#

bet

#

that's much better

grim ice
quaint mantle
eternal night
#

you are missing final

eternal night
#

bruh

lavish hemlock
#

Gotta use Unicode identifiers too

quaint mantle
quaint mantle
grim ice
#

but its spelled Flamebiting

echo basalt
#

y'all disappoint me

grim ice
#

:troll:

quaint mantle
grim ice
#

Lmao

quaint mantle
#

that sounds really bad out of context

grim ice
#

tbf i wouldnt have apologize if it wasnt for maow

lavish hemlock
#

md_5 should make me the next helper lol

echo basalt
#

screenshotted just for the memes

quaint mantle
#

what about me D:

echo basalt
#

md_5 should be the next helper

grim ice
#

hes the only person here i give a shit about

lavish hemlock
#

Purple you're not that uhh

#

You're not that active

quaint mantle
#

wow

#

I agree

grim ice
quaint mantle
#

but that's the point maow

grim ice
#

my opinion though

#

Maow infact can be a helper

#

hes active and helpful and nice

tall dragon
grim ice
#

has fair opinions as well

lavish hemlock
#

simp /j

quaint mantle
#

even better EpicGodMC

#

I love you

eternal night
#

mhmmmm yes

grim ice
#

Thats why I listened to him

eternal night
#

pfft that is retired

lavish hemlock
#

I wish static abstract existed though

#

You know how many times I've wanted something like it?

tall dragon
#

tf does strictfp even do

echo basalt
#

strict floating point

lavish hemlock
#

Enables strict floats basically

echo basalt
#

makes it accurate across devices

tall dragon
#

ah

cyan compass
#
mapInfo.getString("mapInfo.SouthTeamColour")```

So i'm just wondering why this returns null for my .yml file
lavish hemlock
#

It's a default in Java 16+ now iirc

quaint mantle
#

@tall dragon do it in bytebuddy too!

cyan compass
tall dragon
quaint mantle
#

send the config

#

where its defined

grim ice
#

^

cyan compass
#

I'm the moron who didn't capitalize the M

tall dragon
#

😄

cyan compass
#

Thanks

crude loom
#

Is it possible to code with the 1.8 library at intellIj?

quaint mantle
#

yes

viral crag
#

oof

crude loom
#

How can I do it? because the oldest bersion that apears is 1.12

quaint mantle
#

im guessing you are using the dev plugin?

grim ice
#

he is

crude loom
#

Yes

quaint mantle
#

i think you can

grim ice
#

use 1.12

#

go to pom.xml

#

change 1.12 to 1.8.8

quaint mantle
#

autocomplete hex

#

i need to type faster

lavish hemlock
quaint mantle
#

1.8 poop

#

:O

quaint mantle
crude loom
#

Ah, then what do I do if I want to create a plugin that supports this version?

grim ice
#

some people still help you