#dev-general

1 messages · Page 68 of 1

frail glade
#

Kotlin only code in terms of what? There's still Java in the project

#

That's fair tho

#

I'll check it out

topaz bay
#

When you define the type as not null, kotlin prevents you from passing null there

#

Before the code is even compiled

#

With IntelliJ, in Java you also get hints that the type is not null through annotations

prisma wave
#

but there are no checks

#

you don't get pretty NPEs

topaz bay
#

When was the last time you had to debug an NPE in Kotlin?

prisma wave
#

a while ago mind you

#

but it's still not worth getting rid of them just for slightly smaller jar size imo

topaz bay
#

When do you ever benefit from them...

distant sun
#

Sxtanna make a spigot fork and write it in kotlin KSpigot

topaz bay
#

If youre working with only kotlin, you fucking never see them

prisma wave
#

true

#

but if you're not

#

they're helpful

topaz bay
#

Not really...

#

IntelliJ shows you the nullability

#

And you can configure that to be error level

#

It will enforce the same compile restriction as kotlin does

remote goblet
#

:o

prisma wave
#

let's say hypothetically you were working with someone who completely ignored IDE warnings

topaz bay
#

Then fuck em?

prisma wave
#

and hypothetically they didn't like reading stacktraces

#

hypothetically they would be very useful

topaz bay
#

Except thats no one

prisma wave
#

yep

#

no one

#

I've never worked with anyone like that before

#

never...

#

anyway

#

why can't kotlin do SAM conversion for a kotlin interface?

#

or a Java interface

#

smh

topaz bay
#

It does?

prisma wave
#

not in this case for some reason

#

hold on

topaz bay
#

which case?

prisma wave
#

fun ButtonHolder.transformMeta(transformer: MetaTransformer)

#
@FunctionalInterface
interface MetaTransformer {
    fun transform(itemMeta: ItemMeta)
}
#

can't convert that for some odd reason

topaz bay
#

Oh

#

Its in 1.4

#

lol

#

why would you even write that kotlin code?

prisma wave
#

it's probably a bad idea to use that in production right?

#

which bit

topaz bay
#

that is very not kotlin

prisma wave
#

I know

#

I need java interop

topaz bay
#

hello???

#

Consumer<ItemMeta>

prisma wave
#

but that doesn't have transform 😦

topaz bay
#

?

prisma wave
#

Consumer#accept

#

inferior to MetaTransformer#transform

topaz bay
#

and?

prisma wave
#

i'm being petty

#

i want nice method names

#

also Consumer doesn't seem to give SAM conversion either

topaz bay
#

That wasnt the point

ocean quartz
#

God dammit Sam

topaz bay
#

The point was that you dont need to define your own interface for this

prisma wave
#

sam is really messing up my plans

#

can you use (ItemMeta) -> Unit in java?

#

ig I could typealias it

topaz bay
#

Yes, and no

#

It would be the kotlin function

#

which would still allow a lambda

prisma wave
#

ok

#

best option I have I suppose

topaz bay
#

Its not ideal though

#

its a unit

prisma wave
#

no it's not

#

any other suggestions?

topaz bay
#

It is

#

overloads

#

and make the kotlin functions synthetic to mask them from java users

prisma wave
#

oh god

#

so 1 method with a consumer and 1 with a kotlin function?

#

with the second being synthetic

topaz bay
#

If you really want interop so fucking bad

#

You could always just not care about the non sam functions

prisma wave
#

true

#

but they ugly

topaz bay
#

Not really...

#

Its just the name of the interface

prisma wave
#

¯_(ツ)_/¯

#

actually I've just realised

topaz bay
#

just use 1.4 then

#

¯_(ツ)_/¯

prisma wave
#

that's unstable

#

nah I've just realised the method with the MetaTransformer is private

topaz bay
#

unstable

prisma wave
#

so I could just use a kotlin function

#

🤦‍♂️

ocean quartz
hot hull
#

Hf Matt, you going for star wars theme or just moon?

ocean quartz
#

Just the moon

hot hull
#

Any structures on it?

ocean quartz
#

Not yet, I need to figure a good generation first xD

hot hull
#

Btw, gonna be using your framework tommorrow, hopefully I can figure it out properly

ocean quartz
#

Oh nice, if you need help just let me know

hot hull
#

Will do 👌

#

Switching from Charlie's lib, which also uses annotations but in a different style

topaz bay
#

@ocean quartz craters

#

NOW

ocean quartz
#

I'M TRYING!

prisma wave
#

ha

hot hull
#

Rekt

topaz bay
#

both of you can choke

hot hull
#

On what? Cookies

ocean quartz
#

Sxtanna, since you were working with the packets stuff, you think is possible to send a custom biome name to the client?

hot hull
#

You can make your own biomes

topaz bay
#

@ocean quartz no

#

biomes are identified by their id only

#

the names are entirely clientside

ocean quartz
#

Oh okay, thank you

topaz bay
#

deeper

ocean quartz
#

This stuff is so complicated

topaz bay
#

well...

#

yeah

hot hull
#

@ocean quartz don't forget to make meteors after you make this to give it that umpf

ocean quartz
#

I might give up on the moon stuff and make it like a random alien planet or something, sounds cooler xD

hot hull
#

Perhaps custom mobs? :P

ocean quartz
#

I'll try yeah

ocean quartz
#

Me searching for Bukkit's default world generator to check the source, fantastic

distant sun
#

Lmao

ocean quartz
#

I'll stop sending stuff though, I'm clogging the chat xD

floral basin
#

That looks like it was Voxel snipered or world painted

ocean quartz
#

Very weird perlin noise to make that xD

obtuse gale
#

It always trick me when it comes to size drawn in WorldPainter

floral basin
#

I wish I knew how to use world painter to make actual good looking things

ocean quartz
#

Piggy, I changed ideas no longer making a moon, I'm making an "alien planet" now
Made pretty good progress today, but now i have a huge annoying bug happening

quiet depot
#

o

#

if ur not making a moon

#

can I see ur old code?

#

because I haven't even started generation

#

@ocean quartz

ocean quartz
#

The code is basically the same since I'm still making a custom world
Let me get the link just a sec

quiet depot
#

o noes

#

it's kotlin

#

ok

ocean quartz
#

Looks a bit meh right now, I'll change it a bit more later
Basically ignore the top layer generator and you'll have a normal world

#

Also ignore my useless comments they are there just so i could understand what the heck i was doing

thick tulip
#

Can someone compile a source for me since It doesnt wanna work and i wouldnt know where to start as from lastnight

hot hull
#

"o noes it's kotlin" I feel you piggy lol

#

@ocean quartz that looks spicy, keep updating us, noone cares about clogged chats

floral basin
#

thonking @pallid gale ?

quiet depot
#

abandoned, and not related to us

floral basin
#

o

frail glade
#

Dw. We'll be there soon enough

quiet depot
#

I didn't use perlin, I used SimplexOctave

topaz bay
#

cottage cheese

quiet depot
#

ur cottage cheese

topaz bay
#

thank you

quiet depot
#

np

topaz bay
#

your face is cottage cheese

#

:)

hot hull
#

you're*

#

^ to piggy

quiet depot
#

what

#

sx was right...

#

it's your, not you're

topaz bay
#

hes talking to you

#

4head

quiet depot
#

sorry i can't read

#

but like

#

ur

#

= your|you're

hot hull
#

no

topaz bay
#

You could also just WRITE IT OUT

#

Like normal human beings

hot hull
#

Ya lazy porkchop

quiet depot
#

yesn't

pale shell
signal tinsel
#

@pale shell you can catch multiple exceptions in 1 catch clause

#

I think

#

like catch (MaxChangedBlocksException | Exception ex)

#

I think

#

Not sure

pale shell
#

oh god

#

this is gonna hurt

#

100mb error log. fuck yes.

signal tinsel
#

LOL

pale shell
#

996k lines btw

#

anyone down to help fix it? lmao

signal tinsel
#

LOL

#

I can look at it later if you want

pale shell
#

nah dw it's too large to send over discord

signal tinsel
#

Lol

pale shell
#

(even with nitro)

signal tinsel
#

I've spent literal hours so far fixing 1 issue

#

It all boiled down to me getting a string from configuration that shouldn't exist based on the saving thing

#

and then using yet another string sometimes

#

Bugs that are hard to fix doesn't mean the code itself is technically broken

#

in this case lol

ocean quartz
#

@quiet depot Nice! I felt like Simplex felt too round at times compared to Perlin, maybe it's because I have no idea what i'm doing xD

quiet depot
#

I'll try it out, I'm pretty happy with the result I got from simplex though

ocean quartz
#

I have a weird bug happening to my generation, it generates fine, but then a few seconds after, it starts spawning random dirt blocks everywhere
I don't even have dirt in my generation

thorny patio
#

The author of infinite scoreboard sent me here because it seemed like it was a problem with your plugin. (error at line 384)
(285)

rotund egret
#

Line for what?
What plugin?
Log?
Reeee

pallid gale
rotund egret
#

Yeah I saw it was posted above.
Just makes me angri when users provide such generic info

ocean quartz
quiet depot
#

lel

rotund egret
#

Ah, yes
The corruption

hot hull
#

I mean it's an alien planet with an infestation block

ocean quartz
#

I just wanna know where it's coming from xD

hot hull
#

Any other plugins you loading that might cause that?

ocean quartz
#

Let me check, the thing is that it only happens when I cover the surface with grass, if I cover it with any other block it stops

hot hull
#

That looks dope, you gonna add collumns as support later down the line?

ocean quartz
#

Hmm idk, probably not, since some mountains will reach the roof so it could be the support

#

Can confirm, it's not being placed by other plugins

hot hull
#

How are you generating the grass?

ocean quartz
#

Just setting the top layer as grass
Though i found people having the same issue, they said it was fixed in the latest spigot version so let me update and give it a shot

hot hull
#

Not even surprised that it's a spigot issue :p

ocean quartz
#

Oh finally it actually does fix it
Spigot being spigot, lovely

#

Spent more than 4 hours trying to find this cause

hot hull
#

Making laser tag, and I'm struggling designing it to actually be playable

ocean quartz
#

You're going to do it with particles?

hot hull
#

Yah

#

Beacon beam perhaps, but doubt you can make it they way I want it too

#

The end crystals beam could be an option as well perhaps

steel heart
#

Guardian beams?

ocean quartz
#

Don't think beacon beam can go sideways can it?

steel heart
#

Imagine

hot hull
#

I saw someone make it sideways

#

Sec

distant sun
#

can you even use nms to display beacon beam?

steel heart
#

They used a datapack

distant sun
#

read somewhere that it is client side

steel heart
#

I don’t think it’s possible :/

hot hull
#

Yea it's not

#

Shame

distant sun
#

too many cool things are client side

hot hull
#

I feel like the end crystal beams might be tho

steel heart
#

Minecraft fix sideways and diagonal beacons :/

hot hull
#

Just perhaps

ocean quartz
#

If not then just a particle line should be cool too

steel heart
#

I mean Guardian beams is also cool

quiet depot
#

yeah beacons are client side feelsbadman

ocean quartz
#

Was testing DinnerBone's crater generation and couldn't find anything, realized it's done on the highest Y level so checked the roof of the world

hot hull
ocean quartz
#

You don't need the filler stuff, gui.getFiller().fill(fillerItem) also to see the gui updating you need to do gui.updateItem instead of setItem

hot hull
#

Ah

#

Filler will fill all available spaces? Anyway to exclude some?

#

oop found it

ocean quartz
#

Filler will fill any space that doesn't have an item, you can also fill bottom, top, border etc

#

If you want a specific place to be empty add an AIR item

hot hull
#

Okay yea that makes much more sense now :p

quiet depot
hot hull
#

Is that Canada

quiet depot
#

just need to switch them around

hot hull
#

You making the moon Piggy?

quiet depot
#

yes

hot hull
#

Try adding asteroids and shit down the line

quiet depot
#

it's planned

#

I'm making galacticraft

hot hull
#

Not sure what that is

quiet depot
#

a mod

hot hull
#

Still no clue

quiet depot
#

search it up

hot hull
#

effort

quiet depot
#

"world" quite clearly isn't "moon"

#

so why tf world, got my moon sky

hot hull
#

I mean you could have changed the worlds name?

quiet depot
#

no

#

oh

#

i c where i messed up

ocean quartz
#

Can't you do worldCreator.environment(World.Environment.THE_END)?

quiet depot
#

that's a bit of a ree

hot hull
#

Look at the nerd actually using annotations smh

quiet depot
#

code quality is marked

hot hull
#

Yea ik

quiet depot
#

anyway that's really sad

#

just spent like an hour doing the protocol code for environments

#

and matt just comes out with that

hot hull
#

lol

ocean quartz
#

I did something similar xD

hot hull
#

spigot be surprising at times :p

ocean quartz
#

This craters thingy dinner bone made is so laggy

hot hull
#

Oh damn that color pallette

quiet depot
#

you wouldn't also know how to simply not spawn the ender dragon would you matt?

hot hull
#

just cancel mob spawning

#

ez

quiet depot
#

yeah nah

ocean quartz
#

Let me see if i can find xD

hot hull
ocean quartz
#

Piggy I have a suggestion though, since you'll have a resource pack why don't you make the sky black using it, then replace the moon with earth, that way the cycle will still go but you'll have earth and sun instead

quiet depot
#

environment is temp in the event I don't get around to a rp

ocean quartz
#

Oh okay, couldn't find anything to disable the dragon

hot hull
#

Can't you legit just listen to entityspawnevent

#

and cancel if it's a dragon, or is the dragon a diff event

quiet depot
#

i'll try

#

his bedrock nest though

hot hull
#

PreCreatureSpawnEvent ?

quiet depot
#

no such thing

hot hull
#

you not using paper?

quiet depot
#

o

hot hull
#

yuck what a noob

quiet depot
#

I don't use their api

#

I'm using the jar

hot hull
#

use paper

#

there's so much more usefull shit

ocean quartz
quiet depot
#

@hot hull precreature doesn't work at all, creature works but bossbar is still there, and the bedrock nest is still there

hot hull
#

ah damn

#

perhaps the phase one could be usefull if it get's called when it spawns

quiet depot
#

looks like I'll just have to go back to protocol

hot hull
#

Kinda sad there isn't a useable event for that

#

@quiet depot perhaps this, but not sure what the dude means with it :p
Legacy dragon scan

quiet depot
#

as far as I can tell that's just some sort of check

#

not to do with the actual spawning

hot hull
#

big rip then

ocean quartz
quiet depot
#

spiders & creepers are gonna take some work though

hot hull
#

Oh that's smart lmao

distant sun
#

that's cool pig

steel heart
#

Wow

distant sun
#

give creepers green glasses

steel heart
#

Make some cool pig astronaut

hot hull
#

Why not make custom leather armor to give to zombies and skeletons so they look like astronauts

quiet depot
#

we'll see

hot hull
#

Piggy, should I make the game guis customisable within the config or should I hardcode it

#

I wanna hardcode it so much cause it'll be so annoying to fit it into a config nicelly :c

quiet depot
#

lel

#

@ocean quartz tried out BlingGravity's implementation

#

instant stackoverflow

#

guess i'll try without my async attempt

ocean quartz
#

Oof, we'll probably need to change quite a lot of stuff since it's an old code

quiet depot
#

it works

#

no clue about the performance

#

probs trash

#

slight issue

#

strafing doesn't work

hot hull
#

You got NBT utils in your framework Matt?

ocean quartz
#

I tried to do async chunk populator, the server was stuck generating for like 10 minutes xD
@hot hull Only for items

hot hull
#

Yea that's what I need

#

So, got an example?

quiet depot
#

and flying is broke

ocean quartz
#

@hot hull Basically only usage is this this.itemStack = setNBTTag(itemStack, "mf-gui", uuid.toString());

#

And then for getting the uuid back

#

Piggy you can add a isFlying check to it so it doesn't affect maybe

quiet depot
#

yea doing that now

#

no idea how im gonna do the strafing tho

hot hull
#

Mind if I coop that so people can use the funky gravity in mine? :p

quiet depot
#

yeah

#

i haven't pushed yet

hot hull
#

I haven't pushed anything cause code so messy rn

#

Legit every part of the text is static, and I've got like 20 itemstacks which do the same thing inside the gui :p

#

(nothing is static except colorize so ayy)

quiet depot
#

yeah this algorithm also has a slight issue where velocity persists

#

meaning hold space bar, keep jumping, and zoom zoom

hot hull
#

What's wrong with zoom zoom?

serene nova
#

Where can I learn skirptools

#

Skripttools*

hot hull
#

yuck

serene nova
#

Yuck?

prisma wave
#

We don't do that here

serene nova
#

Whats that

hot hull
#

skript

fading pelican
#

i must to know pls, i hawe 2 questions and 1st is java plugins is better or script for java plugin is better to perform actions 2nd how fast it can be if i need for project codder and average pay thru the paypal is around 16-25 Euro monthly

#

Speed comparison between Java and Skript

ITERATIONS JAVA SKRIPT
1 0s 0s
10 0s 0s
100 0s 0s
1000 0s 0.01s
10000 0s 0.03s
100000 0s 0.08s
1000000 0s 0.71s
10000000 0s 4.21s
100000000 0s 41.52s
1000000000 2s 413.33s

#

its numbers but practicly i am not sure

distant sun
#

I have no idea what you are talking about

#

If you want to ask which is better between java and skript, then the answer is clearly java.

fading pelican
#

but why

distant sun
#

Skript should be used only for small stuff if you can't code

#

Because one is the language the game is written in and the other is some plugin

#

Also, idk what iterations you are doing there but I dont think that 1000000000 will take 2s, unless you just iterate over them or idk

fading pelican
#

i hawe in my grou guy he tested thinks for me , he is scripter not java codder :/

distant sun
#

Sooo your question is which is better, java or skript?

fading pelican
#

actutaly you kinda ansvered it like + explained why java is better , from that i just feel like peace of s#it 😦 i bought server box specificly for my project 😦 and now i get info script is worse and i need more pc horse power for it

distant sun
#

Try to avoid skripts as much as possible

#

It's ok to use skript for small stuff like a /discord command or whatever but for more complex stuff an actual plugin is the way to go - even if it's not coded by you.

fading pelican
#

i hawe builders i hawe scripters i hawe discord manager i hawe compleet team but i hawe scripters not codders .. 😭 i just cant make it then , because i hawe writed thinks what i need i am willing to make completly diferent type of game in minecraft but when all is almost reddy and almost up an runing i just got smasht in face with , you can not do it ! just cant.. it hard to explain... actualy i am here for help hand

hot hull
#

Whut.

fading pelican
#

in short txt - i realised that my project is imposible, because script is worse compare to java , and i do not hawe someone to do the work, i hawe only scripters (2)

remote goblet
#

they should learn spigot :)

distant sun
#

@fading pelican nobody will work monthly for that price imo

#

Gl though

hot hull
#

Yea that's a yikes

fading pelican
#

its my last actions ... i just cant give more... i relised that my project is imposible..

hot hull
#

It's only impossible if you think so, 🤷‍♂️

#

@pallid gale I'm dissapointed in you, you hecked all the external emoji perms ;(

distant sun
#

Admin or nothing

#

Smth like that

remote goblet
#

theres no external emojis >:(((((

frail glade
#

There are for boosters.

remote goblet
#

trash

#

why am I even here then

ocean quartz
#

Oh damn, my boost ended

distant sun
#

Just buy more nitro

#

🤷‍♂️

ocean quartz
#

Actually didn't have nitro just the boost so we could reach 30 boosts

distant sun
#

Oh well

modern trench
#

Any developer who speaks Spanish? xd

rotund egret
#

steel heart
#

When your packages are a mess and your project keeps growing and growing rip

ornate birch
#

how do i add a menu to the gui for a plugin i got

steel heart
#

Wym

ornate birch
#

i bought a minion plugin and i need to add it to a menu so playes can buy a minion

steel heart
ornate birch
#

oh my bad

ocean quartz
#

Ah yes, a success like no other, populating the entire world with trees

obtuse gale
#

God bless you 😂

#

With a single tree to live on

ocean quartz
hot hull
#

@ocean quartz Atleast use some custom trees :p

placid portal
#

Hello, I'm wondering if someone has a plugin they know of available on Minehut that can tell me when players mine diamond? The purpose for this would be trying to see if people might be using xrays in game.

hot hull
#

There is a few out there, not sure if they're on minehut tho

quiet depot
floral basin
#

👀

pallid gale
#

Pretty much elon musk at this point

obtuse gale
#

Oh well

distant sun
#

@quiet depot im sorry to tell you but thats a boat

quiet depot
#

:doubt:

#

boats don't like velocity apparently

#

i'm changing to a minecart

distant sun
#

@pallid gale did you forgot smth?

quiet depot
#

@ocean quartz velocity based gravity is a no no

#

it's highly latency based

rotund egret
#

Who needs gravity, it isn't even real.
density is where it's at 🎵

distant sun
#

Wasnt there smth that made you fall slower?

quiet depot
#

an effect

#

switching to that

distant sun
#

Ye

#

Leaping and smth to fall slower

quiet depot
pallid gale
quiet depot
hot hull
#

just do player.setGravity(false) <o/

topaz bay
#

disgusting

hot hull
#

Crashed my minecraft lmao

#

TOo many particles

#

50 count, and it spawns it every time the projectile moves

quiet depot
hot hull
#

I'm confused af rn, it's not spawning the particles ,-,

quiet depot
#

it's a wip .-.

hot hull
#

Piggy, what would be the most efficient way to spawn particles on the projectiles path every block (not every tick, but every block traveled)

pallid gale
hot hull
#

Ah yes

#

Cube, mind designing me some star wars weapons? :p

#

Nothing fancy just the basic shape

quiet depot
#

do you know the velocity of your projectiles?

hot hull
#

Yea

quiet depot
#

what does an xyz value correspond to in a vector?

#

I'm asking because I honestly don't know

#

is that how many blocks it travels in that direction per second?

hot hull
#

Might be

#

Lemme print out and see what it is

#
>.... [10:25:54 INFO]: -6.1955962656880645,0.7612394524337845,-0.31241224151819325
>.... [10:26:00 INFO]: -5.328575100247696,0.2348854913080214,-0.26869279723499473
>.... [10:26:06 INFO]: -5.016747971435862,0.04558048817904062,-0.2529689495049865
>.... [10:26:12 INFO]: -3.7862374743291523,-0.7014417301655168,-0.19092059675131007
>.... [10:26:13 INFO]: GRASS_BLOCK
quiet depot
#

ya know

#

that doesn't help me a whole lot

hot hull
#

Ik, I assume it is blocks traveled a second

quiet depot
#

easy then, whatever the direction of a particular xyz is, that's how many times you spawn a particle per second

#

doesn't account for vectors that utilize more than one direction

#

you can do the maths for that

pallid gale
hot hull
#

hax

quiet depot
#

o my

distant sun
#

smh

prisma wave
#

Is that particles or armour stands?

#

Or both

pallid gale
#

Its an invisible giant holding the rocket block

#

(It's only a concept, doesn't actually move)

hot hull
#

weak

pallid gale
prisma wave
#

lmao

#

walking rockets

hot hull
#

umm

#

I think you missed how that works chief

pallid gale
#

nah its fine

quiet depot
#

lol

hot hull
#

@ocean quartz
Got this onEnable

manager.getCompletionHandler().register("#weapons", input -> Arrays.stream(Weapons.values()).map(Weapons::toString).collect(Collectors.toList()));
manager.register(new WeaponCommand(), new GameCommand(this));

And this for my command

@SubCommand("give")
@Completion({"#players", "#weapons"})
public void giveCommand(final CommandSender sender, final String user, final String object)
#

But it breaks the completion completelly

distant sun
#

Btw you can use Player and register Weapon

ocean quartz
#

What do you mean it breaks? And yeah ^

somber tulip
#

I think Player has to be the argument for it to work

#

Parameter *

hot hull
#

wdym Gaby?

#

Harolds, it works if I only use the player completions

#

Anything I try adding to the second arg completion breaks it

somber tulip
#

Ah

hot hull
#

where is should show the different subcommands

somber tulip
#

Does console give you a fat error?

hot hull
#

Nope

#

That's what confuses me

ocean quartz
#

Gaby means giveCommand(Command sender, Player user, Weapon object)

#

You'd need to register weapon though

hot hull
#

testing

#

Okay yea that worked

#

getting a fat error now tho

#

Legit removed all the changes and it keeps throwing that error, I'm confused af rn

ocean quartz
#

Can you show me the code where you register the parameter?

hot hull
#

sec

#

removed that and now it stops giving me the error

ocean quartz
#

You're not registering the parameter

ocean quartz
#

Interesting that it gave a null pointer instead of unregistered parameter exception

hot hull
#

Perhaps if you set it to throw unregistered parameter I wouldn't have this struggle ;C

ocean quartz
#

It should have, is weapons an enum by any chance?

hot hull
#

yup

ocean quartz
#

Oh yeah that's why, normally all enums are registered by default, and some throw errors idk why, i got the error with sound, but works fine with Material

hot hull
#

Issue is, if I use #enums it breaks as well

#

Hence my attempt of trying to register it

ocean quartz
#

Yeah Imma take a look into that today and see if i can fix the enum stuff

hot hull
#

I assume registering it manually should work for now ye?

ocean quartz
#

I think so, if not use String and get it that way until i can fix it

hot hull
#

kk

#

Got it to work, but it doesn't show the second completions

distant sun
#

you dont have to register enum completions

quiet depot
#

matt, u still gonna do gravity?

ocean quartz
#

I'm not sure, it looks very janky from the videos you sent, I've seen people do slow falling and jump boost for it, but doesn't looks the same

quiet depot
#

I tried it with cube earlier (effects), it's trash compared to the algorithm in bling

#

but ya know

#

not much else we can do

hot hull
#

@distant sun I've tried that but it throws an NPE

distant sun
#

f

hot hull
#

read chat smh

quiet depot
distant sun
#

that looks hot

#

well done @pallid gale

quiet depot
#

he didn't make the model

distant sun
#

f

quiet depot
#

he just had the software that converted it to mc format

distant sun
#

:))

remote goblet
#

should of made it a minecart

#

you could of probably just get the velocity on the minecart

quiet depot
#

tried that, but there's not actually much point

#

code wise, there's 0 difference between any falling block vs for example, a mine cart

remote goblet
#

except the fact you can ride the minecart

quiet depot
#

minecarts just require more work

#

you can ride falling blocks too?

ocean quartz
#

I'll give it a shot on the gravity and see if i can make it work with bling's algorithm
Also it's looking nice!
Do you want a crater populator?

quiet depot
#

this is me & cube riding a falling sand block

#

it's a bit glitchy, that was actually the only time it glitched from multiple recording attempts

#

probably client side

distant sun
#

works very well wdym

quiet depot
#

@ocean quartz no thanks, I plan on having the craters appear at real time

#

like in galacticraft

ocean quartz
#

Oh nice that sounds cool

distant sun
#

oml id try smth but I dont have time nor knowledge 😭

quiet depot
#

what makes you think I had the knowledge?

hot hull
#

Gaby are you even participating?

distant sun
#

@prisma wave chicken invaders

#

do it

ocean quartz
#

Same here Gaby, we're going blind into this

quiet depot
#

basically everything I've implemented so far - the apis involved, I've never used them before

#

my prior bukkit experience was basically simple events and commands

distant sun
#

ye but you know more than I do

quiet depot
#

I highly doubt that

ocean quartz
#

I've read so much to try to understand perlin noise and i still don't get it correctly

#

It's all about learning doing this Gaby

hot hull
#

Perlin noise is a bitch agreed

quiet depot
#

I'm still using simplex octave, I like the result

hot hull
#

Tried using it once before, never again thank you very much

quiet depot
#

Considering it's name though, and how the bukkit guide recommends "8" octaves without any explanation as to why, I wonder what would happen if I didn't use 8

#

it seems strange to even have "Octave" in the name if the number is configurable

prisma wave
#

chicken invaders

#

scary

quiet depot
#

so what the fuck are "octaves"

ocean quartz
#

I did a few tests and simplex seems more mountainy and round so i tried mixing both and got some cool results

hot hull
#

I mean it's mc, wat u expect

distant sun
#

In music, an octave (Latin: octavus: eighth) or perfect octave (sometimes called the diapason)[2] is the interval between one musical pitch and another with double its frequency.
You are welcome piggy

#

xd

quiet depot
#

octave means 8

#

or something along the lines of 8

#

I don't know the exact definition, but it involves 8

prisma wave
#

it means 8 aves duh

ocean quartz
#

Octaves from what I understand Piggy are basically different generations of the same seed

#

Pretty useful video

quiet depot
#

only thing I don't like about simplex is it's not really all that random, it follows a very consistent pattern

#

there's never a flat bridge between to bumps

#

it's always up and down

hot hull
#
final ItemStack item = new WeaponBuilder(weapon, weapon.getMaterial(), weapon.getName(), weapon.getAmmo()).getWeapon();

Clean enough?

quiet depot
#

no, that's not a builder, that's a constructor

distant sun
#

^

hot hull
#

sthu

#

ty for agreeing gaby

distant sun
#

.setX() is a builder

quiet depot
#

no, that's a setter

hot hull
#

rekt

distant sun
#

oh fuck off piggy

#

go back to your music

quiet depot
#

builder methods are generally unprefixed, and their naming corresponds to the value they set

distant sun
#

I mean

#

new WeaponBuilder().setMaterial().setName().setAmmo().build();

quiet depot
#

no

distant sun
#

👋

quiet depot
#

set assumes that you're setting a pre existing value, whereas the unprefixed alternative is trying to emulate what are called "named parameters" in other languages

hot hull
#

I wish I wouldn't have even asked..

quiet depot
#

frosty how on earth do you spawn a bunch of particles to create a sort of explosion, without them separating at a million blocks per second

hot hull
#

Particle.EXPLOSION_HUGE 😉

#

set their speed

quiet depot
#

I set the speed to 0

#

yet they still fly

hot hull
#

Play around with their data

quiet depot
#

ok

hot hull
#

ah that's just the color and size

#

that's a yikes

quiet depot
#

it must be possible

#

because well, campfires seem to manage it just fine

hot hull
#

I mean it's spigot, methods could be broken GWcmeisterPeepoShrug

quiet depot
#

you say that but spigot is without doubt the most thoroughly tested minecraft software available

hot hull
#

:stonks:

distant sun
#

you say that but spigot is without doubt the most thoroughly tested minecraft software available
@quiet depot and the worst, lets not forget that.

ocean quartz
distant sun
#

easter egg

ocean quartz
#

If i use the default tree populator it goes so fast, if i do the generate tree stuff it's laggy af

hot hull
#

Matt, custom trees :>

ocean quartz
#

Will get to it, dw xD

#

Just got a world generation that i am happy with

distant sun
#

The begin of a new world generation plugin

ocean quartz
hot hull
#

You gonna be making custom biomes as well or?

distant sun
#

I dont meant to be rude but it reminds of me playing with worldedit @ocean quartz 😂

ocean quartz
#

I'll try xD
And ikr Gaby

quiet depot
hot hull
#

I need an arena, cube ofc won't want to make something simple for me ;c

distant sun
#

Yes, fuck testplugins 2020 update smh @pallid gale

hot hull
#

lol

quiet depot
#

"update it yourself gaby" - cube

distant sun
#

"Shut up fc" - gaby

quiet depot
#

how cute

hot hull
#

They got sick of your bullshit and decided to leave

pallid gale
#

I'm right behind them

hot hull
#

Should've learned how to use paddles beforehand tho

ocean quartz
#

Uuh what, i've never seen that before o.O

hot hull
#

I changed something, not sure what and it broke every single gui

ocean quartz
#

What is in this line? GameCommand.java:58

hot hull
#

empty line .-,

ocean quartz
#

Uuh fantastic xD
Can you send me your gui class?

hot hull
#

sec

#

stopped, cleaned the package and rebuilt, to double check it's not a funky error

#

Okay yea that fixed it, the jar wasn't updating properly

ocean quartz
#

Oh okay

quiet depot
#

me and cube about to launch off

steel heart
#

Aye

hot hull
#

nice

steel heart
#

How did ya get a rocket in minecraft 🤔

lunar cypress
#

looks really good

hot hull
#

Sam as you get any other 3d object

#

Same*

rotund egret
#

magic numbers

quiet depot
#

@steel heart magic

steel heart
#

😮

cinder ingot
#

imagine knowing how to mod]

quiet depot
#

it's bukkit

cinder ingot
#

wait wat

#

texture pack?

#

@quiet depot

quiet depot
#

yes

cinder ingot
#

ah

obtuse gale
#

Hey guys, is it good practice to have enum values inside an enum

   IRON_ARMOR,
   LEATHER_ARMOR,
   CHAIN_ARMOR(Material.CHAINMAIL_CHESTPLATE, Material.CHAINMAIL_LEGGINGS, Material.CHAINMAIL_HELMET),
   SWORD(Material.IRON_SWORD, Material.WOODEN_SWORD),
   DIAMOND_SWORD(Material.DIAMOND_SWORD);
   
   private Material[] materials;
    
   EnchantMat(Material... mat){
       this.materials = mat;
   }
   
   public Material[] getAllMaterials() {
       return materials;
   }
}
lunar cypress
#

why not

quiet depot
#

It's fine, however it's generally bad practice to have your enum members mutable, and yours are mutable

prisma wave
#

you should probably return a copy of the array

quiet depot
#

consider using an immutable collection instead of cloning the array

obtuse gale
#

Ok thanks

modern trench
#

Not work correctly

oak coyote
#

@modern trench what is your main language?

modern trench
#

Sorry for my bad english, my language is spanish

oak coyote
#

It's alright

#

your issue is due to the negative if statement in your loop

#

as it therefore will only check the first statement in your loop

#

not tested but this should work better

#
    @EventHandler(priority = EventPriority.HIGHEST)
    public void onBuilderCommand(PlayerCommandPreprocessEvent event) {
        final Player player = event.getPlayer();
        if (!(inventoryContents.containsKey(player.getName()))) return;
        boolean correctCommand = false;
        for (String command : commandList) {
            if (event.getMessage().toLowerCase().startsWith(command)) {
                correctCommand = true;
                break;
            }
          }
            if (correctCommand)return;
            event.setCancelled(true);
            sendMessage(player, "&cYou cannot run this command in builder mode.");
        }
#

@modern trench

modern trench
#

I want only the commands in "commandList" to be used

oak coyote
#

that is what my system will do

#
            if (correctCommand)return;
#

this will proc if that condition is true

modern trench
#

Omg

oak coyote
#

?

modern trench
#

Thx

#

I'm trying

#

:smile:

modern trench
#

@oak coyote all commands are blocked :(

oak coyote
#

change the .startsWith() to .contains()

modern trench
#

It's the same

oak coyote
#

ohh wait sorry

#

im an idiot

modern trench
#

Show me the error 3 times

oak coyote
#

@modern trench change it back to startswith

modern trench
#

Okay

oak coyote
#

and put an extra } after

#

like this

#
    @EventHandler(priority = EventPriority.HIGHEST)
    public void onBuilderCommand(PlayerCommandPreprocessEvent event) {
        final Player player = event.getPlayer();
        if (!(inventoryContents.containsKey(player.getName()))) return;
        boolean correctCommand = false;
        for (String command : commandList) {
            if (event.getMessage().toLowerCase().startsWith(command)) {
                correctCommand = true;
                break;
            }
          }
            if (correctCommand)return;
            event.setCancelled(true);
            sendMessage(player, "&cYou cannot run this command in builder mode.");
        }
#

i was still checking within the for loop

#

whoops

modern trench
#

Ooh

#

xD

ionic pebble
#

public class ifb{
@EventHandler
public void onHangEvent(HangingPlaceEvent e)
{

  e.setCancelled(true);
}

}

can someone help me? I need to disable putting items in itemframes on creative mode?

oak coyote
#

@ionic pebble so is that all the code you have so far?

modern trench
#

@oak coyote ty man!

ionic pebble
#

@oak coyote yeah im not good at all..

oak coyote
#

@modern trench np

hot hull
#

BlockPlaceEvent would be more suitable don't you think?

oak coyote
#

@hot hull i believe he is actually using the correct event

#

just i don't believe he understands Listeners

hot hull
oak coyote
#

🙂

#

love you too

#

i won't ping again dw just force of habit when i staff sometimes people in tickets are quite oblivious unless you ping

#

alright @ionic pebble you need to implement Listener in that class and register it in your onEnable()

ionic pebble
#

how to register it ?

oak coyote
#

getServer().getPluginManager().registerEvent(/* your class call goes here */);

ocean quartz
obtuse gale
#

That's just like when you're using slow fall effect imo

ocean quartz
#

It's very hard to control it

oak coyote
#

so are you making a custom world using a texturepack and a plugin i assume?

ocean quartz
#

Yeah

modern trench
#

hey! How can I "reverse" this code? right now it's blocking all the commands except the ones on my list ...
I want it to be reverse, block only the commands in the list
https://hatebin.com/blpbpcowni

#

I'm trying a while ago, using !(Blablabla) to change the result, or change Blablabla == true to Blablabla == false, but I still don't understand why it doesn't work

hot hull
#

@ocean quartz How would I update an item, if I'm loading it in with addItem ?

somber tulip
#

GUI.Update()

hot hull
#

I get that, how would I update a specific item tho

somber tulip
#

You can’t update just one item if you’ve set others beforehand unfortunately - the library updates GUIs by closing and reopening the gui for players with it open

quiet depot
#

@ocean quartz you can adjust, it's just VERY slow

somber tulip
#

Otherwise frosty, you can use setItem but it will only take effect after you’ve updated the gui

#

Or someone new opens it

hot hull
#

ah gonna be messy :c

somber tulip
#

What are you trying to do?

hot hull
#

I've got a map with available arenas, and I'm updating the items lore when they click on it etc

#

so loading the arenas through addItem

somber tulip
#

Ah so you want it to match the item to a Arena aswell?

#

wait

#

no

hot hull
#

Yea I do

somber tulip
#

In that case, it would be going into either NBT tags or hiding a code in the lore / title. I don't think the LIB provides that afaik, I could be wrong.

hot hull
#

I'll play around with it

#

Do you know if there's a way to get every empty space in the gui? as in the slot

#

(using the lib)

somber tulip
#

There should be, but what's the end goal? To fill the spaces?

hot hull
#

I've got arenas identified with their ids, so I can just use that to fill the empty spaces (meaning I can use setItem with it on the empty slots)

somber tulip
#

Doesn't look like there's directly a method for that - I'll create a PR with it later. For now, you could use: ```java
gui.getGuiItems();

hot hull
#

k

hot hull
#

(also to flex that nice design)

somber tulip
#

Might be handy to set it to auto updating

hot hull
#

will do

somber tulip
#

& I like that design ;p

obtuse gale
#

My .m2 file is using alot of storage

#

Whats in that file, and can i delete at least some things from it?

#

Its a maven thing right?

distant sun
#

yes

#

probably repository is big but there is your local repo and cache

obtuse gale
#

Is it gonna break stuff if i just remove it?

#

Then when i load up my projects will stuff auto redownload

#

Cos I think it has stuff from ages ago

lunar cypress
#

You can delete all of it

#

But you may have to reinstall some things if you didn't take them from a public repo before

#

For example spigot

obtuse gale
#

yea alright, so ill just have to like rerun buildtools and stuff?

ocean quartz
#

@hot hull There is updateItem which updates the item without refreshing the entire GUI, which is recommended

hot hull
#

yeye Ik that, it'll work with the way I'm changing it to

signal tinsel
#

I wanna make my own permissions plugin

#

Just because

steel heart
#

Welp lp exists

signal tinsel
#

Tru

#

But one day I wanna make a server with 100% custom plugins

#

to be fair at that point you don't need a permissions plugin but eh

hot hull
#

I mean permissions aren't really that difficult, it's just a map, it's the execution that's iffy

signal tinsel
#

tru

#

But it'd be a bit more advanced than that

hot hull
#

Just don't make a gui

#

Please

signal tinsel
#

Youd AT LEAST be able to manage permissions ingame

#

Something else interesting would be a vanish plugin

hot hull
#

player#setVisible(true/false)

#

done

signal tinsel
#

xd

#

more something like vanishnopacket

#

and I need to do nametags

#

like what you see above someones name

#

I wanna make that myself sometime

hot hull
#

@onyx loom

Blasters (DH-17 blaster pistol)
Blaster rifle (E-11 blaster rifle)
Heavy blaster pistol (DL-44 heavy blaster pistol)
Sporting blaster (Defender sporting blaster)
Light repeating blaster (T-21 light repeating blaster)
E-Web repeating blaster
Jawa ionization blaster
Bowcaster
Beam tube (Emperor-4 beam tube)
Ssi-ruuvi paddle beamer
Disruptor (DX-2 disruptor pistol, DXR-6 disruptor rifle)
Sonic pistol (Sd-77 sonic pistol, Sg-82 sonic rifle)
Wrist rockets (MM9 rocket system)
Stokhli spray stick
Projectile weapons (Oriolanis Striker Projectile Pistol, Dressellian projectile rifle)
Flame projector (C-22 flame carbine, CR-24 flame rifle, ZX miniature flame projector)
Dart shooter (Stealth-2VX palm shooter, PRP-502 hold-out dart shooter)
Flechette launcher (FWG-5 flechette pistol, FC-1 flechette launcher)
Missile tube (PLX-2M portable missile launcher)
Thermal detonator (Class-A thermal detonator)
Grenades (G-20 Glop grenade, C-22 fragmentation grenade, WW-41 CryoBan grenade)
Grenade mortar (MobileMortar-3)
Blaster artillery
Anti-vehicle artillery
Anti-infantry battery
``` Which ones do I add :p
quiet depot
#

all

hot hull
#

oh god

quiet depot
#

my rocket is almost fully functional

#

it has particles

#

a countdown

#

it actually flies now

hot hull
#

Issue is I'm using a single projectile type, so grenades don't really fir it

#

fit*

steel heart
#

Please do

hot hull
#

:perhaps:

quiet depot
#

yo frosty this rocket is actually sick

#

wanna see it?

#

i'll stream in live

hot hull
#

sure

#

weak, can't even control it sideways pfft

quiet depot
#

o

#

needs sounds first

hot hull
#

That's sick btw :p

quiet depot
#

did u notice the little wiggle?

hot hull
#

What wiggle?

quiet depot
#

i'll make it more obvious

hot hull
#

launch again

#

oh

quiet depot
#

gotta do sounds now

#

and lifting particles

hot hull
#

Not surprised

prisma wave
quiet depot
#

lol

hot hull
#

oof

compact perchBOT
#
✨ Channel Cleaned!

• Removed 10 messages.

prisma wave
#

lmao

#

ok

quiet depot
#

a remnant

hot hull
quiet depot
#

that's still loads

prisma wave
#

yeah pretty extensive

hot hull
#

Might add the repeating blaster at the end if I have time

quiet depot
#

where the melee at though

hot hull
#

soon™️

prisma wave
#

vibroblade pls

hot hull
#

spinning lightsaber if I can make it

#

Putting Terfs' commission on slight hold for this ;c

quiet depot
#

melee dwarfs guns in loads of situations

#

like tf2 spy

hot hull
#

It's laser tag

quiet depot
#

ark wooden club

hot hull
#

You trynna beat your oponent to death with a stick?

prisma wave
#

tf2 spy is a wonderful thing

quiet depot
#

it really is

#

I used to love to go onto a 10x server with my kunai and the thing that makes you recharge your invisibility when you stand still

#

oh and the diamondback

#

that was a useful tool

prisma wave
#

cloak and dagger

#

what a loadout

quiet depot
#

it really was

#

didn't work the same charm on normal matches

#

but fuck those

#

I have stabby mcstabbington for those ones

#

how do you even rename items on steam

#

I can't remember how I got that knife

prisma wave
#

you need name tags

quiet depot
#

I think someone gave it to me

prisma wave
#

which cost like $2 I think

quiet depot
#

o

prisma wave
#

I don't wanna flex

#

but look at that bad boy

quiet depot
#

I can't flex

#

majority of my stuff is non tradable

hot hull
#

Should I set the particles for each weapon inside their enums, or should I have a switch on the projectile timer?

ocean quartz
#

My world is coming up together pretty nice, just like i imagined it ;p

hot hull
#

spicy

prisma wave
#

do it in the enum I'd say

#

that looks sick matt

quiet depot
#

brister why do I have 4 ambassadors when they're not tradable

hot hull
#

What if I were to have multiple particles per weapon?

prisma wave
#

good question

#

turn them into scrap metal or something

quiet depot
#

what do u do with that

prisma wave
#

craft other weapons

quiet depot
#

i haven't played tf2 for ages

prisma wave
#

untradable stuff is kinda useless

quiet depot
#

year or two

prisma wave
#

me neither

hot hull
#
                switch (weapon)
                {
                    case "DH_17":
                    case "E_11":
                    case "DL_44":
                    case "T_21":
                        world.spawnParticle(Particle.DRAGON_BREATH, location, 12);
                        world.spawnParticle(Particle.CLOUD, location, 5);
                        break;
                    case "BOW_CASTER":
                        world.spawnParticle(Particle.EXPLOSION_NORMAL, location, 2);
                        break;
                    case "DX_2":
                        world.spawnParticle(Particle.FIREWORKS_SPARK, location, 15);
                        world.spawnParticle(Particle.END_ROD, location, 6);
                }
#

got this rn

quiet depot
#

EWW

hot hull
#

wdym ew

quiet depot
#

string cases

hot hull
#

smh I'll change to enums

#

if that's floats your boat

quiet depot
#

some DRY would float my boat

#

god

#

it's impossible to use boat like that

#

you can say some dry

#

or less WET

#

but neither is a good thing for a boat

prisma wave
#

enums good strings bad

hot hull
#

I'm using string cause I store the value inside persistentDataContainer

#

and I'm lazy

quiet depot
#

use java 12 switches then

#

or 13

#

or 14

#

whenever they came out

#

i needa learn how to write raw bytecode

#

screw off with kotlin and java

#

I can use the best of both worlds

hot hull
#

changed to enums, happy? :p

prisma wave
#

i needa learn how to write raw bytecode
That is a crime

hot hull
#

@ocean quartz How is the prevPage and nextPage handled? Will it throw an NPE if there is no previous page or?

onyx loom
#

@onyx loom

Blasters (DH-17 blaster pistol)
Blaster rifle (E-11 blaster rifle)
Heavy blaster pistol (DL-44 heavy blaster pistol)
Sporting blaster (Defender sporting blaster)
Light repeating blaster (T-21 light repeating blaster)
E-Web repeating blaster
Jawa ionization blaster
Bowcaster
Beam tube (Emperor-4 beam tube)
Ssi-ruuvi paddle beamer
Disruptor (DX-2 disruptor pistol, DXR-6 disruptor rifle)
Sonic pistol (Sd-77 sonic pistol, Sg-82 sonic rifle)
Wrist rockets (MM9 rocket system)
Stokhli spray stick
Projectile weapons (Oriolanis Striker Projectile Pistol, Dressellian projectile rifle)
Flame projector (C-22 flame carbine, CR-24 flame rifle, ZX miniature flame projector)
Dart shooter (Stealth-2VX palm shooter, PRP-502 hold-out dart shooter)
Flechette launcher (FWG-5 flechette pistol, FC-1 flechette launcher)
Missile tube (PLX-2M portable missile launcher)
Thermal detonator (Class-A thermal detonator)
Grenades (G-20 Glop grenade, C-22 fragmentation grenade, WW-41 CryoBan grenade)
Grenade mortar (MobileMortar-3)
Blaster artillery
Anti-vehicle artillery
Anti-infantry battery
``` Which ones do I add :p

@hot hull
ALL

hot hull
#

Scroll up, you'll see which ones I added

ocean quartz
#

Nothing will happen if there is no next or previous page

hot hull
#

I should be fine to check using the getPrevPageNum ye ?

ocean quartz
#

You don't need to

hot hull
#

for showing the page item

ocean quartz
#

If there is none it'll return the current page number instead

hot hull
#

Get next page number
The method getNextPageNum()will return the number of the next page or -1 if it is there is no next page.
Get previous page number
The method getPrevPageNum()will return the number of the previous page or -1 if it is there is no previous page.

#

,-,

#
        if (gui.getPrevPageNum() != -1)
        {
            gui.setItem(20, new GuiItem(new ItemBuilder(new ItemStack(Material.SPECTRAL_ARROW)).setName(Color.colorize("&fNext Page &8»")).build(), event ->
            {
                gui.prevPage();
            }));
        }
ocean quartz
#

Yeah it's outdated i thought it made more sense to return the current instead, so dw about that xD

hot hull
#

Ah k then

#

@ocean quartz I might be dumb, but it's not updating the item properly

    private void nextPage(final PaginatedGui gui)
    {
        if (gui.getNextPageNum() != gui.getCurrentPageNum())
        {
            gui.setItem(32, new GuiItem(new ItemBuilder(new ItemStack(Material.SPECTRAL_ARROW)).setName(Color.colorize("&fNext Page &8»")).build(), event ->
            {
                gui.nextPage();
                gui.update();
            }));
        }
    }
#

Do I need to update the gui outside or is this fine? :p

ocean quartz
#

Wait what are you trying to do? I don't think you should be updating the gui when you change page, it already does that

hot hull
#

When I change the page, I want it to hide the next page, and show the previous page

#

Currently it doesn't

#

Leading me to assume it doesn't update the items :p

ocean quartz
#

I doesn't yeah
Actually hold on, i'll make it auto update the items as well

hot hull
#

So would using gui.update() outside be good enough for rn?

#

Or will it not run that

ocean quartz
#

I probably won't do anything
What i suggest you do there to hide the item is something like
if (gui.getNextPageNum() == gui.getCurrentPageNum()) gui.updateItem(32, GuiItem(yourFillItem))
That way it would hide it if there is no next one
But you'd need to show it again

hot hull
#

Does it only run the gui code when you open it?

ocean quartz
#

Yes

hot hull
#

Ah

#

I'll just leave it static for now

quiet depot
hot hull
#

if it ever loads

quiet depot
#

open in browser

#

wear headphones and put to max

ocean quartz
#

Oooh nice it's looking great! ;o

prisma wave
#

that's sick

hot hull
#

later, trynna figure out how to make an rp

frail glade
#

That rocket shit is hella cool

hot hull
#

@quiet depot Just watched it, that's spicy

pale shell
#

the image not showing is deleting .gitignore

prisma wave
#

my life flashed before my eyes

vestal hedge
#

Omg that rocket is deamn cool @quiet depot exactly my idea if I had time. Altough suggest using T-10, T-9 etc. But deamnn boii nice work

modern trench
#

Hey! Help me pls
If me execute "/this is a example"
How can i get just "/this"?

#

I'm trying with event.getMessage().args[0]
But doesn't work

prisma wave
#

String#split(" ")

ocean quartz
distant sun
#

yes!

ocean quartz
#

Alright alright

sweet apex
#

can someone tell me a good place to learn how to start making plugins?

rotund egret
#

Do you know java?

sweet apex
#

nope

#

do i need to learn that first?

rotund egret
#

I would

#

​Basic Java Tutorials: https://docs.oracle.com/javase/tutorial/
Online Java Course: https://www.codecademy.com/learn/learn-java
Java from Zero to Hero: https://java-programming.mooc.fi/

Some links to help 😎

sweet apex
#

is it hard to learn?

rotund egret
#

It's not as bad as some languages

sweet apex
#

alright

#

thank you

sweet apex
#

hey i just started making plugins today, and i finished my first plugin (its just a plugin that has a /fly command), but im getting an error: the type FlyCommand must implement the inherited abstract method CommandExecutor.onCommand(CommandSender, Command, String, String [])

hot hull
#
public class FlyCommand implements CommandExecutor
#

@ocean quartz Better make that already translate colors

distant sun
#

It will just execute the internal method for MessageResolver or how's called

#

( I guess )

#

So it's on your side to color it and such.

#

@sweet apex type onCommand and if you are using IntelIJ it should auto complete with that method

hot hull
#

That's effort Gaby ;c

distant sun
#

no?

#

You register it once and then reuse it

#

Either way you still have to register the message

hot hull
#

Yea ik, still effort adding that method in tho

floral basin
#

You are effort @hot hull

hot hull
#

no u

hot hull
#

@floral basin You got any star wars weapons textures?

floral basin
#

Not made

hot hull
#

How much for like 14 weapons (simple models)

distant sun
#

your liver