#help-development

1 messages Β· Page 290 of 1

buoyant viper
#

like id use it over html

gray merlin
#

Yeah, it's pretty good, also saw it from there

#

There's a lot of people backing it up now

#

However gradle still sucks

lavish hemlock
#

It's CSS + Emmet

buoyant viper
quiet ice
#

/etc/maven/settings.xml

gray merlin
buoyant viper
#

lool

quiet ice
#

If you are a windows users, idk where that setting is located at

gray merlin
#

this mod said it best

quiet ice
#

You'll want to remove

    <mirror>
      <id>maven-default-http-blocker</id>
      <mirrorOf>external:http:*</mirrorOf>
      <name>Pseudo repository to mirror external repositories initially using HTTP.</name>
      <url>http://0.0.0.0/</url>
      <blocked>true</blocked>
    </mirror>
#

Global maven config

#

For that PC that is

#

You most likely can use envvars, but don't quote me on that

#

I've always done it through /etc/maven/settings.xml

#

no idea if you can do that

buoyant viper
#

maven wrapper duke

lavish hemlock
quiet ice
lavish hemlock
#

Someone should not need an additional tool to download the "correct" version of a build tool

buoyant viper
#

i found out a few days ago

buoyant viper
quiet ice
#

With maven not at all

#

Perhaps gradle is how it is because of it's wrapper? Perhaps it's the other way around

tender shard
#

Is there a way to make maven ask for these "requiredProperty"s even though I gave a default value, when running it in interactive mode?

quiet ice
#

Never worked with archetypes myself

buoyant viper
#

actually using archetypes smh

lavish hemlock
#

If it were less broken then it'd be much better.

tender shard
#

how did you survive for 20+ years without using archetypes?

buoyant viper
#

well i only used maven for tops 6 months out of the 20 years

quiet ice
#

They are rarely exactly the same that it'd make sense to create one

tender shard
#

my problem is that it simply assumes the default values when I defined one, and only asks for properties I didnt include default options for

buoyant viper
#

personally i am a fan of starting from the ground up every time

tender shard
rough drift
buoyant viper
#

like project templates

tender shard
sonic goblet
#

Imagine giving into Big Archetypes

lavish hemlock
tender shard
#

(it's just a "beta thingy" yet)

#

but yeah I think it's kinda handy

rough drift
#

mc dev plugin

orchid gazelle
#

hi

tender shard
#

e.g. if you say "useNMS = true" then it automatically includes "spigot" instead of "spigot-api" and if on 1.17+, it also adds the whole remapping stuff, etc

buoyant viper
orchid gazelle
#

Somebody set my state to tired

tender shard
#

archetypes are awesome

orchid gazelle
#

So I can go sleep finally

tender shard
orchid gazelle
#

Ahhhh ok

quiet ice
tender shard
quiet ice
#

Ah

orchid gazelle
#

I gotta wake up in under 4.5 hours fuck this

tender shard
#

it works fine right now but it's still missing a ton of features

orchid gazelle
#

Vodka vodka

quiet ice
#

Also, I advise against calling it maven-spigot-plugin

orchid gazelle
#

tbh I find it easier to just create it from the ground everytime

tender shard
#

how would you call it?

#

maven-archetype-spigot-plugin

quiet ice
tender shard
#

archetype-spigot-plugin

quiet ice
#

spigot-plugin-archetype?

orchid gazelle
#

spigot-plugin

#

xD

tender shard
#

yeah "spigot-plugin" is the current name

#

maven-spigot-plugin is just the repo name

orchid gazelle
#

Whats the problem with it then

quiet ice
#

Because when I first looked earlier today at it I thought it was a maven plugin and though "neat, but what does it do?"

buoyant viper
#

spigot-plugin-archetype ezpz

orchid gazelle
#

Ah ok

tender shard
#

I mean it's kinda redundant to add archetype again

#

-DarchetypeArtifactId=spigot-plugin-archetype

#

that sounds weird to me

lavish hemlock
#

archetype-archetype :)

tender shard
#

that's what I used to create it, yes

buoyant viper
#

dont most of the maven archetypes suffix -archetype

tender shard
#

no

tender shard
lavish hemlock
#

archetype-archetype-archetype tho?

tender shard
#

well the official ones start with maven-archetype

buoyant viper
#

hmm

tender shard
#

that's why I originally called it "maven-archetype-spigot-plugin" or sth

#

because it's a maven archetype for spigot plugins

#

but yeah that's weird

#

it'll be either "spigot-plugin" or "archetype-spigot-plugin" or "spigot-plugin-archetype"

#

but as usual, I cannot decide and will probably just go for the shortest name - "spigot-plugin"

#

idk

#

it's your job to tell us what the problem is

#

and then we can see whether we can tell you how to fix it

#

but doing it the other way around makes little sense

#

btw I really hope that "getDataFile()" does not do any I/O

rough drift
#

can you compare blockA == blockB

tender shard
#

ofc you can

rough drift
#

FUCK

tender shard
#

what "lights up red"?

tender shard
#

it always returns a new BLock object

#

so ofc yo ushould use equals()

gray merlin
#

well I just spoke to ChatGPT and it is CREEPILY lifelike.

rough drift
tender shard
#

either that method does not exist, or your theme is really confusing. you should always use the default theme imho lol

#

does it complain when you compile? If so send the error message

#

did you actually declare any "getDataFile()" method?

#

in your main class?

#

If no, then obviously that's the problem

gray merlin
#

How do I add WorldGuard as a dependency for my project? I need to use stuff from within it

tender shard
#

or gradle?

#

or none?

gray merlin
#

ew gradle

#

ew none

#

maven ftw

lavish hemlock
#

FUCK GRADLE AND MAVEN

#

NONE FTW

gray merlin
#

fuck IDE's

lavish hemlock
#

I build my Java projects with Make only

gray merlin
#

notepad ftw

tender shard
#

as dependency

tender shard
#

group id: com.sk89q.worldedit

#

artifact id: worldedit-bukkit

#

version: 7.2.0

gray merlin
#

Right, I only know how to add stuff it if gives me the groupid and artifact name so yeah lol

#

oh

#

thank you

tender shard
#

then do the same for worldguard

gray merlin
tender shard
#

have you read this?

buoyant viper
#

EngineHub

#

is that like porn for mechanics

tender shard
#

no, there are garrysmod servers for that

buoyant viper
#

HUH

tender shard
#

wiremod

#

never heard of that?

sonic goblet
#

Where my DarkRP enjoyers at

gray merlin
#

oh my GOD i am blind

#

i'm so sorry

tender shard
#

I just always google "worldguard maven dependency" to find it

lavish hemlock
buoyant viper
#

no i dont really play games

tender shard
#

the ones without VAC

#

thank me later

lavish hemlock
#

what if I don't want to play Gmod

tender shard
#

then there's no mech pr0n for you

lavish hemlock
#

fuck

buoyant viper
gray merlin
tender shard
buoyant viper
#

i couldve sworn there was a regular emoji for that face but i cant find it

#

so when in doubt emoticons are ur friend

lavish hemlock
#

y'all seen this one yet

#

πŸ₯Ή

buoyant viper
#

sadly

lavish hemlock
#

the recent emojis are...

buoyant viper
#

i like πŸ₯Ί better

lavish hemlock
#

odd

buoyant viper
#

for a friend

tender shard
#

sure, just join the PH dc

buoyant viper
#

damn... invite?

tender shard
#

dm

buoyant viper
#

fuck you apple

lavish hemlock
#

apple more like

#

fuckers

tender shard
#

you must join using desktop

#

then you can use it from the phone

sonic goblet
#

Actually a good feature

lavish hemlock
#

but what do you mean

buoyant viper
tender shard
#

works fine from the phone, but joining is only possible on desktop

lavish hemlock
gray merlin
#

meow why

#

now I'm doing that too

#

ohhh meet the spyyyyy

lavish hemlock
#

PORNOGRAPHY STARRING YOUR MOTHER

cue bass-boosted laugh taunt

buoyant viper
#

its interesting that it's blocked since both discord and apple have my real birth date on file

#

and would both know im of age

lavish hemlock
#

well they don't give a shit they just don't allow 18+ content afaik

buoyant viper
#

yeah :(

sonic goblet
#

Chads

gray merlin
#

And it is right, I'm not 26, but it has no way of knowing >:(

lavish hemlock
#

are you sure

#

because you just told Discord, via using Discord, that you're underage

gray merlin
#

no, i am 78 trust

lavish hemlock
#

(Google also knows now)

#

(and so do Google's partners)

quiet ice
#

As long as you are not under 16 it should be fiiiiine

gray merlin
#

I am not under 16, no

quiet ice
#

Or as long as you live in the US and are not under 13

#

Though if you are in north korea and you are under 18 you'd be up to some trouble

echo basalt
#

how dwo you know what age discord thinks you are?

gray merlin
#

in everything

#

since I was like 7 lol

lavish hemlock
#

I just scroll until I get to 2000 or lower

echo basalt
#

I put my birthday, but in 2000

#

got like 3 months left until I can finally just put my real one

gray merlin
#

got 5

#

still waitin

echo basalt
#

mans 13

gray merlin
#

no 17-

#

for nsfw i mean oml

quiet ice
#

I always said that I was born in 2005 - outside of waaaay before where I wasn't able to do anything

#

Though I believe I did trol spigot a bit there

#

Think I am also born in 1996 there

echo basalt
#

I am actually a 2005 kid :/

gray merlin
#

2005 best year

echo basalt
#

me and kelpy have a lot more in common than I thought

#

same country, same age

quiet ice
#

It's really the last year where one can experience most of the nice things of old

gray merlin
#

Portugal?!

echo basalt
#

yas

gray merlin
#

PORTUGAL CRL

#

LETS GO

#

wait wa how do u know that

sonic goblet
#

He’s in your dry walls

gray merlin
#

mine are cement tho

quiet ice
echo basalt
#

yeh we don't use drywall here

echo basalt
sonic goblet
#

Oh mb US stay winning

gray merlin
lavish hemlock
echo basalt
#

full name, country

gray merlin
#

oh i see you're in rocket

#

was getting worried there for a sec

lavish hemlock
#

I am the only zoomer who has actually watched a VHS tape
Therefore I am the only zoomer who can appreciate the VHS aesthetic

echo basalt
#

I can try stalking you and I'll probably find your mom's facebook page

gray merlin
#

Most likely ngl

echo basalt
#

honestly yeah I can easily find your age online

#

you're careless

#

May 28, 2005 (Age: 17)

gray merlin
river oracle
#

I've tried

gray merlin
river oracle
#

good luck finding my portfolio

#

I don't have one

gray merlin
#

LOL

#

i see

#

nvm then xD

echo basalt
#

yeah you can't find me either

twin venture
#

Hello friends , anyone know why this dosen't work ?
iam loading the prestieges when server startup :

my problem is with load method specfficly the setPrestiege :
if anyone have anyidea on what can do this , it make a null profile after i leave & join .
when i remove the setprestiege from load method , it works without Prestiege in the system ..

'please don't tell me to upload the code on paste-bin or somthing.' ..
i have been stuck with this error for the last 2 hours .. i checked every peace of code in the plugin .. .

echo basalt
#

you can find my brother's linkedin

river oracle
#

which I wish she wouldn't post

twin venture
echo basalt
echo basalt
#

my bad

river oracle
#

lol

twin venture
#

its oky

#

could you take a look? i have been stuck at this for the last 2 hours , almost pulls my hair out of my head

tender shard
#

does anyone know how I can access java classes from within VTL in maven archetype templates?

echo basalt
twin venture
tender shard
#

πŸ˜„

twin venture
tender shard
#

the problem with archetypes is that they only either let you embed VTL into the files, or run a groovy script. both allow to access java classes but I hate groovy

twin venture
tender shard
#

I love // todo

#

I also do that all the time

#

// TODO: fix this

twin venture
#

yes me too , but never have the time to finish it xd

twin venture
tender shard
#

although usually noone answers in threads

twin venture
#

i just don't understand why its does not work as it should be .. 😦

tender shard
#

what exactly does not work as it should?

twin venture
tender shard
#

the two screenshots ,yes

twin venture
#

if you didn't understand the problem i will explain it ..

tender shard
#

wdym with "null profile"?

twin venture
#

so my problem come from this method :

tender shard
#

what is "profile"? Is that your own custom profile class, or are you talkin about the builtin PlayerProfile class?

twin venture
#

yes my custom profile

tender shard
#

oh then no clue. Indeed I would need the full code on github πŸ˜›

It's hard to troubleshoot problems with custom classes without having the full source code

twin venture
#

ok so when i get a new prestiege , log out to save it to sql , i login .
it stop working the load method dosenot work ..

#

this is how its saved in the json file :

tardy delta
#

footage of a programmer going crazy ^

twin venture
#

its oky , i will figure it out today or tomrrow .. its already 2 am ..

faint tide
#

Hi, I'm trying to access BLOCK_STATE_REGISTRY but I just came to find out this is deprecated from an older version of net.minecraft.block.Block but I can't seem to find the new implementation of this method, any one who knows?

tardy delta
#

sleep is for the weak

#

remember that

tardy delta
#

im going to bed

#

smh

tender shard
#

good night

faint tide
tender shard
chrome beacon
faint tide
tender shard
faint tide
chrome beacon
#

Why are you using state ids

tender shard
#

Or is it called "ClientboundAddEntityPacket"?

#

If you have classes like "PacketPlayOut..." you use spigot mappings. If you have classes like "Clientbound..." then you use mojang mappings

tender shard
faint tide
tender shard
#

that's good

chrome beacon
#

Ghost blocks can be done with the api

#

So just use that

tender shard
#

yeah you can just do Player#sendBlockChange or sth like that

faint tide
#

We want to change the chunk data tho and for that we need the state id

#

I*

vital yacht
#

You could also use a packet library like PacketEvents

faint tide
#

Example of the the state IDs, the states>ID is the one I'm trying to get

faint tide
chrome beacon
#

I'd use Protocollib since it's more commonly used and already installed on most servers

faint tide
#

I use protocollib 😊

#

But even with protocollib, the mapchunck packets aren't fully written out yet in their latest Dev version (1.19)

#

So I'm trying to get around that and thus found the BLOCK_STATE_REGISTRY wich offered a solution but is now sadly depricated and so I am trying to find its replacement

chrome beacon
faint tide
#

So yeah

chrome beacon
#

Hm never seen them before

#

Even when registering my own block states when modding

tranquil stump
#

How do I make my function show the outline of the schematic that is going to be pasted even if it's clipboard has a transform to rotate it?

hardy wren
#

hi, how to clear 1 specific item in 1

gray merlin
#

As far as I know, I have everything installed worldguard related, however, I can't access the WorldGuardPlugin class for some reason.

#

Help?

#

Yeah

#

The issue is there's none

#

yep

#

i'll do it again just incase

#

1s

#

Yeah i needed maven clean & install

#

Thanks! I'm stupid.

dense geyser
#

That's the plugin I was talking about

#

I linked my old message. Sorry for taking so long, I was a tad busy

gray merlin
#

Top one is "Commons"

#

So like, the Spigot-1.19.x module has commons as a dependency, and commons has worldedit and guard as a depdedency too, however, Spigot-1.19.x doesn't inherit those dependencies. How do I make it so without duplicating them?

#

I should mention that worldedit and worldguard are set as provided

dense geyser
#

Sorry, I don't understand

formal bear
#

How to handle updates, like changing the values in database, i need to use sockets or smh?

#

I meant more like chaning values via web like for ex luckperms

rotund ravine
#

When you are done doing stuff you run a command ingame which fetches the permission changes from the link you give it.

fallow violet
#

+1

formal bear
#

but it sends data to the server

#

so how to fetch it

#

i meant the spigot part

#

not webdev

#

i can handle it by myself

fallow violet
rotund ravine
#

I told you

#

The link you give it

#

Is an api call

#

Which quite literally gives the plugin anything it needs.

#

It’s get request

#

To send it uses a post request

#

All a webserver with an api

#

The plugin just uses a post and a get request

formal bear
#

go touch some grass

rotund ravine
#

@formal bear it’s 1 am

formal bear
#

I UNDERSTAND THE REST API PART

rotund ravine
#

Yeah? What’s the issue then

#

Get to retrieve from the server

#

Post to send to it

formal bear
rotund ravine
#

There many ways to use post and get webrequests with the web

#

It’s not spigot dependent

fallow violet
#

google how to do a request with java

#

damn it

#

?google

undone axleBOT
tall dragon
#

does any1 have any suggestions on how to setup a simple mission/achievement system. what would be a good way to abstract such a system?

fallow violet
#

just remove all mc achievments and create your own lol

tall dragon
#

naaaa i need my own system

fallow violet
#

sounds not that hard actually

#

what u wanna do with the system?

rotund ravine
# tall dragon does any1 have any suggestions on how to setup a simple mission/achievement syst...

Here’s a simplified version:

Here's one way you could set up a simple mission/achievement system in Java:

Create a Mission class that represents a single mission. This class could have fields for the mission's name, description, and whether or not it has been completed.
Create an Achievement class that represents a group of missions. This class could have a field for the name of the achievement, and a list of missions that belong to the achievement.
Create a MissionManager class that is responsible for managing the missions and achievements in the system. This class could have methods for adding new missions and achievements, marking missions as completed, and checking to see if all the missions in an achievement have been completed.

fallow violet
#

well you could do this lmao

tall dragon
#

where & how do you handle the completion

fallow violet
#

events

tall dragon
#

sure. but i probably have to create a good system to abstract that. i dont wanna create a random events everywhere

fallow violet
#

in the mission class you could create a listener

#

and register it

#

so you have custom listeners for each class

#

dunno if this is good

rotund ravine
tall dragon
#

ye and just pass that event to the missions?

rotund ravine
#

I mean sure, that is one way. You’d usually want to offload anything not a mission from a mission. Like why does the mission need to know anything other than if it is completed or how to complete it.

tall dragon
#

how do you store "how to complete it " tho

fallow violet
#

enums?

tall dragon
#

not sure what you mean by that

#

the way a mission can be completed can be vastly different for each mission

fallow violet
#

well

#

its a hard thing ngl

rotund ravine
tall dragon
#

sure. thank you.

misty current
#

how can I get the line number of a ConfigurationSection?

fallow violet
#

for what do u need the line number? :p

tall dragon
fallow violet
#

xd

ivory sleet
fallow violet
misty current
misty current
fallow violet
misty current
#

i was gonna do both

fallow violet
#

key is missing or invalid or something

fallow violet
rotund ravine
tall dragon
#

sure!

misty current
#

ehh it doesnt really matter

#

i'll just send the key and value+

fallow violet
#

alright

rotund ravine
tall dragon
#

thanks alot. i think i can make something work with this idea

tall dragon
#

does that assume every mission has a Material associated with it?

rotund ravine
#

Supposedly you'd also do some generic stuff with that

ionic thicket
#

why is my string from config.yml in [] in minecraft?

tall dragon
rotund ravine
ionic thicket
#

private Plugin plugin = PluginMain.getPlugin(PluginMain.class);

#

String messaggioKit = plugin.getConfig().getString("kitMessage");
sender.sendMessage(messaggioKit);

rotund ravine
#

And what do you mean it is i bracket?

ionic thicket
#

ill send a link to the screenshot

#

cuz i cant send images here

rotund ravine
#

yeye

rotund ravine
#

how is your config looking?

ionic thicket
#

do i have to translate into english or is it fine as it is?

#

its like 5 lines

#

#File di configurazione del plugin.

kitMessage:
- Ti Γ¨ stato dato il kit Starter.

rules:
- Non Grieffare

rotund ravine
#

That's a list my good man

ionic thicket
#

huh

#

so i have to write it inline?

#

without -

rotund ravine
#
kitMessage: Ti Γ¨ stato dato il kit Starter.
#

yeah

ionic thicket
#

ohh

#

thanks

rotund ravine
#

Might even want to throw some ' or " around it. Though it should be able to parse it without.

ionic thicket
#

wdym

fallow violet
#

like a string

#

with ' or "

ionic thicket
#

sorry, i dont get it

fallow violet
#

so the program can parse it right

#

message: "test"

#

message: test

ionic thicket
#

ohh

#

k

#

aaaaaaaaaa

#

still same

rotund ravine
#

Did you edit the config in the correct place and restart the server properly?

ionic thicket
#

used /reload

rotund ravine
#

and which config did you edit

ionic thicket
#

the only one

rotund ravine
#

where is that located

ionic thicket
#

src

fallow violet
#

you have to load it

#

before you can read it

ionic thicket
#

how sorry

#

i did "build project"

rotund ravine
fallow violet
#

do JavaPlugin#saveResource()

#

to copy it

ionic thicket
#

ahh

rotund ravine
fallow violet
ionic thicket
rotund ravine
#

I am going to bed, please tag knuffeliger, he seems to also know how to fix this issue. Though saving the config is not the issue for you atm.

tall dragon
#

@rotund ravine sorry for the ping. but shoulnt this be changed to generic type 'U' then?

fallow violet
ionic thicket
#

thank you

rotund ravine
#

Easy spot nice.

ionic thicket
#

?paste

undone axleBOT
tall dragon
# rotund ravine Yeah

yea then i think i understand what ur going for. thanks alot for typing that all out PES_ThumbsUp

rotund ravine
ionic thicket
tall dragon
ionic thicket
#

this is the class of the command

rotund ravine
tall dragon
#

since this is for a private server its fine if they are hardcoded btw.

rotund ravine
#

Then it’s probably fine.

tall dragon
#

yea its prolly not gonna be 200

#

just like maybe 30

rotund ravine
#

I just made some abstract stuff

tall dragon
#

how would you approach that if it were for 200 plus achievements tho

rotund ravine
#

@tall dragon Could have classes for each achievement that extends abstract achievement.

fallow violet
#

i meant with an enum the type of the mission to complete

#

like BREAK_BLOCK or PICKUP

rotund ravine
#

Well sortof

fallow violet
#

yes i just defend myself T^T

ionic thicket
fallow violet
ionic thicket
#

there is no error

fallow violet
#

wait

#

whats the problem lol

tall dragon
rotund ravine
ionic thicket
#

in my config the string is "abc" but in mc it shows up as [abc]

fallow violet
#

you have a list

#

just get the item with #getString();

#

and dont save it as list save it as string

#

thats how to save a string or a list

string: "test string"
list:
- element1
- element2
ionic thicket
#

it is saved as a string

#

#File di configurazione del plugin.

kitMessage: "Ti Γ¨ stato dato il kit Starter."

rules: "Non Grieffare"

fallow violet
#

alright

#

wwait a sec

#

try it again ig

fallow violet
#

u sure u updated the config?

ionic thicket
#

ye

#

there is only one

#

it doesnt need to be saved

#

i built it as always

fallow violet
#

okay so can u make a check if the returned object is a list or a string?

ionic thicket
#

like

#

gettype?

fallow violet
#

wait

#

?paste

undone axleBOT
fallow violet
#

well it doesnt make sense what im trying to do

ionic thicket
#

cuz it is yml to java?

fallow violet
#

nah

#

it should work actually

#

so are u 1000000% sure its a string in the config?

#

PLS HELP ME @rotund ravine

rotund ravine
#

@ionic thicket look in your plugins/ folder

rotund ravine
#

@ionic thicket That was from the source

#

What is in your plugins folder?

ionic thicket
#

well

fallow violet
#

damn

#

if its not changed i will scream

ionic thicket
#

go ahead then

fallow violet
#

fioua4erbnos78r5znu5b4e78iruzhgne5rlohg5u4eh

ionic thicket
#

why hasnt it changed when i built the project as it did the first time

fallow violet
#

bcs it doenst overwrite it

rotund ravine
#

@ionic thicket It does not override defaults after it has copied it once

ionic thicket
#

damn

#

sorry y'all

fallow violet
#

yeah you are 100% sure lmfao

ionic thicket
#

thank you

supple moth
#

hello, i have recently started to make a server and want to have multipule diffrint gamemods the first of witch being a csgo/ search and destroy plugin. dose anyone know a good one that has active devs that can help with issues

#

?

fallow violet
#

this channel is not made for this question ig

#

btw

#

?google

undone axleBOT
trim creek
frank kettle
fallow violet
frank kettle
#

Sure

#

You wanna fix my code as well or just my english?

#

πŸ₯Ί

fallow violet
#

i just wanted to say that the amount of servers are not relevant T^T

trim creek
#

Still matters.

fallow violet
frank kettle
#

Some plugins work as a one server only and maybe he wants a multi server way.

trim creek
#

If you have less than 100 players, you probably don't want to have 10 main lobbies.

fallow violet
#

just 1 or 2 more things but not that important

#

if u join a server with the plugin just start the lobby routine yk what i mean

supple moth
fallow violet
#

you can have multiple server on 1 root server => ip address

supple moth
#

oh i didnt know that can you send me a video on this? or how would i find my own video or articles on this?

fallow violet
#

just search for bungeecord

#

?google

undone axleBOT
supple moth
#

Bunge cord thank you

fallow violet
#

yw <3

golden turret
#

why my custom attributes are blue and red instead of green?

humble tulip
buoyant viper
#

-3.9 attack speed

#

jesus fuck

quaint mantle
#

Is there a reason Timings isn't working for me?

fierce whale
#

Does anyone know about ClassDefFoundErrer?
My code is complied Successfully but When I call Class in onEnable() it always throw errors

#

?img

undone axleBOT
sullen marlin
#

You probably didn't shade your dependencies

fierce whale
#

umm..

#

shade?

#

I've heard about that, but I don't know well 😦

#

How can I do that?

sullen marlin
#

Idk a good resource but if you just google the error with shade and spigot there's tonnes of threads

fierce whale
#

Okay let me find it thx πŸ™‚

daring elm
#

i need /hub (bungeecord 1.19.3, all Plugins Outdatet on spigot :/

sullen marlin
#

What do you mean outdated

#

Nothing has changed, slashserver from like 2013 would work completely fine

buoyant viper
jagged monolith
#

A lot of plugins work fine with updates, it really just depend what they touch.

crude charm
ocean hollow
#

How can I simulate block placing for worldguard?

#

I need to trigger the event somehow, using Player Interaction with Paper

sullen marlin
#

use the worldguard API?

#

you can call an event, eg Bukkit.getPluginManager.callEvent(new BlockPlaceEvent(...))) but its not supported API and may cause issues with other plugins

ocean hollow
#

okey, thanks

rotund ravine
delicate oak
#

Hey guys. Intellij IDEA can only do 1.15.2 version for Minecraft Developement plugin, how can I fix this?

#

uhm

#

There should be more versions here, and I can't find solutions on github.

sullen marlin
#

Im sure its not a big deal to just edit the version later

delicate oak
#

If I change the version in pom.xml, that should work?

remote swallow
#

yeah

delicate oak
#

Okay, thank you guys.

tardy delta
#

mc dev plugin πŸ’€

remote swallow
#

bypass minehut restrictions

jagged quail
#

At college rn

ocean hollow
jagged monolith
#

BlockPlaceEvent(Block placedBlock, BlockState replacedBlockState, Block placedAgainst, ItemStack itemInHand, Player thePlayer, boolean canBuild, EquipmentSlot hand)

tardy delta
#

check the javadocs

ocean hollow
#

oh, thanks

tardy delta
#

or let ij autocomplete it for you

rotund ravine
buoyant viper
remote swallow
#

they limit player count

#

i wonder if i could use this to change the motd while offline

ocean hollow
rotund ravine
#

If it’s false after it was disallowed

maiden thicket
#

u dont have to send playerinfo packet for adding an npc, right?

#

just add player packet only?

#

in 1.19.3

buoyant viper
#

my patch files will only work if u build a custom spigot jar and can then upload said jar to minehut btw

remote swallow
#

yeah i realised that as you sent them lol

buoyant viper
#

but i just got an idea for a plugin that should be able to do it with just bukkit events

remote swallow
#

luckily i can change the jar

buoyant viper
#

woo

maiden thicket
#

nvm

maiden thicket
#

how would i pathfind for an npc

chrome beacon
#

I would use the Citizens api

buoyant viper
#

@remote swallow 😎

remote swallow
#

lmfao

#

also why is vscode your default yaml editor

buoyant viper
#

its my default text editor

#

for like everything

remote swallow
#

why

chrome beacon
#

Why not

remote swallow
#

notepadd++

buoyant viper
#

i dont use np++

remote swallow
#

does vscode not use way more resources than npp

chrome beacon
#

Vscode uses a bit more resources but it's generally fine

buoyant viper
#

i have more than enough ram to handle editing a single file

maiden thicket
#

i use sublime text

chrome beacon
#

I also use VSCode as my text editor

remote swallow
#

what about 40

maiden thicket
#

trying to use chatgpt to implement pathfinding rn 😩

chrome beacon
#

When do you ever have 40 files open

remote swallow
#

when i forget to close them

buoyant viper
chrome beacon
remote swallow
#

and not realise npp has multiple open page tab thing

maiden thicket
buoyant viper
#

vsc usin like nothing rn

remote swallow
buoyant viper
#

damb

remote swallow
#

also

#

imagine using mc launche

buoyant viper
#

i dont like multimc

chrome beacon
remote swallow
#

or prism launcher

buoyant viper
#

i dont like multimc because of multimcs prime function

eternal oxide
#

I use MultiMC as the vanilla launcher broke long ago on my PC

buoyant viper
#

splitting up your installs

#

so by extension i dont like multimc-like apps

remote swallow
#

its good if you use mods and different versions

eternal oxide
#

for Devs it's great

buoyant viper
#

i play vanilla :v

remote swallow
#

the essential mod did bring this like functionality to the default launcher

buoyant viper
#

or well just performance mods

eternal oxide
#

multiple accounts at teh same time, easily

remote swallow
#

yeah

remote swallow
#

it would probably still break cross version though

#

because mojank

maiden thicket
#

A*

#

so i can implement it

eternal oxide
#

A* isn't so easy to implement in MC as it's 3d

remote swallow
#

look at citizens code

maiden thicket
#

true

obsidian drift
#

Is there a way to prevent falling blocks from being placed down when they land?

buoyant viper
chrome beacon
#

RedBlobGames has a lot of great guides

#

Highly recommend

fierce whale
#

Does anyone know about NoClassDefFoundError?
I didn't do anything but It occured when On Enable() called

#

?img

undone axleBOT
drowsy helm
#

show the error

buoyant viper
#

?paste

undone axleBOT
fierce whale
chrome beacon
#

Is that your class

fierce whale
drowsy helm
#

is SkillsManager part of your package?

buoyant viper
chrome beacon
fierce whale
#

Okay let me check

fierce whale
fierce whale
chrome beacon
#

That's normal

fierce whale
#

umm...

chrome beacon
#

Make sure the package is correct

fierce whale
#

What does mean package is corret?

chrome beacon
#

The package would be me.rukon0621.guardians.skills

#

Also

#

?main

chrome beacon
#

And classes should be PascalCased

fierce whale
#

sry but what is pascal cased?

chrome beacon
buoyant viper
#

?jd-s

undone axleBOT
alpine urchin
#

did you reload or something

fierce whale
opal juniper
alpine urchin
#

no

chrome beacon
#

CamelCase usually defaults to lower camel case

opal juniper
#

thats weird

alpine urchin
#

yes

opal juniper
#

they have big heads

alpine urchin
#

everything is open source if you can read assembly

opal juniper
#

see

chrome beacon
opal juniper
#

not this one

tardy delta
#

whos that

opal juniper
#

OMG IM IN LOVE

tardy delta
#

thicc

fallow violet
#

haha "fluffy" my name

buoyant viper
#

oh mojank, why did you ever move on from the old jar launcher

#

nothin

#

cant the old launcher not work with the new jsons

#

or are u using the non-microsoft store new launcher

#

yeah i think they had redone the jsons at some point and so the old launcher doesnt have the right object models for them

#

true

tardy delta
#

why

buoyant viper
#

i have a copy of the old .jar launcher, one day i might try and decompile it n then do some rev-eng to try and make it work again

#

i just miss the old launcher

tardy delta
buoyant viper
remote swallow
#

murder them

buoyant viper
#

true

remote swallow
#

when was that added

buoyant viper
#

aikar will be no longer

#

idk probably a forever ago

remote swallow
#

i wonder who you would have to remove from paper for it to die

buoyant viper
#

1.16 is the first time setMaxPlayers shows up in javadoc for paper

#

so i guess thats when

river oracle
#

Can still add it to spigot

buoyant viper
#

ye

river oracle
#

So long u don't copy papers code

remote swallow
#

what if paper thought the same way she did

river oracle
#

Very unlikely it's a line for line copy tho

remote swallow
#

true

river oracle
#

I never look at paper patches nd source for a reason

#

Did you pr them on stash?

buoyant viper
#

no:(

#

dont really want to make an account

remote swallow
#

why would you not want to make an account'

buoyant viper
#

i simply forfeit my patches to SpigotMC Pty. Ltd.

#

ezpz

buoyant viper
remote swallow
#

i can see not wanting to sign the cla but whats the problem with a jira account

remote swallow
#

its a google form

buoyant viper
#

true

#

i just dont like having to use my real name

#

well

#

my legal name

remote swallow
#

fair

#

im pretty sure its only md that may see it

#

i may be wrong though

buoyant viper
#

doesnt it say like ur real name will be visible somewhere

#

?contributing

#

?contribute

#

wasnt there a comamn for this

remote swallow
#

if you sign up on jira with it yes

remote swallow
#

bots just slow

buoyant viper
#

o

remote swallow
#

you can sign up on jira with any name

#

only the cla has to be accurate for name ithik

buoyant viper
#

what the fuck does this say

remote swallow
#

inlernly

austere cove
#

maybe you are a robot

remote swallow
#

can you read what that says

buoyant viper
remote swallow
#

that sounds like something a human would say

river oracle
#

You are a robot

remote swallow
#

yeah probably

#

i dont do captcha

#

i make a bot do it

analog vapor
#

Anyone can check this out?
https://github.com/TechFortress/GriefPrevention/issues/1794

So Since the server got upgraded to 1.18.2 most of the features just broke...

Q] Do you know what changed in Plugin Configs from 1.12 to 1.18 that led to quite a lot plugins starting to break

GitHub

Observed Behavior When using /siege, "BreakableBlocks" do not work at all. Expected Behavior To be able to break soft blocks when you siege someone. Reproduction steps Enable sieg...

buoyant viper
#

submitted CLA now we wait for Stash account πŸ™

remote swallow
#

hope you dont have to wait 4 days with no response

#

then have to email md

buoyant viper
#

i just hope i got the right email

#

i have like 10 different ones

remote swallow
#

wot

#

how

#

it took mine 4 days and an email to support

#

which seems to just be md

buoyant viper
#

Choco can probably-- yeah

tender shard
#

is there a way to make maven ask about requiredProperties during mvn archetype:generate even when they have a default value?

buoyant viper
#

?google

undone axleBOT
buoyant viper
#

Smh

twilit roost
#

why does this cause Hopper to break itself?

tender shard
#

wdym with "break itself"?

twilit roost
buoyant viper
#

it may just not be possible at all

analog vapor
#

Btw @remote swallow, Did you start coding Java and Spigot together?

twilit roost
tender shard
#

that's a pity

#

although that issue is 14 years old

#

might have changed meanwhile πŸ˜„

remote swallow
#

it was a bad idea

analog vapor
tender shard
#

@buoyant viper I think I found a way using archetype.properties

#

oh no

remote swallow
tender shard
#

that won't work

remote swallow
#

i was just copying code and googling everything

#

not understanding it

analog vapor
#

How good do you need to understand Java to actually code properly

remote swallow
#

it depends

analog vapor
#

though, can you help me with my question, im lost for hours lmao

delicate oak
#

Hey guys.

tender shard
#

let's just hope that this works lmao

delicate oak
#

I am trying to develop a command plugin.
I am trying to make a similar command to /me
It's called /try
for example:
/try hit someone
and a random decides if it was successful or not.
My problem is, I do not know how can I make a similar thing like Convert.ToInt32(Console.WriteLine()) thing in minecraft chat method.

#

edit: /try <text> <--- i dont know how can i make an input for the text.

tender shard
#

what is that Convert.ToInt32 thing supposed to do? o0

buoyant viper
#

C# methods

tender shard
remote swallow
#

a decent random way is use thread local random to gen an int between 1-100

delicate oak
remote swallow
#

if its greater or less than your percent amount run code

tender shard
#

for example:
/try my name is jeff
in onCommand, args[0] will by "my", args[1] will be "name", etc

#

if that's what you mean

remote swallow
delicate oak
#

I think yes.

#

Thank you bro!

tender shard
#

np

analog vapor
tender shard
#

if you need it as full string, you can String.join it

remote swallow
tender shard
#

e.g.
String.join(" ", args) will be "my name is jeff"

analog vapor
#

let me see

buoyant viper
analog vapor
buoyant viper
#

i almost exclusively use int.TryParse in c# and couldve sworn WriteLine is just a void so i am Confused

delicate oak
tender shard
remote swallow
#

lul

tardy delta
#

my server

delicate oak
remote swallow
#

yeah

tender shard
delicate oak
#

where should I put String.join(" ",args) ?

remote swallow
remote swallow
#

alex is probably writing something

tender shard
delicate oak
#

after /try <args>.
I mean, I don't know exactly how the syntax looks. What is the order of putting things, etc.

tender shard
#

example

#
    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        String text = String.join(" ", args);
        sender.sendMessage("You wrote the following text: " + text);
        return true;
    }
delicate oak
#

Ah!

#

Thank you so much @tender shard.

analog vapor
tender shard
hybrid spoke
#

without looking at it: might be the changes done to Material

remote swallow
# analog vapor Im bad at understanding, could you detail it a little πŸ˜…

the way that plugin is coded is just insanely poor its very hard to find whats needed so ive got no idea what would have changed in it, easiest way i can say to fix your issues would be is to regenerate the config from new. save the config you want to use then delete the one on the server that has the plugin installed then restart the server to force the plugin to remake its config

#

then copy the settings from the old config to new

#

following format

analog vapor
remote swallow
#

if you only delete config.yml no

#

if its stored in an external db you would need to put the info in again

delicate oak
# tender shard np!

So I tried it, but it just returns an emptiness.
What I need
/try <text>
Output:
*Name has tried to hit someone and it was successful/ it was not successful.
The thing is, I do not know how to put together the command with the String text, and make it look like the /me command in the vanilla mc.
I can't even find the /me command source code so idk what to do.

tender shard
#

I don't really understand the question I guess

#

wdym "it just returns an emptiness"

delicate oak
#

The pic.

tender shard
#

what's your code

delicate oak
rotund ravine
#

That won’t run

primal goblet
#

Hey, i'm making invisible armorstand every 1 tick change the head direction to the right.
and i recognize that my server is laggy every like 2 mins is that from the 1 tick runnables?

tender shard
#

it will never be that

#

also comparing the command name is useless anyway

#

just delete the if(...) part, it's completely useless and just plain wrong

#

the command name will always be exactly "try" and nothing else

vale ember
#

is there a way to execute a code on plugin disable from outside of the main class without it's onDisable method?

delicate oak
#

Here is the /me

humble tulip
vale ember
humble tulip
#

Not sure

#

Wait

#

What are you trying to do?

vale ember
#

I need to execute shutdown code of a bunch of objects which i do not currently register anywhere, and i wanna avoid doing that

tender shard
#

well it is called, but your listener won't know it

humble tulip
#

What do you mean by you don't register them anywhere

vale ember
#

i just create an instance with new and don't store anywhere

humble tulip
#

Uhhh

primal goblet
humble tulip
#

Not even in the class you created it in?

#

If you need to cleanup something later, you should store some reference to it

delicate oak
primal goblet
#

Hey, i'm making invisible armorstand every 1 tick change the head direction to the right.
and i recognize that my server is laggy every like 2 mins is that from the 1 tick runnables?

tender shard
#

no

flat moss
#

@fossil pike

fossil pike
#

tyvm

fiery prairie
#

how would i check what item is consumed in playeritemconsumeevent?

#

cause i havent coded in a few months and cant do the basics

flat moss
fiery prairie
#

Yea getItem but more like what do I put inside the () cause I tried a lot of ways with ItemStack(Material.Whatever) but didnt work

rotund ravine
#

@fiery prairie just getItem()

fiery prairie
#

Im using an if statement, sorry for the lack of details

flat moss
#
            
        }```
rotund ravine
#

That will always be false

eternal oxide
#

getType() == Material.

queen pulsar
#

I'm in the process of learning java and I now search a tutorial to learn how to use spigot to create plugin. Can someone send me a good, complete, well explained tutorial ?

fiery prairie
fiery prairie