#dev-general

1 messages · Page 612 of 1

quiet depot
#

how I told u ur silly to be scared of such things

#

because such things are not scary

cinder flare
#

yeah but it spoopy

quiet depot
#

nah

cinder flare
#

ngl I use the debugger a ton more in python and C

#

maybe I just have the best understanding of Java and how shit works, but like, I don't really use it often in Java

old wyvern
#

Excuse me?

#

What exactly where you debugging?

#

Like in which case does it actually matter?

#

Also, false

#

Objects are not pass by reference in Java

#

Java always uses pass by value

#

In case of objects, it copies the reference instead of the object

#

This is entirely different to pass by reference

#

Where you would be able to re-asign passed values

ruby dew
ruby dew
#

But they are

old wyvern
#

Pass by reference != copying references

ruby dew
#

It took me one week to figure it out

#

Hmm

old wyvern
#

A copy of the reference is passed in java

#

Not the same reference

#

Its pass by value with the reference as the value

quiet depot
#

if they were pass by reference you'd be able to reassign a field which was passed as an argument

old wyvern
#

^

ruby dew
#

Oh alr I think I know what you mean now

#

But still it doesn’t make any sense

old wyvern
#

It does

#

Objects lie on the heap, the references to those are on the stack

ruby dew
old wyvern
#

Whatever is on the stack, is passed by value

ruby dew
#

The coordinates is just a custom type of mine nothing to do with mc btw

old wyvern
#

There also might be some interning? Not sure about that one, Shouldnt matter much

ruby dew
#

Still not quite sure about the pass by value/copying reference mechanism
But java is confusing as hell

#

When I’m so used to cpp

#

And that makes java one of the worst languages ever existed for me

ruby dew
onyx loom
#

"java is confusing therefore bad"

ruby dew
#

It’s as if java has its own set of logic

#

That you are forced to learn

#

An unorthodox set of logic

#

And tbh if the language is made to be simple but fails because of confusing mechanism it already backfires and is bad

#

Lol I feel like I’m picking on every one here who is used to java
But that’s so true for me lmao

old wyvern
old wyvern
#

Shouldn't matter tho

#

You can share immutable objects without issues

cinder flare
cinder flare
ruby dew
old wyvern
#

What about the stack value being copied doesnt make sense to you?

#

Nothing on the heap is cloned

cinder flare
#

Yeah to be honest, with Yugi's explanation, it is completely consistent and logical

ruby dew
#

It’s not being copied that does not make any sense
It’s that objects passed to functions will remain with the same reference to the original object

old wyvern
#

On a function call, you push the stack variables on and call the function

old wyvern
#

This seems to be coming from inexperience rather than the languages rules being complicated

ruby dew
#

What is the memory model of java

old wyvern
old wyvern
#

Java does not try to clone the objects on the heap

#

its passes by value or copies the values that lie on the stack refering to the object on the heap

#

The primitives also lie on the stack

#

Hence the result you get

#

You copy references and primitives, these being the items on the stack

ruby dew
old wyvern
#

Only the reference to the start of the array is held on the stack

ruby dew
#

Yeah alr
In c++ you can decide which is on stack and which is on heap

old wyvern
#

Yes, c++ has manual memory management

#

Java takes that responsibility away from the developer and delegates it to the vm

#

There are even some runtime optimizations in some JVM implementations that stack allocate objects/arrays where possible.

cinder flare
#

and especially when your options were basically C pre-99, C++ also pre-99, and like Pascal, Java was very attractive as a language

old wyvern
#

In general, you dont need to worry about any of that in java

cinder flare
#

I think it's important to note the history of why things are the way they are

old wyvern
#

Mhm

potent nest
obtuse gale
#

Java literally is all pass by value lol

potent nest
#

hello emily

obtuse gale
#

Hello!

#

How's your day going

potent nest
#

I'm relaxing today Cool

#

and yours?

obtuse gale
#

Cool cool, just woke up like 20 minutes ago

quiet depot
#

emily ur the resident c++ nerd right

obtuse gale
#

I guess you could say that

quiet depot
#

epic

ruby dew
obtuse gale
#

some say that yeah

obtuse gale
#

Hello

#

I need help from someone who can help me about pc?? Any1

lunar cypress
#

about pc

#

that's terribly specific

lunar cypress
obtuse gale
#

yeah that's my tag now

#

c++ nerd

cinder flare
#

and betterjails founder

obtuse gale
#

🥲

cinder flare
#

that's right, i'm in lucy's server

#

i know what you are

obtuse gale
#

hey hey it's our server

cinder flare
obtuse gale
#

🙄 she came up with the idea first

#

but it's like

#

our child

#

okay that's a weird analogy

cinder flare
#

lmao

obtuse gale
#

lol

old wyvern
#

Communist Emily

prisma wave
#

"lol"

#

Me when I ""lol""

old wyvern
#

"lol"

obtuse gale
#

okay

#

shut up now

#

thank you

prisma wave
#

my face when I me when I when my face when i

#

Yeah

old wyvern
#

"shut up now"

#

"Yeah"

timber oak
#

Does spigot APIs YamlConfiguration not cache the config files on server start? Or does it read the files directly at every call?

wintry plinth
#

It caches I believe, because you have to do .reloadConfig() after

prisma wave
#

yeah its cached

#

once you load it, it has basically no connection to the original file

timber oak
#

Aight, thanks

#

com.sk89q.worldedit.extension.platform.NoCapablePlatformException: No platforms have been registered yet! Please wait until WorldEdit is initialized.

Do I need the dependency or do I need to initialize an instance somehow?

#

Caused by this

            ClipboardReader reader = format.getReader(new FileInputStream(mapFile));
            clipboard = reader.read();
static zealot
#

I mean

Please wait until WorldEdit is initialized.

timber oak
#

Does plugin.yml need to depend on it? Even though it is installed in the server dir

sweet cipher
#

Yes

noble gulch
#

Hi, anyone here that can help show me how to push to a repo on an organization rather then my profile.

half harness
#

welp I broke windows terminal again 🥲

primal crystal
peak ridge
#

i have a question maybe you all can help me with i had someone nuke my server with a bot that deleted everything then started spamming thousands of notification what can be done about this person?

noble gulch
noble gulch
#

now i get this error when i push

#

i have permissions tho

#

@quick flume ?

noble gulch
#

Anyone

#

...?

primal crystal
#

not the url of project

noble gulch
#

oh is that the issue

#

I still get denied permissions @primal crystal pensive_wierd

primal crystal
#

weird..thats how i do it

noble gulch
potent nest
storm coyote
#

Does anyone know any good open-source blog sites?

timber oak
#

I'm depending on it in plugin.yml now and the plugin is also installed in the server directory

#

Error is from second line here

            ClipboardReader reader = format.getReader(new FileInputStream(mapFile));
            clipboard = reader.read();
potent nest
#

at Infection.jar//com.sk89q.worldedit.extension.platform.PlatformManager.queryCapability(PlatformManager.java:171)

timber oak
#

oh

potent nest
#

if that class is in your jar file, you're accidently shading it

timber oak
#

Will this shade it? Probably will tbh

implementation 'com.sk89q.worldedit:worldedit-bukkit:7.2.0-SNAPSHOT'
#

I do have shadow jar on

#

I'll try with compileOnly instead ig

potent nest
#

yeah, use compileOnly

timber oak
cinder flare
#

looks like you're doing too much at one time lol

timber oak
#

Oh, hmm

cinder flare
#

cause that's not an error, that's the server hanging

timber oak
#

Ah yeah I see, time for optimizing it and well, remaking it really

potent nest
#

You can probably disable some validations, not sure how much that helps

fresh birch
#

hello so ive got custom plugin that only record opened crates and output the values

#

but the guy who dev this left and i got and error

#

(it worked for a while)

#

thats the error

#

im gona try to fix by myself

#

but ill need extra help

cinder flare
#

Did you update the crate plugin? It looks like it's either missing, or it's a different API

distant sun
#

to host multiple websites on a machine, you have to assign each to a different port and it should work, right?

#

like 162.381.31.1:2020 - gabytm.me; 162.381.31.1:2021 - something.else

cinder flare
#

Uh, I guess you could do that?

#

But then your DNS records would have to point to the alternate ports

#

A better solution is to have Nginx or something similar act as a reverse proxy

#

Just match it on domain name, then it can send you to either of the sites

distant sun
#

aight

urban sleet
#

You can't tell in the video, but I was moving my mouse around the whole time

distant sun
#

cancel the move packet / event most likely

obtuse gale
#

It would look very jittery tho

urban sleet
#

Yeah that's what I thought too

distant sun
#

got other ideas, emily? I'm curious tbh

obtuse gale
#

OR is known for doing resource pack witchcraft Shrug

#

It's amazing

distant sun
#

yup

wintry plinth
#

Yeah it’s spectacular what OR have done

urban sleet
#

It certainly is, just wish I could figure out or get an idea of what to do for this

static zealot
#

can you force a player in spectator mode and make it be in a mob's perspective?

urban sleet
#

I think so

static zealot
#

well then that might be what they're doing

#

since you can't control the entity and if the entity has no ai the player won't be able to move

#

and the entity won't move either

urban sleet
#

Interesting

static zealot
#

its just an idea. I don't actually know if you can do that with packets or spigot. never tried

distant sun
#

are armor stands still visible while using the perspective of another entity? I would say no

static zealot
#

that's a good question. I don't know. never tried

urban sleet
#

It is there for me

#

(the armorstand)

static zealot
#

idk, the bigger problem might be the fact that you can't hide armor stands anymore since in spectator you see the invisible armor stands as well

severe oak
#

Maby spectator in a armorstand?

static zealot
#

yeah but the not being able to hide armor stands problem still stands

distant sun
urban sleet
distant sun
#

I like the butterflies xd

urban sleet
#

Thanks haha

static zealot
#

wait. you can retexture armor stands to be invisible?

#

I Just found a 5 year old minecraft thread on reddit and apparently that's a thing?

distant sun
#

canceling PlayerMoveEvent looks that bad, Raindropz?

urban sleet
#

I haven't tried it but this is the most seamless solution (assuming i can hide the armorstand)

torn birch
#

You can take a look in the texturepack from OR and search for armor stand

urban sleet
static zealot
#

kek

torn birch
#

I imagine you only want to do it with specific armor stand, not all of them..

severe oak
static zealot
urban sleet
severe oak
#

With player#hide?

distant sun
#

probably ArmorStand#setVisible

urban sleet
#

Yeah that

severe oak
#

Is PacketPlayOutEntityDestroy packet possible?

static zealot
#

Raindropz you could also try F3 + B to see the entities on OR and maybe figure out what they did there as well

distant sun
#

I don't think you can see the hitbox if they are invisible

static zealot
#

yeah but that might tell you if they are doing some spectator stuff or something else I guess?

torn birch
#

They are using spectator mode

distant sun
#

by the look of that video, with not UI, it is probably spectator

torn birch
#

Yeah

severe oak
#

I checked, there are using spectaror mode

#

You fly for a second

urban sleet
#

So basically, spectator mode + magic

torn birch
#

Maybe they just don't have any armor stands surrounding the player in the wardrobe, or tp you to a different place

urban sleet
#

Backpacks use armorstands though

torn birch
#

There must be a reason they don't use it anywhere else

static zealot
#

what does the Marker nbt tag do exactly?

urban sleet
#

Tiny hit box

severe oak
distant sun
#

I wonder if this helps, though those particles are annoying https://microeducate.tech/making-entities-invisible-even-in-spectator-mode/

I’m trying to make a Minecraft map that will move spectators in Spectator Mode around using armor stands. They will click the armor stand and use F5 mode to achieve the proper effect. However, they can see the armor stand. Is there a way to fix that and make a entity that even spectators can’t ... Read more

severe oak
#

You can disable particles with spigot right?

torn birch
#

Armor stands do not have shadows right?

urban sleet
#

I don't think so

severe oak
#

No they don't

obtuse gale
#

@pliant dagger please accept my friend request

pliant dagger
obtuse gale
sweet cipher
#

Does anyone have experience with setting the body rotation of a fake player?
I am able to set the head rotation, but the body doesn't face the same way.

#

Nvm just figured it out lol

agile galleon
#

Looooolololoo

sweet cipher
#

Nvm I didn't actually

#

I'm trying:

        final PacketContainer rotationPacket = new PacketContainer(
                PacketType.Play.Server.ENTITY_LOOK);

        rotationPacket.getIntegers().write(0, entityId);
        rotationPacket.getBytes().write(0, (byte) (120/*location.getYaw()*/ * 256 / 360));

        final PacketContainer rotationPacket = new PacketContainer(
                PacketType.Play.Server.ENTITY_HEAD_ROTATION);

        rotationPacket.getIntegers().write(0, entityId);
        rotationPacket.getBytes().write(0, (byte) (120/*location.getYaw() * 256*/ / 360));

So theoretically the body and head rotation should match, but they don't.
The head rotates to a pitch of 0, and the body does not rotate at all.

#

They should be rotating to 120 though

#

Actually the body rotates correctly, the head does not

#

Oh wait I'm dumb

#

I commented the * 256

agile galleon
#

Double lolololooolllooooolooo

static zealot
#

dkim I saw that

half harness
#

hi

sick belfry
#

ah yes

#

Origin Realms found out the way to load player skins into models

distant sun
#

pictures?

fresh birch
#

any1 uses playerheads ? can i add placeholders in the lore of the heads

sick belfry
#

(not a joke)

solar cradle
#

Huh

#

How

#

I understand that for one or a few players but no idea how you could do that with any player

sick belfry
#

yeah

wintry plinth
#

How do you know it isn’t just a particular player they made the model for?

sick belfry
#

and they wouldnt do it just for that

fresh birch
#

crash ?

#

depends on the gamemode

#

well

#

SMP

#

sooo

#

if u gona ignore the vanila gameplay

#

go 1.12.2

#

if u want new stuff go 1.18 or 1.17

gleaming rampart
#

Guys I just started coding
Honestly I think I’m a pro dev now

dense dew
#

go w Purpur

#

1.18

#

nah thats bullshit

cursive jolt
#

that's bs

#

4 GB is the recommended minimum.

#

although you can go down to 2 GB with only a few players

sweet cipher
#

It depends how many plugins / players you have

sick belfry
#

I still cant figure out how they did it

urban sleet
sly sonnet
#

i have had problems with pebblehost as well.
, but 4gb at idle is too much without no players on and no plugins

#

mine 2 servers are below 1gb even with 2 players on soo yeah

remote goblet
#

absolutely winging shit with this plugin

#

no idea if this'll work, nor do i care

#

oh hell yes

static zealot
#

nicee

distant sun
#

IOOB, hehe

humble silo
remote goblet
#

yes

#

anyway it works kinda

#

i just needed to figure out how to detonate the firework

#

and thats where I got bored

#

i struggle to code ffor more than 30 minutes

cursive jolt
#

Print out sent packets and use a firework

remote goblet
#

eh

rugged spear
#

need welp

#

im making random plugins for fun, i want to make something like /command subcommand

#

i know i can do with args

#

but i want to do with switch case

#

who can welp me?

distant sun
#

Well

#

You use a switch on an argument

rugged spear
#

oh

#

:((

#

thanks for welp

#

i will use args

#

an other question

#

what i need to put in return?

#

true or false?

remote goblet
#

i usually put return true

#

but once again

ocean quartz
#

Return false triggers the "syntax" message from the plugin.yml, if you're already handling the messages there always return true

rugged spear
#

ok thanks matt

rugged spear
#

oh wat the hell is wrong

#

i just made my first config and i dont know tf happened

compact perchBOT
rugged spear
#

wat-

#

heere

#

this.config is null

#

i dont know

#

ok i know why but i dont know how to fix it

rugged spear
#

java.lang.NullPointerException: Cannot invoke "org.bukkit.configuration.file.FileConfiguration.getString(String)" because "file" is null

#

😦

#

i dont understand this error lol

golden hatch
#

Hello

#

my wives discord got hacked

#

idk what to do rn

#

please

compact perchBOT
#
FAQ Answer:

Looking for discord support?
HelpChat is a Minecraft plugin and development support server and is not affiliated with discord in any way.
If you require support from discord, we recommend you to visit their official support website at https://support.discord.com
On this website, you can read their FAQs, or open a support ticket if necessary.

golden hatch
#

I cant change the password since he put his email instead and put 2 auth

#

We sent a ticket

#

what else can we do

static zealot
# compact perch

As this mention this is not a discord help server but rather minecraft and development. only thing you can really do is contact them thru support.discord.com

golden hatch
#

Oh shit

#

Im sorry!

static zealot
#

no worries

rugged spear
static zealot
#

hm? what config?

static zealot
rugged spear
#

but the idea its stolen ngl

#

anyway

#

im trying to do config

#
    private FileConfiguration fileConfiguration;

    public Config(FileConfiguration configuration){
        fileConfiguration = configuration;
    }

    public FileConfiguration getFileConfiguration = fileConfiguration;
}```
static zealot
#

put this class in a paste bin org.xnotro.chatgender.commands.Commands

rugged spear
#

done

#

i dont know how config works

#

just using some tut and ex from internet

static zealot
#

did you change the class since you got the error?

rugged spear
#

so?

#

java.lang.NullPointerException: Cannot read field "getFileConfiguration" because "org.xnotro.chatgender.Main.config" is null

#

ig you mean that?

static zealot
#

ok so the error you sent mentions line 18 in the Commands class. But in the code you sent there's no config call in that method. So I am asking if you changed the code in that class and does the error still shows now with the new code?

static zealot
#

and do you still get errors?

static zealot
#

well.. you're using config but you're never initializing it

rugged spear
#

uhm

#

oh sht

#

ok now work but...

#

its say null

#

wtf is wrong now

#

😭

static zealot
#

Why are you making a new config class in the first place?

#

why not use the one provided by bukkit?

rugged spear
#

or does

wintry plinth
rugged spear
#

xD

#

ok rn im using bukkit one

#

still say null :((

#

any welp?

wintry plinth
#

Show code

#

😂

obtuse gale
#

yeah we can't help with what we can't see lol

rugged spear
#

done

#

fixed

#

😳

#

was really easy

#

so

#

i wanna add something if the player type something random its say something like "tf did you typed"

#

lol so many "something" in this phrase

#

like

#

/gender 10

#

its not in the config so should say tf did you typed

timber oak
#

What should be included in a good resume? This is for something non-minecraft related, so not sure what to include, the job is java-related though

static zealot
#

projects you've made/worked on, jobs you had before (related to the job you're applying to)

timber oak
fathom jasper
#

Hello

#

public void itemDropEvent (ItemSpawnEvent e){
Entity item = e.getEntity();
GlowAPI.setGlowing(item, GlowAPI.Color.AQUA, Bukkit.getOnlinePlayers());
}

#

Why this isn't working?

rugged spear
#

just add else if for every cmd

#

and then else

rugged spear
#

so i want to make multi api version how tf i can do?/

mental trench
#

elaborate?

static zealot
#

Anyone that has a bit more regex knowledge, we have a string that will look something like this:
%identifier_<input>_<match>_<output1>_<output2>% and we're trying to split those parts by _. Now we have a regex that lets us put _ inside each part by escaping it \_ (This is the current regex: (?<!\\\\)_). Now the problem is that in those parts we also have bracket placeholders so it could be something like %identifier_{input_something}_...% and we would want a regex that matches only _ that is outside of the {} and also keeps ignoring the \_.

#

if anyone has any idea please do tell

rugged spear
mental trench
#

and?

#

i mean, whats the issue

rugged spear
#

how i can do that?

mental trench
#

how?

#

you simply install it in different versions

rugged spear
#

eh?

mental trench
#

You ask how to make the plugin work in different versions

#

you simply install it in different versions

#

it's basically the same, except for really specific stuff

#

which leads to my other question: whats the issue (you are getting)

rugged spear
#

or multiple jar for every version?

mental trench
#

no

#

is 1 for all versions

#

as i said, shouldnt be different except for really specific things

rugged spear
#

ok and how i can do that?

mental trench
#

do what?

#

as i said

#

you shouldn't have issues with that

#

unless for really specific things

#

once you get those issues

#

ask here

rugged spear
#

wait

#

did you said it?

mental trench
#

what?

#

1.8 - 1.18 arent different (not too much)

rugged spear
#

oh

#

so what i need to do?>

#

sound like im dumb

#

lmao

mental trench
#

just code your plugin

rugged spear
#

now?

mental trench
#

install it in 1.8

#

then install it in 1.18

cursive jolt
#

I personally compile against 1.18 and then check the version before calling bukkit methods only in 1.18

#

although you can also compile against 1.8 if you don't need 1.18 bukkit calls

rugged spear
#

how?

#

which tool?

#

which JDK?

#

too many question xd

#

you know for today its enough

#

4h for dev a simple plugin xd

agile galleon
#

Interesting

#

Do you know java?

rugged spear
#

i dont know how how much simple is

rugged spear
mental trench
#

java 8

rugged spear
#

but now not much

agile galleon
#

Then learn it, get familiar with APIs, Gradle / Maven etc

#

Very important

rugged spear
#

lel

#

cuz i was a forge dev

agile galleon
#

Well then your questions should be solved :P

mental trench
rugged spear
mental trench
#

or you know, or you don't know

rugged spear
mental trench
#

good

#

use java 8

rugged spear
#

i always use it

#

cuz i made some cool thing

agile galleon
agile galleon
#

It sucks

rugged spear
#

then

#

i stopped cuz was boring

agile galleon
#

But you have to

rugged spear
#

im bad UI/UX

agile galleon
#

If you want to support 8 year old mc

#

Idek why you would want that buuut

rugged spear
#

i know java 8

agile galleon
#

And?

rugged spear
#

and stop

agile galleon
#

Java 17 is literally the same

#

But with more features

rugged spear
#

java 8 cuz of forge (old versions)

agile galleon
#

And faster

agile galleon
#

Ik

rugged spear
#

lel

agile galleon
#

Good old modpacks with thousands of errors 1.7

rugged spear
#

lol\

#

my most viewed java open source was a minecraft client source lol

#

2k views

#

and many ppl use it i think

#

i dont know i just delete it cuz i dont make client anymore

mental trench
#

java17 = no 1.8.8

rugged spear
#

anyway 1.8.9

mental trench
#

additionally, not everyone use java17

#

so java8 is at least for now

#

your option for multiversion support

rugged spear
#

lol my java versions

#

i always use java 8

#

but now i need to use java17

mental trench
#

"need"?

rugged spear
#

so my question is which api version i need?

mental trench
#

depends

rugged spear
#

min 1.12 max 1.18.1

mental trench
#

i dont mean that

rugged spear
#

because i use ij idea plugin

mental trench
#

bot change the methods in some cases

rugged spear
#

uhm

mental trench
#

so if you are used to 1.8.8

#

then use 1.8.8 but remember which methods are removed or renamed

#

if you are used to 1.18.1

#

use that one and remember some may not be available in 1.8

rugged spear
#

i dont know i just want my code support all api versions

mental trench
#

well

#

i guess you didnt read what i said

rugged spear
#

lol

mental trench
static zealot
#

I mean I believe so but not sure. not very good at regex as you can see xD

mental trench
#

you wanna split by regex

#

or use a matcher to get groups?

static zealot
#

well I just want to get the underscores that are not preceded by a backslash and that are not within {}

obtuse gale
#

have you tried asking it nicely?

static zealot
#

no actually

urban sleet
static zealot
#

I believe the correct answer is: Switch to gradle

mental trench
urban sleet
static zealot
#

no

agile galleon
#

Lmao

#

Bruh

#

Discord mobile be like answering the question beloe the one i wanted

mental trench
agile galleon
#

Sorryy

#

My bad

#

Wanted to react to raindropz

mental trench
static zealot
#

well I'm not trying rn. but it probably is indeed

pastel imp
#

anyone here knows anything about cuberite?

agile galleon
#

Cuberite?

pastel imp
#

ye

#

seems like a minestom type thing

#

tbh, minestom for example, probably isn't familiar because it doesn't support already existing plugins

#

if it did, it would probably just become popular af

obtuse gale
#

cuberite is meant to be able to run a full vanilla environment

#

minestom isn't, it's intentionally designed to be as barebones as possible to just "do network stuff and that's it"

cinder flare
#

yeah then you add the stuff you need

#

it's pretty cool ngl

pastel imp
#

uh suppose I am not well informed then

#

xd

ruby dew
#

gonna just compile the source code of pex and upgrade it to 1.18
screw luckperms

cinder flare
#

wtf lol

ruby dew
#

dont yall hate luck perms too
so annoying to use
the commands

dawn hinge
#

it has a web editor

ruby dew
#

what if one day luckperms websites down and you cant use the web editor anymore

#

i would rather stick to the tradition

#

Pex for the win

cursive jolt
#

then you use commands.

ruby dew
#

yes.

cursive jolt
ruby dew
#

wtf they have a github for their web app too

cinder flare
#

the web editor is great, i love the context system, it is extremely resilient, the commands are autocompletable and make logical sense

#

i will never go back to doing yaml-based permissions lmao

sly sonnet
#

the only things i see apppealing in lp is contexts, web editor and that you can give someone a grouo for some time

#

and it will auto-remove it

woeful sigil
#

Hi, are discord bot development related questions allowed here?

ruby dew
ruby dew
distant sun
#

luckperms is not so hard to use

#

/lp user NAME permission set permission.node (true/false)

#

it just has a more "complex" command syntax due to all features it has

ruby dew
#

hmm

old wyvern
#

hmm

#

mmh

#

Mmh mmh

obtuse gale
#

It's not even that complex, it's pretty similar to PEX's as it was inspired by it lol

old wyvern
#

Didnt PEX fork LP at some point?

#

Maybe was an april fools joke, cant remember

obtuse gale
#

yeah and renamed it to GroupManager lol

old wyvern
#

xD

obtuse gale
wintry plinth
distant sun
ruby dew
ruby dew
wintry plinth
rugged spear
#

making random plugin help me understand bukkit api lol

#

any other idea (obv simple)

#

yay from 4h for code a simple plugin to 1h 13m

distant sun
#

nice, new icon

quiet depot
#

oo

rugged spear
#

kotlin

#

uh

#

i want to make my plugins in kotlin

#

hehe

#

i dont understand

#

hw to setit

#

nvm done

#

now i need to learn kotlin cuz i dont know nothing xd

#

nvm its really easy and more simple

#

its more harder wtf

ruby dew
#

im thinking of a fully regex built commandexecutor
what do you all think

potent nest
#

yeah that's a very bad idea

ruby dew
#

thought so,it significantly lowers performance but it makes development a bit more easier

ocean quartz
#

Wasn't there a plugin that was crashing servers because they were using regex for command executor and people found a regex that would make it crash?

obtuse gale
#

PEXkekw

prisma wave
#

That rings a bell

inner umbra
#

WorldEdits calc command?

hot hull
#

Mate fuck the customs, my shirt is stuck there

sick belfry
#

turns out c++ is not as gross as I thought

#

its

#

good

lunar cypress
static zealot
hot hull
#

Mate, a fucking tshirt stuck at custom

#

s

#

Absolute fucking tards

lunar cypress
#

which shirt

hot hull
#

Johnny

static zealot
#

Hacktoberfest one

hot hull
#

My disappointment is immeasurable and my day is ruined

lunar cypress
#

ah, yeah it was also the first one where I had to pay

static zealot
#

What?

lunar cypress
#

customs

hot hull
#

I'm probably going to have to pay yea

#

It's kek tho, cause last years shirt didn't get held at customs

lunar cypress
#

yep

#

the customs was only 1€ but there was some other fee that made me 5€ poorer

hot hull
#

Mate the entire shirt is worth 5€

#

So absolute bullshit lmao

inner umbra
hot hull
#

Can't wait for russia to start ww3 ❤️

brittle leaf
#

i quite like c# for scripting, currently tinkering with godot. not too bad really

rugged spear
#

hello

#

so

#

i want to make a plugin in kotlin but its hard af

#

need an simple idea for it

sick belfry
#

make a gun plugin kek

static zealot
#

a plugin that says hello world when a player joins

rugged spear
#

how tf event work in kotlin

onyx loom
#

everything is basically the same lol

#

what part are u stuck on

ocean quartz
#

Ah yeah that one

dense dew
#

redos 😱

rugged spear
#

done

#

lel

#

now?

distant sun
#

ah

rugged spear
#

any other idea so i can learn more about kotlin?

hot hull
#

make a catgirls plugin

rugged spear
static zealot
hot hull
rugged spear
#

wtf

#

args.lenght in kotlin???????

#

plz

#

help

ocean quartz
#

size

rugged spear
#

thanks

sick belfry
#

ok I ended up loving c++

#

is just

#

perfect

static zealot
onyx loom
#

nice joke

sick belfry
#

nah its cool

#

havent discovered much of it yet but for where I'm its good

#

all I can see is that the compiler is lazy

rugged spear
#

done greeting thing

onyx loom
#

congrats

rugged spear
#

ty

ornate fossil
#

hi

rugged spear
#

hello

#

need?

#

help

ornate fossil
#

question for plugin deluxemenu

#

my configuration :

compact perchBOT
#
📋 Your paste: Tovaron
https://paste.helpch.at/mokopogozo

A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.

ornate fossil
#

@pallid gale

prisma wave
#

Yeah mate

obtuse gale
#

😵‍💫

prisma wave
#

Let's not do that please

#

Thanks

#

Have a nice day

obtuse gale
prisma wave
#

Adios good night

prisma wave
rugged spear
#

done custom sword

distant sun
nocturne dock
#

What is the slot id of the helmet slot in 1.18.1? I have tried googling different things, and two of the results I found (5 and 103) where wrong

cursive jolt
#

4

#

That's the protocol ID at least... bukkit doesn't follow the protocol's ID's

nocturne dock
cursive jolt
#

check the spigot source code then

#

or find an image online of it

nocturne dock
#

I did find two, one said it was 5 and one said it was 103

#

Wait, I can just use debug to find it. I mstupid

distant sun
#

There's also EquipmentSlot iirc, maybe that helps

nocturne dock
#

So helmet slot is apparently 39?? Why didn't that stand anywhere

obtuse gale
#

the entire inventory api in bukkit is dog water

#

depending on the inventory in question, a slot has a number or another

#

then you have the inventory view

#

and raw slots

#

fuckmess

rugged spear
#

done warrior

#

ok for today in enough i coded 5 plugin (obv simple)

cursive jolt
#

mojang's system is also fucked

cinder flare
tranquil crane
#

gotta love that amazing consistency love_aaa

#

I especially love when getContents() is annotated with @NotNull and then can contain null elements 😍
which like yeah I guess it technically isn't null but that's still annoying

obtuse gale
#

bukkit literally goes out of its way to change "empty"/air items to null when converting them to bukkit ItemStacks

cursive jolt
#

1.8 didn't have null items...

#

bukkit is strange though, unsure why they return null for @NotNull annotations

obtuse gale
#

because you hAvE tO cHeCk FoR hAsLoRe FiRsT

#

sponge 😍

cursive jolt
#

bukkit materials is also bad

#

combining items and blocks results in Material.CARROT and Material.CARROTS

#

good luck knowing which one is the item vs the block

obtuse gale
#

if the entire (bukkit) Registry system was even half decent and promoted people would use it

#

but it's fucked up

#

and straight up wrong

mental trench
cinder flare
cursive jolt
#

I think the block is CARROT

cinder flare
#

wtf lmao

onyx loom
#

i didnt even know there was a carrot block lol

cursive jolt
#

I don’t remember though

onyx loom
#

what update was this

cinder flare
#

when you plant it to grow

cursive jolt
#

1.13 flattening

onyx loom
#

oh right ok

#

i see now

cursive jolt
#

Carrot and carrot were things in 1.12 too

#

It’s just that carrot became carrots while carrot remained carrot

#

So we have carrot and carrots

brittle leaf
#

Carrots is the block because it has the blockdata ageable

#

thats how you can tell

obtuse gale
#

yeah that's how they're named in vanilla too, block/carrots and item/carrot

#

but hey they're in completely different registries and in completely different classes

#

Material is p a i n

cursive jolt
#

You can hold multiple carrot

#

such a mess

sweet cipher
#

Can 1.16 run run Java 17?

onyx loom
#

nope

#

only up to java 16, atleast for paper, idk about other forks

sweet cipher
#

How would I support 1.16 and 1.18 then?

onyx loom
#

well u can still compile to any other java version

#

if u have a java 8 plugin for example, JRE 17 will still be able to run that

mental trench
#

I use java8 for 1.8.8 - 1.18.1

sweet cipher
#

Oh okay

#

I thought 1.18 plugins wouldn't compile with lower Java versions

mental trench
#

1.18 plugins?

#

if you mean api-version: "1.18"

#

doesnt matter

#

I do it that way and it's all good

#

(except for some issues with dependencies)

sweet cipher
#

Okay thanks

mental trench
#

WorldGuardWrapper and HikariCP requires a higher java version for example

tranquil crane
#

WGW still has a target version of java 8 I believe but newest version of hikaricp does use java 11

sweet cipher
#

Does anyone know where to find older packet formats / if the armor stand meta data packet was changed between 1.16.5 and 1.18?

cursive jolt
#

minecraft protocol wiki!

sweet cipher
cursive jolt
#

Yes it did, fields got pushed up by 1 by the addition of the freezing data

sweet cipher
#

Oh thanks!

#

Was that from 1.16-1.17 or 1.17-1.18?

cursive jolt
#

1.16 to 1.17

#

as 1.17 to 1.18 really only added a music disk

sweet cipher
#

Thank you

#

You saved me a lot of annoyance

severe oak
#

@urban sleet How did you do the camera lock for your wardrobe

rugged spear
#

hello

#

why ItemStack.add dont exists??

#

im trying to save inventory with ItemStack.add

#

maybe i can use something better

sly sonnet
#

inventory.add or .put

#

u cant add to itemstack

#

itemstack is item

rugged spear
#

oh

rugged spear
#

its more hard in kotlin this shtt

rugged spear
#

i can have dev role??

distant sun
#

Itemstack#add

rugged spear
#

cool but dont work lol

sly sonnet
#

Is there something I can do about this?

ocean quartz
#

Going to assume you're trying to use Java 17, you need at least gradle 7.3

rugged spear
ocean quartz
rugged spear
#

thanks matt i lvoe you

urban sleet
sly sonnet
#

guys now i understand

ruby dew
#

hey is it sensible to increment unicode character inside a string by 100 in a loop?
will it mess with the index or whatsoever?

cinder flare
ruby dew
#

but peculiarly it kind of worked

potent nest
#

you didn't even mention the language you're using

ruby dew
#

java

#

looks like java is high level enough to ignore all the size limitations

#

and they just chars as a code

prisma wave
#

doubt

cinder flare
#

i bet it's converting it into a unicode codepoint that works like you'd expect

potent nest
#

Well you’re definitely not modifying a string then

cinder flare
#

Chars is my guess

prisma wave
static zealot
#

man I love discord

#

it just went offline for 10 minutes

rugged spear
#

how i can know if i got rejected for role apply?

static zealot
#

you will get a DM from @compact perch

rugged spear
#

:((

static zealot
#

I believe it pings you in #bot-commands then

rugged spear
static zealot
#

anyways I can confirm you were not rejected yet. it might take a few months for your request to even be reviewd

inner umbra
#

^^^
You're probs along way down the queue too.

urban sleet
#

I'm watching a video on how compilers & decompilers work, and I had a question (this might be very stupid)

Would it be possible to write a plugin for your server in a low-level language (binary) instead of Java?

half harness
#

a plugin, I don't think so

urban sleet
cursive jolt
half harness
#

o

ocean quartz
#

Java doesn't run in low level, it's interpreted by the JVM

cursive jolt
#

Yes, you can run native code on java but it's terrible to debug

half harness
#

o

#

then maybe its possible
i didn't know that the jvm could read non-java/class files

cursive jolt
#

It's also slow to keep switching between java and C code, so it's better to just write in pure java for performance

ocean quartz
#

"Possible" doesn't mean "usable" though

urban sleet
#

I don't actually want to do it, it was just a question I came up with while watching

ocean quartz
#

It's very hacky, but in theory possible

rugged spear
#

as a mini dev, i can say making random thing help you alot

#

and google or stackoverflow is the best option if you dont know something, and obv api

#

maybe what i say is wrong but i dont know

agile galleon
prisma wave
prisma wave
#

it doesn't interpret the c++ code or anything crazy

#

if you consider the JVM a c(++) program then it's just importing the other file and calling it like a normal function

onyx loom
#

didnt u make a haskell plugin using the jni?

#

or was that just a normal program

prisma wave
#

yea that was with jni

#

it was the jankiest shit ever

#

haskell <-> C++ <-> java

onyx loom
#

😵‍💫

prisma wave
#

wouldve performed like shit in production

agile galleon
#

Dayum whag sa fugshit maaan

static zealot
agile galleon
#

Yep

#

But the difference is huge sometimes

#

Some go with 9k US for a website

#

Others with 15 US for a plugin that can record players to mp4

#

People really have different understandings of mony

static zealot
#

well money is worth different in different parts of the world and also people have different understanding of what and how much works goes into what they need.

#

how tf did we get this?

agile galleon
#

Sure

#

But the price difference is extreme

static zealot
#

yes I know

prisma wave
static zealot
prisma wave
#

piggy did it iirc

agile galleon
#

Huh

static zealot
prisma wave
#

the best admin

agile galleon
#

Ohh

#

The emotw

static zealot
prisma wave
agile galleon
prisma wave
#

wtf

static zealot
#

lmao

agile galleon
#

Kek

prisma wave
#

??

agile galleon
#

The fuk

static zealot
#

xD

prisma wave
#

stupid bot

agile galleon
#

Or stupid people

static zealot
#

he's wondering why it doesn't work xD

agile galleon
#

They be sending malicious links

prisma wave
#

huh

agile galleon
prisma wave
#

ig not

static zealot
#

yes. its the bot

prisma wave
#

yeah no it doesnt like the nitro

static zealot
#

it blocks most of the free, discord, nitro messages

#

xD

prisma wave
agile galleon
#

Ahhhhdhwhhwwh, cool bot

static zealot
#

good thing I said most and not all

#

lmao

agile galleon
#

This shit workin man

#

But tenor isnt

static zealot
#

yes

agile galleon
#

Welcome to HelpChat

#

Where everything is possible

#

Except sending tenor

#

djscord.gift

#

Hmm

#

discord.gift

#

Bruj

static zealot
#

I remember when SONOGODONA was banned as well xd

agile galleon
#

Finally

static zealot
#

lmao

prisma wave
#

mongo database

#

d1scord.gift

agile galleon
#

Barrys well made anti abuse system ig

prisma wave
#

ok mate

mental trench
#

discorb.gift

rugged spear
viral grove
#

I'm trying to work on IntelliJ IDEA, but realised that everything is too small for me to use. Anyone know how to scale stuff up?

#

Preferably the icons included. The fonts can be easily scaled, but it's difficult for me to click the menu items

#

My global scale is at 150%. Changing it to 200% fixes the issue

viral grove
#

Fortunately or unfortunately, snap install fixed the issue

half harness
#

i think files are also a bit bigger too

#

(free for students 😃)

viral grove
#

Ah nice

rancid gazelle
#

does AdvancedEnchantments got a dc support server?

tranquil crane
cinder flare
#

ngl forgot that was a button

#

i have never clicked on it

tranquil crane
#

that's why I put so many arrows pointing to it

rancid gazelle
tranquil crane
#

well that didn't work

#

tried to meme and couldn't even do that properly

#

also wrong channel btw

rancid gazelle
#

thx

#

treasurehunter:
display: '%group-color%Treasure Hunter'
description: 'Have a <Same Level>% Chance To Find A Random Tome'
applies-to: 'Pickaxes'
group: 'ULTIMATE'
type: 'MINING'
applies:
- 'ALL_PICKAXE'
levels:
'1':
chance: 1
effects:
- 'CONSOLE_COMMAND:crate forceopen th %victim%'
'2':
chance: 2
effects:
- 'CONSOLE_COMMAND:crate forceopen th %victim%'
'3':
chance: 3
effects:
- 'CONSOLE_COMMAND:crate forceopen th %victim%'
'4':
chance: 4
effects:
- 'CONSOLE_COMMAND:crate forceopen th %victim%'
'5':
chance: 5
effects:
- 'CONSOLE_COMMAND:crate forceopen th %victim%'
'6':
chance: 6
effects:
- 'CONSOLE_COMMAND:crate forceopen th %victim%'
'7':
chance: 7
effects:
- 'CONSOLE_COMMAND:crate forceopen th %victim%'
'8':
chance: 8
effects:
- 'CONSOLE_COMMAND:crate forceopen th %victim%'
'9':
chance: 9
effects:
- 'CONSOLE_COMMAND:crate forceopen th %victim%'
'10':
chance: 10
effects:
- 'CONSOLE_COMMAND:crate forceopen th %victim%'

#

thats my code

#

can someone tell me why its not working?

#

its supposed to have a chance to give a player a random enchant when mining

tranquil crane
#

wrong channel + wrong support server

rancid gazelle
tranquil crane