#help-development

1 messages · Page 691 of 1

flint coyote
#

32 is still alright. 16 is already debatable und everything below is just... 2010

lost matrix
#
        HttpClient client = HttpClient.newHttpClient();
        HttpRequest request = HttpRequest.newBuilder()
                .uri(new URI("https://httpbin.org/ip"))
                .GET()
                .build();

        HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
        System.out.println(response.body());
serene sigil
serene sigil
#

i already tried getting the public ip

#

but i still cant join

flint coyote
#

what did you do to your intellij lol

lost matrix
echo basalt
#

had a couple projects open

lost matrix
#
Bukkit.getServer().getPort()
flint coyote
#

A couple as in 10+?

serene sigil
echo basalt
#

prob firewalled if he's using minehut

echo basalt
serene sigil
echo basalt
#

one was compiling paperweight

serene sigil
#

like this

echo basalt
#

I could go for a better cpu instead

#

sell my 5600x and get like a 5900x

serene sigil
lost matrix
serene sigil
#

intel or amd?

flint coyote
#

I'm team amd but it's whatever you prefer

shadow night
lost matrix
#

Whatever has the best price/performance whenever i buy a new rig

serene sigil
serene sigil
quaint mantle
#

i have laptop with 16 gb, idk if i can upgrade it to 32 however there was option of 32 lol

echo basalt
shadow night
#

Why edit the message :(

echo basalt
#

It goes from the lower-end chip of that generation to the higher-end one

serene sigil
#

lmao

echo basalt
#

I guess all I have is more cores tbh

shadow night
serene sigil
#

yea

#

honestly, id also choose guys for my new cpu

shadow night
#

And we all know what you meant anyways

shadow night
echo basalt
#

yeah the fps is the same in gaming it's literally not worth upgrading

serene sigil
#

yea

echo basalt
#

still I want more ram

shadow night
serene sigil
#

is Bukkit.getServer().getPort() always not null?

kindred trellis
#

Hi im trying to change my servers player count from multiplayer menu i read somwhere i need to use ProxyPingEvent but i have no idea how to use that event can someone help? please

ivory sleet
echo basalt
#

and I want blinky lights

shadow night
flint coyote
#

can't they just use tinder to match?

echo basalt
#

one's red

#

the other is gray

#

the gray one is discontinued

#

the red one is hard to find

#

they're both 3200mhz sticks overclocked to 3600

timid hedge
#

?paste

undone axleBOT
shadow night
smoky anchor
#

Try to print out the actual arguments or print the exception

autumn cave
#

How do I get the CraftContainer or an InventoryView?

clever musk
#
        <dependency>
            <groupId>org.spigotmc</groupId>
            <artifactId>spigot</artifactId>
            <version>1.20.1-R0.1-SNAPSHOT</version>
            <classifier>remapped-mojang</classifier>
            <scope>provided</scope>
        </dependency>

Is this right?

young knoll
#

Yes

#

Did you run buildtools

#

With the remapped flag

frigid finch
#

Hello,

can someone help me in 1.19 to send DataWatcher through PacketPlayOutEntityMetadata please ?

It seems that they removed the constructor using datawatchers

Is it still possible to ?

young knoll
#

Iirc datawatcher has a packDirty or something

#

Which will get you the list

#

There’s also a getNonDefaultValues or something

frigid finch
gleaming grove
frigid finch
echo basalt
#

Instead of the entire datawatcher

frigid finch
echo basalt
#

no clue what you're trying to do

young knoll
#

It’s not a list of data watchers

#

It’s a list of data watcher values

frigid finch
#

for a player

frigid finch
young knoll
#

Iirc datawatcher has a packDirty or something
Which will get you the list
There’s also a getNonDefaultValues or something

ivory sleet
#

?kick @quaint mantle

undone axleBOT
#

Done. That felt good.

smoky anchor
#

patched_1.12.2.jar:git-Paper-1620
Sir, this is Spigot

kindred sentinel
#

How could i change max durability of an item?

smoky anchor
#

My guess would be that the amount is too big
try to debug deserialization

kindred sentinel
#

So.. where is the method setDurability??

young knoll
#

It literally links to damageable.setDamage

carmine mica
kindred sentinel
#

oh

subtle folio
#

what

shadow night
#

Eaglercraft ig?

subtle folio
#

ok

humble heath
#

how would i go about formatting the name above player heads

shadow night
young knoll
#

Gee I wonder why

shadow night
#

The person who hosted the page couldn't do that because his religion, something about that he couldn't do DMCA'ble stuff because of his religion or something like that

rotund ravine
#

@shadow night You’ll get banned on paper etc. With those pronouns on ur disc

shadow night
#

what's my pronouns

rotund ravine
#

Mayo/naise

shadow night
#

Well yeah, those are my pronouns

#

And I don't do paper

split slate
#

Hey, i'm currently working on a 1V1 plugin for my server with multi instances that are handled with multiverse core (its the same server but we teleport the players to a new world)
however sometimes the players can't see each other, or only one player can see the other, or its just working as intended like its not making any sense im confused

#

were running en 1.8.8 btw with via version, do you guys think the issue could come from here?

#

our code doesnt involve any hide players or invisibility or messing with any packets btw

shadow night
#

You shouldn't create a lot of worlds, you should do everything on one world

split slate
#

Its only a 1v1 game, so when one game is full we create a new map for other players to be able to join

shadow night
#

Well, when a player joins you copy over the structure to another spot in that world and do whatever you need to

#

Creating a lot of worlds is bad for performance

split slate
shadow night
#

Idk how big servers do it, but when you're making a lot of worlds you should know you are doing something wrong

young knoll
#

Define big

split slate
#

we arent , we usually only have 2/3 worlds at a time on the same server

split slate
#

i mean hypixel is a pretty bad example but

young knoll
#

Hypixel spins up servers when they need them

split slate
#

u got my point lol

young knoll
#

And runs a few worlds on one server

shadow night
#

But hypixel prob has pretty insane hardware

young knoll
#

Have a pool of worlds you make at startup

#

And use them

shadow night
#

that sounds pretty good

young knoll
#

Make sure to set them all to not keep spawn loaded and they won't have much of a performance impact when not in use

shadow night
#

I've noticed multiverse worlds and generally any extra worlds slow down the loading time

split slate
#

so creating dynamically worlds can cause the issue?

young knoll
#

Yes

#

Creating worlds at runtime will cause a lag spike

shadow night
#

And generally isn't a good idea

young knoll
#

Oh you have player visibility issues

#

Probably just 1.8 being jank with multiple worlds

shadow night
#

I wonder if having one or two pre-made worlds could actually fix or improve their issue

split slate
#

so you think that just having premade worls and not generating them on the go will fix the visibility issues ?

young knoll
#

Who knows

#

It's 1.8

shadow night
#

It might

#

It makes no sense for any of us but knowing minecraft that could absolutely fix the issue

split slate
#

Okay we will try with premade worlds

#

Thank you for your time and your help :)

wet breach
#

@echo basalt I don't know their current setup or what they have changed, but I know the original design that it is all based off of

tender shard
#

wrong channel

frigid vault
#

whitch one is the right one?

tender shard
frigid vault
wet breach
#

mthic discord which is for the plugin sent you to spigot discord which is mostly for the server

#

o.O

#

doesn't seem quite right or make that much sense

wet breach
#

well hopefully someone can help you

#

shame the discord for said plugin doesn't know the issue with their own plugin

frigid vault
wet breach
#

well you said the discord for it sent you here o.O

#

I have no idea if they do or don't just going based off what you said

remote swallow
wet breach
#

Seems they have a fine discord server right there

#

I would try getting help from the actual devs of the plugin or those who do use it from there 🙂

quaint mantle
#

hello

frigid vault
warped shell
#

is there a way to increase the distance whicha fishing hook can be cast? Increasing velocity just makes it hit its maximum faster

remote swallow
frigid vault
#

idk what happened to me then

#

anyways thank you

timid hedge
#

Hey can someone please help me
I am trying to make so i can use /balance add <my name> <amount> but the amount is never being added to my account
https://paste.md-5.net/sowojijixu.cs

    public double addBalance(OfflinePlayer p, double amount) {
        if(economy != null && economy.hasAccount(p)){
            economy.depositPlayer(p, amount);
            return economy.getBalance(p);
        }
        return 0.0;
    }

When i use /balance add <my name> <amount> it is sending my name and balance but the amount is not getting added

remote swallow
#

bc i doubt the value is updated

#

check what methods economy response has

upper hazel
#

customModelData dont exists in 1.12 spigot ??

#

faucet is running full

timid hedge
upper hazel
#

how save num in livingEntity

remote swallow
#

return economy.depositPlayer(p, amount).balance;

upper hazel
#

demm

echo basalt
carmine mica
#

Why does RegionAccessor not have methods to get a Block directly?

humble heath
#

how would i go about formatting the name above player heads

shadow night
echo basalt
#

no

shadow night
#

Weird shit

summer vault
#

Quick question: How do I get an Item / ItemStack from the name, like "redstone" or "flint_and_steel"?

young knoll
#

Material.matchMaterial

#

Then make stack with the resulting material (if not null)

summer vault
#

thx

glossy venture
echo basalt
#

They introduced the tag on 1.14

#

and added it to their rendering system

#

Sure you can add it to 1.12 items using NBTAPI and it'll render fine for 1.14+ clients

young knoll
#

It is just NBT

echo basalt
#

which is what I've done before

#

p sure that even PDC worked

young knoll
#

Yeah it requires the render change

#

I mean PDC is also just NBT

#

Could easily backport it to 1.8 if ur insane

echo basalt
#

average hypixel moment

shadow night
young knoll
#

Hypixel would just work with raw NBT

#

Not that hard

#

Or they’d make a simple wrapper

worldly ingot
#

PR it

remote swallow
#

mm would just add it to paper

carmine mica
# worldly ingot ¯\_(ツ)_/¯

I want do know if there is an actual reason. It seems dumb that it was just overlooked when the interface was split up

#

methods were moved from World to RegionAccessor, but not a Block method?

worldly ingot
#

Probably something to do with state or some other reason. Unsure

#

I believe that interface came to exist due to world generation in which block instances aren't really necessary anyways

lone jacinth
#

Block wasn't added since people should not use it during world generation since it contains a lot of methods which don't make sense to have. e.g. light or redstone methods.

carmine mica
#

but you can still get a Block instance for the world generation world, you just have to go through one more method

opal carbon
#

why do you require address to sign up for stash anyways

carmine mica
#

regionAccessor.getBlockState(1, 1, 1).getBlock() that also just creates a blockstate for no reason, since the CraftBlock is created anyways in the impl of the method

tender shard
lone jacinth
#

It's a difference if people have direct access to it or not

carmine mica
#

I think so. the requirePlaced check should pass I think on getBLock

tender shard
#

CraftBLock requires access to the net.minecraft.world.level.GeneratorAccess

#

which a BlockState does not have

#

neither does the CraftRegionAccessor

#

the getBLock() method in CraftBlockState also checks if the block is placed

#

which it probably won't be if you got it from "only" a regionaccessor that isn't a world

#

(just a guess, idk)

#

if you can verify that getBLock() works on a BlockState you got during world generation, then yeah, there shuold be a getBLock method in RegionAccessor too

carmine mica
#

I'm pretty sure it works just from looking at the code. CraftBlock takes a LevelAccessor which CraftRegionAccessor most certainly does have

#

CraftBlockState also does via the WeakReference field it has

#

CraftRegionAccesssor has a WorldGenLevel with is a subtype of LevelAccessor

#

CraftBlockState#isPlaced should succeed since there is a CraftWorld set on the CraftBlockState when its created in CraftBlockStates

#

then the getWorldHandle method should return the LevelAccessor inside the weakref cause that field is not null

#

(assuming the weak ref isn't empty as well, but that's a safe assumption cause this is all happening at the same time)

marsh crater
#
public Player getPlayersOpponent(Player player) {
        if(!playerIsInDuel(player)) {
            return null;
        }

        UUID opponentUuid = playerOpponents.get(player.getUniqueId());

        if(opponentUuid == null) {
            return null;
        }

        // check if opponent is online
        if(plugin.getServer().getPlayer(opponentUuid) == null) {
            return null;
        }

        return plugin.getServer().getPlayer(opponentUuid);
    }

Should I add any other checks before returning the Player?

tender shard
carmine mica
#

you did that logic thing were you did if a -> b doesn't mean if b -> a

#

if it returns a World its placed, if it doesn't, that doesn't mean its not placed

#

if it returns a GeneratorAccess that doesn't mean its not placed

#

plus, that's not what the isPlaced method even checks, it checks if the CraftWorld field is null or not

tender shard
#

CraftBlockState#isPlaced() simpy checks if the CraftWorld field is null

carmine mica
#

yeah, and its not null for block states from a CraftRegionAccessor, so it is placed, so the requirePlaced check passes

tender shard
#

well that's great, I never said it won't work, I only asked if you tried whether it actually works. And that I cannot test it myself because I have no clue in which situations I'd be able to obtain a RegionAccessor that is not a world

young knoll
#

Generally worldgen

#

Block populators and chunk generators and whatnot

tender shard
#

a chunk generator already got the world

carmine mica
#

oh lol. so im just gonna add a new block populator. The block populator list on CraftWorld isn't safe. It returns the actual list, so you can just add a populator at runtime whenever, but you don't know if its being iterated over at the same time on another thread

lone jacinth
carmine mica
#

that kinda covers adding them, but you can still prob get CMEs if you remove something from that list.

#

would be better if that list returned could only be mutated before anything happened in the world

#

or if it was copied when iterated over in the chunk generation

lone jacinth
carmine mica
quaint mantle
#

\n i guess

tender shard
#

it also seems like BLockPopulators are the only thing where LimitedRegions/RegionAccessors are used at all

carmine mica
#

that's the only place I see the constructor for CraftLimitedRegion used, so yeah

lone jacinth
#

The block, it is not in the RegionAccessor since as mention it does not provide additional use full methods which BlockState or RegionAccessor already has in a world generation context.
And has more methods which should not be used during world generation e.g light and redstone.
This way the use is discouraged and especially newer developers using the world generation api won't use it.
There is no additional check in BlockState#getBlock do give more advanced developers still the option to get the Block instance, for what ever reason there might need it.

carmine mica
#

there are useful things tho. Block#canPlace, Block#getshape (2 methods)

lone jacinth
#

canPlace won't necessary work during world generation since it uses the minecraft world

#

which looking at it isn't even necessary and it could use the normal generator access

young knoll
#

It’s older api

#

There’s newer stuff in BlockData

lone jacinth
#

And Block#getShape does not exist

carmine mica
#

the voxel shape and bounding box ones, idk the exact names

#

getCollisionShape getBoundingBox

echo basalt
#

can we have a rayTraceBlocks method with a predicate for each block pls

lone jacinth
tender shard
echo basalt
#

that uses an iterator

#

I mean like a transparency thing

#

Sometimes collision shapes are funky

#

But I might want glass to be seen as a transparent block

remote swallow
#

my intellij isnt happy

#

smh

#

now it is

quaint mantle
#

make it happy then :3

remote swallow
#

no

#

im gonna deck it

young knoll
#

Egg

remote swallow
#

moo

onyx fjord
#

what development help do you need with that picture

remote swallow
#

on an apache-2 license can i yoink classes

vapid grove
#

you can create custom generation in plugins?

remote swallow
vapid grove
#

neat

remote swallow
#

probably

#

what

#

no

glad prawn
#

4k

#

quality

worldly ingot
#

emplace_back() > push_back()

#

:c

shadow gazelle
#

Is there a way to get the vector of a projectile before it hits a player?

remote swallow
#

i dont know anything about it

sullen marlin
#

emplace

remote swallow
#

no

sullen marlin
#

that's about as real a word as embiggen

remote swallow
#

no

sullen marlin
#

imgui

#

I know nothing about imgui

#

so no

#

I doubt anyone here does

remote swallow
#

choco might know

sullen marlin
#

ask chatgpt

remote swallow
#

he did cpp like twice

sullen marlin
#

or stackoverflow

#

...

remote swallow
#

?kick @quaint mantle troll

sullen marlin
#

I will google, $400/hour

#

take it or leave it

marsh crater
#

Can I put a timer in the constructor of an object to remove an entry in a hashmap holding the object with the timer and still use other functionalities of the object?

sullen marlin
#

sure

#

sounds like bad design to do in constructor

#

but sure

#

do it yourself then

#

just explain why you can't do it

marsh crater
sullen marlin
#

I don't believe that discord does but google doesnt

marsh crater
#

how did you download discord?

sullen marlin
remote swallow
#

how are you using discord

sullen marlin
#

you're a troll lol

remote swallow
#

discord needs internet

marsh crater
#

sudo apt install firefox

shadow gazelle
#

what

young knoll
#

They are 100% a troll

#

Just ignore them

remote swallow
#

md do the thing

sullen marlin
#

that'll be $40 please

remote swallow
#

40?

#

i thought it was 4000

shadow gazelle
#

My phone has 128GB bruh

sullen marlin
#

6 minutes @ $400/hour

remote swallow
#

my phone has 32gb and i downloaded discord just fine

shadow gazelle
#

64GB is like $5 for an SD card

#

maybe

remote swallow
shadow gazelle
#

I don't know how you even buy a computer than only has 64GB of storage

young knoll
#

Always gotta have that 1 hour minimum

remote swallow
shadow gazelle
#

Anyway, I would assume this isn't the case, but does an arrow still "have" its velocity when it hits a player in the ProjectileHitEvent?

remote swallow
#

coll

#

what happened to you going to nap

#

4 hours ago

#

couldve found me them hibernate examples

shadow gazelle
#

this dude is trolling

remote swallow
#

he said as he was online on a phone

shadow gazelle
#

lmao

shadow gazelle
sullen marlin
#

ur so funny

#

/s

shadow gazelle
#

Why are you asking for help with a Windows API in a server for a block game API

remote swallow
marsh crater
remote swallow
marsh crater
shadow gazelle
#

The six other search engines that exist:

sullen marlin
#

bro the internet doesnt work on his device

#

his OS runs discord only

shadow gazelle
#

and VS

#

apparently

marsh crater
shadow gazelle
#

no lol

remote swallow
#

discos

shadow gazelle
#

w h y

remote swallow
#

discordos

lost matrix
marsh crater
#

why is that a thing

shadow gazelle
#

NP++ is not an IDE

lost matrix
#

All this OS has is js and node to run a single electron app

shadow gazelle
#

he doesn't even have it installed

#

he has it on a USB stick

young knoll
#

It can’t run any other stuff with that though

#

Because uhh

remote swallow
young knoll
#

Science

shadow gazelle
#

Okay now I know he's trolling

lost matrix
#

Write your data down on paper

stark bloom
shadow gazelle
#

hold on guys

remote swallow
#

infinite

shadow gazelle
#

let me get my friend's Minecraft PC

lost matrix
shadow gazelle
#

(he wrote a compiler for it)

marsh crater
shadow gazelle
#

no

stark bloom
shadow gazelle
#

redstone

#

he spent multiple months on it lmao

unreal quartz
worldly ingot
#

I was literally preparing to quote that exact message

sullen marlin
#

even this puppy was more than 1200rpm pretty sure

shadow gazelle
#

yeah

#

that's the first thing I looked for

worldly ingot
#

10k/mb. Cheaper than RAM today Kappa

lost matrix
shadow gazelle
#

No one even sells anything that slow

#

???

#

a GAU9 spins faster lol

lost matrix
#

Ok but you can get used 500g HDDs for like 10 bucks

sullen marlin
#

if you're not rotating your hard disk platters by hand what are you even doing

shadow gazelle
#

troll

remote swallow
#

waiting for coll to google for me

shadow gazelle
#

Show us in HWiNFO

#

or something

remote swallow
#

ya what

#

i could get that in 2 hours

lost matrix
#

Are you working in an african coal mine? wtf

shadow gazelle
#

Minimum wage here is more than that

#

$15 or $17

#

I don't remember

remote swallow
lost matrix
shadow gazelle
#

nevermind

#

It's ~$13

#

Are you working in an african coal mine? wtf

#

Where

young knoll
#

Well

shadow gazelle
#

Although it was probably rhetorical it's still a question

young knoll
#

Most African coal mines are in Africa

shadow gazelle
#

I was asking where he works

#

What country?

lost matrix
#

Yeah there are some countries where an 10$ expense needs to be carefully considered...
But you know how to program in C++. If you have decent spoken english then you can surely
get a decent remote job.

#

Ah

kindred sentinel
#

Would It be right if i will do something like this?

ItemStack pickaxe = new ItemStack(Material.DIAMOND_PICKAXE);
Damageable itemMeta  = (Damageable) pickaxe.getItemMeta()

Or it works differently?

sullen marlin
#

that looks fine

kindred sentinel
#

Oh ok, thanks

lost matrix
kindred sentinel
#

Hmm

#

Ok, thx

#

But there is no problem, i just wanted to ask if it works fine, because i cant test it now

lost matrix
#

What lib are you using?

sterile token
#

I wish if i could get some hand into fixing this weird issue i having. I having with it like 1h and i cant actually understand whats happening. Im facing a permission issue related to my command framework, for some reason when i try to run an argument or sub command from a parent command its yells telling me that i dont have permission

kindred sentinel
#

Hmm. So i need some tutorials about NMS, where could i find it?

lost matrix
#

Yes im familiar. Are you fine with importing arpa/inet?

sterile token
#

why i cant answer to a message?

#

lol discord bugs 😡

kindred sentinel
#

?nms

sterile token
lost matrix
#

So... with the old netinet/in.h??

#

Like... ancient

chrome beacon
remote swallow
#

anyone used hibernate in an os plugin before, im very confused

lost matrix
#

Anyways ill try to write a very simple example

remote swallow
#

7smile i wouldnt

#

hes probably trolling

zealous needle
#

Racism

sterile token
#

notepad 💀 💀 i want what the wheel you smoke to code on that ** its seems to be really efective

lost matrix
#
  int sock; // Still needs to be created ofc. Think you got this. Just make sure the type is SOCK_DGRAM & IPPROTO_UDP
  char *message = "Hello Saintes server!";
  struct sockaddr_in serverAddr;

  memset(&serverAddr, 0, sizeof(serverAddr)); // Allocate
  serverAddr.sin_family = AF_INET; // Important for inet layer 
  serverAddr.sin_port = htons(12345);  // The target port
  serverAddr.sin_addr.s_addr = inet_addr("127.0.0.1"); // The target IP

  sockaddr * addr_p = (struct sockaddr *)&serverAddr;

  if (sendto(sock, message, strlen(message), 0 /* flags iirc */,addr_p , sizeof(serverAddr)) < 0) {
      perror("Sending failed");
      close(sock); // Can also be kept open
      return 0;
  }
remote swallow
sterile token
#

bruh why u mad, i was just for fun what i said. Dont get mad buddy

lost matrix
#

Btw this will fail for bigger packets if you reach the packet size limit.
You would have to partition the buffer by hand for this.
Gosh its honestly stupid to write this in C

sterile token
#

yikes, and what the issue? We a re on the 23" not in the 80" where you have to deal with those things. Its terminology get up to update instead of losting time with old things. Just personal recommendations

lost matrix
#

Huh?

#

IPv4 chokes on ~65kb already. How can a higher level like UDP have a bigger size then?

#

The size field of ipv4 only has 16 bit. So the biggest unsigned number you can add there is 65k and a bit.
I dont understand how you can "force" more.

kindred pasture
#

hey guys so ideally I would like to keep villages instead of disabling them but I can't have my players accessing the free GUI blocks it provides (my server has custom recipes for them that are way harder to craft).

Would I be able to on AsyncStructureSpawnEvent look through all the blocks in each chunk and set say like furnaces and smithing tables and such to air blocks? Or will this cause issues with world generation?

Would doing this have to be a delayed task also? AsyncStructureSpawnEvent might run before the structure is placed?

zealous needle
opal juniper
kindred pasture
lost matrix
kindred pasture
#

OMG THEY CAN?

opal juniper
#

true actually

lost matrix
opal juniper
#

But yeah, to remove them you need to do it sync

kindred pasture
#

yea for sure

#

thank u guys!

#
    @EventHandler
    public void onStructureSpawn(AsyncStructureSpawnEvent event) {
        if (event.getStructure() == Structure.VILLAGE_DESERT ||
                event.getStructure() == Structure.VILLAGE_PLAINS ||
                event.getStructure() == Structure.VILLAGE_SAVANNA ||
                event.getStructure() == Structure.VILLAGE_SNOWY ||
                event.getStructure() == Structure.VILLAGE_TAIGA ||
                event.getStructure() == Structure.PILLAGER_OUTPOST ||
                event.getStructure() == Structure.MANSION
        ) {
            Bukkit.getScheduler().scheduleSyncDelayedTask(CraftedKingdoms.plugin, () -> {
                removeFurnacesInChunk(event.getChunkX(), event.getChunkZ(), event.getWorld());
            }, 20L * 5);
        }
    }

    private void removeFurnacesInChunk(int chunkX, int chunkZ, World world) {
        for (BlockState tileEntity : world.getChunkAt(chunkX, chunkZ).getTileEntities()) {
            if (tileEntity instanceof Furnace) {
                tileEntity.getBlock().setType(Material.AIR);
            }
        }
    }
#

Something like this I presume?

sullen marlin
#

Why you removing furnaces

young knoll
#

They aren’t all tile entities

sullen marlin
#

Don't your just want event setCancelled

lost matrix
#

5s might be a bit long. You def dont want the chunk to unload and load again (depending on the server chunk cache settings)

sterile token
#

Some small question, isnt better to make a final collection with all the possible types and then loop over it?

sullen marlin
#

Did I miss something

opal juniper
#

they only want to remove the furnace or whatever

lost matrix
kindred pasture
#

Because my plugin overrides vanilla recipes and the furnace recipe is much harder (it takes like 400 cobble worth of custom items). Its to keep players in the stone age longer. I dont want them to just take them from villages instead

sullen marlin
#

Thought they wanted to disable villages

young knoll
#

Cartography tables are not tile entities, neither are stonecutters, smithing tables, etc

kindred pasture
#

I did initially but this is a better approach since I want to allwo players to still get crops form villages

#

Its coming out today :D

#

Ill DM ya

#

1.20.1. Its a spiritual successor to civcraft I have been working on for 3 months

lost matrix
#

And you are tinkering with chunk generation on release day

#

No testing phase?

young knoll
#

Yeah maybe aim to do that a bit before release

kindred pasture
#

well... hehe I was ready to launch and realized last minute oh shit palyers can just loot these blocks from villages

#

doesnt really break the game jsut is lame af

young knoll
#

Also the better but annoying way to do this would be a datapack that replaces the village structures

opal juniper
#

it takes like 1 minute to download

kindred pasture
#

jk its not that bad

#

but yea

young knoll
#

Not even json

kindred pasture
#

oh?

young knoll
#

You just need to spawn and edit the structures

#

Then save them and put them in the right spots to override

opal juniper
#

not if you delete the old one

kindred pasture
lost matrix
kindred pasture
#

I would def love that, let me just sort out this village thing and ill send u our discord if ur interested :)

young knoll
#

Actually editing it the datapack way won’t be as bad as I thought

#

You only need to modify the buildings that have those blocks in them, which isn’t many

sullen marlin
#

udp 💀

#

can you not afford tcp?

remote swallow
#

are you just server scanning

sullen marlin
#

How did your 1200rpm hard drive with wired wifi manage that

young knoll
#

Maybe he hit the server with the hard drive

#

Like, physically

sullen marlin
#

why not use them to search google

eternal oxide
#

So you are admiting to hacking peoples servers they pay for

#

no permission = stealing

young knoll
#

What about this

#

I mean there’s like a .2% chance any of this is real and a 99.8% chance ur some edgy teen that thinks it’s cool to DDoS

eternal oxide
#

edgy

summer vault
#

can somebody help me with that (or is this the wrong server, bc I dont find any for VaultAPI)

Error: Cannot invoke "org.bukkit.plugin.RegisteredServiceProvider.getProvider()" because "rsp" is null

I have already:

  • added Vault as a softdepend
  • got an economyplugin (EssentialsX) which connects with Vault ([Vault] [Economy] Essentials Economy hooked)
tall dragon
#

buy some storage

remote swallow
#

buy some storage

young knoll
#

You had permission to ddos a server with 80 online players

#

🤔

remote swallow
#

penetration testing

remote swallow
#

does she really

tall dragon
kindred pasture
#

Whell unfortunately it looks like my code does not really do anything to the villages :(

#

Maybe the SyncTask is executing too early

tall dragon
#

x*

half furnace
#

How to create new itens for minecraft?

tender shard
#

you can only use existing items and use CustomModelData

worldly ingot
half furnace
#

But there's no way I can add new items in minecraft?

worldly ingot
#

Not just with the server, no

#

You need a client-server mod for that

#

Forge, Fabric, the like

quaint mantle
half furnace
#

Ok

young knoll
#

Although with a plugin and custom model data

#

You basically can

quaint mantle
#

I think creating items with mods better. But user need to download the mods.

tender shard
#

or you get a proper one for 2€

lost matrix
#

And i bet you get some epyc cores with like 3Ghz clocks that will crumble under game loads

lost matrix
young knoll
#

Didn’t go well

tender shard
#

especially if compared to dedicated ones

young knoll
#

No SSD or HDD by default?

#

Smh

tender shard
#

nah "only" nvme

#

sad

young knoll
#

Ah okay

#

I’m blind shh

tender shard
#

i thought you were joking lol

young knoll
#

Idk why they put the one you get by default below the rest

tender shard
#

yeah no clue

eternal night
#

hetzner is usually pretty cheap

#

in their dedis

tender shard
#

yeah but their employees at falkenstein are very unfriendly

silent cove
#

so i am determined to understand how origin realms does this.. how do ya'll reckon they do this black screen? something i discovered on a super wide game, you can see a clear line that separates whatever is black and what looks like a sky?

eternal night
#

¯_(ツ)_/¯

tender shard
#

no wait, other way around

#

the falkenstein people are nice, the nnürnberg people are unfriendly

silent cove
tender shard
#

it's still just a texture for an already existing item

silent cove
#

sure, but for virtually all intents and purposes, its a new item

young knoll
#

You can give it right click features, recipes, etc

silent cove
#

yep

tender shard
#

but yeah items like stick should work fine 😄

silent cove
#

why do you think MateriaChoices would be messed?

tender shard
#

because both a stick with custom model data 1337 and a normal stick will match the Material choice for stick

silent cove
#

not if you check the key

tender shard
#

so if you have a custom item that's totally unrelated to sticks (and just is one internally) can still be used to craft a torch

silent cove
#

that's simply not true

#

Recipe.ExactChoice

tender shard
#

ofc that is true

#

MaterialChoice

tender shard
young knoll
#

That’s why you just cancel all recipes that have a stick with your custom model data

#

Unless they are your custom recipes

tender shard
#

yes, but still, the crafting book will think you can use them

silent cove
#

I just checked if the recipe namespace is default "minecraft" and if any of the ingredients have custom model data, i set the result to null

young knoll
#

Oh yeah the book exists

#

Forgot

tender shard
silent cove
#

youre saying if i had a leather and then "custom" paper items that arent treated like paper, the recipe book will say i can make a book with it?

tender shard
#

i don't know whether the vanilla recipe for books uses material choices or not

silent cove
#

where does the issue you're bringing up become apparent?

tender shard
silent cove
#

alright. i do that that's such a small unimportant side-effect though

young knoll
#

Might be annoying

silent cove
#

yeah it might be

young knoll
#

A good solution is to use an item that’s never used for recipes

silent cove
#

its pretty amazing what some of these servers are doing though with just custom model data.

#

i didnt do that, unfortunately, but that might be a good solution to that problem

#

use a command block item or something

young knoll
#

Problem with that is you have to cancel placing it, and even then trying to place it will make it flash briefly

#

Again that’s more so just annoying tho

silent cove
#

couldn't the block also have custom model data for the texture?

#

it might still flash though

tender shard
young knoll
#

Custom model data doesn’t apply to blocks

#

Spawn eggs might be a decent option

#

As long as you cancel their right click action

#

Ooh knowledge book is another option

silent cove
tender shard
#

yeah sure, one can easily fix those items being craftable, I just wanted to mention that custom model data isn't perfect and won't replace mojang sometime adding the possibility to actually add TOTALLY NEW items, hopefully

young knoll
#

Hey you can add totally new items to the server :p

#

Just not the client

tender shard
#

great 🥲

young knoll
#

* with spigot

tender shard
#

that's like a restaurant that makes totally awesome food but you can't order it

young knoll
#

I’m still happy we have something

tender shard
#

yeah 1000 times better than using damage like in ancient versions lol

worldly ingot
#

Are lilypads directional?

#

If not, they should be

young knoll
#

Nope

#

They are random

blazing flare
#

How might I trigger an entity to "leap" towards the player? I'd like the entity to leap and land next to the player, as if it's jumping at the player. I'd like it to occur not at a fixed distance, but where the entity is for example 6-12 blocks from the player. The leap distance should calculate accordingly so the entity lands at the player.

worldly ingot
#

Right it's based on the world position

young knoll
#

Ye

worldly ingot
#

That's what I thought it was

young knoll
#

Very lame

worldly ingot
#

They should be directional and counted like the flower petals

young knoll
#

The cherry blossom leaf particle should be rgb

#

A lot of things should but alas they aren’t

silent cove
#

any thoughts on this? Im so stuck on trying to figure it out #help-development message My newest theory is looking upwards at a block like concrete or something. something is causing a sharp change between black and sky

young knoll
#

Yeah probably

silent cove
#

if your monitor isnt bright, the left and right sides are clearly sky, in realtime the clouds move

young knoll
#

Or a map in an item frame with fully black pixels

silent cove
#

trying to recreate it but work around all the little gotchas

#

i was hoping to be able to do it without any specific block placement in the world, but maybe that isnt possible

kind hatch
#

I'm pretty sure that's just an overlay of some sorts. I know I've seen it done before, I just don't know how.

young knoll
#

That’s the forced resource pack overlay

kind hatch
#

Also, that sky is just The End's skybox texture.

silent cove
#

its not though because its literally on the resource pack acceptbance

young knoll
#

But the black background is special

silent cove
kind hatch
#

Those aren't clouds.

silent cove
#

i believee they are clouds.

#

they move

#

what do you think they may be?

kind hatch
#

Yea, so do the specs in the end.

#

It's subtle, but they do move

young knoll
#

Mfw all I see is black

#

Why not just do full black

silent cove
#

yeah you gotta have a bright monitor

kind hatch
#

Color acurate monitors are nice

silent cove
#

but @kind hatch , these "clouds" they move across the sky like clouds, and rectangles of different sizes. im not aware of anything in the end that moves like that

kind hatch
#

We are talking about the image you posted earlier right? The accept the resource pack window?

silent cove
#

here's a better image

#

yess

#

the black in the middle has to be a block, looking up, right? whether its a map, or a block, whatever. its some item

#

but i dont think that its in the end

young knoll
#

Again why not just go with all black

pseudo hazel
#

like you pointed out you can see the sky in the image, meaning its in the overworld

silent cove
pseudo hazel
#

well it is, because there are stars

silent cove
young knoll
#

Idk

silent cove
#

because could just put blindness on

young knoll
#

Blindness effect maybe

silent cove
#

and look up

pseudo hazel
#

you are probably looking up something's ass

silent cove
#

haha

kind hatch
#

Ahh, my mistake, it's not the skybox that has the moving texture, it's the End Gateway block that has that texture.

young knoll
#

Ah yes that’s the ass of the moobloom

#

I recognize it now

silent cove
#

haha

#

does the amplify for blindness allow you to set how strong it is? because even the sky on the left and right has an overlay to it.. almost like an inventory overlay

silent cove
#

haha i tried

#

can't do it

vital yacht
#

Why not?

pseudo hazel
#

if this is a 1.19.3+ server it might also be using display entities

silent cove
#

just doesn't work on this menu

vital yacht
#

Try spamming it as you join the server

#

Or if the setting stays toggled go on another world and use F3 then join the server

silent cove
#

so as you sit here, for a period of time a circular gradient begins to grow from the center of the screen outward, you can sorta see the layered rings here

kind hatch
#

If you're looking for a way to simulate a full black screen, put the player in a black concrete box, the darkness effect and maybe blindness to top it off.

silent cove
#

yeayea. i was trying to figure out how to do it without any world stuff

pseudo hazel
#

yeah thats the overworld skybox

#

turning day time

kind hatch
silent cove
pseudo hazel
#

yes, assuming the white dots arent moving that much

young knoll
#

You’re in purgatory

pseudo hazel
#

otherwise they could be nether particles

silent cove
#

def clouds. they move in a constant direction

kind hatch
#

Yea, it makes sense now. Those dots are the stars in the skybox. lol

silent cove
#

but am i looking up, or looking down? i almost think im looking down

#

because the clouds are so far away, yet im in fog

kind hatch
#

I think you're looking up

silent cove
#

wouldn't that put me at a relatively low y level tho

#

why would it be so foggy

young knoll
#

They should have put their server logo as the background

#

That would have been cool

pseudo hazel
#

fog does not have to do with y level though right?

silent cove
#

i think to have this much it does

kind hatch
silent cove
#

im gonna try to test way up high looking down at a concrete block or something

pseudo hazel
#

well there used to be some kinda fog when you are close to bedrock

#

but iirc they removed that

#

or reduced it idk

young knoll
#

Yeah that was Ye old days

quaint mantle
#

That bedrock particles?

pseudo hazel
#

but at that depth you would be bedrock particles too yeah

#

these look more like stars

silent cove
#

they'are so small though, yeah

#

i don't think its clouds now that im in my world

#

clouds are way too big

#

unless im like at super low in the world, like the world was hogged out

young knoll
#

It’s probably not a real world

#

Basically hypixel limbo

silent cove
#

oh like a empty sky world

#

yeah that's probably it

kind hatch
#

Hypixel limbo is in the end though

young knoll
#

Well same idea

#

Not a real world

kind hatch
#

Guess it just depends on how you want to do it. The end skybox is very dark and doesn't ever change like the overworld does.

young knoll
#

Do a little trolling with custom biomes

#

Send em a light green sky

silent cove
#

does the amplify setting change the intensity of blindness?

subtle folio
#

but it’ll only go so far

opaque scarab
#

I'm trying to alter synched entity data of a block-display. I need to set the blockstate of it, but some reason the value does not take a blockstate. What does it take?

synchedEntityData.set(new EntityDataAccessor<>(22, EntityDataSerializers.BLOCK_STATE), blockstate);//sets the blockstate
sullen marlin
#

There's an API for displays

marsh crater
#
Inventory destination = event.getInventory();

        if(!(destination instanceof PlayerInventory)) {
            event.setCancelled(true);
        }

Is this a good way to keep players from keeping items from a kit for an active duel after the duel ends?
This is in an InventoryClickEvent handler.
When the duel ends, the players old inventory is restored and their duel kit is wiped.
I also have an event handler to cancel the event if they drop an item

quaint mantle
marsh crater
opaque scarab
# sullen marlin There's an API for displays

There is, however I need to set the data in net.minecraft.world.entity.Display.BlockDisplay The only way to access the data appears to be through BlockDisplay#getEntityData() This returns SynchedEntityData, which I then use to send an entity data packet

#

At least, that’s what I’ve seen.

#

But I’m probably wrong.

topaz panther
#

how can i cast an ActionBar?

silent cove
#

can you silently kill someone? eg i want to teleport someone but they are dead, so i respawn them. i want to move them somewhere, do something, and then move them back to their last place, and kill them

#

or if there's an easier way to move a dead play please tell me

scenic valve
opaque scarab
scenic valve
silent cove
#

i was, because i am putting them inside of blocks, but doing so in spectator resulted in seeing right through them.

#

I want the effect of spectator without any ui or anything, but they need to be able to see blocks if they are inside of them

#

i guess i can just put more blocks around them and leave a 1x2 space

scenic valve
#

That sounds a little more reasonable. My gut tells me that the whole effect of spectator without UI might be a packets thing, which is something I am not an expert in

silent cove
#

probably so, but i think this will work

silent cove
#

can i filter out messages/broadcasts to not be sent to certain players using the Broadcast event?

opaque scarab
#

How can I create a new net.minecraft.world.level.block.state.blockstate? I need to set the blockstate of net.minecraft.world.entity.Display.BlockDisplay, but the method Display.BlockDisplay#setBlockState() takes the latter

scenic valve
silent cove
#

oh good. i was hoping i didnt have to cancel and manually do all of the sends

#

why type of event do join/leave messages get sent out through? does not appear to be BroadcastMessageEvent

scenic valve
#

Probably PlayerJoinEvent and PlayerQuitEvent

silent cove
#

you think that does the sending of the messages?

#

i guess maybe so

#

doesn't look like it does

scenic valve
#

Oh you mean the generic join and quit messages?

silent cove
#

yeah, so i have a specific state that a player will be in that i dont want any messages showing up on their screen

#

no join messages, no quit messages, no chat, no broadcast, etc

scenic valve
scenic valve
silent cove
#

for the player join/quit -- wouldnt that set it to null for everyone though

scenic valve
#

Ah fair point, that is tricky, can't think of how to resolve that off the top of my head

silent cove
#

oh well, problem for another day. thanks for your help today

scenic valve
#

no problem

silent cove
#

i thought the say command would be a broadcast

scenic valve
#

I mentioned AsyncPlayerChatEvent becuase it can block general messages, not just broadcast I believe.

#

if that's what you were reffering to

#

I think say command would fall under Async

ripe moat
#

What does this error mean? me.tissemyren.missionsx.commands.MissionsCommand is not abstract and does not override abstract method onCommand(org.bukkit.command.CommandSender,org.bukkit.command.Command,java.lang.String,java.lang.String[]) in org.bukkit.command.CommandExecutor
Some of my code```java
public class MissionsCommand implements CommandExecutor {

@Override
public boolean onCommand(CommandSender sender, String[] args, String label) {```
scenic valve
silent cove
ripe moat
#

oh, i didn't know that the arguments should be in a specific order. Thanks

silent cove
#

i created listeners for both AsyncPlayerChatEvent and BroadcastMessageEvent. threw a sysout print on them and nada

#

for join/leave that is

#

same for "/say"

scenic valve
#

Hmmm, then I don't know how /say operates then, I thought it was either Async or Broadcast. I mean you could just not use the /say command lol, that's one way around it

silent cove
#

oh for sure. i don't actually even use it im just trying to test. im not sure how to kick off a "broadcast" tbh. and i dont have another account to join to send messagfes to see if they cancel, lol

scenic valve
#

Uhhh isn't /broadcast a thing?

#

Or do you mean the broadcast for when a person joins specifically?

silent cove
#

nah just broadcast. i dont think it is

scenic valve
#

Also something that I just thought, you could just set all the join and quit messages null for everyone, and then create a for loop to message people with a different message respectivly, that new message would probably could as a message that Async could handle.

#

Probably not the best approach, but it came to mind

silent cove
#

yeah probably. that could just be a broastcast, no?

scenic valve
#

Oh yeah lol, broadcast message is better

grizzled oasis
#

im trying searching a solution, how can i convert a string

String annotationKey = field.getAnnotation(Path.class).key();

Into a path for mongodb like "subsection.sub" and then on mongodb

subsection: {
   sub: ...
}
echo basalt
#

Why would you want that

summer scroll
#

I'm trying to get vanilla mobs loot, it works perfectly with most of the mobs but it doesn't work with blazes, like it will give me an empty loottable instead, this is my code https://paste.md-5.net/munaxujofu.java.

grizzled oasis
echo basalt
#

You're using mongo wrong

grizzled oasis
#

so i can use the path annotation (that already exist) to make that

grizzled oasis
#

i used it like this for most of my time with sub sections to make everything more "organized"

echo basalt
#

Ideally you have collections of your determined type with codecs and work with the data directly

#

Instead of playing with documents

#

Give me a sec I just woke up

grizzled oasis
#

ok

#

i already have made my own codecs for that, i just need to figure it out how to translate it just that

echo basalt
grizzled oasis
echo basalt
#

What you could do is just get all of the data as a json objects and play around with it

grizzled oasis
#

i use pojo, and i can separate everything but having everything inside a pojo with a path don't know but for me seems clean

#

with multiple collection i should remeber every one of them or just separating data that i found like world paths and other similar data but for other type of data should be better in one place

grizzled oasis
#

dead chat

placid moss
#

fr

quaint mantle
#

now i realized what they have on pfp

quaint mantle
#

hi

#

how to resize title

#

my code: p.sendTitle("Witaj ponownie " + p.getDisplayName(), "życzymy udanej zabawy!");

glad prawn
#

ah

#

nvm

quaint mantle
#

but title is too big

lilac dagger
quaint mantle
#

BUT HOW

lilac dagger
#

not sure if it's a resource pack only thing

quaint mantle
#

i need to use it

#

i need to use smaller font

#

🙂

lilac dagger
#

check to see if utf 8 has any other fonts

quaint mantle
#

ok

#

but how

#

?

lilac dagger
#

ᴛʜɪs ɪs ᴀ sᴍᴀʟʟ ᴛᴇxᴛ ɢᴇɴᴇʀᴀᴛᴏʀ

quaint mantle
#

ok

#

thx

lilac dagger
#

it should be compatible

mellow edge
lilac dagger
#

👍

upper hazel
#

were customModelData in 1.12!?

#

how save string in entity??

lilac dagger
#

peristent data container

shadow night
#

but isn't he using 1.12?

upper hazel
#

not exists in 1.12

lilac dagger
#

it needs a newer version than 1.12

shadow night
#

don't you need nbt then?

upper hazel
#

nbt?

lilac dagger
#

if you want to do it on 1.12, use a yaml system or sql to save uuid as key and value as your data

upper hazel
#

oh

shadow night
#

NBT is Named Binary Tag

lilac dagger
#

or yeah

#

use a nbt plugin

#

and do it that way

shadow night
#

does 1.12 still need nms for nbt?

lilac dagger
#

i'm sure that some exist

#

i think so

#

actually yes

#

you can't just edit an entity otherwise

#

you don't have access to the nbt internals

shadow night
#

hmm

lilac dagger
#

even if the nbt classes are provided in the api

merry cove
#

Hey, so in maven when adding bstats you get a new <plugin> in pom provided by bstats. how do I integrate into the one already there? or can I ahve two? because it now returns found duplicate declaration of plugin org.apache.maven.plugins:maven-shade-plugin

#

I understand the issue, but not how to fix it

#

I tried placing the bstats part inside the original one and that didnt work

lilac dagger
#

can i see both?

#

you just copy paste the shade part into your existing shading section

merry cove
#
          <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.2.4</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <createDependencyReducedPom>false</createDependencyReducedPom>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.1.0</version>
                <configuration>
                    <relocations>
                        <relocation>
                            <pattern>org.bstats</pattern>
                            <!-- Replace this with your package! -->
                            <shadedPattern>me.albus.grapplinghook</shadedPattern>
                        </relocation>
                    </relocations>
                </configuration>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>```
#

As you see I have duplicates, as I have two, but I don't see how I can merge them and keep the original one as I assume I need that one and integrate the new one

#

do I need the top one at all? the <configuration> parts and that?

lilac dagger
#

just copy what one misses from the other

merry cove
#

I moved the <relocation> and the IDEA went haywire

#

it says element not allowed here

lilac dagger
#

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<relocations>
<relocation>
<pattern>org.bstats</pattern>
<!-- Replace this with your package! -->
<shadedPattern>me.albus.grapplinghook</shadedPattern>
</relocation>
</relocations>
</configuration>
</plugin>

#

use this instead of those 2

#

this one has both

merry cove
#

Language level is invalid or missing in pom.xml. Current project JDK is 17. Specify language level in GrapplingHook```
#

fixed it, thanks.

quaint mantle
#

had a question how to do I leave a gap in between two lines in a scoreboard?

#

the current one looks like this

lilac dagger
#

if you're using scores make sure those 2 lines are unique

quaint mantle
#

I was told to do something like

lilac dagger
#

otherwise if you're using teams

#

it'd be similar for scores but it wouldn't matter for teams

quaint mantle
#
 Score score = objective.getScore(ChatColor.GRAY + date + ChatColor.GRAY + " hehehahhaha" + 1); //create a line for the board
            Score s2 = objective.getScore(""); //blank space
            Score s3 = objective.getScore(""); //blank space
            Score s4 = objective.getScore(ChatColor.WHITE + "Early June"  );```
lilac dagger
#

try to do a sidebar with teams

quaint mantle
#
score.setScore(13);
            s2.setScore(12);
            s3.setScore(11);
            s4.setScore(10);```
lilac dagger
#

it'll save you a headache

quaint mantle
lilac dagger
#

use a score and team with the same name

#

and when you set a score, the teams would be pulled into the sidebar

#

the score can be unique color codes

quaint mantle
#

alr lemme try

lilac dagger
#

so you don't see it

#

you can find more about this on spigot

#

'how to use teams for sidebar'

quaint mantle
#

alr bet

#
        Objective obj = board.registerNewObjective("SKYBLOCK", "dummy", "test");
``` this would be at the top right?
lilac dagger
#

wait

#

those are wrong

quaint mantle
#

stolen?

#

how do you steal a vps

#

also ram isnt everything

echo basalt
#

err no

#

ram is cheap

quaint mantle
#
  1. what ram, ddr5,ddr4 etc
  2. what cpu
  3. what disk
#

for example, best setup would be, 128gb ddr5, amd ryzen 9 7950X3D, 8tb ssd nvme disks

echo basalt
#

Pretty sure that on the ryzen 9's their 3d vcache only applies to half the cpu

#

something like that

quaint mantle
#

oh lol

echo basalt
timid hedge
# remote swallow

Dosent work, it still says i have 0.0

    public double addBalance(OfflinePlayer p, double amount) {
        if(economy != null && economy.hasAccount(p)){
            economy.depositPlayer(p, amount);
            return economy.depositPlayer(p, amount).balance;
        }
        return 0.0;
    }
lilac dagger
#

either economy is null or your economy.has account is wrong

#

debug your code

echo basalt
#

p sure that no one uses the accounts system in vault

#

just skip it

quaint mantle
#

how can economy be null

lilac dagger
#

are you making your own economy plugin?

echo basalt
#

if you don't have an economy plugin

lilac dagger
#

or you're trying to hook into one

#

i'm confused

timid hedge
#

What is wrong with this? it gives a error at depostPlayer(p, amount)

    public double addBalance(OfflinePlayer p, double amount) {
        economy.depositPlayer(p, amount);
        return economy.depositPlayer(p, amount).balance;
    }
remote swallow
#

Currently you deposit twice

#

And send the error

timid hedge
#

?paste

undone axleBOT
timid hedge
remote swallow
#

Paste the balace class

timid hedge
echo basalt
#

weird adapter class

rustic grail
#

Does anybodybody know how to resolve this intellij error:
If i lauch intellij a window pops up with this text:

Exception: Process 2 is still running```
There is nothing in the system maneger (i am on ubuntu)
And i tried to reinstall intellij, reboot, shutdown, update&upgrade linux and nothing helped
lilac dagger
#

very weird

rustic grail
#

ye

#

and the docs say: Sucks to be you ig Lmao

lilac dagger
#

what's process with id 2?

#

can you check

rustic grail
#

on it

lilac dagger
#

tho i don't think an app could have id 2

rustic grail
#

so nothing that should block intellij

lilac dagger
#

yeah, guessed as much

rustic grail
#

but i shouldnt kill that

#

no?

lilac dagger
#

try launching the ide differently

#

that's your user i think

rustic grail
#

ye

rustic grail
amber socket
#

how would I check if a invulnerable entity is attacked?

lilac dagger
#

well, use a cmd instead

rustic grail
#

k

lilac dagger
#

does damage event output anything?

amber socket
#

me?

lilac dagger
#

yes

amber socket
#

no

#

since the entity isnt damaged

rustic grail
lilac dagger
#

you might have to listen to ServerboundInteractPacket

rustic grail
#

and now it is to late

amber socket
lilac dagger
#

no

#

this has both attack and right click

amber socket
#

i see, would it be possible to get whats attacked as well?

lilac dagger
#

you'll get the id

amber socket
#

like minecraft:allay?

lilac dagger
#

like the entity id

#

but you need to reflect the field

echo basalt
#

ah shit here we go again

lilac dagger
#

how?

#

i had the same issue , but it seems to have been me clicking material by mistake, i fixed it now

#

otherwise i don't know

echo basalt
#

uhh

#

making new projects

#

n applying patches n stuf

shadow night
echo basalt
#

go figure

chrome beacon
shadow night
echo basalt
#

task manager is weird

echo basalt
#
  • tampermonkey
shadow night
echo basalt
#

I really want to upgrade to 64gb ram grr

lilac dagger
#

weird question, does Enum#ordinal start from 0?

echo basalt
#

yes

lilac dagger
#

nice

echo basalt
#
private boolean testEnum(MyEnum value) {
  assert MyEnum.values()[value.ordinal()] == value;
}
shadow night