#help-development

1 messages · Page 709 of 1

worldly ingot
#

Why are you sending a packet for this though?

#

Player#sendBlockChange() does this all for you

floral drum
# worldly ingot Why are you sending a packet for this though?

Hi Mr Chocolate, basically, I'm intercepting the BlockDig packet to handle it all myself, this is for a farming system. And I didn't realise that in newer versions you had to send a "Acknowledge Packet" to the client to set the block to a different material. That's what was bugging me for quite some time.

worldly ingot
#

Pretty sure a BlockDamageEvent is called for each damage stage of a block as well

#

So unless there's some explicit reason to be using packets here, this should be entirely doable with API

floral drum
quiet ice
#

Quick and stupid question: Is

val java9 by sourceSets.creating

val java9Implementation by configurations.existing {
    extendsFrom(configurations.implementation.get())
}

tasks.jar {
    manifest {
        attributes("Multi-Release" to true)
    }
    from(java9.output) {
        into("META-INF/versions/9/")
    }
}

More likely to be kotlin or groovy gradle? Empirical testing seems to result that this is kotlin gradle but I just want to be sure before I seem like an utter moron

#

Specifically the val, by and to keywords are very sus to me

sterile sapphire
#

Is there a verified website for spigot api

quiet ice
#

Gotta love how gradle support gives you kotlin gradle code in the buildship portion of the gradle forums even though buildship doesn't support kotlin gradle

tender shard
#

why is val sus to you though

#

val = final, var = not-final

quiet ice
#

What I'm saying is that I have never seen them in a groovy gradle buildscript

#

Given that groovy gradle instead uses funny ext bullshit

tender shard
#

usually, if you see method("parameters with brackets and double quotes") it's kotlin lol

#

if you see sometimes ', sometimes ", sometimes with (brackets) and sometimes without, it must be groovy lol

#

and yeah "val" is kotlin only, in groovy there's def

quiet ice
#

Also I really gotta ask: How in the world is that anywhere close to kotlin. Do they seriously support by or to as actual keywords and what the hell are they even supposed to do in the first place

velvet yew
#

hey guys, maybe a really weird question, but is there a way to have a bell giving redstone output when its rung? I tried Calibrated Sculk Sensors but apparantly they dont work.

dry hazel
#

by is property delegation

velvet yew
#

or isnt this the channel to ask? haha

quiet ice
dry hazel
#

it runs a getter every time you access that property (variable) essentially

quiet ice
#

So uh, basically it is a neat inline function?

tender shard
#
val myPair: Pair<String,Int> = "mfnalex" to 28
println(myPair.first) // mfnalex
println(myPair.second) // 28
quiet ice
#

Well I guess to makes sense to me now.

tender shard
#

about the "by" thing: hmmm no clue how I'd explain that

dry hazel
quiet ice
#

WAIT WHAT??? These are actual language features

#

The end is nigh

#

I mean that probably also explains why I was utterly confused by Rust. These modern languages are just so unverbose

lilac dagger
#

kotlin looks so weird

tender shard
#

yeah it also is weird

lilac dagger
#

first, second

tender shard
#

just decompile it and look at what it produces

lilac dagger
#

i assume those are methods?

quiet ice
#

I'd say those are fields

lilac dagger
#

but java was all about don't expose the internals

quiet ice
#

But uh, at this point I'd not be suprised if they redirect to a getter method instead

tender shard
#

oh you never know if something is a field or method in kotlin

quiet ice
lilac dagger
#

sure, but what if you have some other objects where they're best not to be exposed?

tender shard
remote swallow
#

wtf is inflix

lilac dagger
#

i see

remote swallow
#

what in the kotlin am i looking at

dry hazel
lilac dagger
#

out A

#

what even is out?

dry hazel
#

extends

tender shard
#

infix function means fun Int.add(another: Int) could be written as "1 add 2" if the Int.add extension function would be infix

ivory sleet
#

infix inline extension functions :DDDD

lilac dagger
#

props to you for learning kotlin

#

i couldn't

ivory sleet
#

Its easier than what it looks like I promise :)

dry hazel
#

yeah, even the delegation which seems confusing is quite useful once you get the hang of it

lilac dagger
#

nope, i rather take assembly

remote swallow
#

can kotlin compile to bytecode or would i be foreced to shade or libraries kotlin

dry hazel
#

the jvm target does compile to bytecode, but you'll need the stdlib for the fancy functions, obviously

dry hazel
kindred sentinel
#

I couldn't do this, how to track adding, and removing items of barrel???

sterile sapphire
#

Hello?

velvet yew
#

so noone can help me? 😦

remote swallow
#

if you just need to know its urs add a byte, if you need specific data keep a string or whatever

quiet ice
#

Well you could manually set the redstone's energy value but that is not very efficent so shrug

kindred sentinel
tender shard
velvet yew
tender shard
quiet ice
#

Oh you are talking about redstone "dev".
Well I guess it isn't as bad as the yaml engineer

kindred sentinel
tender shard
kindred sentinel
#

amd...

remote swallow
quiet ice
kindred sentinel
#

what is amd?

quiet ice
#

Groovy is pretty close to Java

remote swallow
#

and not amd

kindred sentinel
#

What is amd?

sterile sapphire
#

Is there an official website for spigot api

quiet ice
remote swallow
#

a cpu brand, but i meant and not amd

quiet ice
undone axleBOT
kindred sentinel
#

then what should i save??/

sterile sapphire
#

Ty

remote swallow
#

list of blocks or map with block as a key

#

extra data as value

ivory sleet
#

Dont you dare

#

Say such atrocities

quiet ice
#

Well I mean I cannot use Java 1.5+ features, that is clear.

sterile sapphire
#

Wait I mean the api jar file to use to make a spigot plugin in IntelliJ

quiet ice
tender shard
wary remnant
#

Why don't you use a build tool and add it as a remote dependency? You really shouldn't add the jar manually

sterile sapphire
tender shard
sterile sapphire
#

Thanks

tender shard
quiet ice
#

I have no idea what that is tbh though

sterile sapphire
tender shard
quiet ice
#

Yep.

tender shard
#

you don't need that link at all

#

you just add the spigot repo and dependency to your pom

#

and maven will find the link by itself

quiet ice
#

However yeah I suggest using maven because when it comes updating that link I will again be the only person to know where to find it

kindred sentinel
#

How to make common variable for several classes?

tender shard
#

you don't

kindred sentinel
#

ok i'll use config

quiet ice
# ivory sleet No
    options.compilerArgumentProviders.add(new org.gradle.process.CommandLineArgumentProvider() {
        public Iterable<String> asArguments() {
            def args = new java.util.ArrayList()
            return args;
        }
    })

Look - looks pretty java to you, no?

tender shard
kindred sentinel
#

oh ok

tender shard
#

you can ofc pass around data objects, or (usually bad idea) make them static

ivory sleet
tender shard
#

if you make something static just so you can access it from somewhere else, then that's usually a situation where you should NOT have made it static

sterile sapphire
#

So do some of the evens only work with spigot api coz the on join and leave works without

quiet ice
#

Meh, generally if you are the only person to maintain something static is absolutely an option

#

And since you will be the only maintainer even if you open-source stuff I wouldn't care about others' design philosphies that much

quiet ice
#

The jar I linked to you IS the spigot api in case that confuses you

remote swallow
#

you ideally should follow the link alex sent

tender shard
#

I want to be called "grenade" from today on

quiet ice
eternal valve
#

thx

tender shard
quiet ice
#

Don't make me update it

remote swallow
#

that reminds me i need to write so more wikis

quiet ice
#

Although I ideally need to figure out the password and email to that Voidtype account of mine...

sterile sapphire
#

So I just asked for the updated 1

remote swallow
#

if you struggle with reading development wont do very well to you

#

development is a hell of a lot of reading

sterile sapphire
#

I’m trying my best and I found out there’s a speak function just now

#

I’ll try using that

upper hazel
tender shard
upper hazel
#

i try do this with maven

#

but dont know how create this "code" for connect

#

how another plugins (WG,WE etc)

tender shard
#

other plugins can get your plugin through the pluginmanager

remote swallow
#

either use jitpack, repsy, other free repos or self host

upper hazel
#

i mean this <dependency>
<groupId></groupId>
<artifactId></artifactId>
<version>version</version>
<scope> </scope>
</dependency>

#

how i shold create this

upper hazel
remote swallow
#

github cant host it for you

upper hazel
#

bruh i was think this repository

remote swallow
#

it is

tender shard
#

are you not already using maven?

remote swallow
#

not a maven repository, its version control

tender shard
#

if so you already defined a groupId, artifactId and version for your project

upper hazel
tender shard
#

i don't even know what you mean with "connect"

river oracle
#

Add it as a dependency

remote swallow
#

they want to host it on a maven repo

tender shard
#

or maven central

#

use anything but jitpack

river oracle
#

You don't even need that tbh you can post on github and make people mvn install the jar >:)

upper hazel
#

why

remote swallow
#

i can press my thumb into my stomach and here liquid sloshing about

upper hazel
#

wait, if I put this api into the plugin itself, will it work?

tender shard
tender shard
remote swallow
#

still in a run cycle atm

tender shard
upper hazel
#

can i load the api jar into the plugin itself and use it anywhere?

tender shard
#

you don't need to have any separate api jar

#

do you have a link to your plugin's github? if so, which methods of that do you want to make available to other plugins?

tender shard
#

well I see you already have CustomRanksAPI

bitter rune
#

I'm trying to shortcut this a bit. I'm trying to check if item has item name but there's many items names it's a custom item that's named a mob name + string. And every mob has this item named itself.

tender shard
#

you could make your main class implement CustomRanksAPI and then just publish the CustomRanksAPI class as maven artifact and then other people can do it like this

CustomRanksAPI ranksApi = (CustomRanksAPI) Bukkit.getPluginManager().getPlugin("yourplugin")
tender shard
# bitter rune I'm trying to shortcut this a bit. I'm trying to check if item has item name but...

or: Why you should NEVER use NBT tags again! Spigot 1.14.1 added the biggest improvement that (in my opinion) ever made it into the Bukkit API: The Persistent Data Container (PDC). It can be used to store custom data on Entities, TileEntities, and ItemStacks. Using a bit of math, it can also be used to...

upper hazel
kindred sentinel
#

Please, I can't figure out how to make it so that if an item is placed in a barrel with a certain name, then its description would change to "1" and if it is later taken from the barrel, it will change to "2"

remote swallow
upper hazel
#

oh

#

so this exists in api maven

remote swallow
tender shard
#

if you want other people be able to use it, they either also have to get your CustomRanks from github and mvn install it, or you mvn deploy it to some public repository

upper hazel
#

or i shold

#

to load

#

oh

remote swallow
#

unless you have published it somewhere, like repsy you will only have it on maven local after running mvn install

upper hazel
#

i see

#

so github won't work?

remote swallow
#

github is version control, not a maven repository

kindred sentinel
upper hazel
#

ok

tender shard
#

you can use jitpack if your code is on github and doesn't require NMS

bitter rune
#

Me and warrior are working on the same type of information storing and gathering. I think I understand I just use the variable + the pdc I stored and then return true (probably butchered the wording on this)

remote swallow
tender shard
upper hazel
#

thenks

kindred sentinel
remote swallow
#

listen to both events then

#

same thing would happen on both except drag has a loop

kindred sentinel
#

in InventoryDragEvent there is no event.getInventory to get the inventory to what the item was placed in

#

:/

remote swallow
#

it does have getInventory

#

it inherits it from InventoryEvent

kindred sentinel
#

oh

#

yeah

#

sorry

bitter rune
#

I just had this same issue on mob death and getting player variable. I ended up using on entity damaged by entity and storing it to a map

upper hazel
#

com.github.JavaDeveloper222:CustomRanks🫙Tag was not found in https://hub.spigotmc.org/nexus/content/repositories/snapshots/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of spigotmc-repo has elapsed or updates are forced

remote swallow
#

because it doesnt publish as versions unless you tell it to , use 2df8c22cca as the version

tender shard
upper hazel
flint coyote
#

more like maven

tender shard
#

did you mvn install your 1.0.0 version?

remote swallow
#

thats a jitpack package

tender shard
#

do you want to use your locally installed version or the one from jitpack?

remote swallow
#

use 2df8c22cca as your version

eternal oxide
#

if it's on github you have to do a release for it to pick up the version

flint coyote
#

Excellent answer to an either or question

remote swallow
#

prob wrong reply

quiet ice
upper hazel
#

finaly i did it

#

I just had to create a release

#

isn't it necessary to add the API to github so that it can be used only by those people to whom I threw off the API in the jar file?

#

stupid translate

kindred sentinel
#

So i can't find out if player by drag added item to barrel or added item to inventory

kindred sentinel
#

:/ the barrel has slots 1 2 3 4 and players inventory has slots 1 2 3 4

tender shard
#

you need to check the raw slots

kindred sentinel
#

oh

#

i'll try it

kindred sentinel
#

(in inventory click event)

#

becauuuse the event is running before adding item

rapid meadow
#

Hello im a little stuck on why the default minecraft help doesnt seem to be picking up my commands, is there something im missing? or is it something with the default minecraft help

remote swallow
#

do you have executors for them

#

and set them

rapid meadow
remote swallow
#

no errors in console?

rapid meadow
#

nope

remote swallow
#

on startup is there any errors

rapid meadow
#

nope no errors

#

or full start up?

#

not a reload

remote swallow
#

does /broadcast work

rapid meadow
#

yeah all the commands work

#

just doesnt list in the help thing i just kinda thought to check it out as i was thinking of adding a help section but its built in now

#

huh

#

okay its showing now

#

no idea what i did or what fixed it

#

but ty for the good luck

keen ferry
#

Heya! Trying to make a custom fishing system. Is there a way to make the hook "sink in" like it does in vanilla Minecraft? Would I have to use packets?

sterile token
#

Hi, which is the best way for pasing formmated dates? So far i ghave the next code:

SimpleDateFormatter formatter = new SimpleDateFormatter("HH:mm:ss");
formatter.setTimezone(TimeZone.getTimeZone("EST"));
Date duration = new Date(System.currentTimeMillis() + (formatter.parse("10:02:00").getTime() - System.currentTimeMilis()));
echo basalt
#

So you can probably apply a velocity

#

Packets aren't needed in this case, it's nothing special

keen ferry
#

Right didn't think about the simple approach ty

rapid meadow
sterile sapphire
#

I’ve missed out on so much

river oracle
#

what version of guava does mc use

remote swallow
#

one of them

river oracle
#

nvm found it

#
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>31.1-jre</version>
            <scope>compile</scope>
        </dependency>```
remote swallow
#

well done

river oracle
#

it was in the bukkit repo not the craftbukkit repo

onyx fjord
#

any idea why snakeyaml takes Collections.emptylist like that?

#

i guess i just gotta use a new arraylist

odd lark
#

good evening, where can I download spigot 1.20.1.jar? because the get bukkit site does not work, so I tested with BuildTools.jar which created a spigote 1.20.1.jar, but on my java project, it does not know the JavaPlugin extension in the library

remote swallow
#

get bukkit is not offical and

#

?bootstrap

undone axleBOT
#

Bootstrap Jar
The main spigot-1.18.jar is now a bootstrap jar which contains all libraries. You cannot directly depend on this jar. You should depend on Spigot/Spigot-API/target/spigot-api-1.18-R0.1-SNAPSHOT-shaded.jar, or the entire contents of the bundler directory from your server, or use a dependency manager such as Maven or Gradle to handle this automatically.

Please read the release notes for further information: https://www.spigotmc.org/threads/9-years-of-spigotmc-spigot-bungeecord-1-18-1-18-1-release.534760/#post-4305163

odd lark
#

thanks

quaint mantle
#

yo

#

idk if its just me

#

but I hate working with caches like usernames and uuids bruh

onyx fjord
quaint mantle
#

why using spigot is complex to setup smh

remote swallow
#

its not

trim lake
#

Probably stupid queiston... Can I add more shapes to recipe? I just need recipe where is 1 item above another one.

sullen marlin
#

thats just a separate recipe

trim lake
#

You cannot do something like is default torch recipe? faaak

sullen marlin
#

pretty sure thats two recipes

trim lake
#

Oh, I get that.. thats lot of recipes for one item probably

sullen marlin
#

but idk look at how torch is implemented

#

torch also isnt comparable to what you said

#

its 1 shape with 2 items

#

which is what RecipeChoice.MaterialChoice supports

trim lake
#

Thats what I need

sullen marlin
#

" I just need recipe where is 1 item above another one."

trim lake
#

yes? thats sound same to me

sullen marlin
#

torch just supports coal/charcoal ?

#

it doesn't have two different shapes?

#

with an item above another?

echo basalt
#

md

trim lake
#

I mean the shape is just coal/charcoal and then stick under it

echo basalt
#

dispatchCommand doesn't fire any events

#

fix it pls

#

I'm not signing cla

quaint mantle
remote swallow
#

nop

#

i could make a project with no plugins quite easily

trim lake
kindred sentinel
remote swallow
wide coyote
trim lake
dawn flower
#

using Player#performCommand doesnt show up in console neither does it call PlayerCommandSendEvent or PlayerCommandPreProccessEvent, is there a way to fix that?

trim lake
#

oke, thanks a lot. I tough there is esier way like some type of recipe.

remote swallow
#

you either have to make 1 reciper per or you have to use shapeless

trim lake
#

shapeless shoudl be solution to, but they will be allowed to place item anywhere so.. looks agly xD

slender elbow
#

why do you need those to be called exactly?

#

(also the PlayerCommandSendEvent does not do what you're thinking it does, it's when the server sends the command tree to the client)

sterile sapphire
#

Sorry if this doesn’t make much sense but

#

using java and spigot is it possible to make a develope a script where in bungee cord if you leave it sends a bye message but if you leave 1 server and join another commected with the bungee cord instead of saying you joined and left the servers it said you transferd to the server. is this posible?

sullen marlin
#

Yes, make a bungee plugin to do that and a Spigot plugin to disable the default messages

sterile sapphire
#

So this is possible

#

Coz I’m thinking if it would be possible to let a plug-in know when someone leaves vs if they just joined another server in the bungee cord

sullen marlin
#

with a bungee plugin its easy

sterile sapphire
#

Alt thank you

#

I hope you have a great day😃

carmine mica
#

its one recipe in vanilla

#

just set the shape to be the smallest square possible

remote swallow
#

is that just not exposed to api

carmine mica
#

it is

#

just use the ShapedRecipe correctly

#

so for torch, it would be X = coal, Y = stick and the shape is {"X","Y"}

#

look at the vanilla definition for the torch recipe

sterile sapphire
#

is there a website for a spigot doc for the events ect.?

eternal oxide
#

?jd-s

undone axleBOT
quaint mantle
sterile sapphire
#

Thanks

wet breach
#

?jd

undone axleBOT
wet breach
#

if you need the others

wet breach
sullen marlin
#

Oh well bungee always returns before

remote swallow
#

no im just wondering when it was updated

sullen marlin
#

And I don't think anything other than bungee uses the bungee api

sterile sapphire
#

Md_5 do u have a mc server?

#

Can I join if do

sullen marlin
#

But you could just check the players server after the method returns

#

No

sterile sapphire
#

Also u created spigot right

#

Is it like a full time job

wet breach
#

it can be, but good news is others are free to contribute 🙂

#

?cla

undone axleBOT
sullen marlin
#

Yes
No

remote swallow
#

spigot would have paid staff over than volunteers if spigot was a full time job

sterile sapphire
#

You must make a lot of it I would have thought

remote swallow
#

they use it, dont pay for it though

sterile sapphire
#

Maybe not

remote swallow
#

spigot takes nothing off paid plugins and entirely relies on donations

sullen marlin
#

Did you pay for Spigot

wet breach
sterile sapphire
#

Oh that’s good

sterile sapphire
sullen marlin
sterile sapphire
#

I might donate when I have money,

#

I use spigot a lot

wet breach
#

and you will get to join some of the many that have done so 😄

quaint mantle
#

True

remote swallow
#

if every current user of spigot, including people that use forks, eg paper, purpur etc all paid a 5$ donation, md would be rich

wet breach
#

not necessarily

#

non-profits are ran differently in what you are allowed to do with them and not allowed

remote swallow
#

well, spigot would be rich

wet breach
#

that would be true lol

quaint mantle
#

I regret buying that much robux back in the day

wet breach
#

could have just given it to spigot

remote swallow
#

peak of 175k servers at once, spigot would have about 875 thousand dollars

quaint mantle
#

I would've diamond medal

wet breach
remote swallow
#

yeah

wet breach
#

just because they can and would be on the top XD

remote swallow
#

wont happen though, would be cool

quaint mantle
#

Minecraft has potential to compete with Roblox

#

It even has a single player gamemode

remote swallow
#

you think if mojang asked to join spigot and have spigot as the offical api, along with client side stuff added, md would let them join and have a vast control of spigot

sterile sapphire
#

Even if you don’t earn money spigot must be a full time job coz it’s quite big isn’t it

wet breach
remote swallow
#

i mean, actual bukkit isnt maintained and would take forever to update i recon

quaint mantle
#

If they would've spent in development tools for content creators, still allowing us using Java, would be dope

wet breach
#

it would just be this weird elephant in the room that everyone pretends doesn't exist

quaint mantle
#

They should improve client side stuff like display entities while also making it easier to make an API for the server

#

Are not they already providing mappings?

wet breach
#

they do but its not full mappings

#

its only partial mappings of what is deemed necessary to do modding or whatever

#

so there is plenty of code that doesn't have mappings at all

echo basalt
#

hello frosty gamer

#

@sullen marlin ungrateful ass

#

can't even give 5$ for shits n giggles

wet breach
#

lmao

quaint mantle
#

They could make a platform enveloped around the minecraft launcher similar to roblox. Content creators could pay to promote their "experiences" and such. Mojang could even force us to use their hosting for our experiences, I still would prefer it than Roblox taking 70% of the cut

wet breach
echo basalt
#

I want cake >:/

wet breach
echo basalt
wet breach
#

old EULA's don't magically not apply just because you decided to update it

#

This is why companies don't keep previous EULA versions around for you to look at because old EULA's apply to the software versions it covered and the new one is not necessarily retroactive

quaint mantle
#

They could profit

sterile sapphire
#

The EULA is boring

sterile sapphire
#

Like no buying straight ranks

wet breach
opal carbon
#

not a single person would want that

echo basalt
#

roblox is basically micro transaction hell

opal carbon
#

roblox games are called "experiences" now

echo basalt
#

you login, play a stupid tycoon written in lua and pay 100 "robux" to unlock some small boost

quaint mantle
echo basalt
#

And that's like 1$

#

Out of that, roblox takes like 70%

#

So the dev keeps 30 "robux"

#

And they can exchange it back for real money at terrible rates

sterile sapphire
#

I thought they take 30%

opal carbon
echo basalt
#

There are entire companies that make a ton of cash money by having special deals with roblox

opal carbon
#

different items are taxed differently

echo basalt
#

Charging 3$ to unlock their game

#

Making a solid 50 cents out of those 3$

#

And roblox does all the infrastructure

wet breach
opal carbon
#

point is nobody who plays minecraft wants to let microsoft control and host all of the mc servers

sterile sapphire
#

Lbh jailbreak is up here with mc

#

But everything else on Roblox is down

quaint mantle
#

Not to mention that at this point you may use any available library (they are a LOT)...
In Roblox I attempted using a Github repo as a library and there was like no way of doing it...

wet breach
#

so they do hosting already

opal carbon
echo basalt
#

Yeah apparently roblox takes 80%

#

after all the fees

#

If you spend 1$ in the game, the dev makes 20 cents of real money

quaint mantle
#

Like, "the official platform" would force you to use mojang's hosting.

opal carbon
echo basalt
#

They can only cash out after like 300$

wet breach
# opal carbon **all**

well no, the reason no one wants Mojang or MS to host all the servers is because of the restrictions that they could impose without impunity or regard to anyone etc

opal carbon
#

thats literally exactly what im saying

echo basalt
#

Good luck convincing all server owners to switch over

#

ppl will just use old versions of the game

quaint mantle
#

They could also ensure to add tags such as cross platform if not that they provide themselves a way to do crossplatform (like Bedrock & Java)

#

Remember, Minecraft is most sold game...

wet breach
#

also Hypixel wouldn't be able to afford to exist if it had to use MS hosting

opal carbon
#

they arent gonna do cross platform

wet breach
#

and MS hosting doesn't mean MS will use decent hardware for it either

opal carbon
#

anytime soon

civic apex
#

where's playblockaction in 1.20.1

wet breach
echo basalt
#

let's see

opal carbon
#

ms wouldnt do it though most likely

#

at least soon

echo basalt
#

bedrock edition is literally for all of the toddlers that keep saying "java is such a bad language to write a game c++ is much faster"

quaint mantle
#

I just provided ideas of how they wasting chances

echo basalt
#

Reminds me of that rant

wet breach
#

probably not, it was planned but turned out to be too difficult to do and maintain for them

echo basalt
#

Nop

#

p sure not

echo basalt
#

Microsoft already owns a bunch of game studios and most use c++

#

It'd make sense to bring over a couple members from their studios to work on minecraft

#

Also C# is just a bit too close to java

quaint mantle
#

If I'm not wrong, C# is just Java but Microsoft branded and allows ahead of time

#

Java is JIT

lost matrix
#

C# also has aJIT

wet breach
# opal carbon exactly

Mojang made a comment about this when Bedrock was first in its infancy of being released and such and they were exploring it and it was just simply too time consuming to maintaing because of all the updates from the platform providers, to the game, to other stuff that at the time their time would have been consumed with doing this and not being able to focus on the game. Not sure if they would ever revist the idea but I doubt it since the community has done it for them which is good enough I suppose lmao

wet breach
#

but at this point in time to say C# is java would be incorrect though

#

due to the divergence at this point

lost matrix
#

I mean... its kinda still very java-esque

echo basalt
#

it's icky java

wet breach
#

well because of its roots

echo basalt
#

I can't really identify C#'s uhh

#

design identity

wet breach
#

because it doesn't have one it wasn't suppose to XD

quaint mantle
#

Namespace and String primitive

echo basalt
#

Y'know how java is intentionally designed to be boilerplate forcing you to write a lot

#

And how python is just extremely beginner-friendly

#

C# falls in a weird middle

#

Where List is a class and not an interface

#

strings are primitive

#

enums are too basic

wet breach
#

lol, yeah C# is a bit weird

echo basalt
#

average microsoft product

wet breach
#

but as long as you just compare it to some other MS code stuff you should be fine and a bit happier you are not using those things

#

😉

echo basalt
#

I get microsoft is one of those faang-like dream jobs but shit I wouldn't want to work there

#

They have a very weird coding culture

wet breach
#

it would depend for me really

#

like what options I have etc

echo basalt
#

idk I'd pick google over microsoft

wet breach
#

because sure they may have a weird coding culture but you work for someone like MS you are basically set

#

they have fantastic benefits

echo basalt
#

apple is icky because they don't pay as much and are very picky with their hires

wet breach
#

Microsoft has better benefits then google does

#

and microsoft doesn't really force you to use their stuff either

#

unlike Apple and Google

echo basalt
#

what about amazon

lost matrix
#

benefits. lol.

echo basalt
#

I've seen a few hypixel devs transition to aws

wet breach
#

Amazon is the worst

echo basalt
#

lmfao those plugin developer idiots and their nonexistent benefits

lost matrix
echo basalt
#

lunch money

#

or for long-term projects yearly meetups

livid dove
#

Aws? That the one where amazon took one of their own services off of aws in favour of a conventional server and saved like 60 mil?

wet breach
#

You get things like medical and dental coverage for cheap from the company. Better time off options that is paid, holiday pay(where they pay you for not coming in for the holiday and pretend you worked that day), 401k's with Employer matching, education opportunities that the employer either fully covers or partially covers in either case helps you

#

there is many other benefits. Like this year some 3-4 months ago my Company paid for both me and my GF to go to a theme park all day 🙂

#

was nice

remote swallow
#

you have a gf?

wet breach
#

of course lmao

livid dove
#

Fake spigot dev

#

No GF allowed

echo basalt
#

never seen frosty promote a git project that isn't 10 years old

#

checks out

wet breach
#

lmao

lost matrix
#

Ah i see. Well here in germany healthcare is free and everyone gets 30 days of payed vacation + national holidays.
And you can always request payment for further education. Thats all covered by our social system.

echo basalt
#

Here healthcare is somewhat free

civic apex
echo basalt
#

Paid like 100$ at the dentist a couple months ago

#

Not too bad

livid dove
#

Europe bros be vibing

echo basalt
#

But like shit who's covering for my lunch

livid dove
remote swallow
#

wtf

#

how are you paying 20 quid

wet breach
livid dove
#

Wtf do you mean how much do you pay u muppet

wet breach
#

like I work for JBhunt and I got 3 raises automatically within my first year XD

livid dove
#

Who's nickle and diming you

remote swallow
#

what did you have done to only get a 20 quid bill

livid dove
#

A checkup?

wet breach
#

and in a couple of months they will probably promote me to a Tech 2 Tire Technician

remote swallow
#

ah

wet breach
#

which comes with a raise

remote swallow
#

that makes sense

echo basalt
#

yeah 20 quid for that makes sense

#

I paid 100 for a tooth extraction

livid dove
#

And a scra0e and polish

#

Ah

echo basalt
#

I should prob ask for a raise ngl

livid dove
#

Yeah we get those free

echo basalt
#

but I'm happy with what I earn at the moment

remote swallow
livid dove
#

If its a needed procedure (anything that isn't cosmetic) you can get it free via the NHS..m

wet breach
#

like I already make $24/hr for being a Tire Tech right now

#

if they promote me, I will probably make $27/hr

echo basalt
#

I make like

#

20 bucks an hour

#

making solid plugins

wet breach
#

and I roll tires around and sit on fork lifts

#

the last 2 weeks I installed 2 tires lmao

echo basalt
#

got too many projects atm but I want to focus a bit more on my driving school

#

have to do this course

remote swallow
#

frost is forklift certified?

wet breach
#

yes

remote swallow
#

dayum

echo basalt
#

they gave me access like last week and I've done maybe 20 minutes of reading

remote swallow
#

no wonder you have a gf

#

do you also have 10 dollars for tomorrow bc i loose nitro

livid dove
#

Ngl we'd make more money on our plugins but our in house library is based in Paper 😭

#

Been tempted to rewrite it to work with both

lost matrix
echo basalt
#

I also want to focus on my brand image a bit more

#

paid like 60 bucks for a website

sterile sapphire
#

Gn everyone or gm

echo basalt
#

it's gucci

#

better than whatever pile of shit I had before

wet breach
lost matrix
echo basalt
remote swallow
echo basalt
#

or why do I need a website in the first place

#

yes

#

fuck off

#

I don't know how to write poetry

wet breach
#

why did you pay for a website yeah

#

I can understand maybe paying for a template

livid dove
echo basalt
#

So here's the thing

#

I got no patience for web dev

lost matrix
echo basalt
#

I edited a bootstrap template and that took me like 12 hours

livid dove
#

You gotta remember your target audience are likely , let's be honest lads, neurodivergent hyper server owners.

wet breach
echo basalt
#

While this one has a fancy contact form that webhooks into my discord server

#

I can't bother

remote swallow
#

boom

wet breach
#

its already built

echo basalt
#

I seriously can't bother

wet breach
#

just have to modify to your liking XD

echo basalt
#

no balls

remote swallow
#

something went wrong

wet breach
#

yes

#

the version is wrong

echo basalt
#

bet you set the budget as 0

remote swallow
#

i did

lost matrix
livid dove
# remote swallow

Can't put my finger on it , but I just don't subconsciously like it 😅

remote swallow
#

i beat the system

echo basalt
#

either that or you got some autofill BS and it's triggering a honeypot

remote swallow
#

it works with -1

echo basalt
#

bruz

lost matrix
#

I dont like the contrast and overly round edges

livid dove
#

Unit 🙏 testing 🙏

echo basalt
#

I'm no millionaire

#

it's probably 2 css lines

livid dove
#

Aye that's it. It doesn't feel like a form. There is 0 contrast and it makes it almost hard to look at

wet breach
#

budget of -1

#

XD

echo basalt
#

I should prob tell the guy to validate his inputs

remote swallow
#

love the fact it doesnt accept 0, but accepts negatiev

livid dove
#

Tbh i wanna learn java script so i can make some Web app linked plugins

echo basalt
#

Appreciate the feedback prayge It'll be fixed soon

remote swallow
#

oh yeah

#

the buttons dont work either

echo basalt
#

yeyeye

#

they're not meant to be buttons but whatever

remote swallow
#

never knew you were a builder

echo basalt
#

they're sample images

#

I can't bother taking cringy pics of my code

remote swallow
#

not anymore

#

ur a builder

echo basalt
#

fuck

#

tbh this was only delivered to me like

remote swallow
#

i will inherit your github

#

thanks

echo basalt
#

a couple nights ago

#

I hate how github is now forcing me this "for you" feed

#

I don't want this shit

#

I want to know who follows and stars my stuff

#

wtf is this

wet breach
#

I hate feeds that I didn't setup

echo basalt
#

I hate these feeds

#

bro who the fuck submitted a 1.7.10 plugin for 160 yen

remote swallow
#

87 pence

#

what the fuck

echo basalt
#

I regret this

remote swallow
lost matrix
#

de? 👀

remote swallow
#

its freemail i think

#

7smile confirm for me

lost matrix
#

Its a german mail provider

remote swallow
#

its homepage is msn like

echo basalt
#

msn with a paywall

#

so glad I got tampermonkey scripts to bypass it

#

can't wait to wake up tomorrow with 913 pings because some idiot setup an autohotkey script to spam me

remote swallow
#

i just pressed the button at the bottom

#

and it let me in

remote swallow
lost matrix
# echo basalt I regret this

Armorstands dont exist in 1.7
throwable potions dont exist in 1.7
actionbar doesnt exist in 1.7

Very interesting request

echo basalt
#

yeah it's just trolls

remote swallow
#

what do you expect though

#

if you didnt want it dont tell me you have a new website

echo basalt
#

and ofc half of y'all manage to find it within 2ms

#

prob from my github ngl

remote swallow
#

already knew the website domain

echo basalt
#

fym

remote swallow
#

bc i stole the backend for it, and i knew ur email was pay@illusionthe.dev

echo basalt
#

yipee

#

no clue how

remote swallow
#

you sent it here

echo basalt
#

true

#

watch me get spammed with paypal invoices because of that shit

remote swallow
echo basalt
#

ppl tried doxxing me before

#

y'all can't be trusted eyeszoom

remote swallow
#

i dont have the effort to dox

echo basalt
#

it wasn't even accurate data

lost matrix
echo basalt
#

ppl would make invis items with resource packs and set your cursor for those 2ms

lost matrix
echo basalt
#

none because I never properly release it

#

Once the website is properly finalized and actually has something other than lorem ipsum I'll actually start broadcasting it out

#

bro who the fuck posted an amogus

lost matrix
#

What is that?

#

Show your requests plox

echo basalt
#

gotta censor it out

#

my nanoleaf lights have become sentient

#

istg this website was a mistake

#

y'all are wicked

remote swallow
#

that gives me alex vibes

echo basalt
#

gives me chloe vibes

lost matrix
#

XD what?
Btw, someone explain what no cap and fr means? Im old.

echo basalt
#

fr is for real

#

it's an agreement

remote swallow
#

cap is false

echo basalt
#

yeah

lost matrix
#

oh kay

echo basalt
#

p sure it has to do with "being bald"

remote swallow
#

md is spigot owner no cap

quaint mantle
#

its nice to see random new projects

echo basalt
#

Yeah but shit it was good before

#

let me choose what I want instead of nuking half of the magic of opening github

quaint mantle
#

yeah

#

Mine only shows me follows

#

I cant see for you

remote swallow
#

i just directly go to my repo page

quaint mantle
#

oh damn

#

I lowkey just be scrolling through ithub fyp at school

echo basalt
#

yeah but I have like 3 repos I care about

quaint mantle
#

on my chromebook

#

💀

remote swallow
#

my school might give me a rasberry pi to do my cs gcse on

#

an entire rasberry pi for pretty much just python

quaint mantle
#

damn

#

we just got computers in ap csa that stay in the class

echo basalt
#

mine can't afford any

quaint mantle
#

I installed intelj last year on it

echo basalt
#

we had arduino kits

quaint mantle
#

and it filled the entire disk with cashes

#

caches

remote swallow
#

kek

echo basalt
#

when I was an intern at school some dickhead put cs:go on a hidden systems folder

#

and we used it for imaging all the other pcs

#

that was a fun discovery

quaint mantle
#

damn yall old

#

💀

remote swallow
#

every pc just had csgo

echo basalt
#

Had to clone a solid 500 pcs in like a week

#

cleanin it

#

We had 4 cloning pcs and each clonage took about 30 minutes

quaint mantle
echo basalt
#

yes

remote swallow
#

unpaid intern?

echo basalt
#

yep

#

part of my course

#

we had to do mandatory internship hours

#

this year I just convinced bossman to sign the papers and I went home 2 months early

#

every single teacher was on it

#

but no one gave 3 shits

odd lark
#

Hi, I don't understand why the Material goes from this

[01:19] Block: spawnMaterial=STONE, aboveSpawnMaterial=AIR, belowSpawnMaterial=AIR

to this

[02:17] Block: spawnMaterial=LEGACY_STONE, aboveSpawnMaterial=LEGACY_AIR, belowSpawnMaterial=LEGACY_AIR

LEGACY ?
moreover now it tells me that it no longer supports Material.MAGMA_BLOCK

I specify that between the 2 times I am not touching the function of the code but just the distance calculation method

lost matrix
vivid skiff
exotic moat
#

do bungeecord plugins interact with my servers plugins? like if i have placeholderapi in server and something that uses placeholderapi in bungee can they talk to eachother?

lost matrix
#

You can make them talk to each other using plugin messages

quaint mantle
sullen marlin
#

Or a messagequeue

torn shuttle
#

I am now convinced that basically no one who has ever talked about wave function collapse has ever used it to really any kind of extent beyond getting it to a basic showcase level

knotty locust
#

how do I create a reload command? ik how to create config, but the reloading doesn't work probably bcs it reloads only the config and not the entire plugin

ivory sleet
#

well

knotty locust
#

is there a way to make it so when you reload config you also reload the plugin?

ivory sleet
#

one good way is to start by avoiding caching config values in classes that are gonna support the reload

#

I mean

#

thing is

#

reloading the plugin is very subjective

#

in terms of what it actually means

knotty locust
#

yeah

torn shuttle
#

lmao, even

knotty locust
#

I'll explain

#

I have a config and there are ONLY booleans on what to allow and what not. the thing is that in my onEnable() I have like if config.getsomething == true{ enable something}
but that should work only if the plugin is enabled right?

#

it works btw, I just don't know how to actually reload it

torn shuttle
#

you'll have to disable everything on disable, then reinitialize the values on enable and makes sure you clear any cached values you might have

knotty locust
#

ik that you can't really reload Java code but some plugins have it

knotty locust
torn shuttle
#

it doesn't have to be but it's what I do

knotty locust
#

okay ty

torn shuttle
#

easy enough and I design my plugins around it anyhow

knotty locust
#

so in onDisable() I have to turn everything off?

torn shuttle
#

yep

knotty locust
#

to clear cache

knotty locust
#

never done this before

#

and I'm not on pc so I can't test it

torn shuttle
#

depends on what you have to turn off in the first place

knotty locust
#

well probably the classes in config

torn shuttle
#

nope

knotty locust
#

so just onenable

torn shuttle
#

you don't turn off classes in java (or really on any programming language as far as I am aware)

knotty locust
#

okay so what do I turn off

torn shuttle
#

like I said it depends on what you have in the first place

knotty locust
#

okay

#

I have a few classes creating items (called using .init())

torn shuttle
#

if you have a listener that is only enabled based on a config setting then you have to make sure that you unregister the listeners on disable

knotty locust
#

I don't have listener in config

torn shuttle
#

if you are running repeating tasks then make sure you shut those down

#

so on and so forth

knotty locust
#

ok

#

I have just Class.init()

knotty locust
#

but it doesn't seem to work

#

so I have to reload onEnable to actually work

#

bcs the ifs are in it

chilly hearth
#

ummmmmmmm

#

how can i change the death message

earnest socket
#

Can I set a WorldCreator object's generator to a json string like the ones you could use in before 1.19.4 with the "Import World Settings" button?

stray nacelle
#

eh cant send images

trim creek
undone axleBOT
#

Can't send images? That's because you're not verified! Use !verify to complete verification.
Alternatively, you can upload screenshots to any image hosting site and share the link.

Here's some screenshot utilities that can use to upload images.
Lightshot: https://prnt.sc
Imgur: https://imgur.com/upload
Flameshot: https://flameshot.org

tender shard
#

#generatorSettings(String)

hoary fulcrum
#

?help

undone axleBOT
#
CafeBabe Help Menu
*Red V3*
__**Admin:**__

selfrole Add or remove a selfrole from yourself.

__**Cleanup:**__

cleanup Base command for deleting messages.

__**Core:**__

embedset Commands for toggling embeds on or off.
info Shows info about CafeBabe.
licenseinfo Get info about Red's licenses.
mydata Commands which interact with the data CafeBabe has about...
set Commands for changing CafeBabe's settings.
uptime Shows CafeBabe's uptime.

__**Downloader:**__

findcog Find which cog a command comes from.

__**Mod:**__

names Show previous usernames, global display names, and server...
userinfo Show information about a member.

__**ModLog:**__

listcases List cases for the specified member.
reason Specify a reason for a modlog case.

__**Permissions:**__

permissions Command permission management tools.

gleaming grove
#

Why does module Core is not loading?

chrome beacon
gleaming grove
#

nope, It was reload both for module and whole project

chrome beacon
#

Any errors?

gleaming grove
#

I see this bechaviour for the first time in intelji, why does pom.xml is stricked-throught?

chrome beacon
#

Could you send all your poms

#

?paste

undone axleBOT
gleaming grove
upper hazel
#

give advice on how to optimize block regeneration

chrome beacon
#

That project pom doesn't look quite right

#

You should move a lot of it's content somewhere else

#

Also set the packaging to pom

gleaming grove
#

what do you mean by content? depedencies?

#

wtf I've changed name from Core to CoreXXXX and it start works

drowsy helm
#

Core is a very generic name it’s probably conflicting namespaces

shadow night
#

net.minecraft.server.Core;

gleaming grove
#

yes I've change name to diffrent one and it works

earnest socket
upper hazel
#

is it a good idea to use the schematic as a region regen?

#

in async

stuck imp
#

!code

#

?code

#

how do i paste ?

#

!paste

#

?paste

undone axleBOT
stuck imp
#

Hi, i have problem with this code : https://paste.md-5.net/buhiteloca.java

I'm trying to create a fake player in the TabList. The problem is that I get this error when the method is initialized (in my main class by a joining player).

#

?paste

undone axleBOT
stuck imp
#

I'm using Spigot 1.20.1 and ProtocolLib 5.1.0

#

Possible to have your help please ?

earnest socket
#

Basically trying to make a caves only Deep Dark world

spare hazel
#

Is there Any good online stress testing tool for minecraft out there?

stuck imp
#

Why none respond to me, hello ?

remote swallow
trim creek
# remote swallow

theproblem is that neither do peope read pinned messages they cant even read

#

experience from playersr tho

#

the bossbar literally said the specifif information they were lookin for

quaint mantle
#

Is OnPluginMessageReceived ran synchronously or async?

still geyser
#

why i cant dowload te 1.20.1 spigot from the site ?

quaint mantle
#

Bad sites are no no

still geyser
#

but i dont use that before haha

remote swallow
#

get bukkit isnt real

#

its not offical

still geyser
#

i have bukkit now but i want spigot

remote swallow
#

use buildtools

#

?bt

undone axleBOT
remote swallow
tall dragon
#

what ive never understood is that spigot isnt able to directly distribute the jar. but paper is

#

why is that

remote swallow
#

paper distribute a paperclip jar which downloads the mojang jar and binary patches it

still geyser
#

lets say i have a pannel and i rent them so i need a jat file

tall dragon
#

ohhh right yea

#

thats true

remote swallow
#

thats a legal gray zone spigot doesnt want to enter

tall dragon
#

yea fair enough

remote swallow
quaint mantle
#

I'll summarize the past 9 years. Mojang bought bukkit, a bukkit dev did dmca requests and we cannot host bukkit source code

#

That's why you need build tools

still geyser
#

but where i can find the build tools files ?

remote swallow
#

?bt

undone axleBOT
quaint mantle
quaint mantle
still geyser
#

i see ye

#

i download the yar file so i can run him in my rent server panel now ?

quaint mantle
#

No

remote swallow
#

you have to run buildtools to get the server version

quaint mantle
#

You run build tools in your own computer

#

Build tools will build your spigot.jar

#

That spigot.jar is what you will upload to your rent server panel

still geyser
#

and place hime where ?

remote swallow
#

anywhere

#

and run it

still geyser
#

if i run hum i get a log file

quaint mantle
#

Yeah

#

It should open a console

remote swallow
#

do you need a step by step guide

still geyser
#

it says it needs java 17 but i have 8 it says

quaint mantle
#

You know this is development channel right

remote swallow
tall dragon
#

you need java 17 !

remote swallow
#

change PATH or specify direct path to java.exe

still geyser
#

okey thx 😉

solid cargo
kindred sentinel
#

how to get cold biomes?

lilac dagger
#

do we really have to run outdated java too now?

remote swallow
#

what

lilac dagger
remote swallow
#

is 17 that outdated for you?

robust helm
#

Whats the best way to save data in a database?

remote swallow
#

sql probably

#

depends on the data

quaint mantle
#

You may serialize it as a byte array. You can store this byte array in SQL. In Mongo you store it as a Binary

#

The advantage of storing a Document regarding the SQL side is that you don't need to worry if you ever need to update the object's attributes (like adding new attributes).
The issue with this as far I understood is that you are no longer following relational paradigm

robust helm
#

i have no idea what that is

quaint mantle
#

A Document is just like a Map

#

You know what a HashMap is right?

robust helm
#

ofc

quaint mantle
#

It's just like a HashMap with builtin methods to retrieve stuff

#

If you are familiar with ConfigurationSection, you would be aware that it provides builtin methods to provide basic stuff (such as primitives, lists, etc)

robust helm
#

yup

kindred sentinel
#

How to get cold biomes? Or how to check is biome cold?

quaint mantle
#

org.bson.Document is a Serializable Map with similar builtin methods for data retrieval

#

It even allows you to store byte[] (byte arrays)

quaint mantle
robust helm
kindred sentinel
quaint mantle
robust helm
#

so much nerd stuff

#

alr ty ill try

quaint mantle
kindred sentinel
quaint mantle
#

?

kindred sentinel
#

I have a block and I need to know if it is in a cold biome

#

for this I need to check if the biome is cold

quaint mantle
#

Man

#

Biome#name#contains("COLD")

#

Stuff like that

#

You may do multiple checks

#

"FROZEN"

#

"ICE"

kindred sentinel
#

TAIGA is cold biome but hasn't in the name frozen or cold

quaint mantle
#

"SNOWY"

eternal oxide
#

There is a temperature now

quaint mantle
#

Yeah

kindred sentinel
quaint mantle
#

I think they asking the threshold for it

#

I just don't know it

eternal oxide
#

temperature depends on height and the biomes max/min values

quaint mantle
kindred sentinel
#

oh

#

oh yeah thanks

quaint mantle
#

You would need to get the threshold for snow biomes

tender shard
#

any suggestions on my project layout? https://github.com/mfnalex/cesspool

I'm still trying to be able to remove all the redundancy from each NMS version's build.gradle.kts, currently each of them requires to have this:

plugins {
    id("cesspool-nms-module")
    id("io.github.patrick.remapper") // TODO: Move this to the cesspool-nms-module plugin
}

dependencies {
    compileOnly("org.spigotmc:spigot:1.20.1-R0.1-SNAPSHOT:remapped-mojang")
}

tasks {
    remap {
        version.set("1.20.1")
    }
    jar {
        finalizedBy("remap")
    }
}

I'm looking for a way to somehow make this work using a function, e.g. useMojangMaps("1.20.1") but no clue how - plugins declared in buildSrc cannot take any "parameters" and functions declared in the root build.gradle.kts are not callable from subprojects. And using subprojects { ... } in the main file would be "reversed logic"

GitHub

Contribute to mfnalex/cesspool development by creating an account on GitHub.

#

I also hate that I have to add jar.finalizedBy(remap)

stuck imp
#

If someone solve my problem, i give him 5€

#

Because i try everything and nothing work

kindred sentinel
#

If i use BlockPlaceEvent and trying to change event.getPlacedBlock() the block isn't changing

    @EventHandler
    public void onPlaceBarrel(BlockPlaceEvent event){
        if(event.getBlockPlaced().getState() instanceof Barrel){
            Barrel barrel = (Barrel) event.getBlockPlaced().getState();
            barrel.setCustomName("AAAA");
        }
    }
remote swallow
#

call barrel#update