#dev-general

1 messages ยท Page 611 of 1

cinder flare
#

and i'm not even that good

half harness
#

what does vim do?

oblique heath
#

you said that most of what your time spent doing is editing?!

cinder flare
#

it's a modal text editor

obtuse gale
#

hhhhhhhhhhhhh

half harness
#

no i mean like the perks

cinder flare
cinder flare
half harness
#

but i mean like

oblique heath
#

editing as in editing the document, like typing

#

most of my time is spent thinking about how i want to approach any particular problem

cinder flare
#

well okay sure

#

that's not covered by a text editor

half harness
#

๐Ÿค”

#

emacs or vim

cinder flare
#

doom emacs

#

best of both worlds

half harness
#

doom?

cinder flare
#

yeah it's a set of packages and stuff for emacs

#

comes with vim keybindings, as it should

half harness
#

hm

cinder flare
#

don't worry too hard about emacs though

half harness
#

okay

cinder flare
#

what you really want is to get the vim keybindings in your head

half harness
#

is there vim for

#

windows

cinder flare
#

download ideavim, try it out

#

uh

#

probably?

half harness
#

ok

cinder flare
#

just use WSL

half harness
#

ah

#

i remember trying to use it before

#

but

#

idk what happened

cinder flare
#

it's pretty hard to mess up

half harness
#

i know how to mess everything up ๐Ÿ™ƒ

#

or

#

i think i was trying to do something with it

#

but

#

i dont rememberrrrrrrrrrr

nvm

cinder flare
#

okay

#

so then use it

#

problem solved

half harness
#

๐Ÿฅฒ

#

wait

#

but isn't WSL a linux emulator

cinder flare
#

no

#

it's a linux kernel running alongside Windows

half harness
#

o

cinder flare
#

and god it is so much better than using Windows anything

half harness
#

but

obtuse gale
#

WSL stands for WSL iS notanemuLator

half harness
#

can you access windows files

cinder flare
#

i needed to do a traceroute earlier, holy shit windows tracert is so bad

cinder flare
half harness
cinder flare
#

/mnt/c or whatever

half harness
#

๐Ÿ‘

cinder flare
#

dkim is so new to the world

#

it's so interesting seeing someone i presumed was deeply knowledgeable about this stuff asking the most basic of questiosn

half harness
#

uhhhh

#

hey

#

i know some things

cinder flare
#

like how have you gone your entire life, spending time in this server and Dev Den, and somehow I'm the first to explain how amazing vim is to you?

#

or how great WSL is lol

#

let me guess: never heard of windows terminal

half harness
#

I DID

#

but

#

it always crashes

#

:(

cinder flare
#

what does?

half harness
#

windows terminal

cinder flare
#

huh?

#

it has literally never crashed for me

#

how is that even possible

half harness
#

hm

cinder flare
#

what error message does it show

#

let's get to the bottom of this

half harness
#

uh

#

where do i get that

#

๐Ÿฅฒ

cinder flare
#

try opening it and seeing what happens?

cinder flare
#

god, guys I got a new mouse cause my old one had switch sustaining issues and the new one is literally half the weight of the old one

obtuse gale
#

lol

cinder flare
#

it is so weird

obtuse gale
#

changing mice is a whole process

cinder flare
#

i like everything about it more, except that it only has 2 left-side buttons

#

even though i only used the third button for minecraft, i still feel a big hole in my heart

cinder flare
#

Logitech G Pro Wireless

half harness
#

o.o

ruby dew
cinder flare
#

something like 75g whereas my old mouse was like 120g

half harness
#

i heard its very good mouse

cinder flare
#

yeah i like it so far

#

besides the aforementioned lack of a third button

#

but the alternative was Razer, and that bad boy was not light in the slightest

ruby dew
#

theotherpig -> thepig

cinder flare
#

and i just hate Razer

obtuse gale
half harness
#

wait what

cinder flare
#

and paste me what's inside

cinder flare
half harness
cinder flare
#

buddy, do you have a WSL distro installed?

half harness
#

no

#

๐Ÿฅฒ

#

i

cinder flare
#

wtf lol

half harness
#

why do i need a linux thing

#

for windows terminal

cinder flare
#

i mean you don't

#

it's just, that's the primary use

half harness
#

oh

cinder flare
#

who the fuck wants to use Powershell?

half harness
#

time to install wsl

cinder flare
#

it's very easy

half harness
#
wsl --install
#

thats it?

cinder flare
#

then restart, and pick a distro from the Windows Store

ocean quartz
half harness
#

oh restart ๐Ÿ˜ฉ

#

ok

cinder flare
#

yeah buddy, you're downloading kernel upgrades for Windows lmao

half harness
#

ubuntu good?

cinder flare
#

if you don't know the answer to that question, yes

half harness
#

alr

#

ok cya in 5 minutes

cinder flare
#

that's an overly long time

half harness
#

2 minutes*

cinder flare
#

still extra

half harness
#

1 minute*

cinder flare
#

ehh, i'll let it slide

half harness
#

hmm

#

alright

#

๐Ÿ˜ƒ

#

back

#

๐Ÿ˜ƒ

cinder flare
#

there it is

#

read that too

half harness
#

offtopic

#

but

#

how do i whitelist IPs in cloudflare

cinder flare
#

in what context

half harness
#

whitelisting a specific subdomain

#

in cloudflare

#

the IP Access Rules just seems to block the entire website

cinder flare
#

okay so

#

im not gonna lie, don't use cloudflare that much

half harness
#

seems like its not possible with just cloudflare

cinder flare
#

can you specify what "IP Access Rules" means

#

Firewall?

half harness
cinder flare
#

Page Rules?

half harness
#

uh

cinder flare
#

as in, create firewall rules?

half harness
#

oh

#

uh

cinder flare
#

as in, this page?

half harness
#

yes

cinder flare
#

k so yeah, just URI equals whatever and then Allow

half harness
#

ah

#

ty

#

:D

#

yay

obtuse gale
#

hhhhhHHH

ocean quartz
#

Json bad

sweet cipher
#

I need help with some regex. I need to match anything after strings that do not have xxx, and have yyy somewhere.
So xxx aaa yyy zzzz would not match, but aaa bbb yyy zzz would match zzz

mystic cradle
#

๐Ÿฅฒ

sweet cipher
#

lol

ruby dew
#

lol wtf 700+ dollars for gamemodes

#

a custom gamemode wont cost so much money lmao

potent nest
cinder flare
potent nest
#

Imagine supporting something below Java 19 ea

cinder flare
#

bro we still got a month and a half until java 18

#

though Java 18 ain't changing shit

lunar cypress
#

it puts project panama in preview

cinder flare
#

don't know what that is, but it doesn't say that in the features list

lunar cypress
#

oh whoop not preview but second incubator

cinder flare
#

oh FFI?

#

i presumed Java already had something like that

#

so realistically, what does project panama mean for us

#

like, faster stuff?

#

Cython-style shit?

old wyvern
#

Isnt JNI the FFI for java?

cinder flare
#

that's what i thought

old wyvern
#

What else are they bringing?

cinder flare
old wyvern
#

๐Ÿ˜ฏ

lunar cypress
#

JNI sucks ass

#

big time

old wyvern
#

Any chance of Unsafe being removed once this leaves incubation

#

?

lunar cypress
#

doubt it since it doesn't cover everything unsafe does

old wyvern
#

Ahh

potent nest
#

FFI is a way more Java-style integration of native access

ruby dew
potent nest
#

your opinion is wrong

ruby dew
#

my opinions are right

obtuse gale
ruby dew
#

๐Ÿ˜‚

#

oml

#

this makes my day

distant sun
#

@obtuse gale didnt know you had a son, congrats

regal moon
#

hi i want to enchant stick but i am not able to do this can anyone tell me why code is not working - player.getInventory().addItem(new ItemStack(Material.STICK, 1)).addEnchantment(Enchantment.KNOCKBACK, 2);

regal moon
#

plz reply

distant sun
#

because addItem returns void and you are trying to call addEnchantment on it

#
  1. Define the item
  2. Add the enchantment
  3. Add it to player's inventory
regal moon
#

i am able to give to player, but i want to add enchant and i dont know

#

inventory.addItem(new ItemStack(STICK));

half harness
regal moon
#

let me try

dense dew
regal moon
#

everything is working fine but its give me red line on -

#

ItemStack item = new ItemStack(STICK);
item.addEnchantment(Enchantment.KNOCKBACK, 2);
player.getInventory().addItem(STICK);

#

in last line where i put stick

#

did this code true^?

half harness
regal moon
#

can u write it plz

#

i am not understanding

regal moon
#

player.getInventory().addItem(STICK); is this error?

half harness
#

yes

regal moon
#

what should I put

half harness
#
...addItem(item);```
regal moon
#

ItemStack item = new ItemStack(STICK);
item.addEnchantment(Enchantment.KNOCKBACK, 2);
player.getInventory().addItem(item);

#

is it ok now?

half harness
#

yes

regal moon
#

hold on plz let me try

#

nope its giving something error in console

dense dew
#

i think it starts from 0

#

so you are trying to give knockback 3

#

so you need to use addUnsafeEnchantment if you wanna have kb3

#

(not sure tho)

regal moon
#

same error

#

i tried with 1

solid coyote
#

Question for you dev guys, do you use some kind of planning tool or like a check tool to help getting things done in steps ?

regal moon
half harness
#

d;1.8.8 ItemStack#addEnchant

ruby craterBOT
#
boolean addEnchant(Enchantmentย ench, intย level, booleanย ignoreLevelRestriction)```
Description:

Adds the specified enchantment to this item meta.

Parameters:

ench - Enchantment to add
level - Level for the enchantment
ignoreLevelRestriction - this indicates the enchantment should be applied, ignoring the level limit

Returns:

true if the item meta changed as a result of this call, false otherwise

half harness
#

@regal moon use addEnchant(Enchantment.KNOCKBACK, 1, true)

regal moon
#

i found something

#

i delete stick and put sword, and it give me its means its not possible to knocback on stick?

regal moon
#

player.getInventory().addItem(new ItemStack (STICK).addEnchant(Enchantment.KNOCKBACK, 1, true);

#

like this?

#

its giving me red line under addEnchant

hazy widget
#

because thats not a thing

#

Itemstack itemStack = new ItemStack(Material.STICK);
itemStack.addEnchant(Enchantment.KNOCKBACK, 1, true);
player.getInventory().addItem(itemStack);

sly sonnet
#

?learn-java

compact perchBOT
#
FAQ Answer:

Online Courses:
Online courses are also great for learning java. Some websites that offer them are:

  • Coursera - Free unless you want a certificate
  • PluralSight - Great courses from what I've seen. Mostly Paid
  • Udemy - Never used them myself but they seem to all or at least most be paid.
    My first ever course was one from Coursera. - I can say it was pretty good at introducing me to the programming world as a whole not just java.

Oracle Docs:
Oracle docs can help a lot at learning and understanding java:

  • Start with this,
  • Breeze through this (skipping stuff that doesn't seem relevant like bitwise operators),
  • Hit this.
    They're the first three from this larger thing which you should definitely go through overall. But those three should be enough for slightly better understanding of what is happening here without feeling like a huge time sink.
    That one is a small part of this larger site wherein "Essential Java Classes" and "Collections" also have good useful stuff

Other services:
Some other cool services that will help you learn java are:

As you can see there are plenty of good ways to learn as long as you're willing to invest the time. Have fun learning!

regal moon
#

still red line on addEnchant

hazy widget
#

Which version?

regal moon
#

1.8.8

hazy widget
#

I think its .addEnchantment() for 1.8.8

hazy widget
#

Since it could help you

regal moon
#

yup

#

player.getInventory().addItem(Material.STICK).addEnchantment(KNOCKBACK, 1);

#

using this i got red line in material stick

#

;(+

hazy widget
#

bro

half harness
#

also in 1.8 u have to use ItemMeta#addEnchant

hazy widget
#

Ah is it in itemmeta

#

okay

pastel imp
#

why do people start coding bukkit without java knowledge .-.

#

at least basic

regal moon
#

bruh i am learning java, i was testing

#

i have course

#

first of all look at you, that dont eve know answer and being rude

half harness
# ruby crater

_ _

make the item variable again, but make a new ItemMeta variable from item.getItemMeta()

then meta.addEnchant(Enchantment.KNOCKBACK, 1, true);
then apply to meta using item.setItemMeta(meta)

#

then I already wrote the code above to give the item to the player

regal moon
#

item.getItemMeta();
org.bukkit.inventory.meta.ItemMeta meta = null;
item.setItemMeta(meta);
meta.addEnchant(Enchantment.KNOCKBACK, 1, true);

#

btw stop bulling me

old wyvern
#
item.getItemMeta();
ItemMeta meta = null;
item.setItemMeta(meta);
#

Read

hazy widget
#

You are setting it to null

#

...

hazy widget
#

lmao

old wyvern
#

xD

distant sun
#

Bully Maguire

regal moon
#

is it legal to say badwords on this server?

old wyvern
regal moon
#

i will not get ban?

#

so can i?

distant sun
#

Try

old wyvern
#

No, NYPD will come to your doorsteps at dawn tommorrow

distant sun
#

Will see what is going to happen

regal moon
#

Don't let a cruel word escape your mouth. There's no greater sin than breaking a heart.

#

sorry yugi

#

๐Ÿ˜“

hazy widget
#
meta.addEnchant(Enchantment.KNOCKBACK, 1, true);
item.setItemMeta(meta);
player.getInventory().addItem(itemStack); ```
regal moon
#

Probably becz if i one person is doing stupid things, i am not stupid like him

prisma wave
#

๐Ÿคจ

hazy widget
#

yeah wth

prisma wave
#

thank god for embed fail

hazy widget
#

xD

regal moon
hazy widget
regal moon
#

Ok

regal moon
#

Are u talking about me or him

#

I dont want to make feel bad anyone, yugi

pastel imp
#

I was speaking about people in general, I think most of us can agree, that we see a lot of people starting with bukkit without even knowing java.

#

Second place goes to those people who legit ask 2000 questions instead of googling them .-. (maybe sometimes someone asks a question that is on google and he just didn't find it, that can happen, but not 5 times in a row .-.)

#

Third place probably goes to those who are having issues and ask for a fixed solution instead of doing it themselves xD

#

God, totally forgot about the "Can someone help me" people, those are def. top 1.

cold prawn
pastel imp
cold prawn
#

yea ofc

regal moon
# pastel imp Second place goes to those people who legit ask 2000 questions instead of googli...

@pastel imp First of all i spent my half a day with programing and learning java, to be honest i am new, and i am come here after searching on google i read lots of forum on this, and on hub spigot but they wasnot teaching about my topic and i knew about that how to put enchants but i was using 1.8.8 in this case i was not able to enchants on stick... i was come here after spenting a lot of time. Now i felt how aggressive this world is, one day is near when this people will put pay to breath...

cold prawn
#

ur blowing an elephant from a mouse here

#

just sayin

obtuse gale
#

uwu

pastel imp
#

wtf

#

why does this guy still thinks I am speaking specifically about him or attacking him tf

pastel imp
#

Also, for reference, don't use legacy versions that are not even supported anymore if you want to get the maximum support possible

pastel imp
regal moon
#

Nope it was just my answer, i dont like to make feel sad to anyone

pastel imp
#

okay... kinda sus but okay

regal moon
#

U susy baka

#

๐Ÿ˜‚

pastel imp
regal moon
#

I am try to be funny

cold prawn
#

try harder

regal moon
cold prawn
#

ok

pastel imp
#

ye I think it's enough for today

regal moon
#

?

regal moon
#

Thanks everyone who helped me in code i really appreciate it

#

Its working

distant sun
#

Ok jdk people O.o

onyx loom
#

mmmmmmmmmmm

static zealot
#

amazing

sharp vigil
#

where is dev builds for deluxchat?

dense dew
#

then #deluxechat

primal crystal
forest pecan
potent nest
#

Those are test cases for CSE, definitely

pastel imp
#

any ideas why making a player execute a bungeecord command isn't working?

#

aka it says the command doesn't exist?

#

is this something bungeecord doesn't allow?

wintry plinth
#

Because from spigot it doesnโ€™t see it as a command

static zealot
#

when a player types in chat it goes from client to bungee to spigot. but when you send a message as a Bukkit Player it goes directly to spigot or something like that since you use its api

brittle leaf
#

its the same reason why you cant run bungeecord commands from console

#

its quirky lol

wintry plinth
#

Yeah its funky ๐Ÿ˜‚

noble jay
#

If a class is serialized, are its methods also serialized or only the fields?

agile galleon
#

fields only

#

idk how a method should be serialized

primal crystal
lunar cypress
#

also, serialised how

#

If you're thinking about using Serializable, please don't

viral grove
#

Anyone know how to configure automatic relocation with Shadow? (Gradle Kotlin)

obtuse gale
#

"automatic relocation"?

obtuse gale
#

TIL

viral grove
# viral grove Anyone know how to configure automatic relocation with Shadow? (Gradle Kotlin)

Solved it! Adding this here so that someone (most likely me) can find this in the future.

import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation

group = "my-group"

tasks {
    create<ConfigureShadowRelocation>("relocateShadowJar") {
        target = shadowJar.get()
        prefix = "${rootProject.group}.dependencies"
    }
    
    shadowJar {
        dependsOn(get("relocateShadowJar"))
    }
}

brittle leaf
#
if (block.getType().name().contains("_LOG") || block.getType().name().contains("_WOOD")) {
                        if (!beenBrokenBefore) {
                            int chance = new Random().nextInt(5)+1;
                            Bukkit.getLogger().info(String.valueOf(chance));
                            if(chance <= 6) {
                                newdrops.add(new ItemStack(Material.APPLE));
                            }
                        }
                    }
                    newdrops.addAll(drops);

This is giving me a ConCurrentModificationException. what would be an ideal way to make it not do that?

sweet cipher
#

Or another thread?

brittle leaf
#

nope

#

its on the same thread

#

in a switch statement

brittle leaf
#

im stupid

#
for (ItemStack item : drops) {
            drops.add(EnchantMethods.updateItemLore(item));
            drops.remove(item);
        }
        return drops;
```this was the actual problem...
#

i fixed it tho

#
for (int i = 0; i < drops.size(); i++) {
            drops.set(i,EnchantMethods.updateItemLore(drops.get(i)));
        }
        return drops;
#

i dont know how i didnt see this sooner

#

also i can equip blocks on my head now

#

well

#

my custom helmets

#

i just figured out that no packet is sent when your modifying your own inventory in creative other then SET_CREATIVE_SLOT

#

which doesnt get fired if you dont change your inventory

#

which makes setting my head as a block in creative how i want to do it atleast impossible

#

idm tho

#

atleast i know now

vale oxide
#

hey

distant sun
#

I love VS ๐Ÿคก

soft rampart
#

XD

cinder flare
#

just use CLion like everyone else

distant sun
#

People from work ๐Ÿฅฒ

cinder flare
#

Clion exists ๐Ÿ˜Œ

old wyvern
#

Star switched from a vsc advocate?

#

or was that someone else?

cinder flare
#

vsc is okay

#

and that's not vsc

old wyvern
#

oh wait nvm

#

yea I saw visual studios and assumed vsc

cinder flare
#

lol

distant sun
#

If I cancel a server from OVH, it will be removed at the start of the next month, when I have to pay the bill, right?

sly sonnet
#

yes

eager fern
#

@distant sun it will end at the latest paid bill date

distant sun
#

Nice

cinder flare
#

You need Gradle 7.3 to build Java 17 stuff

lunar cypress
#

you sure you updated correctly?

#

How do you run it

cinder flare
#

oh you're using Kotlin?

#

send your build file in a paste

#

always stay up to date kids

sweet cipher
#

Woah are you telling people to date kids late at night?

quiet depot
#

jeez star

sweet cipher
#

From a staff too

ruby dew
fresh badge
#

Hey guys, anyone can explain me how to open sign to input?

sly sonnet
#

make a sign in crafting table and put it on the ground

#

the menu will pop up

primal crystal
#

Hmmmโ€ฆwas that what he meant? Or how to code it? ๐Ÿ˜…

distant sun
#

"How to open a sign to input?" Code

#

d;paper Player#openSign

ruby craterBOT
#
void openSign(@NotNull Sign sign)```
Description:

Opens an editor window for the specified sign

Parameters:

sign - The sign to open

distant sun
#

@fresh badge if you are using paper api

fresh badge
distant sun
fresh badge
#

ooh

#

I'm using it

#

But... in build path i use the normal jar

primal crystal
primal crystal
#

iirc yes

old wyvern
#

@quiet depot Is there any plans on making deluxe tags open source since its already free to use?

quiet depot
#

No

#

we haven't talked to clip for yonks

old wyvern
#

rip, does cube have permission from clip for that?

quiet depot
#

no

old wyvern
#

ah, damn

#

thanks ๐Ÿ˜„

wintry plinth
old wyvern
#

๐Ÿคท

glad spear
#

lmao

wintry plinth
#

i'd love more stuff here to be open-sourced, by this point if clip is basically gone and they can't do it, I'd just rebuild the plugin and open-source that myself

pure arrow
#

@quiet depot why has DeluxeChat been moved to inactive resources? ๐Ÿ’€

pure arrow
#

well yeah, but it's a really good plugin

#

and from what I know there are some dev builds for RGB

dense dew
#

yes on Discord but on Spigot its inactive

#

and Spigot dont care if there are builds on Discord they care if they are on Spigot

pure arrow
#

and can they bring deluxechat back from there?

dense dew
quiet sierra
#

Question

#

I'm working on some advanced skyblock stuff and like

#

Should I compromise and require Redis for all bungee networks, or

#

Make a StringList on the config with all skyblock player names

hot hull
#

If anyone has way too much time on their hands, please go rewamp slimefun

wintry plinth
hot hull
onyx loom
#

you

pastel imp
#

@lavish notch 10k downloads .-. bruh

lavish notch
pastel imp
#

lul

half harness
cinder flare
#

yeah you better be

lavish notch
#

Someone deleted the showcase

paper orbit
#

Is there a way to detect a client-side block interact (aka a right click on a block which was sent with Player#sendBlockChange)?

cursive jolt
#

listen to serverbound block place packet (also known as the use item on packet)

paper orbit
#

I saw that packet, however I only get which hand the player used, not the exact block/location or whatever..

#

NMS code does raytracing server-side, so I'm guessing I would have to do the same, with some extra checks for the client-side block(s) (which I would have to keep track of)?

cursive jolt
#

that's use item not use item on

#

use item = buckets, use item on = clicking a block face

paper orbit
#

there's a Player Digging packet which could work for left-clicks (it has block faces as you said), and an Interact Entity packet which is useless for blocks

cursive jolt
#

is there a block place packet?

#

what server version as packets changed in 1.9

paper orbit
#

1.17, but I assumed that packet is only sent once the client places a block client-side
"Upon placing a block, this packet is sent once."

cursive jolt
#

that's for any right clicking a block

#

Even without a held item that packet is still sent

paper orbit
#

ok perfect, thank you very much

half harness
#

@rancid gazelle on the spigot page, you're supposed to put ppl other than you as contributers and languages other than english, and is it open source? ๐Ÿคท

very nice plugin btw, especially at this stage ๐Ÿ‘€

#

and also this isn't loading ๐Ÿฅฒ

static zealot
#

that's just your discord

#

image loading here

half harness
rancid gazelle
#

Sorry kinda new to these terms

rancid gazelle
#

But no one contributed XD

#

Just me 0-0

half harness
rancid gazelle
#

๐Ÿคฃ

#

Any idea for what plugin I should make next?

half harness
#

nope, i suck at thinking of ideas :p

rancid gazelle
#

I so far can do commands and GUIs and the functions :o

rancid gazelle
half harness
rancid gazelle
unkempt dew
#

imo yes, it depends on what you want your project to be protected from

obtuse gale
#

authors of closed source public projects = ๐Ÿค

#

I'm looking at you, Clip!

half harness
#

if you don't use intellij, then github.com and upload the files that way ๐Ÿคท

rancid gazelle
#

I use intellij :o

half harness
#

pog

rancid gazelle
half harness
#

๐Ÿฅฒ

#

alr

rancid gazelle
#

Any suggestion to add to my plugin? Or how to improve?

obtuse gale
#

One super mega useful advise:

Don't be afraid of asking for help: if you have doubts about something, having others resolving those doubts is the best thing, and don't get them wrong if they tell you "That's something Google can answer", because if you know how to search the proper question, you'll get an answer faster from Google than waiting for others to respond. A lot of people will provide help gladly, don't be ashamed of sharing your code and be taught from your mistakes (after all it's for your own improvement), and please don't just ignore suggestions and say "Well but this way it works so".

rancid gazelle
#

:o

unkempt dew
obtuse gale
#

yeah that too

unkempt dew
#

the accuracy kills me

rancid gazelle
#

how do I edit a spigotmc resource? Like change the desc and logo

rancid gazelle
obtuse gale
#

hello!

#

yes on the panels on the right near the bottom there's an "Edit Resource" button

rancid gazelle
#

Yey I got a new icon:O

urban sleet
#

Anyone here posted premium resources on spigot? How long did it take to get approved?

inner umbra
urban sleet
#

Ah

remote goblet
#

i tried Sadge

#

denied for being too common but atleast it works

urban sleet
#

Luckily there's only one other plugin on spigot that does the same thing as us

inner umbra
#

One of my plugins took 2 months to get denied lol

inner umbra
urban sleet
#

:(

obtuse gale
cinder flare
#

there wasn't support for Adoptium before????

potent nest
#

Just AdoptOpenJDK

lavish notch
inner umbra
lavish notch
distant sun
wintry plinth
inner umbra
quiet sierra
rancid gazelle
lavish notch
quiet sierra
#

How did he even knoe

fresh badge
#

Hey guys, i have a bit problem, anyone can help me?

compact perchBOT
#
FAQ Answer:
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait

Source

obtuse gale
#

The error is as clear as it gets, getItem is returning null

#

ItemStack#getType won't be null tho so you should replace that first null check, instead of checking the type for null, check the item itself

obtuse gale
#

No

#

getItem is returning null
you should replace that first null check, instead of checking the type for null, check the item itself

fresh badge
#

I didn't understand very well, how do I do that?

obtuse gale
#

blah.getItem(0) != null

fresh badge
#

ooohhh

#

Tysm dude

obtuse gale
#

๐Ÿ‘

distant sun
#

Imagine coding a perlin noise algorithm and adding it even to the code itself

lunar cypress
#

there is a programming language whose instructions get more chaotic and arbitrary the further execution progresses

obtuse gale
#

Kotlin?alittletrolling

lunar cypress
#

ok I misremembered slightly

cursive jolt
obtuse gale
#

oh yeah? I rewrote the entire rendering engine three times and a half

cursive jolt
#

Oh yeah, I rewrote chunk data packets 10 times for each version

sick belfry
#

ah yes, and I rewrote the entirety of minecraft, increasing performance by 500% and fixed its messy code

cursive jolt
#

I'll have you know I graduated top of my class in the Navy Seals, and I've been involved in numerous secret raids on Al-Quaeda, and I have over 300 confirmed kills. I am trained in gorilla warfare and I'm the top sniper in the entire US armed forces.

sick belfry
#

and I slept with your mom

#

ok enough

ocean quartz
obtuse gale
#

It is

boreal needle
#

is there like an open source self-hosted tebex alternative?

#

i've been looking for a pet project for a while, i've been doing loads with react and stripe at work recently so i thought it might be fun if there's a market for it

distant sun
#

I think MineStore is a thing

#

I remember seeying a lot of themes on mcm

#

@quiet depot are you guys still working on that project? Iirc you and andrew had a self-hosted store project

boreal needle
#

yeah minestore is but you have to pay for it

#

i found this, so unless theyve been keeping it private id think its maybe no

sly sonnet
#

*-++

#

hey lucy

boreal needle
#

hello

#

i might just work on this anyway tbh

distant sun
#

@boreal needle

boreal needle
#

that repo is just the sync plugin rather than the actual thing itself sadly

#

and mcm is just plain depressing to see ngl

distant sun
#

Ah, bs

pastel imp
#

tf is this hover state?

distant sun
#

border: 10px

pastel imp
#

xD

paper orbit
# quiet sierra *I've done client-side blocks multiple times, ping me if you have any questions*

Awesome, i still need some help, not sure what the best approach is ๐Ÿ˜„

I'm not really sure when the BLOCK_PLACE packet (i'm using protocollib for majority of packet handling) is actually sent from client and how it's used.
The wiki says "Upon placing a block, this packet is sent once" but that's simply not true (that's what DefineOutside suggested, but it doesn't seem to work).
BLOCK_PLACE only fires under weird conditions (holding a non-block item and then right-clicking any block; it doesn't fire when you interact without items in your hand).

The USE_ITEM packet fires correctly, but I can't get any information from it other than which hand was used for the interaction.

Then I tried using BLOCK_CHANGE clientbound packet, and it definitely kinda works, but it's sent multiple times per tick for simply right-clicking a single block (4 times; 2 of each: block you click on, and the one which is connected with the clicked block-face; i'm guessing because USE_ITEM is sent once for each hand?).
And the problem with using this is that the packet is also (obviously) sent when I send a block change packet, so I can't know whether the player interacted, or if they're receiving the block change I want them to receive.

So, what's the best way to ONLY detect right-clicks on client-side blocks, without false-positives from sending a block change packet etc.?

quiet sierra
#

Also you need to raytrace the block the player is lookin at

paper orbit
#

ok woah, i didn't know about packet metadata, how would that help me with packets the client sends?

#

and which packet would i use specifically for this

quiet sierra
#

bit messy but you should get the idea

#

getMaterialSeen() returns the block the player is looking at

paper orbit
#

yeah that was really useful, i was avoiding raytracing, but it doesn't seem that complex, thank you ๐Ÿ™‚

cursive jolt
#

USE_ITEM isn't the same as block place

#

when you right click the face of a block, it's a block place packet

fathom jasper
#

Hello, how can i make a placeholder that updates automatically?
Ex: a timer

cinder flare
#

It's on the requester of the placeholder how often to ask for the update

fathom jasper
#

and how can i check that

cinder flare
#

huh?

fathom jasper
#

By default how often it is?

cinder flare
#

It's whenever the person requesting the placeholder requests it

#

if you request it once, it's once

ocean quartz
#

The placeholder is never updated often, it's replaced when it's called for

cinder flare
#

if you request it every second, it's every second

fathom jasper
#

And if it's on a scoreboard?

cinder flare
#

Whenever the plugin managing the scoreboard calls to update it

fathom jasper
#

k

vagrant swan
#

Who can help me here

ocean quartz
#

Depends on what you need help with

vagrant swan
#

I paid for nitro and it didnt work

ocean quartz
#

That is one thing no one here can help you with

#

We're not discord support

vagrant swan
#

How can i reach them ?

ocean quartz
#

?not-discord

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.

primal crystal
#

Y do people think this is discord support ? ๐Ÿ˜…

ocean quartz
#

It's like the second link if you search for "discord live chat"

prisma wave
#

yea

#

it's almost a reasonable mistake to make

#

almost

ocean quartz
#

almost

primal crystal
# prisma wave

ooo...then most people who comes for that doesn't even know or play minecraft...

prisma wave
#

mhm

quiet depot
boreal needle
#

i have nothing better to do so i am now

cinder flare
#

we use stripe as our payment provider and just listen to their webhooks to give or take roles and such

boreal needle
#

yeah that works great

#

im trying to aim this at smaller servers tho that might not have dedicated devs

#

might end up doing some kind of hosted saas version of it

#

idk yet

cinder flare
#

oh snap

#

lucy the entrepreneur

boreal needle
#

realistically it wont happen

#

i am literally a child

#

no harm in dreaming tho

quiet depot
#

just grow up

#

we (me and a partner) made a tebex alternative when I was an even smaller child than I am now

cinder flare
#

whaddya gonna do next, make a DRM like that one guy who we banned i think

#

i forgot his name

#

was it yako?

distant sun
cinder flare
#

yeah i don't remember who it was

#

it was one of the spuds though

boreal needle
#

what happened?

#

ive missed out on so much lmao

cinder flare
quiet depot
#

I donโ€™t remember what the final straw was

#

canโ€™t even find him in the ban list

boreal needle
#

what is it with people being like that in these discords

cinder flare
boreal needle
#

we had kaspian join devden the other day

quiet depot
#

well people pay money for this plugin and then they discover it doesnโ€™t even have features like hex that have been in the game for yonks

#

they get understandably mad

#

the problem is they take it out on us

cinder flare
#

he was joking that they should make a PR even though deluxechat isn't open source lmao

quiet depot
#

or more usually the support team

#

and thereโ€™s literally nothing they could do about it (because the plugin wasnโ€™t os, which was out of our (admins) control)

quiet depot
boreal needle
#

he's very, uhm, stereotypical in his nationality

#

he's been really rude to me in the past

brittle leaf
obtuse gale
#

yako was banned?

boreal needle
#

does this description make any sense?

#
/**
         * The denomination of this currency for display -
         * n where the display unit is the lowest unit x 10^n.
         * For example, there are 100 = 10^2 cents to the US dollar so USD has a value of 2.
         * For zero-decimal currencies, set this to zero.
         */```
#

ie, when using usd the value should be 2 as 1 dollar = 100 = 10^2 cents

obtuse gale
#

woah you want me to get a math degree to use your api?

quiet depot
#

wasnโ€™t banned

#

I just assumed we banned him

obtuse gale
#

aww ๐Ÿ˜ฆ

#

also hi piggy

#

hru

#

ok

#

pig hates me

onyx loom
#

hi im great thanks for asking emily, how are u?

pastel imp
#

anyone knows of a plugin that uses feedbacky for feedback/bug reports? I wanted to see how it performs in action

half harness
#

B.A.A.S - Too many caps!
No need to shout.
Barry's Anti Abuse System | v1.4.7

onyx loom
#

๐Ÿฅด

#

saw that

half harness
#

A

#

A

#

delete

#

now

obtuse gale
#

B.A.A.S - Don't Repeat Yourself!
You're sending too many duplicate messages.
Barry's Anti Abuse System | v1.4.7

ocean quartz
half harness
#

No

#

Matt

obtuse gale
ocean quartz
half harness
#

D:

#

we don't talk about that

#

so how's your day everyone

ocean quartz
#

We should definitely talk about that

half harness
#

hmm

ocean quartz
half harness
#

uh

#

just type all caps

#

and you'll find it

#

๐Ÿ™‚

plush willow
#

Hello my Name is Lucky i just was wondering if there was any Java plugin developers who were look for someone to help them start a mine raft server and point them in the right direction all i need is someone to develop the plugins and i can help setup everything else such us configs, store, website, discord, team speak, Shoot me a message if your interested

quiet depot
#

hru

pastel imp
#

having the feeling you guys are joking :-:

half harness
#

Copy and paste this: COPY AND PASTE THIS CAPS TEXT AND HOPE YOU DON'T GET MUTED_ _ _ _

#

๐Ÿ˜ƒ

pastel imp
#

tried pinging a category

#

you can only do it with voice chats ๐Ÿ˜ฆ

ocean quartz
pastel imp
obtuse gale
pastel imp
#

works with voice chats

half harness
#

thats what i meant

#

barry auto responds to caps

obtuse gale
#

i mean
thats what i meant

pastel imp
#

but I asked about a plugin that uses feedbacky?

#

lol

half harness
#

oh i got confused

ocean quartz
half harness
#

since u replied to my BAAS message

#

barry auto deletes the messages

#

so if u didn't see the original message ig you'd be confused

#

๐Ÿฅฒ

pastel imp
#

oh lol

#

well, ye I asked for a plugin that uses feedbacky cause I wanted to see it actually in action

#

xd

urban sleet
#

(ping please)

distant sun
#

for give command, replace String playerName with a Player param, do a null check and then add the backpack to their inventory

urban sleet
#

๐Ÿ‘

urban sleet
#

How do you learn to deobfuscate plugins?

ocean quartz
urban sleet
#

:(

cursive jolt
#

it's difficult to deobfuscate more than name stripping

#

Flow obfuscation is really difficult to undo.

eternal compass
#

and if variable names are all changed to a, b, etc, then understanding flow is generally harder

ocean quartz
#

Good luck with it kek

obtuse gale
#

Usually you start by taking context from things like string literals and where and how they're used, then expand from there

frail glade
#

aaaaaa

obtuse gale
#

Kinda like playing sudoku, everything seems to go according to plan until you hit something that doesn't fit at all and you have to undo half the changes and rework them kekw

ocean quartz
#

Might as well write your own version of it instead

old wyvern
#

Then there are other fuzzing tools to remove weird obfuscation artifacts by running parts of the jar

wintry plinth
#

Not only that, but if you frequently do genuine updates, people will give up eventually anyway

#

Because even if you manage to deobf a particular jar, if next weeks new version comes out with new features, youโ€™ve got to do it again

pastel imp
#

OR just go with Freemium ๐Ÿ˜Ž

wintry plinth
#

Freemium doesnโ€™t pay the bills unfortunately

static zealot
#

tell glare that

#

and he'll disagree

quiet depot
#

glare does a load of commissions

inner umbra
#

"Freemium" != commisions

static zealot
#

yes. he knows

quiet depot
#

I'm saying that his income isn't based on guilds

#

I doubt guilds is even a major part of it

inner umbra
#

๐Ÿ‘

quiet depot
#

not to say freemium is bad

#

I will always support that

#

just the glare example doesn't work

wintry plinth
#

I believe in open source too, hence why I pester staff here with clips stuff (yes, I know the situation), but freemium just doesnโ€™t work financially speaking

#

It doesnโ€™t put food on the table

#

yes some cases where people do make money from open source, but very rarely

distant sun
#

how many people know how to compile a plugin? lol

wintry plinth
#

Theyโ€™ll ask someone who does

#

Iโ€™ve had numerous people DM me asking

distant sun
#

๐Ÿ‘

inner umbra
#

^^^ Same. I just don't like working on other users projects. So even if its open source I don't mess with it.

quiet depot
#

I struggle with working with others code too

#

I'm gonna have to get employed by google to make the next gson or something

wintry plinth
#

Yeah I agree too ๐Ÿ˜‚

quiet depot
#

I just want to get paid to work on my own open source projects

#

is that so unreasonable

#

probably

inner umbra
#

Yeah only exception I had was PremiumHub but I still hate working on it sometimes cause I have to go figure out the original code

quiet depot
#

rewrite it

inner umbra
#

I want too but I am lazy xD

#

The plugin also depends on another lib for NPC's and I hate depending on others projects too. I'll usually just make my own where ever possible. And for things others want support for I usually soft depend.

distant sun
#

on spigot, is possible to replace the jar of the latest version without releasing an update?

inner umbra
distant sun
#

ah, bullshit then

#

I did a quickfix for one of my plugins and wanted to post it on spigot, but I guess I will just wait a bit to see if I find anything else

wintry plinth
#

Post an update without a title or desc

#

it silent adds

#

then you can delete old ver, but doing that doesnt send a notification

distant sun
#

yeah, will just wait, thanks

wintry plinth
#

np

solid coyote
#

Possible to make a javascript that checks in a bungeecord server is online or offline.

The Pinger placeholders does not work on the velocity

distant sun
#

is there an easier way to look at something implemented through patches, other than literally searching through them? ๐Ÿคฃ im talking about paper

agile galleon
#

But i failed

#

Miserably

sick belfry
#

can the nether gen be customized and can it use the new heights? I'm curious

fathom jasper
#

[20:03:21] [Server thread/ERROR]: Encountered an unexpected exception
java.util.ConcurrentModificationException: null
at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:756) ~[?:?]
at java.util.LinkedHashMap$LinkedValueIterator.next(LinkedHashMap.java:783) ~[?:?]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1604) ~[patched_1.17.1.jar:git-Paper-353]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:490) ~[patched_1.17.1.jar:git-Paper-353]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1480) ~[patched_1.17.1.jar:git-Paper-353]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1279) ~[patched_1.17.1.jar:git-Paper-353]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Paper-353]
at java.lang.Thread.run(Thread.java:833) ~[?:?]

Someone knows what is this?

cursive jolt
#

What plugins? I'd assume some plugin is modifying something it shouldn't.

fathom jasper
#

it's my own

#

plugin

cursive jolt
#

are you doing anything outside of the main thread?

cinder flare
#

yeah this looks like spigot API async stuff

eternal compass
#

lets goo

#

I finished my bot's module system

#

so modules can be enabled or disabled

#

per-server

distant sun
#

Nice fred

ruby dew
#

java is the worst language ever created

quiet depot
#

๐Ÿ˜ฆ

ruby dew
#

like it took me 1 week to debug and find that primitive types are all pass by values in functions but wrapper classes and objects pass by reference in functions

#

like this literally makes no sense

#

like how they try to make the language "user-friendly" and "easy to use "
but backfire severely

quiet depot
#

What do you think of python?

ruby dew
#

amendment:
java is one of the worst languages ever created

quiet depot
#

very good

ruby dew
#

python is the worst language ever created

quiet depot
#

yes

#

I'm glad you said that

#

I was really worried

ruby dew
#

lmao

quiet depot
#

idc if you think java is shit, so long you think python is worse

#

because it is

ruby dew
#

yeah java is good when i am using python

#

python is literally hell

#

we all be suffering traumas from python and java

quiet depot
#

eh I quite like java

ruby dew
#

oh no

quiet depot
#

perhaps bias

ruby dew
#

you must be a very "safe" person then

#

nullpointerexception goes brrrrr

quiet depot
#

i'm a rebel, I use unsafe

ruby dew
#

then you must hate java

quiet depot
#

I love java

ruby dew
#

wtf

#

this doesnt make any sense

#

if you love unsafe use c++

quiet depot
#

I don't like unsafe

#

I've just used it in the past

ruby dew
#

yes,and c++ > all

quiet depot
#

you'd like emily

ruby dew
#

probably

#

@obtuse gale c++ > all

quiet depot
#

99% sure emily is a big c++ nerd

ruby dew
#

thats great

#

c++ is gift from heaven

#

to save us from the abyss of poorly made scripting + weird "trying to be safe but backfire" langauges

hard cedar
#

my brain is frying

cinder flare
ruby dew
cinder flare
#

what would your alternative be?

#

all pass by reference?

ruby dew
#

like if you are gonna stay pass by value then do them all in all contexts

ruby dew
cinder flare
#

oh, i'm sure copying a massive hashmap every time is a great idea

quiet depot
#

primitives are different to objects

#

they fundamentally behave differently, in language, in memory, in implementation

cinder flare
#

in a language without user-interactible pointers, Java has the sanest defaults

ruby dew
cinder flare
#

that are shared by like, every GC'd language without explicit poitners?

ruby dew
#

no need to make any pointers or stuff

cinder flare
ruby dew
#

no

#

& also means reference

cinder flare
#

And Java was sold on the idea that you didn't have to do any of that

cinder flare
ruby dew
#

..?

#

am i trippin

cinder flare
#

it seems so

quiet depot
#

have you taken any psychedelic substances?

cinder flare
#

yeah that's actually one of the only complaints about Java I have never heard before and also don't agree with lmao

#

you can pass by value if you want, like really easily

#

but rarely do you want do to that to an object

ruby dew
#

reference is different to pointer

cinder flare
#

what's the difference

quiet depot
#

nah I can see where they're coming from, it's an apparent inconsistency, but I think it's mainly bothering them because they're a c++ nerd

ruby dew
#

reference means you are using the same pointer

#

but you dont have to deal with the pointers

#

its just a symbol

cinder flare
#

what? lmao

ruby dew
#

you can make a function parameter

#

functionx(Integer& idk)

cinder flare
#

oh you mean accepting a reference

ruby dew
#

yes

cinder flare
#

yeah you are poisoned by C++

ruby dew
#

lmao but that just clears so many things up in java

cinder flare
#

and still, unnecessary complexity

#

the times I want to pass objects by reference vastly outweigh the times i want by value

ruby dew
#

isnt it confusing that Integer class in java is pass by reference tho
took me a week to find out

cinder flare
#

no

#

it's a class

#

any object is pass by reference

ruby dew
#

bruh you are poisoned by java

cinder flare
#

have you tried any other Gc'd languages? lmao

ruby dew
#

what gc i noob

#

gcc?

cinder flare
#

garbage collection? lmao

ruby dew
#

oh

#

i dont remember any other languages with garbage collection

cinder flare
#

i'd take java's easy rules over the nightmare that is l and r values and passing by reference or r-value reference

ruby dew
#

but java garbage collection is surely pain in the ass

cinder flare
#

fucking lmaooo

ruby dew
cinder flare
#

Java garbage collection is some of the best in the biz

cinder flare
ruby dew
cinder flare
#

you can explain all of that minutia in Java in a single sentence

ruby dew
#

there is a bug known to cause heap problems in sql

cinder flare
#

heap problems?

#

please provide a reference lmao

prisma wave
ruby dew
#

wait

prisma wave
#

HHHHHHHHH

quiet depot
#

star what r u learning these days in uni

cinder flare
#

rn i'm taking foundations of computation theory

quiet depot
#

like a history class?

cinder flare
#

so we're learning like deterministic/non-deterministic finite automaton

#

not really

#

more like retracing and learning how this stuff was made

#

and we're doing like regular languages and regular expressions

quiet depot
#

sounds exciting

cinder flare
#

yeah it's actually one of the first time's i've learned anything useful so far lol

#

oh i'm also in advanced algos & ds, but it's super boring cause it's pretty simple stuff

prisma wave
#

Turing machines are fun

cinder flare
#

so i did RSA in Rust

cinder flare
prisma wave
#

shame

ruby dew
cinder flare
#

and like, the way he's describing regular expressions is so bizarre

#

cause like, I know how to use them in practice, but he's defining them in such a weird way

ruby dew
cinder flare
#

the pinnacle of reliable sources

#

and this is only with custom classloaders lmao

quiet depot
#

mr palace java does have memory leaks

#

that's no secret

#

but that didn't stop every big company from using it anyway

#

and hundreds of thousands of servers

cinder flare
#

and not to even mention how amazing the HotSpot vm is

quiet depot
#

I will not stand for it being called amazing till they make me personally happy and put in some good hotswapping

cinder flare
#

lmao

#

ngl man I don't really trust like that

#

like, running a server in IJ and using the debugger

#

that shit too spooky for me

quiet depot
#

I feel like we've talked about this before

cinder flare
#

yeah lol