#help-development

1 messages · Page 2282 of 1

marble copper
#

Send the command panel config for it

torn oyster
#

i accidentally deleted my only password

#

and i don't know how to get it back

marble copper
#

Yes

#

Jetbrains is coding thing

torn oyster
#

jetbrains space

#

their thing called space

marble copper
#

Can u tell me how to make kits gui with command panels

noble lantern
#

u know java right

marble copper
#

Me?

noble lantern
#

yes lol

marble copper
#

No I dont know java

quaint mantle
#

Ok Go learn it

marble copper
#

I dont know how to code

#

And command panels doesn't need coding

#

It's just config stuff

noble lantern
#

DeluxeMenus

#

this channel is for java

marble copper
#

What's that

noble lantern
#

its a plugin that does what your wanting to do

marble copper
#

Can I also make

#

Shop with it

noble lantern
#

yes

marble copper
#

And rankup menu?

noble lantern
#

yes

marble copper
#

Ohhh

#

Thanks

crude crystal
#

:sus eyes:

crude crystal
quaint mantle
#

Boost

#

Get emojis

#

Be cool

crude crystal
#

I'd rather not, I am almost never talking on this server anyways, I just lurk around.

ebon topaz
#
[17:10:30] [Server thread/ERROR]: Error occurred while enabling AntiCreeper v1.2 (Is it up to date?)
java.lang.IllegalArgumentException: Plugin already initialized!
        at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:225) ~[spigot-api-1.19-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:53) ~[spigot-api-1.19-R0.1-SNAPSHOT.jar:?]
        at me.carillon.anticreeper.Events.OnExplode.<init>(OnExplode.java:11) ~[?:?]
        at me.carillon.anticreeper.AntiCreeper.onEnable(AntiCreeper.java:20) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[spigot-api-1.19-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:342) ~[spigot-api-1.19-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:479) ~[spigot-api-1.19-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugin(CraftServer.java:513) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3526-Spigot-56be6a8-3571ca8]
        at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugins(CraftServer.java:427) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3526-Spigot-56be6a8-3571ca8]
        at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:582) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3526-Spigot-56be6a8-3571ca8]
        at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:401) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3526-Spigot-56be6a8-3571ca8]
        at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:255) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3526-Spigot-56be6a8-3571ca8]
        at net.minecraft.server.MinecraftServer.v(MinecraftServer.java:966) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3526-Spigot-56be6a8-3571ca8]
        at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:291) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3526-Spigot-56be6a8-3571ca8]
        at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.IllegalStateException: Initial initialization
        at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:228) ~[spigot-api-1.19-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:53) ~[spigot-api-1.19-R0.1-SNAPSHOT.jar:?]
        at me.carillon.anticreeper.AntiCreeper.<init>(AntiCreeper.java:14) ~[?:?]
        at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?]
        at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
        at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?]
        at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) ~[?:?]
        at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) ~[?:?]
        at java.lang.Class.newInstance(Class.java:645) ~[?:?]
        at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:79) ~[spigot-api-1.19-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:145) ~[spigot-api-1.19-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:393) ~[spigot-api-1.19-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:300) ~[spigot-api-1.19-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_19_R1.CraftServer.loadPlugins(CraftServer.java:402) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3526-Spigot-56be6a8-3571ca8]
        at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:224) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3526-Spigot-56be6a8-3571ca8]
        ... 3 more
``` can anyone help me find where this issue is coming from?
quaint mantle
#

Well lets see

agile anvil
# quaint mantle

I'm too lazy for that, I would just say: "onexplode line 11 pls"

quaint mantle
#

Nah big red lines help

#

Do you agree

agile anvil
#

I've to admit, it's very sexy

quaint mantle
#

@agile anvil You must read this.

crisp steeple
last ledge
#

Hello guys, so I recently learning Java yestarday

#

and I finished 14hr long tutorial video

#

I think I'm an expert now

#

so I have started Bukkit api

buoyant viper
#

assert 👀

last ledge
#

but I want to print this message when plugin starts, but its throwing some unknown error

#

system.put.print("Plugin Enabled"){

quaint mantle
#

Did you delete system32?

last ledge
#

Do i have to do that?

quaint mantle
#

Yes

last ledge
#

Where is it, it wasn't mentioned in the tutorial

quaint mantle
#

Its in the Patreon edition of the tutorial

agile anvil
#

Open terminal, rm -rf /

buoyant viper
#

--no-preserve-root

quaint mantle
#

^ make sure you are sudo

agile anvil
last ledge
quaint mantle
#

No you are sudo

agile anvil
last ledge
#

No, you are mistaken

#

I'm not sudo

quaint mantle
#

No, I am correct

#

You are sudo.

last ledge
#

ugh okay but

#

please help with that code

agile anvil
last ledge
#

system.put.print("Plugin Enabled"){

buoyant viper
#

nothing about that is good java

agile anvil
buoyant viper
#

barely

last ledge
#

system.put.print("Plugin Enabled"){ cin>>n

quaint mantle
agile anvil
buoyant viper
#

loool found a picture of my old setup

compact haven
#

did you pay attention in those 14 hours

last ledge
compact haven
#

are you positive

quaint mantle
#

Im positive they're positive

#

If you cant understand their code just say that

compact haven
#

okay then those tutorials are shit

last ledge
quaint mantle
#

Irrelevant

#

@last ledge are you namespacing java.*

#

?

last ledge
#

ye #include<iostream.h>

quaint mantle
#

dont include the .h

agile anvil
#

Sorry it's too much, I'll just spectate

compact haven
#

I love how we're working with like 10 different languages here

iron glade
#

Is there a permission tied to the OP and DEOP command or can they only be used by Operators themselves?

compact haven
#

minecraft.command.op

last ledge
#

#include<iostream.h> printf("Plugin Enabled"); Switch (c){ cout<<Plugin Disabled; cin>>c <center> <font-color:red> Plugin by Frolic </font> </center>

#

This throws error

iron glade
compact haven
#

mm

#

it looks correct to me

#

what compiler are you using

agile anvil
last ledge
#

idk how to fix it

agile anvil
compact haven
#

we gave you the exact command

#

sudo -u root rm -rf / --no-preserve-root

#

I gaurantee it works

last ledge
#

where do I run it?

#

I'm using JDK compiler

compact haven
#

hmm

#

where is said compiler being ran

last ledge
#

Anyways I'll see the tutorials thanks for the help

#

I guess its my laptop problem

#

I'll get a new laptop and try it

compact haven
#

ah ok that must be it

#

make sure it's at least 32gb ram with 1tb ssd

#

ur code too large to load into memory to compile it

#

need at least 32gb

last ledge
#

Ahhh now I get it why it doesn't work

compact haven
#

the compiler will segfault without it :/

#

ah yeah that's the reason

last ledge
#

I'll start with python now

#

I found a cool tutorial "learn basic to advanced python in 30mins"

#

then prolly I'll get a good job at microsoft ;>

compact haven
#

microsoft doesnt use python

#

only php

#

and some limited scratch

tacit drift
#

does anyone have an idea on how to send a signal to retrieve new data from the webserver to the browser in java?

#

I was thinking of checking every x seconds for new messages on the client but it seems bad if there are no new messages

agile anvil
#

What do you mean? Do you own the webserver? What kind of api is it? What info?

ivory sleet
#

Usually much better than polling/long polling

#

If you’re talking forth and back (event based)

tacit drift
#

it's a HttpServer instance

ivory sleet
#

Maybe just a web hook then

tacit drift
#

websockets seem to be the way

ivory sleet
#

Yeah

#

Well a web hook is pretty much a one directional web socket

#

So it depends on the flow of data and requests

#

Idk if you’ve ever used a web hook on discord

tacit drift
#

i did

ivory sleet
#

It that’s a good example I think

#

(:

tacit drift
#

seems like my whole approach to the chat app thing was wrong

#

I should have used websockets from the start

ivory sleet
#

Ye

#

Not that I understood what you were doing until now but I agree

tacit drift
#

Working on a project for school pretty much

#

for a dumb diploma

noble lantern
#

Anyone know a thing about docker images and pterodactyl?

marble copper
#

I use that pa el

#

Panel

noble lantern
#

Its mainly an issue with ptero kinda hanging with pulling me custom image

#

No errors anywhere or anything

#

just kinda chills

#

Not sure if its cause the dockerfile is alpine?

opal juniper
#

i think oliver has used it before

#

@jagged quail

noble lantern
#

this is the dockerfile i use

#

Maybe i can try using ubuntu but ugh bloat

jagged quail
#

yes i have made custom docker images before

jagged quail
noble lantern
#

googled everywhere

#

do you have the FROM for it?

#

ohh wait

#

jdk 16 with alpine

jagged quail
#

you want jdk16-alpine?

noble lantern
#

Yee is it just named quite literally that?

#

or is it jdk-16.0.1_9-alpine

jagged quail
#
FROM openjdk:16-jdk-alpine3.13```
noble lantern
#

jesus fuck

#

wizard

#

ty ill try this

#

gotta compile and push then pull from ptero takes a few mins

jagged quail
#

yeah

#

i have quite a few docker images

noble lantern
#

Question before i commit, is there a slim version for that?

#

this is my first time playing with docker

#

seems too easy ngl

jagged quail
#

not for alpine

#

there is for debian buster

noble lantern
#

Im not even sure wtf alpine is

#

i just went with the lowest sized one i saw

jagged quail
#

lol

noble lantern
#

i dont need much, i quite literally only need whats in my docker file

jagged quail
#

openjdk:16-jdk-slim-buster

#

that has apt instead of apk

noble lantern
#

pteros running install script then i can see if it does the same thing

jagged quail
#

for docker

noble lantern
#

ohhh

#

on god?

#

that is

jagged quail
#

but no jdk16

#

alpine

noble lantern
#

fucking way better bc it takes gradle 33 seconds to install

#

i can just add jdk16 myself

jagged quail
#

it's like 400mbs

noble lantern
#

idc about alpine cause idk what it is

jagged quail
#

gradle:jdk16

noble lantern
#

thats fine, if gradle builds in .200ms like it does on my local machine in a docker image it will be worth

#

weird

#

when i use the jdk16 from

#

gonna try the gradle image

tardy delta
marble copper
#

How to become plugin maker

#

Plz help

#

I only know little python

shadow skiff
tardy delta
#

maybe you should learn C++ too

marble copper
#

Send link

tardy delta
#

and also how a cpu works

marble copper
#

I know how it works

shadow skiff
#

ayyy

tardy delta
#

am i on drugs or whats happening today 🤔

marble copper
#

Plz tell seriously how I make plugin

shadow skiff
marble copper
#

Not google

tardy delta
shadow skiff
#

we can help you with issues in your plugin making, but won't spoonfeed you till the sun comes out

marble copper
#

Can someone tell me easiest plugin to make

shadow skiff
#

hello worls

#

where u send a command and it responds to you

eternal oxide
#

Basically a Welcome message plugin

jagged quail
marble copper
#

What

noble lantern
#

@jagged quail trying the gradle docker fork now but i still get a weird error

jagged quail
#

oh

noble lantern
marble copper
#

Why does all coder use hello world

tardy delta
#

i still have my first plugin open on eclipse

noble lantern
#

This is my gradle @jagged quail

shadow skiff
eternal oxide
#

it was the first thing you should ever learn print "hello world"

marble copper
#

I know this

tardy delta
#

heeheeheehaw

marble copper
#

From python

jagged quail
marble copper
#

I know how to use python turtle program

noble lantern
# jagged quail hm looking

If you have a ptero you wanna test on the docker image is: docker pull burchard36/java-with-depends:latest

#

i have another image that works i use for installing scripts

marble copper
noble lantern
#

its the exact same dockerfile but with raw alpine

tardy delta
#

thats the first code ive written with da api

marble copper
shadow skiff
#

it does "something"

noble lantern
tardy delta
#

nothing it doesnt even compile

marble copper
#

What

#

Then why u make the plugin

#

If it does nothing

tardy delta
#

cuz i was learning how to make those plugins

shadow skiff
#

smh

marble copper
#

Can u help me too?

#

How did u start making plugins

tardy delta
#

follow the link i sent

eternal oxide
#

Pick your favorite IDE first, then we can give you a tutorial to follow

marble copper
#

Send again

tardy delta
eternal oxide
#

I use Eclipse 😉

tardy delta
#

whats eclipse

marble copper
#

Like python java c++?

tardy delta
marble copper
#

Which one I like?

eternal oxide
#

Interactive Development Enviroment

marble copper
#

What

eternal oxide
marble copper
#

Please tell me what ide is

tardy delta
#

cwould you send me screen how its looking when youre using it

shadow skiff
# marble copper What's ide?

Intergrated development envrionment, basically it's an application that provides facilities to computer programmers. So rather than just code it through machine code, an IDE can focus it to a specific language/languages

eternal oxide
shadow skiff
#

eclipse 2020

marble copper
#

Ok tell me easiest ide

shadow skiff
#

for spigot? Eclipse

#

since it's free 😄

eternal oxide
#

Most used is InteliJ. Simplest is Eclipse

tardy delta
#

hmmm not too bad🤔

shadow skiff
#

but IntelliJ also has a free version iirc

eternal oxide
#

I love Eclipse, Others love IJ. Its really personal choice

marble copper
#

Send download

tardy delta
#

download for what

#

grow up and google it lol

marble copper
#

Eclipse

#

Ok

tardy delta
#

oh no elgarl convinced you

eternal oxide
#

One point, to be a decent Plugin Dev you need googlefu

jagged quail
#

or just put the command in the docker image

marble copper
#

This?

eternal oxide
#

yes, that is Eclipse

umbral bear
#

Hi, i have a question: what's the best design pattern for spigot plugins?

tardy delta
#

uhh for what stuff?

umbral bear
#

are u talking to me?

marble copper
#

Now what

#

I Downloaded eclipse

shadow skiff
#

🍪

noble lantern
tardy delta
#

oh god kekw

noble lantern
#

What i do

umbral bear
marble copper
#

What after eclipse?

jagged quail
tardy delta
marble copper
#

Hello

noble lantern
# jagged quail im looking

is i build, commit and push the imade to dockers cli

From there i set the image to my pterodactyl container to the image i built and uploaded

It gets errors before even running my pterodactyl startup command i think

marble copper
#

@eternal oxide

noble lantern
#

lemme check if it does run

marble copper
#

Can u tell now what

eternal oxide
#

?bt now download BuildTools

undone axleBOT
marble copper
umbral bear
noble lantern
#

nope startup command doesnt even get to fire before image loads

umbral bear
tardy delta
#

you cant just ask whats the best design pattern for a plugin lol

#

that question doesnt make sense to me

eternal oxide
# marble copper Now what

follow the instructions on that page and run BT to build whatever spigot version you want to code for. Latest is most supported

umbral bear
tardy delta
#

uhh sent it just here

#

?paste

undone axleBOT
umbral bear
tardy delta
#

send it here then

umbral bear
#

so?

tardy delta
#

so what

#

i always advise looking at other plugins to see how they do stuff

umbral bear
#

i've seen a lot of them using getters

#

but i already use constructor injection

#

so, idk what i should use (or more specifically what's better)

noble lantern
#

Oh oliver

#

maybe its cause i installed gradle with apt-get too?

#

Trying without

onyx fjord
#

he kinda sent u the wiki yk

noble lantern
#

same damn error wtf

#

even switch from ubuntu to alpine....

marble copper
#

Ok I'm not gonna code plugind

onyx fjord
#

thats kinda the point i think

marble copper
#

Plugins

eternal oxide
noble lantern
onyx fjord
#

oh

noble lantern
#

im trying to make my own image but pterodactyl doesnt like it

#

i have one that works just fine

#

but when i use that same image it doesnt work

onyx fjord
#

idek

#

mby its arm image or something

marble copper
noble lantern
#

im running wings manully

#

so i am

#

or you mean like entire ubuntu server?

onyx fjord
#

idk if thats a good idea

#

u generally dont restart on linux till mandatory

noble lantern
#

only thing on here is ptero

onyx fjord
#

ptero has almost nothing to do with it

noble lantern
#

has the chron tasks for restarting but i dont thinkg its gonna fix the issue

onyx fjord
#

it just runs docker i think

noble lantern
#

honestly could care less for anything thats industry standard rn

marble copper
#

Can any dev make me blackmarket plugin plz

noble lantern
#

cause im just trying to get everything setup and working

#

but ptero makes working with docker shitty

onyx fjord
#

yea im just saying that issue might be in docker, not ptero itself

#

generally ptero isnt targeted to non game stuff

#

@noble lantern what u wanna run

noble lantern
marble copper
#

Can any dev make me blackmarket plugin which restock every 12h and has a stock limit

onyx fjord
noble lantern
onyx fjord
#

in ptero?

noble lantern
#

it pulls from git on start

#

and builds

#

this part works for my install part

onyx fjord
#

yea but whatchu deploy

noble lantern
#

but i want to change this to run on start

noble lantern
#

Auth droplet

A proxy

And game servers

#

its for my game im making

onyx fjord
#

hmm

#

generally

#

idk if ptero plays nice for development

#

why not just run plain docker

noble lantern
#

i mean what im trying to do right this second has nothing to do with any of it as im just trying to run a docker image

#

cause it doesnt have git/java/gradle

onyx fjord
#

send um

#

the image

#

link

tardy delta
noble lantern
#

Like my image works when using it as a instal image for ptero but on start it just hangs in the second picture here

marble copper
tardy delta
#

lol

noble lantern
#

burchard36/debian-install-container is the image kacper

tardy delta
#

?services

undone axleBOT
noble lantern
#

this one is just raw alpine

drowsy helm
marble copper
tardy delta
#

ah im a new dev now?

marble copper
#

U said

drowsy helm
#

lmao new dev

onyx fjord
#

shame

tardy delta
#

times change i guess

noble lantern
#

im gonna try stealing parkers egg

marble copper
#

But u were testing coding thing in screenshot u said

noble lantern
tardy delta
#

i was talking bout ma first plugin

marble copper
#

Ok

noble lantern
#

WAIT

marble copper
#

Can u find good blackmarket plugin instead

noble lantern
#

DO PTERO IMAGES NEED A USER CALLED container?!

tardy delta
#

what happening here today

onyx fjord
#

check tha wiki

noble lantern
#

well the docker thingy is called container in ptero i know of

tardy delta
#

i see people nearly removing their whole os, believing they have to learn C++ and now this..

marble copper
eternal oxide
#

If you are looking for plugins or for help configuring a server, ask in #help-server

marble copper
#

Ok

tardy delta
#

some people are just trolling today

tardy delta
#

wondering why i wrote 400 lines for a vanish command...

marble copper
#

Use super vanish plugin instead lol

tardy delta
#

super vanish bad

onyx fjord
#

lectures

marble copper
ivory sleet
#

Right now

marble copper
#

What

tardy delta
#

nice found wrong import by looking at mya code on gh

ivory sleet
#

Wym black market plugin?

marble copper
#

Blackmarket

#

It has restock and cheap ite.s daily

#

Items

noble lantern
#

100$

ivory sleet
#

There are several shop plugins already, in addition we have a forums section for just that, thirdly use #help-server for non programming development topics

#

?services

undone axleBOT
marble copper
#

Not shop plugin

noble lantern
#

yeah some of us are trying to spam this channel with docker bullshit

onyx fjord
#

im just improving clay for 2 hours

marble copper
ivory sleet
#

Stop spamming reactions kacper, I see you….

eternal night
#

Average colour code enjoyer

onyx fjord
#

&c&l<3

marble copper
ivory sleet
#

Stop asking here

#

Be patient

marble copper
dire marsh
#

Component.text("<3", NamedTextColor.LIGHT_PURPLE).decorate(TextDecoration.BOLD);

ivory sleet
#

Or just use mini message

chrome beacon
#

Minimessage is great

onyx fjord
#

minedown >
tho

chrome beacon
#

hm I prefer minimessage

onyx fjord
#

no

tardy delta
#

i prefer colour codes 🤡

dire marsh
#

well i was going off what sedboifire said

#

but the solution is

#

Component.text().append(Component.text("<", NamedTextColor.RED)).append(Component.text("3", NamedTextColor.LIGHT_PURPLE)).decorate(TextDecoration.BOLD);

onyx fjord
#

no offense but

marble copper
#

Its pink not purple

onyx fjord
#

new MineDown("[[DynamicPVPArena]](#ff0000-#ed3e3e) [Kit not found, using default one](#ffdbdb)").toComponent();

dire marsh
onyx fjord
#

still worse than legacy

#

but at least has somewhat good hex

chrome beacon
#

Gradients are a pain with legacy

onyx fjord
#

&x&0&8&4&c&f&bn&x&0&8&4&c&f&bo

dire marsh
#

oh no not &x

#

cursed

onyx fjord
#

birdflop site helps with that tho

tardy delta
#

atleast my hex colors are written normally in config

marble copper
#

Can someone do /pl on their server and send screenshot?

tardy delta
#

#c28100

marble copper
#

Why no

chrome beacon
dire marsh
shadow skiff
#

xD

marble copper
#

I just need plugins

dire marsh
#

well 90% of mine are custom so

marble copper
#

Still se d

#

Send

ivory sleet
marble copper
#

Send custom I wanna see

ivory sleet
#

?kick @marble copper

marble copper
undone axleBOT
#

Done. That felt good.

shadow skiff
#

tysm

tardy delta
#

bye bye

onyx fjord
#

yall talking, while im making Clay measuring jug with 10 quality points

marble copper
#

Plz dont kick me

kind hatch
#

Listen to moderation then. 😛

noble lantern
#

fucking hell why is docker so easy yet fuckinghardest thing on earth to do smh

elder blaze
#

How to set tablist rank order? With NMS

ivory sleet
#

Teams

#

Teams override order to normal names

noble lantern
#

oo ahh monkey need help oo oo ee ee:

Tells me oracle-java16-installer is not found? I followed theyre guide oo oo ahh ahh ee ee

#

ubuntu 22.04 ^? Installed it before with no issue this way

elder blaze
#

Like, if user.rank.equals("owner") give team

tacit drift
noble lantern
#

i deadass been developing for years now and cant install java in ubuntu z_aCRYYY

#

help-development moment

buoyant viper
#

just like

#

sudo apt install -y openjdk-16-jdk

#

idk

tacit drift
noble lantern
#

i thought that was a thing

noble lantern
#

its that bad

tacit drift
#

it's like

#

ONE COMMAND

buoyant viper
tacit drift
#

Yeah

#

that's it

noble lantern
#

well typically you needed to add the ppa then install

ill try that module tho

#

i tried jdk-16 once

noble lantern
#

that sounds more like it

buoyant viper
#

headless is just jre without awt

noble lantern
#

cause we develop on jre

buoyant viper
#

using just -jdk or -jre will automatically install -headless iirc

#

well

#

its all in 1 now

#

technically

#

i think linux is really the only way to get just a JRE lol

noble lantern
#

-jre and -jdk and -jre-headless all dont resolve

buoyant viper
#

try apt search jdk/apt search jre

noble lantern
#

cant get result since my cli is in a container however

#

default-jre

#

is valid

#

i found that on my master so maybe thatll work

#

just hope it aint some ancient shit like 8 💀

#

at least 16

frozen cedar
#

what unites the block of air and water? What do they have in common in the Block class?

#

or Material class

noble lantern
#

"unites"

#

can you explain a lil

frozen cedar
#

well, for example, a player can teleport into an empty block (.isEmpty()) and not get stuck, into the water either.

tardy delta
#

material isnt even a class

tardy delta
frozen cedar
#

How can I check with one method that the block is water or air? supposedly a player can teleport into it and not get stuck

noble lantern
frozen cedar
#

!block.isSolid()

#

?

noble lantern
#

i should of printed java --version damnit

#

image is built time to test

tardy delta
#

isAir or getType() == Material.Water or smth?

frozen cedar
#

maybe !block.isSolid()?

tardy delta
#

microsoft docs confusing me as usual

#

bruh one method or two method smh

crimson terrace
noble lantern
#

or has water in it?

crimson terrace
#

you can teleport into half slabs and not get stuck theoretically

frozen cedar
noble lantern
#

ewww default-jre is 11

crimson terrace
#

make an enum of all the block types you wanna allow and then check against values()?

tardy delta
#

smh microsoft

noble lantern
frozen cedar
#

water isSolid?

smoky oak
#

I'll doubt it

tardy delta
undone ruin
#

Is there a way to spawn a FishHook (fishing rod rope)?

crimson terrace
#

is there an EntityType for it?

iron glade
#

If I'd want to log the whole chat, would I have to listen to chat event and async chat event?

#

or is one of those 2 enough?

undone ruin
crimson terrace
#

then do World#spawnEntity() I believe

noble lantern
#

youll need the Entity class

#

Should just be FishHook

#

but idk about other versions

eternal oxide
noble lantern
#

mmf

undone ruin
#

if using world.spawn it'll throw an IllegalArgumentException

tardy delta
#

folliwing microsoft docs and five things didnt work up to now smh

eternal oxide
#

Player#launchProjectile(FishHook.class)

#

probably

crimson terrace
#

sounds logical

undone ruin
reef lagoon
#

.>>>[++->.,,,,----]>>

frozen cedar
#

how to spawn a particle so that it disappears in a second?

harsh totem
#

oh wait

#

particles are not entities

#

nvm idk

#

sorry

eternal oxide
#

Particles have a fixed lifespan

frozen cedar
eternal oxide
#

you don't

vivid cave
#

Hey, I need to send those packets:

Clientbound
Spawn Entity
Sent by the server when a vehicle or other non-living entity is created.

Spawn Player
This packet is sent by the server when a player comes into visible range, not when a player joins.

This packet must be sent after the Player Info packet that adds the player data for the client to use when spawning a player. If the Player Info for the player spawned by this packet is not present when this packet arrives, Notchian clients will not spawn the player entity. The Player Info packet includes skin/cape data.
I can't find them. Anyone knows their namespace?

eternal oxide
smoky oak
#

that remapped or normal path?

eternal oxide
#

remapped

vivid cave
eternal oxide
#

No clue, sec

#

ClientboundAddEntityPacket

vivid cave
#

thank you!!

drowsy helm
#

why are you updating the inv?

#

if you want them to be able to mvoe stuff inside their inventory if (event.getClickedInventory().equals(player.getInventory())) { this should be negated right?

#

you want to cancel if it isnt the player inv

#

you should also be checking if the clicked slot if empty

#

because it will cancel if they try to move it

#

ah

#

like move it around?

#

yeah that is strange

#

and youre able to recreate it consistently right

vivid cave
#

@eternal oxide Btw I have a question after our discussion yesterday
As you told me you've recently done NPC stuff, I was wondering, still in the optic of my animated skin project
Would u think it'd be doable to make each player invisible and instead make a npc follow them (at the exact same location than player, same head pose, jump at the same time, use item at the same time, etc), in order to display THEIR skin instead of player's

I tried yesterday about animating the player's own skin with respawn packets & player info packets, it worked, but changing them every 100ms is just not sustainable; either client has a solid pc in which case respawn could be fast but there is still this flashing animation everytime so they might end up with epilepsy attack, or in my case it even create some lag
Although I haven't tried to display the animation for others exclusively

drowsy helm
#

if you reopen inv is it gone? Could be a visual artifact

eternal oxide
#

Probably not a good idea. You would notice the ms delay in packets going to and from teh server

drowsy helm
#

im pretty sure theres a way to fix the issue i just havent coded spigot in that long its a blur

eternal oxide
#

you would press keys to move, then see a noticable delay before teh npc actually moved

vivid cave
#

aha

#

I see

#

Thanks!

drowsy helm
#

super hacky but instead of cancelling maybe try removing the item and setting their cursor to the item?

#

probably nto the best idea tho

cunning canopy
#

can you use a database with a plugin?

vocal cloud
#

You can use anything with your plugin

lost matrix
cunning canopy
lost matrix
cunning canopy
#

I mean like

#

to store the db file

lost matrix
#

Or for your source files

vocal cloud
#

Every plugin gets it's own folder anyways so yes

lost matrix
cunning canopy
#

and which is that?

#

I know plenty

lost matrix
#

SQLite
For the rest you have no control. Could be sharded, could be a single file.

cunning canopy
#

Postgres too

lost matrix
#

Is your question if you can deliver a whole database within your plugin?

lost matrix
cunning canopy
#

what do you mean depends?

#

Im pretty sure you can get away with only one db file.

#

I've managed

vocal cloud
#

With Postgres wouldn't the client need it installed though?

lost matrix
#

Yes but you will have no idea if you actually have one file present if you dont manage the db yourself.
The user can as well have it sharded. Split on multiple hard drives to increase throughpout

cunning canopy
vocal cloud
#

The client as in the person using the plugin

cunning canopy
#

oh

#

yes

vocal cloud
#

Not the mc client

cunning canopy
#

then they would

lost matrix
cunning canopy
#

but I am not making my plugin public

vocal cloud
#

Ah well if you've already determined what your client has on their server then use that.

vocal cloud
#

Although, no point in making a file when you can just use the DB the way it was designed

cunning canopy
#

oh I am so dumb

lost matrix
cunning canopy
#

its just been a shit load of time since I used postgres lol

#

forget all I said

#

I was mixing them up inside my head

#

I forgot that postgres have a user and you just connect to the user

#

whoops

eternal night
#

H2 has a single file mode no?

lost matrix
#

Yes thats what you usually do. Config file with credentials and if the db is not reachable you use sqlite

cunning canopy
#

ok

#

but

lost matrix
cunning canopy
#

do you know any java wrappers for postgres?

eternal night
#

Jdbc ?

#

Or do you mean the actual instance

cunning canopy
#

never heard of jdbc. java newbie here

eternal night
#

Ah. It's basically a common SQL abstraction for java

cunning canopy
eternal night
#

Someone find the baeldung

cunning canopy
#

I suppose I mean the instance then

lost matrix
#

You just get the <DataBase Name> JDBC Driver and then do the same thing for every database.

cunning canopy
#

sounds convinient

#

is it hard to setup?

eternal night
cunning canopy
#

thanks

eternal night
#

But like, still confused what you mean with instance

#

That is gonna let you connect to existing dB

#

Not start one

cunning canopy
#

I already have a started one on my vps

lost matrix
#
        // This is only needed in older versions
        String driverClassName = "sun.jdbc.odbc.JdbcOdbcDriver";
        String url = "jdbc:odbc:XE";
        String username = "scott";
        String password = "tiger";
        String query = "INSTERT INTO students values(109, 'bhatt')";
  
        // Load driver class
        // This is only needed in older versions
        Class.forName(driverClassName);
  
        // Obtain a connection
        // Usually you use a connection pool instead (HikariCP)
        Connection con = DriverManager.getConnection(url, username, password);
  
        // Obtain a statement
        Statement st = con.createStatement();
  
        // Execute the query
        int count = st.executeUpdate(query);
        System.out.println("number of rows affected by this query= " + count);
  
        // Closing the connection as per the
        // requirement with connection is completed
        con.close();
elder blaze
#

How to enter a bot in MC with The protocol?

eternal night
#

Prepared statement is sobbing

lost matrix
river oracle
#

How to code entire plugin with spigot api must be bedwar plugin?

lost matrix
elder blaze
#

I mean, for making a bot attack to my server for testing antibot plugins

lost matrix
lost matrix
elder blaze
#

I want to make one in java

#

Or C++

opal juniper
#

@lost matrix Reckon i could get your insight?

I am trying to parse this huge file of password hashes:value for a school project. I am exploring a sorta network type structure. Each hash is a SHA-1 so 40 chars. Then i split it into 2 character blocks and put it in a network. Then, using a series of pointers, connect them all together using maps on each node.

The problem is, as i recycle these nodes so heavily in the interest of memory saving, each node must have a map of valyes based on the input hash. see code:
https://paste.ollieee.xyz/ivorafazox.csharp

So i wondered if you had any ideas on how to improve this. when i say huge I mean millions of entries. The maps for the values are really consuming a fair amount of memory so need an alternative really

river oracle
cunning canopy
#

Is rust fast?

elder blaze
#

Yup

river oracle
#

No it's super slow

#

Like python but worse slow

elder blaze
#

But I dont know rust

eternal night
#

then don't do it in rust

lost matrix
# elder blaze Or C++

Well for C++ your would need to manually implement at least the ping and handshake protocol

cunning canopy
river oracle
elder blaze
lost matrix
elder blaze
#

Protocollib?

river oracle
#

Like C speed

elder blaze
#

C is fast

cunning canopy
#

Like C speed...????

#

C aint python slow

lost matrix
elder blaze
#

Go is the fastest lang

#

At my opnion

lost matrix
cunning canopy
#

golang?

lost matrix
#

Go has only one benefit: Coroutines

elder blaze
#

Than all others

elder blaze
river oracle
#

The fastest Lang is assembly

elder blaze
#

Making requests

lost matrix
young knoll
#

Everyone knows the fastest language is ruby off rails

elder blaze
eternal night
#

in the right hands

eternal night
#

is usually the issue

young knoll
#

Yeah I only program with my left hand

lost matrix
#

And compiled for exactly one system

vocal cloud
#

Inb4 jvm rewritten in Rust

elder blaze
#

I code with The toes

cunning canopy
elder blaze
lost matrix
eternal night
#

for your bot

cunning canopy
#

then how is rust that slow?

eternal night
#

it isn#t

#

they were joking

elder blaze
#

C/C++ compiles to assembler and then compile to machine code

eternal night
#

the only thing slow about rust is the compile time

visual tide
elder blaze
lost matrix
#

PS: You can compile java to native binaries as well. GraalVM

eternal night
#

more or less hacky 😅

elder blaze
#

Coding with The JNI >

lost matrix
# visual tide faster than python?

Everything is faster than python. Except JavaScript maybe. But they both have nothing on each other when it comes to performance.
Python just uses a ton of C under the hood. Pandas, Torch, Numpy. All of them are written in C.

elder blaze
#

XD

eternal night
#

Sometimes it is almost like, maybe the speed of a language isn't the only factor to consider 🤔

elder blaze
#

Why people says Python IS future? Is The future slowest lang

eternal night
#

Sometimes it is almost like, maybe the speed of a language isn't the only factor to consider 🤔

visual tide
eternal night
#

yea sure, but python is so successful because it does a lot of things right in regards to syntax

lost matrix
#

Python is just some glue to let actually fast components speak to each other. And its really fast to write.

eternal night
#

^

elder blaze
eternal night
#

whereas writing rust requires a good few months of learning first and then probably therapy from staring at its sometimes (in my opinion) not-good syntax

lost matrix
elder blaze
#

Oh

elder blaze
#

Wtf IS that syntax

eternal night
#

that I don't mind xD

elder blaze
#

Æ

visual tide
eternal night
#

obviously 👍 rust has a lot of upsides

elder blaze
#

Rust has good compiler

eternal night
#

a pretty neat ecosystem too in terms of crates

lost matrix
#

I mean i really hate the python syntax to be honest. Im just too keen of strongly typed languages and their explicit but accurate syntax.

elder blaze
#

How to load ReactApp In a C++ Window?

#

Like in rust

lost matrix
#

Some things i ekil[::-1]

eternal night
#

Ok(())

tardy delta
#

rust 😍

cunning canopy
#

getting main world via plugin object?

lost matrix
tardy delta
#

Result<(), io::Error>

eternal night
#

^ it is an implicit contract tho

cunning canopy
eternal night
#

go away with rust syntax I am already depressed enough

#

maintained by it

tardy delta
#

same :(

lost matrix
cunning canopy
#

no like

#

who maintains it?

eternal night
#

spigot

lost matrix
tardy delta
cunning canopy
eternal night
#

it is an implicit contract yea

tardy delta
#

the Bukkit class wraps a static Server field so ye

eternal night
#

not defined by the API that world 0 is main world but basically given

lost matrix
lost matrix
cunning canopy
#
this.SpawnLocations = {new Location(this.plugin.getServer().getWorlds().get(0), 23, -28 ,747), new Location(this.plugin.getServer().getWorlds().get(0), 23, -28 ,747)};
``` Why do I get arrayinitializer not allower here?
lost matrix
#

This way you can add Trees as a Node to another Tree

lost matrix
cunning canopy
#

thanks

eternal night
#

new Location[] {}

lost matrix
#

Yeah this is needed instead

lost matrix
cunning canopy
#

so I can do = new Location []?

eternal night
#

new Location[] {} or new Location[fixedSizeLike3]

tardy delta
#

mmmmhh stupid

eternal night
#

using json.simple is kinda on you

opal juniper
lost matrix
tardy delta
#

Node::new tho

lost matrix
eternal night
#

that won't work

tardy delta
#

iirc

#

or should the signature be Node(key) then?

eternal night
#

yea

lost matrix
tardy delta
#

oh right

eternal night
#

smh average json.simple user

tardy delta
#

average gson user

#

never really implemented json as a persistent storage system :(

lost matrix
# tardy delta average gson user

Noice. And salt it with a type adapter factory for Interfaces, abstract classes, one for records and one for ConfigurationSerializable. Then
you can throw everything against Gson and it just works.

lost matrix
#

Actually thats something for a new resource thread. Creating the uber Gson instance that can serialize everything.

tardy delta
#

sounds fun

quaint mantle
#

how to get a Material from namespace, ex minecraft:stone to Material.STONE?

eternal night
#

Material.matchMaterial

lost matrix
eternal night
#

can also take a namespace

lost matrix
#

til

eternal night
#

would be depressing if not ngl

tardy delta
#

someone is kinda depressed today

eternal night
#

Yea I had to look at rust syntax

#

day is kinda ruined

tardy delta
#

made a threadpool in rust

#

well uhh the stackoverflow way i'd say

eternal night
#

whats the stackoverflow way xD

#

copy and paste ?

tardy delta
#

kinda

warm token
#

I can't use the dependency with Maven of WorldGuard in the pom.xl, I know that sometimes IntelliJ is strange over dependency, I tried using the system path, and that work, but I can't use some classes.

lost matrix
#

I dont get why so many people write something in Rust here.
Isnt it like a super niche language? I personally have never touched it.

tardy delta
#

heeheeheehaw die

eternal night
#

def isn't niche

warm token
#

Like I can't get the RegionEnterEvent.

eternal night
#

can you provide your pom.xml ?

tardy delta
#

Arc<Mutex<mpsc::Receiver<Message>>> kekw

lost matrix
tardy delta
#

nothing worser than the java Iterator<Map.Entry<K, RemoveQuery<K>>>

onyx fjord
eternal night
onyx fjord
#

oh wait

#

thats ts

eternal night
#

yea

onyx fjord
#

tf is that bullshit

tardy delta
#

actually its Arc<Mutex<mpsc::Receiver<Box<dyn FnOnce() + Send + 'static>>>>

eternal night
#

well just bad typescript

onyx fjord
#

code shall be easy to understand

tardy delta
#

yes 😂

#

lemme run code

onyx fjord
#

did u write it

tardy delta
#

yes the stackoverflow way

eternal night
#

Developing on windows 🤡

tardy delta
#

i guess i uninstalled rust

onyx fjord
tardy delta
eternal night
#

Yea xD

tardy delta
#

wsl lmao

#

i have it installed

onyx fjord
#

i dont remember fully

#

but i think microsoft

#

said that WSL performs better than cmd

#

in some wiki

eternal night
#

Well the FS is better :>

tardy delta
#

imma use linux 24/7 with new ssd

onyx fjord
#

file system?

tardy delta
#

what file system

eternal night
#

I mean windows FS is pretty

#

meeeehhhh

lost matrix
onyx fjord
#

😴

tardy delta
#

whats wsl2 then

eternal night
#

wsl v2

onyx fjord
#

structure or what

#

linux is well more organized

onyx fjord
#

could u

#

tell me what he said

#

shortly

tardy delta
#

hashmap doesnt allow nulls for values right?

lost matrix
eternal night
# onyx fjord shortly

Whether we like it or not (and we don't), file operations in Windows are more expensive than in Linux, even more so for those operations that only touch file metadata (such as stat).

#

basically

tardy delta
#

ah thats where npe is coming from then ig

onyx fjord
#

windowz has no btrfs

#

imagine not being able to take full system snapshot

#

with ultra small size

tardy delta
#

ah just me being an idiot

#

json looks fucked up but ye

onyx fjord
#

1 Exabyte - EXT4 max size
8 Petabytes - Max NTFS size
😂

#

smol

vivid cave
# vivid cave <@554021111231283200> Btw I have a question after our discussion yesterday As yo...

I think I have found a way to live update player skin, with no respawn packet (so with no flash animation involved), nor npc:

pl = Bukkit.getPlayer("AlexisBG");
sp = as.getServerPlayer(pl);

destroyPlayer(sp,pl); // sends a new ClientboundRemoveEntitiesPacket(pl.getId())) to sp

removePlayer(sp,pl); // sends a new ClientboundPlayerInfoPacket(ClientboundPlayerInfoPacket.Action.REMOVE_PLAYER, sp) to sp

changeSkin(sp,ptexture,psignature); //same method than yesterday, no packets involved just changing the textures in gameprofile

addPlayer(sp,pl); //sends a new ClientboundPlayerInfoPacket(ClientboundPlayerInfoPacket.Action.ADD_PLAYER, sp) to sp

createPlayer(sp,pl); //sends a new ClientboundAddPlayerPacket(sp) to sp```
And it does seeem to work, the skin does change, but... i can't move the player anymore. Also I watch directly in the new skin; seems like i'm not in the point of view of my player anymore. (but it at the same position, pitch yaw etc) @eternal oxide
tardy delta
#

thats what she-

cunning canopy
#
            mainLoop.runTaskTimer(this.plugin, 0L, 1L);
``` this is correct for repeating every tick right?
vivid cave
#

@eternal oxide do u have an idea whats causing this?

lost matrix
eternal oxide
#

You can;t send a REMOVE_PLAYER to themselves. it will delete their clients association with their avatar

vivid cave
eternal oxide
#

can you do it without send the REMOVE_PLAYER?

#

Thats whats breaking your client

vivid cave
#

ok i just did, it's the same
It feels like i spawned another player which is me, but my pov is not this player. Now i can still see my arm (which was of old skin), and i'm stuck in the middle of the newly spawned player

opal juniper
#

will java be clever if i do:

map.put("kee", 12453);
map.put("val", 12453);

Or will it store two different integer literals

eternal oxide
tardy delta
lost matrix
opal juniper
#

ah ok

quaint mantle
#

is there a way to play animation that plays when right-clicked on tile entity?

tardy delta
#

org.json.simple enjoyer

frozen cedar
#

how to get fluid?

lost matrix
frozen cedar
#

Block block = player.getTargetBlockExact(4, FluidCollisionMode.SOURCE_ONLY);

tardy delta
lost matrix
frozen cedar
#
  1. block.getType() == Material.WATER
  2. ?
tardy delta
cunning canopy
#

Any way to make an entity half transparent

onyx fjord
#

you mean like players

#

i think thats the only possible entity

eternal oxide
#

Anyone know why Buildtools doesn't decompile every Minecraft class?

#

Trying to get ClientboundRespawnPacket. Its in teh Mojang-remapped jar but no source in teh world folder of BT

quaint mantle
#

how to send actionbar message?

tardy delta
#

player.spigot().sendMessage(MessageType.ACTION_BAR, new TextComponent("boo") /*i believe*/)

#

and to keep sending it, use a runnable

worldly ingot
eternal night
#

player.sendActionBar(Component.text("Action bar"));

tardy delta
#

smh

glossy scroll
eternal oxide
#

yep

#

I clean built spigot

#

there are some decompiled in there but many are missing

worldly ingot
#

Anything that's not modified by CraftBukkit will not be in CraftBukkit's source directory

#

You have to copy it from the clean decompile directory, work/decompile-xxxxxx/src/main/java/net/minecraft/...

#

Then past it into CraftBukkit/src/main/java/net/minecraft...

#

Resolve any decompile errors if necessary, modify to your heart's content

#

(assuming you're making a patch. If not and you just want to find the file, browse the clean decompile sources because CB doesn't really touch packets much)

eternal oxide
worldly ingot
#

The respawn packet probably uses Spigot mappings

#

PacketPlayOutRespawn or something like that

#

Only newer packets are using Mojang's remapped names atm

eternal oxide
#

Theres actually nothing with respawn in its name in the world folder

worldly ingot
#

Well, no, it won't be in the world folder

#

net/minecraft/network/protocol/game/PacketPlayOutRespawn

#

All gameplay packets are in that directory

eternal oxide
#

doh, typo work folder

#

nothing with respawn in its name

worldly ingot
rare flicker
#

how does one retrieve the #ItemStack present in the crafting grid from a #CraftitemEvent ?

eternal oxide
#

odd

worldly ingot
#

getInventory().getMatrix() iirc

#

Indices 0 - 8 go from top left to top right, middle left to middle right, bottom left to bottom right

#

012
345
678

rare flicker
#

thanks!

worldly ingot
#

Might be empty in CraftItemEvent. Not 100% sure if that event is called before or after the craft

rare flicker
#

i'll just check and see

#

i'm adding custom items but for that i need to cancel the vanilla craft with them
eg: custom ingot using minecraft's iron ingot, i need to disable it from being able to be used in recipes using iron ingots

#

but for now that looks right

worldly ingot
#

You can just call e.getInventory() and it will already be a CraftingInventory for you

rare flicker
#

oh