#help-development

1 messages ยท Page 1516 of 1

foggy bough
#

anyone know what happened? Could not load 'plugins\SuperPowers.jar' in folder 'plugins' org.bukkit.plugin.InvalidDescriptionException: commands are of wrong type at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:1038) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:252) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:165) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:144) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.java:383) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:185) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:809) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$0(MinecraftServer.java:164) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_291] Caused by: java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Map at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:1020) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] ... 8 more I think I did everything correctly on my plugin.yml

foggy bough
hexed hatch
#

No capitals are permitted I believe

eternal oxide
#

That is where you need to google as its not a simple answer

#

Serialising an object depends on what the object contains

foggy bough
hexed hatch
#

Yeah, I think thatโ€™s your issue

foggy bough
#

ok

floral flare
#

How can I remove all the effects from a player?

opal juniper
#

if i want to sys out to console without the plugin prefix, should i do exactly that and not use the logger but instead just use sysout?

eternal oxide
#

yes

opal juniper
#

ok

lunar schooner
#

How about Bukkit.getLogger()?

#

never tried that one, but I image it would return a generic logger

opal juniper
#

True

#

I mean - the logger offers no real advantage to me

lunar schooner
#

rather than JavaPlugin#getLogger() which returns a plugin specific one

opal juniper
#

i just need to print info to console

lunar schooner
#

sysout should work then, yup

#

doesn't matter how you're shouting it to stdout, itll get there ๐Ÿ™‚

#

Proof of this would be that Rust's println! macro works just fine ๐Ÿ˜„

sage swift
#

to print info to console you should use Bukkit.shutdown()

opal juniper
#

whoops, my bad

#

wait how come it takes no String args

#

i need to print this goddam it

lunar schooner
opal juniper
#

nah i was talking to gecko

#

๐Ÿ˜„

sage swift
#

Bukkit.shutdown will automatically find the last string in the code

opal juniper
#

Yeah i guess Blinky

#

what are you serialising

#

then yeah

#

just save it as a map and then deserialise it by just passing it thru the constructor

sage swift
#

cereal lies a ball

opal juniper
#

Someone make a sphere in minecraft

sage depot
#

how do i turn my spigot server into bungeecord server

opal juniper
#

Spigot.yml bungeecord -> true
server.properties -> Offline mode.
server.properties -> Set a port

Then make a bungeecord proxy and add the server to the config

sage depot
#

ok

#

what the fuck

opal juniper
#

what is that ^^

#

looks like compiled code

lunar schooner
sage depot
#

spigot

thorny siren
#

Activate Windows bro

sage swift
#

Bukkit -> .shutdown()

lunar schooner
#

You need a java decompiler to read spigot's source from the jar

opal juniper
lunar schooner
#

I'd recommend JD-gui

sage depot
sage depot
opal juniper
lunar schooner
#

both work

opal juniper
sage depot
#

then wot

opal juniper
#

These two files

#

not the .jar

sage depot
#

ok

thorny siren
#

Or Ghidra

thorny siren
#

lol what?

opal juniper
#

nah thats the decomp that i often see like security testers use

thorny siren
#

Yeah, I mean it was built by the NSA, it's got loads of features, it's pretty sweet

sage depot
#

I JUST REALISED

opal juniper
#

I mean - most people when they ask for a depcompiler it is because they want to steal some1s code

sage depot
#

THERE SUS

#

sus

opal juniper
#

sh-s

sage depot
#

def not h

opal juniper
#

but whatever

sage depot
#

is hypixel bungeecord server

thorny siren
opal juniper
#

its the same concept

lunar schooner
sage depot
#

ok

opal juniper
#

however they have their own performant server jars

opal juniper
#

If anyone here works for hypixel send me your server jar please

#

i would like to have a looky in its head

#

you know - what makes it tick

#

(pun intended)

maiden briar
#

<scope>compile</scope> but Maven does not add the classes to the jar?

opal juniper
#

Do you have your compiler goals set?

maiden briar
#

How to fix that?

opal juniper
#

?paste send ur pom

undone axleBOT
hexed hatch
opal juniper
maiden briar
hexed hatch
opal juniper
#

Yeah you have no compiler plugin

wet breach
# opal juniper You reckon?

hypixel uses custom server jars and odds are even if they give you the jar you still probably couldn't run it without other related stuff.

maiden briar
opal juniper
#
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.2.4</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <minimizeJar>true</minimizeJar>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>11</source>
                    <target>11</target>
                </configuration>
            </plugin>
        </plugins>
    </build>

something like this at the bottom so that you can run maven package

maiden briar
#

Ok

tardy delta
#

what do you mean this gives an error out of bounds

Inventory inv = Bukkit.createInventory(null, 9, ChatColor.GOLD + "" + ChatColor.BOLD+ "Trails"); //this line

inv.setItem(9, item);
wet breach
#

<minimizeJar>true</minimizeJar> might want to remove this, some libs don't work if they are missing class files

opal juniper
opal juniper
#

^^

tardy delta
#

oh

#

stupid mistake i wasnt sure of the index numbers

wet breach
sage swift
#

slimy world mmm

opal juniper
#

Yeah - I know that they run 1.8 and to just handle that volume of players there is some pretty hefty logic / proxy servers

eternal oxide
#

pretty sure they are on 1.12 now

opal juniper
#

Also - I imagine there are a lot of boxes whose job is purely to spin up/ close minigame servers

sage swift
#

what

opal juniper
#

Huh! i didn't know that

sage swift
#

no

#

they just made a thing for 1.12+ bedwars where the beds would color based on the team

#

the actual server software is still 1.8 I'm pretty sure

opal juniper
#

I mean - it seems easier to just support newer protocols than older & newer protocols

eternal oxide
#

This gets discussed in here a lot, I'm pretty certain those in the know always come down that they are 1.12 now

opal juniper
#

๐Ÿคท

#

No - one actually knows apart from hypixel

#

(the team)

eternal oxide
#

I could be wrong as I'm only repeating what many say.

wet breach
#

What they do is just implement the protocol of the versions they want, and then add stuff in they need/use

opal juniper
#

it could be either way

wet breach
#

well there was at one point someone from hypixel that answered a lot of questions in how they have everything setup. They didn't get into specifics

opal juniper
#

i would look it up but their forums are down

#

Wait - all of hypixel is down

#

lmao

pulsar zenith
#

yea ddosed

opal juniper
#

some people have no life

#

whats the point

lean gull
#

i'm trying to make a for loop that spawns a particle every tick for a second, but for that i need to wait a tick before spawning the particle again. i have already made the for loop and the spawn particle but i have no clue how to make it wait a tick before starting again, does anyone have an idea?
i tried making it with this (https://bukkit.fandom.com/wiki/Scheduler_Programming) but it did not work, or i was just doing it incorrectly (the more likely option).

opal juniper
#

You should just the scheduler

#

So - have it so it repeats

#

every tick

weary geyser
#

Bukkit.getScheduler().scheduleAsyncRepeatingTask

opal juniper
#

but then increment a counter

#

so when it gets to 20

#

cancel the task

lean gull
opal juniper
#

Have you ever touched the scheduler?

lean gull
#

do you have an article explaining it or smth?

lean gull
opal juniper
#

Well - obviously we cannot use thread.sleep() on the main thread

#

cause that sleeps the whole server

eternal oxide
#

The wiki article you linked explains every aspect of the Scheduler. You need to read it and learn.

lean gull
#

what's a thread

opal juniper
#

I think that you need to spend some more time on google

lean gull
#

google isn't reliable

#

actually nor are people but still

opal juniper
lean gull
#

my english is not the best so i can't even understand explanations like these

eternal oxide
#

You use and understand contractions so your English is fine.

opal juniper
#

so this diagram executes en then fi then es

#

but it is in order

lean gull
#

so why do we need order in making a wait thingie?

opal juniper
#

the minecraft server runs the server stuff in the same 'Thread' as all the plugin stuff

lean gull
#

wat dat mean

opal juniper
#

so if you use Thread#Sleep it sleeps the same thread that the vital server stuff is on

lean gull
#

i don't understand

#

btw what's the difference between # and .

opal juniper
#

nothing

#

it means method under

#

or something

quaint mantle
#
class MyObject {
    private val name // error
    
    constructor(name: String) {
        this.name = name
    }
}
lean gull
#

a member

#

what's a val

opal juniper
#

that is Kotlin?

weary geyser
#

that isn't java

opal juniper
#

or something like that

quaint mantle
weary geyser
#

@quaint mantle How did you get the discord helper role

lean gull
#

idk what u just said

weary geyser
#

How?

opal juniper
#

it was a form

quaint mantle
weary geyser
#

Thanks

#

Is it over?

opal juniper
#

yeah i think so

lean gull
#

i mean i know skript

quaint mantle
#

yikes

weary geyser
#

damn

opal juniper
#

oh no

weary geyser
#

you came from skript...

opal juniper
#

maybe ummm,

#

?learnjava

undone axleBOT
weary geyser
lean gull
#

say learn java one more time and i will block you like i blocked about 5 other people in this server alone

#

i swear to god

weary geyser
#

bruh ๐Ÿ˜†

#

you won't be a good dev

lean gull
#

i'm tired of people saying i'm not trying

opal juniper
#

Im sorry - do you do comp sci?

eternal oxide
#

Welcome to the club Jeff ๐Ÿ™‚

ivory sleet
lean gull
#

blocked

quaint mantle
#

they are telling you to learn java to help you

opal juniper
weary geyser
#

LMFAO

eternal oxide
#

He has about 5 or 6 of us blocked for trying to help him now ๐Ÿ™‚

weary geyser
#

Bruh you will not get far in coding if you litterially BLOCK the people that are trying to help you

opal juniper
#

yep

ivory sleet
#

Floofsy with the block button smiling_face_with_3_tears

weary geyser
#

It's sad

lean gull
#

i am learning java

weary geyser
#

These 9yo's trying to be programmers

quaint mantle
#

conclure you know kotlin right

opal juniper
#

can some one ask him

do you do comp sci?

lean gull
#

Conclure also blocked

eternal oxide
#

and NNYa

weary geyser
opal juniper
#

lmao

#

why NNYa

eternal oxide
#

and me ๐Ÿ™‚

opal juniper
#

jheez

lean gull
#

can someone actually help me without saying i'm gay / telling me to learn java

opal juniper
#

like everyone active

weary geyser
#

You will get no help

#

From this point

#

You refuse to do what we're telling you

eternal oxide
#

I still answer his questions, just so he gets that notification that someone he blocked replied ๐Ÿ™‚

weary geyser
#

Smh

opal juniper
weary geyser
#

@lean gull You cannot code in a programming language that YOU DON'T KNOW

lean gull
#

jeff getting blocked too

eternal oxide
#

lol

opal juniper
#

i thought i was?

weary geyser
#

lmao

opal juniper
#

lmao

weary geyser
#

bro noone cares if you block us

lean gull
#

sysdm last man standing, barely

opal juniper
#

can someone get rid of this dude please

weary geyser
#

Can you tag mods

eternal oxide
#

He's goign to hear an echo in this channel soon. That and tumble weeds

quaint mantle
#

sysdm tell him to leave and go learn java, nobody is gonna help him

lean gull
#

brb reporting conclure

weary geyser
#

Am I allowed to tag steel

#

WTF

#

HAHA

quaint mantle
#

?kick @lean gull

undone axleBOT
#

Done. That felt good.

opal juniper
#

nice

quaint mantle
#

like jesus

slim kernel
#

I did this:
https://gist.github.com/ItzJustNico/6ed10c75676e36cf0e05a1e453f0d5d5
But I get an Error in the Console and its taking really long til it is finished going through the while loops. What did I do wrong? Or how can I make it faster, I want it to be instant. Or is there a faster/better method?
Error:
https://gist.github.com/ItzJustNico/89586d6028d638c3c1680e1b12012e19

Gist

GitHub Gist: instantly share code, notes, and snippets.

Gist

GitHub Gist: instantly share code, notes, and snippets.

steep nova
#

lol

quaint mantle
#

those are some big embeds

eternal oxide
#

Myself and NNYa spent near a full day teaching him what a Hard Disc, memory and file access was.

weary geyser
quaint mantle
opal juniper
#

he is 100% gonna join back being like
'WTF why you kick me i was just learning'

quaint mantle
#

just not channel settings

eternal oxide
#

Then teaching him how to use spigots config he blocked us both for telling him to read the tutorial.

weary geyser
quaint mantle
#

ye

quaint mantle
#

you are comparing objects

opal juniper
#

i mean - if you don't want to be told to learn java at least sound like you know what you are talking about

#

yeah what imagine said

quaint mantle
#
!startBlock.getLocation().add(vector).getBlock().getLocation().equals(targetDownBlock.getLocation())
#

thats a long line of code

eternal oxide
#

You don;t need to getBlock then getLocation, after adding the Vector you have the location

quaint mantle
#
Block block = (Block) startBlock.getLocation().add(vector).getBlock();

redundant cast

weary geyser
#

Someone wanna vouch for me on the application ๐Ÿ˜

quaint mantle
#

you barely speak

opal juniper
#

im pretty certain they are closed and yes

#

you aren't that active

weary geyser
#

nah

#

I was before tho

#

Not anymore

#

IRL stuff

opal juniper
#

IRL ?

weary geyser
#

Well that isn't going to work out then haha

opal juniper
#

oh i get ya

opal juniper
#

but you did just say you aren't active

Not anymore

#

sooooo... shot urself in the foot a bit

weary geyser
#

yes i did haha

#

but they are closed anyways

formal dome
formal dome
#

im getting some unresolveable errors and im wondering if the library was changed

#

oh ok

weary geyser
#

wait, how did Adelemphii#6213 get the helper role? She/he only spoke like once a month

quaint mantle
#

show errors if you need help

formal dome
#

?paste

undone axleBOT
quaint mantle
eternal oxide
quaint mantle
#

they're usually in general

eternal oxide
#

The rest was inane spam.

burnt current
#

Hey, does anyone know the best way to query item display names in the 1.16.5 Spigot version?

hybrid spoke
opal juniper
#

ehh

#

kinda

#

idk

hybrid spoke
#

nope

formal dome
weary geyser
#

but it is a helper role

opal juniper
#

they moderate general

weary geyser
#

ah

opal juniper
#

lets put it like that

#

Who else remembers when 7Smile7 was active in here 24/7

weary geyser
#

me

#

He helped me out alot

opal juniper
#

same

weary geyser
#

With MongoDB stuff

#

He was a god

formal dome
#

for example import org.bukkit.EventHandler is undefined but i know my ide is fine because org.bukkit.Bukkit is defined

#

i know its recognizing some of the api

weary geyser
#

What IDE are you using

eternal oxide
#

He's still about., Just goes in phases.

formal dome
#

vscode

weary geyser
#

^ There is plugins for that that sets everything up for you

#

Like the project

formal dome
#

alright give in. ima use intellij

opal juniper
#

Do you have a minecraft server ElgarL or just plugins

quaint mantle
#

So i wanna make a thing where if u craft it doesnt cancel
so it still removes the materials
but makes the result when you crafted it
dissapear
i tried setting the type to air
but that dont work

onyx fjord
#

Sorry for posting that on 2 channels, but i have no idea which category it applies to

should i use openj9 or hotspot, and what is the difference

slim kernel
eternal oxide
opal juniper
#

fair

weary geyser
#

Damn, I'm having a real hard time finding devs to help me with the server that I'm working on. And the spigot forums isn't working

opal juniper
#

i think NNYa said once that he has a server

#

idrk tho

wispy fossil
#

he should really get a name that isnt a jumble of letters

eternal oxide
#

I've run servers before but theres only so much you can do in MC

opal juniper
#

i find it funny toh

#

Yeh

onyx fjord
slim kernel
weary geyser
eternal oxide
opal juniper
opal juniper
wispy fossil
opal juniper
#

it wasn't cyclone mc facepalm

#

argh i forget the ip tho

#

smh

opal juniper
#

get the item meta

#

and then the display name

#

Then - if there is a chatcolour to the name you can use like ChatColour stripColour iirc

formal dome
#

intellij really requires ur to purchase a license

formal dome
#

idk im getting prompts to put a license in

slim kernel
quaint mantle
#

yes

formal dome
slim kernel
#

oh ๐Ÿ˜ฆ haha

onyx fjord
#

only ultimate does

steep nova
onyx fjord
#

tho you can get it for free if you go to school

formal dome
#

oh the snap mustve given me the ultimate

quaint mantle
eternal oxide
#

Eclipse is free

formal dome
slim kernel
formal dome
slim kernel
#

hmm sad

formal dome
#

how do i set up class path in intellij so i use the api

formal dome
slim kernel
#

okayy

steep nova
formal dome
proud basin
#

I feel like storing kills and deaths in config.yml wouldn't efficient at all

burnt current
ivory sleet
#

Shit I just saw that my autocorrect corrected floofsy to flo gay, floofsy if you see this I didnโ€™t mean to call you like that my apologies:(

slim kernel
eternal oxide
#

He has you blocked too Conclure ๐Ÿ™‚

formal dome
eternal oxide
#

If thats even possible with your role.

ivory sleet
#

Oh damn

slim kernel
formal dome
#

thats when ur trying to compile?

lusty cipher
#

what's vector?

slim kernel
#

wait a second

quaint mantle
#

Hey, what's the correct way to check if a block is a slab in 1.17?

#

And do the double slabs still exist?

visual tide
#

do i just change the dependency version in my pom if i want to make a 1.8 plugin? since intellij's dropdown menu gives me 1.12 as the lowest i can do

slim kernel
lusty cipher
#

yes I know

wraith rapids
#

hah

#

justice

#

@quaint mantle good job

#

you deserve a cookie

#

i would give you one, but I only have ash and coal

formal dome
#

whyd id floofsy get kicked

weary geyser
#

he was cocky

formal dome
#

ah

wraith rapids
#

cause he's a dumb numbnut who was probably a troll

formal dome
#

understood

weary geyser
#

and didn't want to learn java and blocked those who told him to learn java

wraith rapids
#

he'd ask dumb questions, get passable answers, say "idk what you're saying" to anything you said, and when you told him to learn the java basics by linking him to a guide, he'd refuse to read the guide

#

and then block you because you weren't helpful

formal dome
#

no good

#

what class would block water be a part of

twin venture
#

so , iam trying to code with [nms , protocols] i guess so when player join it will send him a packet that show his skin on this npc ..

#

if i joined : muntder_iq it will show my skin

#

if player name : Optic_Fusion1 join

#

it will show his skin

lofty junco
#

hello does anyone know how to translate item in the inventory

wraith rapids
#

define translate

hexed hatch
twin venture
lofty junco
wraith rapids
#

that will be quite difficult

weary geyser
lofty junco
#

hmmm do you have an idea ?

wraith rapids
#

you would have to 1 determine the user's language, 2 determine the language the item was written in, 3 use a third party translation api like google translate to translate it with, 4 send the translated data to that player

wraith rapids
#

no matter how you go about it, you will need an api key from a translator service like google translate

#

and the associated logic will be quite heavy

lofty junco
wraith rapids
#

then you're fucked

hexed hatch
#

But if this is for specific strings, localized name with a resource pack would be the best way to go about this

lofty junco
hexed hatch
#

If you arenโ€™t translating just any input and instead static text, I would look in to the resource pack solution

#

Itโ€™s going to be Hell doing it any other way

twin venture
#

why no one answering me ..

wraith rapids
#

because nobody knows

visual tide
#

does anyone know a way to get a players non-afk playtime?

wraith rapids
#

skins are cancer to work with

#

the server does not differentiate betweeen afk and non afk playtime

#

you will have to track the afk playtime yourself

hexed hatch
visual tide
#

yeah i mean an api or similar

hexed hatch
#

I mean it probably wouldnโ€™t take much work to write this yourself, but I donโ€™t know of any apis

hushed spindle
#

not sure if this is the right place to ask a question like this but eh

does anyone have experience with custom texture packs like im just trying to get an item retextured to something else based on custom model data and its not finding my custom texture

#
{
    "parent": "item/generated",
    "textures": {
        "layer0": "item/iron_ingot"
    },
    
    "overrides": [
        {"predicate": {"custom_model_data":1}, "model": "item/cool_ingot"}
    ]
}
#

if i replace cool_ingot with some vanilla texture it shows it just fine but any custom texture i place there it shows as a black and purple box
i placed the png texture everywhere in the resource pack but it just cant see it

hushed spindle
#

yeah is there any other place for resource pack help

#

i didnt see any so i just posted it here

twin venture
#

already did and no one answering ..

wraith rapids
#

like i said no one is answering because noone knows the answer

#

skins are cancer to work with

quaint mantle
formal dome
#

any classes that help define properities of a block

#

i wanna change the physics of a block

hushed spindle
#

yes

mortal hare
#

lemme find my own custom resource pack to see

#

why its not working

hushed spindle
#

ive got a couple other resource pack as reference and i really dont get why they work and this doesnt

mortal hare
#

guys can you believe, i bought real red switch mechanical keyboard for only 20 bucks lol

#

best purchase ever

hushed spindle
#

i mimic the structure too and everything and it just doesnt seem to find my custom texture

mortal hare
#

with rgb and everythin

#

it feels so good to type

#

ngl

#

umm

#

i wiped out the resource pack

#

fuck

#

there's info on minecraft wiki

#

about predicates

wraith rapids
#

i still use an IBM model m

#

well, on my secondary machine anyway

#

primary is a laptop so no need for an external keyboard

mortal hare
#

it feels like a typewriter

#

so satisfying

#

sorry can't help, i wiped out the resource pack which i was developing months ago

wraith rapids
#

myes, the clickety clickety is so that you actually know whether you fully depressed the key or not

#

it's crucial when 10 fingerbanging your keyboard without looking at it

hushed spindle
#

i got no clue what i did wrong but i just copy pasted a different resource pack and renamed everything and now it works

#

just using a reference resource pack in the future i guess

mortal hare
formal dome
#

anyone know how to change the properties of water

#

or any specific block

hushed spindle
#

You could listen to a BlockPhysicsEvent and change the outcome of those events

#

cant tell how successful that would be though because changing the physics of a block itself is most efficiently done through modding

formal dome
#

i thought the org.bukkit api was for modding

#

or am i gonna have to use something ilke forge

mortal hare
#

API is api

#

its designed for usage

wraith rapids
#

it's not for modding, no

#

it's for plugins

mortal hare
#

well tehnically plugins are mods

formal dome
wraith rapids
#

server-side exclusive mods, in some sense

mortal hare
#

limited "mods"

wraith rapids
#

but, very limited

maiden briar
#
[INFO] 
[INFO] -----------------< com.manhuntmc.dogleader:DogLeader >------------------
[INFO] Building DogLeader 1.16.5
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ DogLeader ---
[INFO] Deleting C:\Users\<>\IdeaProjects\DogLeader\target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ DogLeader ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ DogLeader ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 13 source files to C:\Users\<>\IdeaProjects\DogLeader\target\classes

File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! and as error Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project DogLeader: Fatal error compiling

Pom: https://paste.md-5.net/ejutogipuz.xml

wraith rapids
#

unlike a mod that actually modifies the server, like craftbukkit or spigot or whatever, a plugin only plugs into an existing interface

#

namely the bukkit api

formal dome
#

ok, i'll look into a diff api

#

spigots not anti mod or something is it?

mortal hare
#

Spigot API is Forge but for server side mods

#

without any rendering support since its a server side modding

formal dome
#

oh okay

#

looks like forge hasn't come out with a 1.17 version yet

wraith rapids
#

look who's back

#

@quaint mantle your services may be required again soon

eternal night
#

lol

quaint mantle
#

๐Ÿ˜ณ

lean gull
#

anyone know why this isn't doing anything?
if (event.getCurrentItem() == WaterTNTItem) {
it's in a CraftItemEvent, WaterTNTItem is an item that is also the result of the custom recipe i made, so it should work

quaint mantle
#

?learnjava

undone axleBOT
wispy fossil
#

wow

eternal night
#

Please compare objects with .equals

wispy fossil
#

how helpful

wraith rapids
#

== is reference equality, what you want is not ==, but equals

#

learn java

quaint mantle
#

he blocked all of us

wraith rapids
#

pretty much

wispy fossil
#

lmao

#

what

lean gull
#

batsht just block em, that's what i did :P

wraith rapids
#

i think space wizard might not be blocked yet

wispy fossil
#

why is my name wrong

#

๐Ÿ˜ 

maiden briar
#

Ah thanks

lean gull
eternal night
#

np np

lean gull
#

anyone know how to display a particle for a certain amount of time?

wraith rapids
#

there is no way; particles are transient

#

there is no way to delete an existing particle, or control its lifespan

eternal night
#

^^ yeah particle "lifetime" is client side.Tbh everything about them is

formal dome
#

#forge

wraith rapids
#

i don't know if even the client can delete existing particles arbitrarily

lean gull
#

lynx u talkin to me?

eternal night
#

yes

wraith rapids
#

tell him that I am right and that he smells

lean gull
#

oh then i have no clue what you're talking about, i have those people you replied to blocked

wispy fossil
#

truuuueee

eternal night
#

You cannot control the lifetime of a particle

#

they are fully client side

formal dome
#

there is no way; particles are transient
there is no way to delete an existing particle, or control its lifespan

eternal night
#

the only thing you can do is send them

wispy fossil
#

youre not gonna get much help blocking em all
nny is the source of most help around here

lean gull
#

how do i wait a tick

#

in a for loop

eternal night
#

google it

wraith rapids
#

you don't

lean gull
#

i tried

eternal night
#

bukkit scheduler coding

lean gull
#

i found nothin good for a beginner

eternal night
#

or spigot scheduler coding

wraith rapids
#

that's because you're not even at the beginner stage yet

wispy fossil
#

ooh schedulers are fun
really make you want to ram your car into the homeless shelter

eternal night
#

well if it isn't good for a beginner, you should not be using it then

lean gull
wraith rapids
#

you are at the "what the fuck is java and what does it do" stage

eternal night
#

the spigot tutorial for them is pretty indepth if I recall correctly

wraith rapids
#

elgar has been linking the spigot and bukkit tutorials to him for like days

lean gull
hexed hatch
#

it does work

#

you just aren't doing it right

eternal night
#

^^ yeah, the code is still valid

#

you are using it wrong then

lean gull
#

i'll try it again and tell you what happens

eternal night
#

gl

lean gull
#

also please be nice or i'll have to block you too

hexed hatch
#

I would recommend learning Java first though

eternal night
#

I.

hexed hatch
#

So you have some amount of understanding going in to this and you'll know how to make use of the API

eternal night
#

lmao have not been threatened by a block just like that

wispy fossil
#

Imagine getting help from people
and threatening to block em ๐Ÿ’ƒ

wraith rapids
#

imagine what people have been telling him for several days

wispy fossil
#

wouldnt it be funny if yall just blocked him

lean gull
wraith rapids
#

we prefer the people asking for help to not be tards

wispy fossil
#

i prefer not ramming my car into a homeless shelter

hexed hatch
#

Beggars can't be choosers

wispy fossil
#

but they have to deal with it

wraith rapids
#

based

wispy fossil
#

TRUE

eternal night
lean gull
#

i see no problem with blocking rude people

wraith rapids
#

i see no problem with driving my car into a homeless shelter

eternal night
#

There are only so many people on this discord ๐Ÿ˜‚

wispy fossil
#

i see no problem with driving my car into a homeless shelter

Quote

eternal night
#

but anyway, try out the scheduler stuff

wispy fossil
#

scheduler is pain and you will likely end up ramming your car into a homeless shelter

hexed hatch
#

It just happens sometimes

wraith rapids
#

he'll end up in the homeless shelter as a homeless person at this rate

hexed hatch
#

Nothing you can do to avoid it

wraith rapids
#

he'll just block the government because he doesn't want to pay taxes

wispy fossil
#

then it will be our cars ramming into him

wraith rapids
#

and the landlord because he wants him to clean his apartment

#

and also the mailman because he brings 'LAST NOTICE PAY NOW OR DIE' mail

hexed hatch
#

brb blocking the IRS

wispy fossil
#

plot twist where the land lord is the owner of the homeless shelter
and the car dealer

lean gull
#

how do i use this?
BukkitTask task = new ExampleTask(this.plugin).runTaskLater(this.plugin, 20);

wraith rapids
#

try reading the guide

#

it'd help

eternal night
#

that is not what the tutorial suggests.

lean gull
#

i literally copied that line from it...

wraith rapids
#

that you copied it doesn't mean the guide fucking suggests it

eternal night
#

go futher down

#

I personally hate BukkitRunnable with a passion

lean gull
eternal night
#

you might wanna use something along these lines:

BukkitScheduler scheduler = getServer().getScheduler();
        scheduler.scheduleSyncDelayedTask(this, new Runnable() {
            @Override
            public void run() {
                // Do something
            }
        }, 20L);
#

note that this is your plugins main instance

lean gull
#

idk what an instance is yet

eternal night
#

oh

#

block me

#

then

lean gull
#

why?

wraith rapids
#

consider reading a java tutorial

wispy fossil
#

that's the way to do it ๐Ÿ•บ

eternal night
#

because you will need to read a java tutorial about it then

#

it is definitely something you need to know for this

#

as you need to get this instance of your plugin main class through your entire plugin

hexed hatch
#

Just learn Java lol

sand dew
#

Beep

wraith rapids
#

tell him about dependency injection and he'll shit his pants

hexed hatch
#

You should not be trying to do anything like this without understanding what an instance is lol

hexed hatch
#

You really need to just take one of those free online Java courses

#

It doesn't take more than a couple days to build some amount of understanding

lean gull
#

i'm currently learning via codeacademy

hexed hatch
#

then keep doing that

wraith rapids
#

it really doesn't fucking look like it lmao

hexed hatch
#

And do less of this

#

and more of that

lean gull
#

trial and error is good tho

hexed hatch
#

I mean

lean gull
#

and help from random people on the internet

sand dew
#

Like StackOverflow

hexed hatch
#

lol

sand dew
#

Not a Discord server

wraith rapids
#

imagine him on stackoverflow

sand dew
#

StackOverflow with already answered questions*

eternal night
#

problem might be that people on the internet that already spend years on the language do not wanna join you in the trial and error

hexed hatch
#

null pointer exception why

sand dew
#

"whats a null"

lean gull
#

i'mma just continue following the codeacademy for now

sand dew
#

As you should

hexed hatch
#

Good idea, and good luck

lean gull
#

thx

eternal night
#

yea, you wanna get to the concept of classes and instances/objects

lean gull
#

cya

eternal night
#

๐Ÿ‘‹

quaint mantle
#

How i can change item meta in hand without "switching" item animation?

eternal night
#

Concerning you will always have to send an item update I do not think it is really possible

#

I might be wrong tho

sullen turtle
#

lmao

#

Floofy stupid

#

He just says he will block anyone

#

if they dont agree with him

#

and dont do what he tells them to

#

lol

quaint mantle
#

theres always someone who seeks help, refuses it and acts like an absolute jerk that comes every 1-2 months

wraith rapids
#

this one is more persistent than usual though

quaint mantle
#

ye

#

yall remember sarah?

wraith rapids
#

last one we had was the JDA guy with the default avatar

#

!jadiss or something

#

he bent over backwards in 2 or 3 days

quaint mantle
quaint mantle
wraith rapids
#

but i find it genuinely difficult to believe that this guy is really as socially inept and technically incompetent as he presents himself to be

#

granted, all sorts of stupid does exist, but it smells trollish by this point

hexed hatch
#

When you send a metadata update the client sees that as you switching to a brand new item

quaint mantle
eternal night
#

so I don't think that would skip the animation

quaint mantle
#

that's bad

ripe flint
#

Hey Iโ€™m a new developer and wanted to code plugins, where is a good place to start?

formal dome
#

so if i start using the forge api, are client side mods placed in separate folders from the plugins folder?

eternal night
#

what

#

since when does spigot support forge

#

or has a forge api

hexed hatch
#

since.. never?

eternal night
#

yeah I also have no idea what you are on about xD

ripe flint
compact haven
#

well go learn java

hexed hatch
#

โœจ learn java โœจ

wispy fossil
#

the solution to your marriage crisis

compact haven
#

is java

#

yes

wispy fossil
#

how to learn heated beverage???

formal dome
#

okay, so spigot has no client side api

wispy fossil
#

great discovery

eternal night
#

yes spigot is a server api xD

hexed hatch
#

guys guys how do i make ploogin in javascript

eternal night
#

doesn't bedrock have a js plugin API ?

wispy fossil
#

proceeds to learn web development

#

shoots self

formal dome
#

hm

#

well, i might have to switch server prodivers than if it can't use mods

hexed hatch
#

Yeah Spigot plugins and Forge don't mix

compact haven
#
  1. spigot isnt a server provider
#
  1. mods are completely different than plugins
#
  1. you want to use sponge & forge for mods
#

ok I think I covered all the bases

hexed hatch
#

spong

formal dome
#

i just want to know if i can run my mod on my spigot server

hasty fog
#

no

hexed hatch
#

no

quaint mantle
#

It can

wispy fossil
#

simply drag your forge mod into ur sipgot plugins folder

quaint mantle
#

If you have Forge as Version

formal dome
#

whoaaaaaaaaa

hexed hatch
ancient plank
formal dome
#

we got conflicting opinions up in here

quaint mantle
#

Yea, I have my mods on a spigot server

wispy fossil
#

there are no opinions
i am right
as always

hexed hatch
#

what kind of mods

ancient plank
#

oh I think I get it

quaint mantle
#

I have Forge 1.16.5 Download, and then you can play with mods on a spigot server

ancient plank
#

nevermind I don't get it

#

oh I get it now

wispy fossil
#

people keep telling me to get spigot jar
what do i do with the jar

hexed hatch
#

yes you can play on spigot servers with a forge client

reef wind
hexed hatch
#

but no, you can't run mods on a server

ancient plank
#

spigot server

hexed hatch
#

you can have client side mods

hexed hatch
ancient plank
quaint mantle
#

No, you can't put mods on your server

wispy fossil
#

sure you can

#

why not

hexed hatch
#

I mean you could

ancient plank
#

I'm a mod on a server SataniaThumbsUp

wispy fossil
#

TRUE

#

the jar is too big and round
will not fit

quaint mantle
#

You can have it as a version, but not as a default mod in your server

quaint mantle
#

LOL

hexed hatch
#

how can I get a bigger jar mine is full

tulip pike
#

Hey.

#

I wanted to know if it is possible to make a block to another type of block when a player walks?

reef wind
#

you can but mods in vanilla minecraft to..

formal dome
#

but not plugins.. ?

quiet ice
#

You could modify the spigot jar and call it a mod

wispy fossil
#

you are shattering reality

quiet ice
#

But spigot is a mod in itself, so ยฏ_(ใƒ„)_/ยฏ

tulip pike
#

Huh?

wispy fossil
#

what's next, shrimp fried rice?

tulip pike
#

Oh. Ok.

hexed hatch
#

you're telling me a shrimp fried this rice?

formal dome
#

welp, im gonna keep using spigot

ancient plank
#

To run mods + plugins in a server together you would have to use one of those jank server things that allow forge/fabric mods + spigot plugins, and they don't work well from what I've heard? Unsure.

maiden briar
#
@EventHandler(priority = EventPriority.MONITOR)
    public final void onInventoryClose(InventoryCloseEvent e)
    {
        if(e.getView().getTitle().equals(name.toLegacyText()) && !allowedToClose)
            open((Player) e.getPlayer());
        else
            destroy();
    }


This keeps opening and opening the inventory over and over, even if you don't close it

steep nova
tulip pike
#

Can I also make it so a person will jump 2x higher?

hexed hatch
#

with jump boost yus

tulip pike
#

Without double click?

steep nova
#

Just use jump boost

tulip pike
#

Oh.

hexed hatch
#

it's a potion effect

formal dome
tulip pike
#

But can you do that without the effect?

reef wind
tulip pike
#

?

hexed hatch
#

yeah you can add velocity to a player

tulip pike
#

PlayerVelocityEvent?

hexed hatch
#

no lol

formal dome
#

aw, okay, i was starting to like spigt lol

reef wind
#

bruh

hexed hatch
#

Have fun detecting when a player jumps performantly though

#

You're better off using the jump boost effect

tulip pike
#

Can you send me an example of a player velocity?

reef wind
#

Pro tip: always use google first, if you don't find your answer.. Ask for help.

tulip pike
#

That's what I am doing.

ancient plank
#

googling is a skill

reef wind
digital rain
#

any efficient way of checking armor contents rather then waiting for right click or left click

hexed hatch
#

When would you want to check for armor?

digital rain
#

like for the whole time smbd is wearing it, so like when equips and when dis equips

maiden briar
#
@EventHandler(
        priority = EventPriority.HIGHEST
    )
    public final void onInventoryClose(InventoryCloseEvent e) {
        System.out.println("Inventory " + e.getInventory());
        if (e.getView().getTitle().equals(this.name.toLegacyText()) && !this.allowedToClose) {
            this.open((Player)e.getPlayer());
        } else {
            this.destroy();
        }

    }

This prints even if I not close the inventory????

hexed hatch
#

and a couple other events I think, been a while since I did that

digital rain
#

do you have the script lying around maybe? :)

hexed hatch
#

I lost a lot of my old projects but I'll look in a minute, sure

#

But I can't guarantee it's efficient lol

quaint mantle
#

?jd

digital rain
#

well i dont mind, if inefficient will refine

maiden briar
pale hazel
#

how would i get fish and spawn the entity at my player location?

#

a

#

A fish would be an Entity correct?

digital rain
#

getplayer().getlocation()

#

if getlocation exists

halcyon rivet
#

he blocked me on another server for the same shit

#

absolute clown

eternal oxide
pale hazel
#

Damn really

#

hes blocked people trying to help?

halcyon rivet
#

i'm scared as to how he'll survive in the real world

#

also he believes in strictly following every rule imaginable and reports people for any slight deviation

#

i've seen it happen and have been the target of it

eternal oxide
#

If he doesn't understand the tutorial and you won't just hand him code he blocks you.

digital rain
#

dont mind him his choice to do whatever, not nice to talk stuff like this :(

halcyon rivet
ivory sleet
#

I mean he already got kicked but as for as I am concerned he hasn't broken any rule whatsoever

halcyon rivet
#

good

eternal oxide
#

Yep, not broken any rules

halcyon rivet
#

exactly and he never has

quaint mantle
#
int i = Integer.parseInt(args[1]);
voteManager.addVote(player, i);``` Tried to use this but yeah doesn't work at all. Here is the error: https://paste.md-5.net/navonujasu.bash . Line 28 is `int i = Integer.parseInt(args[1]);`
halcyon rivet
#

and never will

digital rain
eternal oxide
#

He will either learn or run out of people to ask.

burnt current
#

Hi, Quick question:
Does anyone know how I can add an item created in another class to a player inventory? I created the item in the class so that it can be accessed from anywhere in the code.
I would think that it would somehow work with new item() but then I don't know anymore.
can somebody help me there?
Thank you in advance.

eternal oxide
halcyon rivet
#

๐Ÿคทโ€โ™‚๏ธ

#

anyways i gtg sry for talking about it in here

eternal oxide
#

?paste

undone axleBOT
digital rain
#

i mean sure, he might be rude, im not on his side i just wanted to calm down the tension

eternal oxide
digital rain
#

lol

wraith rapids
#

i will disparage him if I feel like it

#

I don't give help for free

eternal oxide
wraith rapids
#

the price may not be counted in a conventional currency

#

but it is a price nonetheless

burnt current
wraith rapids
#

and the price is that I get to point and laugh at you for being dumb

#

and disparage you if I feel like it

#

in return, you get your problems solved

eternal oxide
burnt current
#

ok

eternal oxide
#

OK using that code you would use new Item().item() and add that to the players inventory

burnt current
#

so I would have to store new Item().item() in a variable and then add that to player.getInventory().addItem(variable).
execute?

eternal oxide
#

Its not the best way, but the way you have written it it would do the job

#

player.getInventory().addItem(new Item().item());

burnt current
#

ah so that's how you have to do it.
good Thank you very much :D

eternal oxide
#

np, good luck

crude axle
sage swift
#

puts backticks
message is 10x the limit

eternal night
#

seems like an outdated compiler build ?

#

as it has trouble with java 16 module restrictions

#

oh it is the latest

#

huh

formal dome
#

has anyone suggested to md5 that he allow clientside mods for spigot

eternal night
#

you can do that

sage swift
#

again, lol what

crude axle
eternal night
#

LOL

#

you good ?

eternal oxide
sage swift
eternal night
#

that is some attitude my friend

crude axle
eternal night
#

Yes. I said that if you read up

crude axle
#

Atleast the compiler plugin

eternal oxide
eternal night
#

what maven version are you running ?

#

shouldn't have an impact but hey

sage swift
formal dome
# eternal oxide Spigot has no client side

that's rough man, i got all this stuff set up and now im finding out i can't do client side stuff ๐Ÿ˜ฆ

i mean, im not gonna complain, im just sad i might have to switch over. hopefully i can just copy my world folders tho. i'll give it a go

sage swift
#

switch over from what

formal dome
#

spigot to forge

sage swift
#

uhhhhh

#

hmmmmm

crude axle
#

Is it outdated?

eternal night
#

I think latest is like 3.8 something

#

maybe give that a try

eternal oxide
eternal night
#

tho I don't think it is particularly gonna fix it ๐Ÿ˜…

burnt current
# eternal oxide np, good luck

Sorry, but I think I could use some more help. I had now changed something in the code I sent you. instead of "item" I actually use "firewand" also as a method etc..
now my problem is that when I write player.getInventory().addItem(new Item().fireWand());, I get the error 'Item' is abstract cannot be instantiated at new Item

eternal night
#

The item class/interface seems to be abstract

#

that was their maven version

#

not the compiler plugin

sage swift
#

wrong Item

crude axle
eternal oxide
#

ok

formal dome
burnt current
eternal night
#

that isn't the Item class

#

my friend

eternal oxide
sage swift
#

kek

eternal night
#

that class is called FireWand

eternal oxide
#

oh also yes, not Item class

wraith rapids
#

hmm

#

i think I'll have to restart my machine soon

eternal night
#

uptime of ?

wraith rapids
#

shit is starting to degrade

#

let me check

burnt current
wraith rapids
#

67 days 9 hours 26 minutes 45 seconds

eternal oxide
eternal night
#

bruh

#

are you texting using a production server

#

lmao

granite stirrup
wraith rapids
#

no it's my windows 10 laptop

eternal night
#

Crazy people out there

#

ngl

burnt current
#

oh oh yeah sure why didn't I think of that mysel

#

Thank you very much

wraith rapids
#

explorer crashed a few hours ago and I had to abort something because i was running out of physical memory

#

if not for the former I'd go for another few months

#

my secondary machine is at 122 days 3 hours 29 minutes 24 seconds

#

i don't even want to check my third machine

sage depot
#

when i am going to add bedwars map where should i add them i use bungeecord

#

does anyone had a tutorial video

eternal night
#

bungeecord is just a proxy

#

o.O

#

either add the map to your server and use a multi world plugin

#

or create a new server

#

and add that to your bungeecord proxy

sage depot
#

huh

#

my braincells are getting overloaded

eternal night
#

A map has to run on a minecraft server

wraith rapids
#

bungee is not a minecraft server

eternal night
#

concerning you are in the spigot discord, you are running a spigot server

wraith rapids
#

it's just a thing that tells the client to connect to a minecraft server

eternal night
#

which is behind a bungeecord proxy

wraith rapids
#

aka a backend server

eternal night
#

yea

eternal night
#

so you add your bedwars map to your spigot server

sage depot
#

spogot moment

wraith rapids
#

splรถgget

sage depot
eternal night
#

well

#

sure?

crude axle
#

Updated Maven, and still, it won't work

sage depot
eternal night
#

if you have multiple servers anyway, why not just create a new one ?

sage depot
#

brb pls

eternal night
#

you did clean install right ? eikrikh

eternal night
#

Well, you then add the map to whatever server people play the map on o.O

wraith rapids
#

real men manage their ram manually

crude axle
sage depot
#

bacl

#

back

wraith rapids
#

and also all other resources

eternal night
#

well, I guess time to look at your entire maven pom ?

wraith rapids
#

i'm constantly suspending and unsuspending individual threads on this low end machine because everything still takes juice even in the background

#

and also reallocating physical memory manually

sage depot
crude axle
#

Also, or some reason, despite setting MAVEN_HOME and M2 to 3.8.1 as well as changing location of MAven to the 3.8.1 directory, mvn -v still detect v3.6.3

wraith rapids
#

at least I don't need to manage disk io since this is a ssd so it's no longer a bottleneck

eternal night
#

idk if that variable actually matters too much

wraith rapids
#

intellij bundles its own version of maven if that's what we're talking about

burnt current
#

I have another question. I would like to program it so that when you right-click a blaze rod in your hand, you shoot a fireball in that direction.
So far I have already coded the following:

@EventHandler
    public void handleFireWand(PlayerInteractEvent event) {
        if(event.getItem() == null) return;
        if(event.getItem().getType() != Material.BLAZE_ROD) return;
        if(event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK) {
            ItemStack FireStick = event.getItem();
            if (FireStick.hasItemMeta()) {
            if (FireStick.getItemMeta().getDisplayName().equals(ChatColor.stripColor(FireWand.FIRE_WAND_NAME))) {
                Player player = event.getPlayer();
                player.sendMessage("it works");

                }
            }
        }
    }

Would anyone have an idea how to implement this?

eternal night
#

it is more about what comes first in your path

weary geyser
#

ItemStack Fire Stick = event.getItem(); what the fu-

ivory sleet
#

lol

wraith rapids
#

leeeeeearnnnn java

weary geyser
#

?learn

#

?learnjava

undone axleBOT
eternal night
#

and the "binary" for the old version is added further at the beginning of your PATH than the new one

burnt current
wraith rapids
#

how about you don't

#

1 how about you don't write your code in german

#

2 how about you don't run the code you're giving us through a fucking translator