#help-development

1 messages ยท Page 22 of 1

compact haven
#

a long time friend, by the way

worldly ingot
#

There's a difference between talking about a server feature and soliciting minors to use drugs

dusk flicker
#

I never mentioned anything about being racist or anything on that; I'm talking about context, I doubt it will be just myself and a friend being the only ones on any server at any time

compact haven
#

we've seen nothing (at least I've seen nothing) that tells us that Mojang can differentiate between friend-only servers and public servers, nor that they want to (because they don't want that content on their game at all)

#

like you should be allowed to make dark jokes between you and your friend on Minecraft, on a private server, without being MP banned for it

#

that's bullshit

worldly ingot
#

You can. You won't be reported by your friend

#

If you are, you've got some real shit friends trying to get you banned "because lol"

compact haven
#

refer

echo basalt
#

major servers already have the need for chat filtration, mojang's decision just sounds like a way to pick at small communities

dusk flicker
#

of course your friend will report you

#

they probably will treat it as a joke

compact haven
#

^ it's literally human nature

ancient plank
#

get new friends

echo basalt
#

like

worldly ingot
#

You need to find new people to hang out with, yeah

#

That report feature is not a joke

echo basalt
#

they're serious minecraft gamers do you really think they can make new friends

worldly ingot
#

When you know it's potentially going to lead to a ban if your discussions are severe enough, you should not be playing with it

#

You don't play with fire either

drowsy helm
#

Anyone know how to access the text of an advancement in protocolLib? swaer ive tried all the methods and they return nothing

worldly ingot
#

This is not complicated at all

worldly ingot
echo basalt
#

I found a leak for the minecraft swear word list

#

It's disappointingly small

dusk flicker
#

link?

worldly ingot
#

What word list? There is no word list

drowsy helm
worldly ingot
#

Bedrock has one but that's not relevant

worldly ingot
drowsy helm
#

oh lmao

echo basalt
compact haven
drowsy helm
#

thought they were toasts

compact haven
#

I personally don't make racist jokes or the sorts, but I know people with perfectly fine characters that do

worldly ingot
compact haven
#

simply because it's humor

#

that's how humour works

#

"publicly on a server"

#

you don't keep anything in memory do you

#

we're talking about a private server

worldly ingot
#

A private server is still public

compact haven
#

no it is literally not

dusk flicker
#

No?

upper vale
#

why would you get reported on a private server

dusk flicker
#

It COULD be public

compact haven
#

minecraft has something called a whitelist

#

built into the server

echo basalt
#

they also made a built in ban system

compact haven
echo basalt
#

that doesn't need fancy server implementations like spigot

noble lantern
#

a private server still contacts mojang

worldly ingot
echo basalt
#

they made banning, muting and whitelists a thing

compact haven
#
  1. servers can be private, friend only
  2. friends can report you simply because it's funny
  3. Minecraft doesn't have that context nor care
worldly ingot
#

Your friends are going to have to learn

#

If they're reporting you for saying rule-breaking shit, you deserve to get banned

ancient plank
#

Still need new friends

echo basalt
#

2b2t mfs gonna bust out the supercomputer to crack the hashes and be able to fake messages

compact haven
#

yeah, they'll learn when they get several people banned on their primary accounts

worldly ingot
#

Yes... it's not a toy...

compact haven
#

and guess what, over a joke

worldly ingot
#

It's a feature that sends a report to Mojang

#

If you are using that because you want to be funny, play stupid games, win stupid prizes

noble lantern
#

if anything

echo basalt
#

waste of 30$, let's all just crack the game and run cracked servers

noble lantern
#

repeated false offenders should get banned ngl

echo basalt
#

that way there's no risk of getting banned

#

๐Ÿคก

worldly ingot
quaint mantle
worldly ingot
#

False report issuers get banned for misuse of the system

noble lantern
#

false report yeah mb

#

greasy pizza fingers

compact haven
#

Choco

quaint mantle
#

If I ever get false banned, I will just run offline servers

echo basalt
#

either that or some idiot is gonna ddos the report servers and prevent all reports from coming through

worldly ingot
#

You can't join an offline server if you're banned ;p

echo basalt
#

if you're not using session servers you can

quaint mantle
#

Piracy, cough ๐Ÿคจ

compact haven
#

the people who don't understand Minecraft's reporting system are the ones reporting, those are the ones not taking it seriously. The ones to deal with that is the poor friend who made a joke, and the other person made another joke (to them): reporting you to Mojang

quaint mantle
#

Still, we don't support it yet

compact haven
#

that'll be the "joke", "haha you got reported"

#

"reported"

quaint mantle
#

We will discuss that topic later

worldly ingot
echo basalt
#

I mean

#

only time will tell how sensitive and desperate mojang will be

quaint mantle
#

So just to be aware. Is there no way we as programmers may prevent players from reporting each other?

echo basalt
#

if people start getting banned left right and center

#

we have a problem

worldly ingot
#

Mojang has been very clear who they intend on banning

dusk flicker
worldly ingot
#

They should have been clearer earlier, but they have numerous articles now explaining

compact haven
#

"clearly was not okay" why does Mojang get to decide what's not okay between 2 friends on a private server though? Yes, because they own the game. But that's not how it's been treated for the past 9 years (since I've been playing)

ancient plank
#

I bet 90% of people will forget player reporting is a thing in a few months

echo basalt
#

that's just some jargain they say to please shareholders

#

imo

quaint mantle
worldly ingot
#

Mojang communication. Damned if they do, damned if they don't

echo basalt
#

๐Ÿ‘

worldly ingot
#

If they don't do it, they're not listening. If they do it, they're pandering to shareholders

echo basalt
#

this is more of a microsoft decision than mojang honestly

worldly ingot
#

wtf do you want?

compact haven
#

reporting is just another way to make the game "more child friendly" so they can advertise it to parents as a safe way to play with friends

#

but I don't care about that

#

because it's a company

worldly ingot
#

Bigotry and pedophilia has no place on the internet anywhere

compact haven
#

and companies will do company things

ancient plank
#

I released a plugin on a server, everyone hated it for 3 days, it's been a month and everyone has forgotten about it

#

"oH yOU aRe ReStRiCtInG oUr frEEdOm"

quaint mantle
compact haven
#

I barely play MC anymore, and I also don't hangout with friends on it~ nor would I be punished because I don't make the dark-humored jokes that they 'would ban for' (source: Choco)

#

it's not going to affect me

#

but that doesn't mean I'm not going to care lol

#

I wont in a few months

#

but rn it's a topic being brought up

#

it's just human nature

echo basalt
#

It's all fun and games until mojang says "Okay we've been having lots of false reports, so all server messages shall pass through mojang now" ๐Ÿคก

noble lantern
#

Illusion

drowsy helm
#

why cant mojang just do something that benefits plugin devs

#

seems like they hate us

echo basalt
#

transfer packet? nah

#

I mean they could just

#

like

#

do a chat filter before actually sending the packets to a server?

#

it would've been a lot easier

#

Just try to use some nEuRAl nEtWOrK

drowsy helm
#

lmao

echo basalt
#

to determine if you're a drug dealer or a plugin dev

#

and automatically hate you

echo basalt
noble lantern
#

oops

#

forgot i said something ๐Ÿ’€

#

uhh

echo basalt
#

he forgor

noble lantern
#

blockbench x spigot guides?

echo basalt
#

modelengine

noble lantern
#

cant find any besides a plugin

#

oh

#

modelengine

echo basalt
#

are you seriously thinking

#

on that crazy frog concert

noble lantern
#

no i was gonna do something else

#

thought ide play with it

echo basalt
#

was

noble lantern
echo basalt
#

now you're doing crazy frog

noble lantern
#

maybe, maybe both idea

#

i was gonna render a marijuana plant

echo basalt
#

it's a very good idea

noble lantern
#

but

#

what about both?

echo basalt
#

both make people do weird stuff

noble lantern
#

oh

#

model engine is a plugin??

#

i thought it was like a software

#

you made models in bruh

echo basalt
#

no

#

you make models in blockbench

#

you toss them in modelengine

#

and its horrible api turns the models into armorstands

#

and makes a resourcepack for you

#

it's magical but the api is damn horrible

echo basalt
#

you gotta have a bone with a specific name, with no inheritance in order set it as a vehicle

echo basalt
#

that has a "6 model limit"

noble lantern
#

6 models tho

#

well

#

i mean

#

reflection exists

echo basalt
#

that you can just bypass through an injector plugin

noble lantern
#

its the only way to render them in?

echo basalt
#

pretty much

#

unless you want to mess around with armorstands for 2 business years

noble lantern
#

i mean tbf what i was gonna make is kinda simple maybe idk

echo basalt
#

looking at the code

#

I doubt the 6 model limit is even a thing lmao

#

Maybe there's a licensing system on the paid version? But I don't see anything on the free version that would limit stuff

noble lantern
#

man why cant they just ship

#

the api

echo basalt
#

one thing I want to start messing with this year is armorstands

#

I feel like I could make a shitty modelengine that is 10x worse

#

might make a texturepack that just has an item as an arrow

#

then I'll make a for loop that just rotates the armorstand's head in a way I can understand how to control

modest garnet
echo basalt
#

this is not the spot to outsource work

modest garnet
#

true but are u interested?

echo basalt
#

I have way too much work already

noble lantern
#

about $673,678

#

USD

echo basalt
#

which is why I wasted like 3 hours of my life typing today

modest garnet
#

haha

echo basalt
quaint mantle
noble lantern
#

The first argument when initializing a namespaced key is your main class, eg the class extending JavaPlugin

full cargo
#

Does anyone know how to run something every time a particle spawns?

worldly ingot
#

Well the server has no concept of particles so if you're looking for an event, you're SOL. Though using ProtocolLib you can listen for outgoing particle packets and do something based on that information.

full cargo
#

forgot that existe

#

d

#

thanks

drowsy helm
#

Is there an event for when a player types in an anvil or do i ahve to listen to packets?

quaint mantle
#

how to run anything every tick?

drowsy helm
#

use the scheduler

torn badge
drowsy helm
#

ah damn

#

eh i can still make it work just wont look as nice

torn badge
#

What were you trying?

buoyant viper
#

if the client is 1.8 typing into an anvil is sent every letter iirc

#

๐Ÿ˜Ž

#

god older mc sent so much unnecessary data

quaint mantle
#

so... is there any vid about how to run anything every click

drowsy helm
echo basalt
#

pog

drowsy helm
#

just looks prettier than typing it in chat

echo basalt
#

you get a PreparedAnvil whatever event

#

for each character

drowsy helm
#

yeah thats for when the item is put in pretty sure

echo basalt
#

no

drowsy helm
#

wait wdym

echo basalt
#

there's one that triggers for each keystroke

#

Because the result item's name changes

drowsy helm
#

oh is there?

#

awesome

#

idk why its not triggering for me tho

echo basalt
#

Mess around with events and packets

#

you'll figure it out

drowsy helm
#

too easy

echo basalt
#

I'm tryina make myself an eulerangle visualizer because my stupidass can't wrap my head around

#

plot twist: I'm sleep deprived

drowsy helm
#

euler angles are hard lol

echo basalt
#

yeah but so is my will to become a hypixel dev

#

specially after they taunted me with a rejection email after way too many interviews

drowsy helm
#

if you get in, get them to unban my friend

echo basalt
#

not my job

drowsy helm
#

he on macro'd for like 3 months ๐Ÿ˜ฆ

#

lmao

echo basalt
#

I just want to be able to turn on my ghost client without getting banned type thing

quaint mantle
#

how to detect clicks for an item with certain id? by id i mean the thing using meta

buoyant viper
echo basalt
#

35 minutes in and I'm looking at gimbal lock

drowsy helm
#

So this is possible but i dont work with custom Anvil inventories

#

for some reason PrepareAnvilEvent doesnt get called for it

echo basalt
#

client literally sends packets

drowsy helm
#

been lookign for that

#

but been searching "anvil and it didnt come up

#

o-o

echo basalt
#

paper sends events

#

so why wouldn't you receive them

#

PrepareAnvilEvent

#

maybe the item is null because you didn't set any item

#

but AnvilMenu internally has an itemName field

drowsy helm
#

yeah im not sure

echo basalt
#

and you can call AnvilMenu#getRenameText

#

So in theory

#

PrepareAnvilEvent -> getRenameText -> render stuff

shadow zinc
#

With GUI's, is the best way to add functionality to add the maps to list and then find the inventory in the list and cancel the click and do other stuff?

#

Because I don't like checking for the name

#

And a map for individual maps for each player?

shadow zinc
drowsy helm
#

so make your class extend InventoryHolder then you can just check if the holder in the event is equal to your class

shadow zinc
#

so just do the list thing?

merry lodge
#

!pdc

#

!pdt

drowsy helm
#

?pdc

boreal seal
#

hey guys i got an question its something essential

#

but i started doing methods so far didnt really use them in the past and made messy codes

#

public void startfm() {
if(!XFile.exists()) {
ZXTools.getInstance().saveResource("X.yml",true);
CLogger.ConsoleChangeMessage("X.yml was created");
}
else {
CLogger.ConsoleDefaultMessage("X.yml was found! ");
} < now this is the method

#

in general the issue is once i use it from main class

#

" FilesMananger.getInstance().startfm();"

#

it causes NullPointerException

drowsy helm
#

show the error

#

and im sure its not that essential lol

boreal seal
#

the error points to it i can read stacktraces

#

maybe i should make it static?

drowsy helm
#

just show which line it points to

boreal seal
#

like other methods i do?

#

to startfm()

#

to the method

drowsy helm
#

no

#

by the looks of it you are abusing static but whatever

#

which line does the npe point to

sage dragon
#

Does getInstance return null?

boreal seal
#

nah i dont really abuse static

#

i cloud make the whole filemananger class static

#

i made an instance

#

instead

#

well maybe yeah i abuse static

#

but not for no reason

#
   public void startfm() {
        if(!XFile.exists()) {
            ZXTools.getInstance().saveResource("X.yml",true);
            CLogger.ConsoleChangeMessage("X.yml was created");
        }
        else {
            CLogger.ConsoleDefaultMessage("X.yml was found! ");
        }```
#
public class FilesMananger {
    private static FilesMananger instance;
    public static FilesMananger getInstance() { return instance; }

drowsy helm
#

yeah either
ZXTools.getInstance() is returning null or XFile is null

boreal seal
#

thats the way i made the instance

drowsy helm
#

btw XFile is incorrect naming convention

boreal seal
#

nah XFile is fine

drowsy helm
#

where do you create it?

boreal seal
#

not in main class

drowsy helm
#

you are declaring it but not creating an instance

boreal seal
#

so i made an instance so i can run the method from there

#

(im creating many files in once)

#

how should i declare the instance?

#

ill google it

#

well i have found what i already know

#

hmm anyone minds to go call and codetogether to explain my how to do something correctly without abusing static :D???

tall dragon
#

what is "something"

boreal seal
#

asap i dm u

small current
#

how can i find the placed block at inventoryclickevent

#

getCursor is not accurate

#

if you place one with 64 in your hand it won't return an item stack with the size of one

#

and its causing a dupe in my plugin

tall dragon
#

show code causing the issue

tender shard
noble lantern
#

typically most dupes in block breaks/inv clicks tho are caused by running something a tick later that deals with editing an item in said event/removing said item from event (EG in a runTask)

boreal seal
#

~solved by epicgodmc (dep inj)

noble lantern
#

we need like a

#

+rep @noble lantern

#

and it shows on ?info

tall dragon
#

ooooh yesss dude

noble lantern
#

god i would rep farm sooo hard

tall dragon
#

i would give u rep

#

no cap

noble lantern
#

i love that video

noble lantern
#

why the gif render so big tho

#

POV: You dont know what to do anymore

tall dragon
#

Burchinator ๐Ÿ˜ฎ

noble lantern
tall dragon
#

whats that

noble lantern
#

I got bored so started making a custom items blocks and enchant plugin but then got bored making that

#

have no idea why i named it burchinator

tall dragon
#

๐Ÿ˜„

noble lantern
#

wtf elgar

#

your plugin npc takes damage

#

idk why i still have this installed on my pc lol

tender shard
#

oh great

#

using LivingEntity in 1.19 and 1.19.1 NMS is fucked

#

why didnt they use a new package name in craftbukkit for 1.19.1 D:

small current
#

is there anyway i can modify a registered event listener

#

so its not ignoredCancelled ?

#

i done this

#

but kinda won't work

chrome beacon
#

Why do you need to do that

noble lantern
tall dragon
#

probably because another plugin has decided to use that

#

which he no want

chrome beacon
#

There might be better ways depending on what the goal is

tender shard
#

you need different mappings for 1.19.1 and 1.19 even though both are 1_19_R1

noble lantern
#

why tf did mojang change shit

tender shard
#

well it's just their obfuscation

#

I guess spigot is now "responsible" for changing the package name if stuff like this happens

noble lantern
#

mmmmbruh

tender shard
#

seems like one cannot rely on simply getting the org.bukkit.craftbukkit package name anymore

chrome beacon
tender shard
#

yeah

#

and for real

#

why do they obfuscate the names anyway

#

if they at the same time, release the mappings

chrome beacon
#

File size maybe

#

Idk

tender shard
#

well but who cares whether minecraft is 260 mb or 270mb

#

it's so weird D:

noble lantern
#

i do.

#

ffs.

tender shard
#

lol

noble lantern
#

that 10mb is like 4 whole screenshots

#

jesus

tender shard
#

or like 3 ebooks

noble lantern
#

wait

#

fr?

tender shard
#

they are pretty small

#

it's just text files

noble lantern
#

i would assume one to be like 10mb

tender shard
#

hm let me check

#

oh yeah .epub is quite large

#

I got a 300 pages java ebook in .epub, and it's 7mb

#

but it also includes some pictures

tender shard
#

average kindle ebook (they use their own format) is about 2.6 mb for 300 pages

noble lantern
#

god kindle

#

i havent heard that name in years

tender shard
#

i love my kindle โค๏ธ

#

bought one like 3 months ago

noble lantern
#

no way u still use one

#

wtf

tender shard
#

i do

#

why not? they are awesome

noble lantern
#

battery last a long time?

tender shard
#

haha

#

more than a month

noble lantern
#

oh

#

shit

tender shard
#

it's because they dont have a normal display, but "e-ink"

#

they only need battery when changing the page

noble lantern
#

wtf

tall dragon
#

wtf

noble lantern
#

thats whack

tender shard
#

Picture this: a screen that doesnโ€™t give you eye fatigue after staring at it for a long period of time, lasts for weeks on a single charge, and offers glorious full color.

Picture this no longerโ€”this is reality. E Ink is finally in color, and 2020 could finally be E Inkโ€™s year to shine. E Ink devices with color displays, like the Hisense A5C an...

โ–ถ Play video
noble lantern
#

now i want one

#

can u buy me one

#

ill make u a plugin

#

AngelComputers

tender shard
#

๐Ÿ˜„

#

it's really interesting how they work

#

and they are quite cheap, I think the cheapest one is < 100$/โ‚ฌ

#

I got the paperweight 11

#

paperwhite*

noble lantern
#

was about to say

#

isnt that like

#

nms stuff

tender shard
#

yeah lol

noble lantern
#

man why doesnt gaming laptops use eink

tender shard
#

lol

#

you'd get like 3 fps

noble lantern
#

it only needs power 60 times a second that way

tall dragon
#

not as cool as this bluetooth hose tho

noble lantern
#

uh

#

wrong emoji

tender shard
noble lantern
#

i thought it was lips z_aCRYYY

tacit drift
#

for people that know how json and javascript work:

function getWeather(){
    fetch('https://api.openweathermap.org/data/2.5/weather?q=bucharest&appid='+weatherApiKey+'&units=metric')
    .then(result => result.json())
    .then((output) => {
        var json = JSON.parse(output)
        var temp = json['main']['temp']
        var tempMin = json['main']['temp_min']
        var tempMax = json['main']['temp_max']
        var weather = json['weather']['main']
        var city = json['name']
        
    }).catch(err => console.error(err));
}
setInterval(getWeather, 30000);

Is my syntax ok to get temp, temp_min, temp_max, weather and city?

noble lantern
#

like a creepy smile

tender shard
#

lol

tender shard
noble lantern
#

api json stuff typically should use _

tall dragon
tender shard
noble lantern
#

inside code is where you can use camelCasingIfYouLikeInJavaScript

#

but yeah, like_this_is_industry_standard

#

but who cares about industry standards

#

fuck the system!!

tender shard
#

i got a canon eos 5d mark 2, which is 14 years old now, and it has 21.1 megapixel โค๏ธ still works like new

noble lantern
#

can it run minecraft

small current
#

is causing a plugin with ignoreCancelled

tender shard
small current
#

and shouldnt get called when the event is cancelled

tender shard
#

btw I got birthday in february and I want this as gift from all of you pls

tacit drift
#

var json = JSON.parse(output)

noble lantern
#

bro i am broke

small current
#

if an event is cancelled

tender shard
small current
#

will the other listeners get called ?

tall dragon
#

bro im rich

#

we got him

tacit drift
#

based on the priority of your listener

small current
#

so like

#

if a HIGHEST listener

#

cancels

noble lantern
small current
#

a lowest wont get called ?

noble lantern
#

it might already be json

#

js is weird

tacit drift
#

it is json already

noble lantern
#

so no need to parse

tacit drift
#

doesn't that make it a json object or something?

tender shard
tacit drift
#

i am not familiar with json and javascript

small current
tender shard
#

the order of event execution is LOWEST -> LOW -> NORMAL -> HIGH -> HIGHEST -> MONITOR

tender shard
noble lantern
#

and when you try to parse json 2 times over

small current
noble lantern
#

that error happens

small current
#

a listener with MONITOR priority

#

cancels

#

but the gen cube ignorecancel

#

and

tender shard
#

monitor should never cancel events

tacit drift
#

City: Bucharest ,Weather: undefined ,Temperature: 30.95 ,Temp Min: 29.92 ,Temp Max: 32.21

#

oh yeah

#

it worked!

small current
noble lantern
#

You can do if (typeof variable === "string")

And parse to json if you need that way if true

small current
#

highest

tacit drift
#

weather is undefined somehow but will solve that

small current
#

so i was saying

#

cancels the event

#

and the minecube with ignoreCancelled

#

still fills the inventory

#

even if the block is not broken

noble lantern
small current
#

and its closed source

tender shard
#

typically you wanna cancel events at lowest so that all other listeners know that this event is already cancelled

tall dragon
#

so just ask the author to stop being a dum dum

noble lantern
#

ignoreCancelled is the stupidest thing no cap

#

on god

tall dragon
#

this ^

tender shard
#

depends

#

ignoreCancelled makes sense sometimes

#

for example, an anticheat plugin might cancel a blockbreakevent, then you can uncancel it if it was only cancelled for "anti cheat" reasons

tall dragon
#

alot of times its just in ways it does not make sense though. and breaks shit for other plugins

tender shard
#

yeah true. imho "ignoreCancelled" should be true by default instead of false

small current
#

the gencubes is highest and ignoreCancelled false
the skyblock is lowest

#

it cancels

#

but the gencube still gets filled

#

WHY

tender shard
#

ignoreCancelled = false means, the listener gets called even for cancelled events

#

because it doesn NOT ignore cancelled events (ignoreCancelled = false)

small current
#

so i should true the cancelled in gencubes ?

tender shard
#

if you set "ignoreCancelled = true", then the listener only gets called for "not cancelled" events

#

and now buy me this pls

tall dragon
#

lmfao

tender shard
#

including the lens

tall dragon
#

alex getting paid

tender shard
#

in cameras

small current
#

so
skyblock lowest
gencubes highest and ignoreCancelled true

still getting filled

#

why

tall dragon
#

he just told you

small current
#

what should i do then

tender shard
#

if skyblock cancels at lowest, and gencubes listens on highest with ignoreCancelled = true, then the gencubes listener should NOT be called

#

(unless another plugin uncancels it)

small current
#

i modified the priority

#

with reflections

tender shard
#

whut

small current
#

maybe that caused it ?

tender shard
#

wdym you changed the priority with reflections?

#

did you get the event's handlerlist and modified it with reflections? o0

small current
tender shard
#

wow that's some dirty shit

small current
#

cause the gencubes is closed source

tender shard
#

you shouldnt do that

#

hm

#

what a shitty plugin. if a plugin is closed source, it should at least allow to set the priorities in the config

small current
#

the gencubes is ignoreCancelled true lowest by default

tender shard
#

imho lowest should be used only to cancel events, and higher priorities if the listener actually wants to "do" any stuff

small current
#

and you know what is worse ?

tender shard
#

I always just make the priority configurable

small current
#

the plugin is paid

#

and was just discontinued like a week ago

tacit drift
#

there is a json object inside a json object

tender shard
tall dragon
#

^somethingi have been working on

tacit drift
#

solved it

#

i am happy now

tall dragon
#

ignore my abomination of testing

small current
tall dragon
# small current yes

well if ur ever gonna look for something else. i plan to make something very similar with my own spin on it

#

its not quite done yet though

#

still gonna take a fat minute to complete

buoyant viper
tender shard
#

it's called "highest" because that plugin can "override" whether a "lowest" plugin cancels it

buoyant viper
#

im used to HIGHEST meaning the handler runs first in the queue

#

lol

#

so i would typically use LOWEST to make a handler get called last

tender shard
#

it works like in an administration building. first, the "lowest" worker gets to work on a case. the "highest" ranked dude only gets notified if something went wrong on the lower... priorities

warm mica
buoyant viper
tall dragon
#

if you think about it. the higher the priority the higher the impact the event can make so make perfect sense

tender shard
#

e.g. the president is the highest person and he doesnt decide every case. normally, the administration's "lowest" workers get to work on a case and the highest person only gets notified at the end of the queue to have the final decision

#

same like for court decisions. the lowest court decides it first. the supreme / highest court has the last say, hence "highest"

#

would be weird if a county's court would be called "highest" court, while the "supreme court" is the "lowest" lol

#

so yeah it's confusing. its not called HIGHEST or LOWEST because of the order of execution, but because of "who has the final decision on whether this XYZEvent gets cancelled"

buoyant viper
#

tried to find an example of what im used to but guava doesnt even have event priorities lolwtf

#

but Forge eventbus follows the way im used to lol

tender shard
#

oh already 11.30 am, time to get a beer

buoyant viper
#

highest gets called first and lowest is last

tender shard
#

as said, just remember my court example from above

#

then it makes perfect sense

buoyant viper
#

gotta change the name from priority to like... Importance

#

or Power

noble lantern
#

jkjkjkjkjk looks cool ๐Ÿ˜„

tall dragon
#

:((((((((

buoyant viper
#

bc if i think priority i would typically put highest near the "first"

tender shard
buoyant viper
#

so bukkit has it backwards

tender shard
#

jkjkjkjkjk โค๏ธ

noble lantern
tall dragon
#

wtf!!!

#

im getting bullied

buoyant viper
#

gotta PR changing the call order of bukkit events md_5

tender shard
noble lantern
#

best config.yml ever

#

ong

tender shard
buoyant viper
#

yess

tender shard
noble lantern
#

its so easy

buoyant viper
#

fabric event bus has no priority/power system either ๐Ÿ˜”

noble lantern
#

just set the hacking configs on your vps to false smh

#

cause fabric shit lol

#

jk

buoyant viper
#

must be a weird niche for handlers to need to be called in a specific order

#

im really surprised google guava didnt have it

tender shard
#

when just googling "event priorty", 4 of the first 5 results are bukit/spigot related lol

#

and one weird facebook thing

noble lantern
#

i keep forgetting facebook is meta now

tall dragon
tender shard
#

oh btw since we talked about kindles earlier: they are also perfectly readable in direct sunlight, unlike normal phone / tablet screens

tall dragon
#

like if u search for spigot often maybe u get those results easier

#

idk tho

tall dragon
#

alex im no longer giving u ur camera btw

#

ur mean

tender shard
#

oh no

#

shit

tender shard
#

but they don't have cancellable events

#

wait wtf, they contradict themselves

#

they say 1 is lowest and gets called last

#

however here it's assumed that 6 (higher than 5) runs after 5

buoyant viper
#

it also says something abt parallel idk

tender shard
#

oh yeah they are talking about different events, I didnt fully read it

#

mb

buoyant viper
#

rip

#

an alternative could be a very literal value name like

#

Order or CallOrder

#

Order.First, Order.Early, Order.Middle, Order.Late, Order.Last

noble lantern
#

7 - 6

#

is 1

buoyant viper
#

is it

noble lantern
#

yes!

misty ingot
#

hey so I am trying to make placeholders for my plugin so like
%pluginname_eco {player name}% would show how much eco that specific player has
I have been able to make
%pluginname_eco% which just shows the player their own eco

#

I need this for say, a sort of shop system so the shop can check how much eco the player has

tender shard
#

what's your question though? ๐Ÿ˜›

#

how to get the player name from the placeholder?

#

You could just check if the placeholder starts with "pluginname_eco_", then get the remaining string, and that's the playername, and ...

#

lol SCNR

misty ingot
#

ye my question was like how I can make it work per-player

tender shard
#

as I said

misty ingot
#
    public Integer onPlaceholderRequest(ProxiedPlayer p, String params) {
        if (p == null) {
            return 0;
        }
        if (params.equals("eco")) {
            return checkPlayerEco(p.getUniqueId());
        }
        return null;

this is the code for the player's eco (pluginname_eco)

twilit roost
#

Has anyone ever created custom Toasts?
Achievement Toasts

noble lantern
#

mmm toast

rain mason
#

you'd need a datapack for that I think

tender shard
#

sth like this

misty ingot
twilit roost
#

CMI ( one plugin ) for example does that without anything

tender shard
#

wtf is a toast

tall dragon
#

the achievement popup

#

with a custom message

twilit roost
#

that "Achivement Achieved" thingy

noble lantern
#

You sure thats not using a texture pack of some sorts?

twilit roost
twilit roost
misty ingot
# tender shard

the main issue is that im trying to make this all work with BอญอŒอคUอฅฬ‡ฬ†Nอฉฬ‚อญGฬ†อ—ฬพEฬ“ฬฉฬผEอŒฬ„ฬพCอ‚อ†อคOอŠอ’อซRฬ‚อฆฬDฬ†ฬ‚อ‘

rain mason
twilit roost
#

ye I think so

rain mason
#

all you need is a datapack

tender shard
noble lantern
#

why are you parsing placeholders on the proxy

#

๐Ÿค”

twilit roost
tall dragon
#

@noble lantern can be achieved like this

    public static void sendToast(Player receiver, String message, CompMaterial icon) {
        if (message != null && !message.isEmpty()) {
            String colorized = Common.colorize(message);
            if (!colorized.isEmpty()) {
                Valid.checkSync("Toasts may only be sent from the main thread");
                if (hasAdvancements) {
                    (new AdvancementAccessor(colorized, icon.toString().toLowerCase())).show(receiver);
                } else {
                    receiver.sendMessage(colorized);
                }
            }
        }

    }
noble lantern
#

didnt know spigot made advancedments public

tender shard
#

I don't get it

#

why not leave it open in case someone has questions anyway, it's not like other people couldn't also answer questions

misty ingot
noble lantern
tender shard
noble lantern
#

sorry im a chad

#

i send new advancedments via action bar

tender shard
#

only one minute to go

#

then I can drink beer without people judging

tall dragon
#

im still judging

tender shard
quaint mantle
#

how would i fix the PlayerInteractEntityEvent from executing twice everytime i click it

tall dragon
#

by checking if the event is the main hand

#

it gets fired for both your hands

quaint mantle
#

ohhh

tender shard
#

this question gets asked like twice per day lol

#

@ancient plank we need a command ?interactevent that says "PlayerInteractEvent may be called once PER HAND, so check the event's getHand() method" including a link to the javadocs. it gets asked here like every day lol

noble lantern
#

they should split the event

#

PlayerInteractLeftHandEntity

#

ez

tender shard
#

OffHand and MainHand

#

some players have the main/offhand switched

#

it's a client setting IIRC

noble lantern
#

yeh that better

#

gonna pr it? :))

misty ingot
#

how can I get offline player by name in a bungee plugin?

tender shard
#

bungee does not save any player data

#

bungee only forwards packets to the backend servers, and does nothing else

misty ingot
#

so I cant get an offline player in any way on a bungee plugin?

tender shard
#

no

misty ingot
#

oof guess im taking the hard way

noble lantern
#

Bungee shouldnt be handling stuff about players

tender shard
#

what are you trying to achieve anyway?

#

sounds like you're trying to do spigot stuff on the proxy

noble lantern
#

^^

tender shard
#

i mean... you could of course let your bungee plugin maintain it's only player database in a mysql database, json/yaml file, sqlite file, .......
but probably there's a way better alternative if you tell us what you're trying to do ๐Ÿ™‚

misty ingot
#

nvm I used the db to do it

#

PAPI on cracc

#

I hate bungee but I must make the plugin

tender shard
#

erm

#

you cannot return an Integer

#

you also cannot make it require a ProxiedPlayer

#

you also will never have any ProxiedPlayer object on a spigot server

tender shard
#

it has nothing to do with spigot

tall dragon
misty ingot
tall dragon
#

ya dont lol

misty ingot
#

am I going to have to make another plugin seperately for each spigot server aswell along with the bungee one for the commands?

tender shard
misty ingot
#

my placeholder just grabs a value from a database which I have connected the plugin to, and shows it to the user or whatever used the placeholder

tender shard
#

and you are sending this message from bungeecord?

misty ingot
#

in papi we just return a value for the used placeholder we dont send any messages right

tender shard
#

yes

misty ingot
#

atleast in the 2 tutorials I watched

tender shard
#

is there even a plugin for papi on bungee?

#

i dont think so

misty ingot
#

welp.. looks like I am going to be making a seperate plugin to put in the spigot servers too

#

why the hell are the file names appearing red even thought they have absolutely no errors

#

(IntelliJ)

tall dragon
#

thats from github

#

e.g github is not tracking them

misty ingot
#

ohh wait shit I forgot to update them on git

earnest forum
#

non capitalized file names

#

๐Ÿ˜ฌ

alpine urchin
#

Streak

#

Parkbucks or ParkBucks

misty ingot
#

that turned out to not be the issue

#

I just updated my git repo and its fine now

peak depot
#

how can I set an Item in to anvil tried to do
inv.setItem(0, new ItemStack(Material.PAPER));
but that wont work

visual tide
#

can we make it ?pie instead

#

?pie

tender shard
tender shard
slate delta
#

How can get a block in array by chance
exemple

cobblestone: 80%
iron: 15%
coal: 5%

tender shard
#

generate a random number between 0 and 100

#

then check if it's < 80

#

if yes, set cobblestone

#

if it's less than 95, set iron

#

otherwise set coal

opal juniper
tender shard
#

e.g. ThreadLocalRandom.current().nextInt(0,100) <= 80

slate delta
#

thanks

azure hawk
tender shard
#

are you using maven?

#

if yes, add the stuff mentioned on their github readme into your pom

rotund sun
#

[00:25:03 ERROR]: Could not pass event PlayerJoinEvent to Simpleplugin v1.0.0 java.lang.LinkageError: loader constraint violation: loader 'simpleplugin-1.0.0.jar' @5b0ffae wants to load class org.geysermc.floodgate.util.DeviceOs. A different class with the same name was previously loaded by 'Geyser-Spigot (3).jar' @4dc5ff2c. (org.geysermc.floodgate.util.DeviceOs is in unnamed module of loader 'Geyser-Spigot (3).jar' @4dc5ff2c, parent loader java.net.URLClassLoader @5c29bfd) at com.plugin.simpleplugin.util.ToolBoxChecker.hasToolbox(ToolBoxChecker.java:14) ~[simpleplugin-1.0.0.jar:?] at com.plugin.simpleplugin.Simpleplugin.onPlayerjoin(Simpleplugin.java:111) ~[simpleplugin-1.0.0.jar:?]

#

i got this error help

azure hawk
tender shard
#

it's all explained in their github readme

#

is there anything you don't understand?

eternal oxide
tender shard
#

yikes

rotund sun
tender shard
#

are you using maven?

eternal oxide
#

don;t shade it

tender shard
#

btw I've used maven for 3 years and only recently discovered that "maven" is an english word that means sth like "expert"/"genius" lol

azure hawk
#

lol

tender shard
#

i wonder what "gradle" means

eternal oxide
#

Gradle doesn't have such a poignant name https://www.urbandictionary.com/define.php?term=Gradle

tender shard
#

A dank ass Widespread Panic song heard best under the influence of alcohol or narcotic

#

yeah true

ancient plank
#

freak

quaint mantle
#

?interactevent @tender shard

undone axleBOT
#

The PlayerInteractEvent may be called once per hand. If you only want code to be executed once, you can check the result of https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/player/PlayerInteractEvent.html#getHand(), then decide functionality.

For example, only executing code if the main hand was used:

@EventHandler
public void onPlayerInteract(PlayerInteractEvent event) {
    if (event.getHand() != EquipmentSlot.HAND) { // * if the hand used is NOT the main hand:
        return; // do not progress past this point  |
    }
    // provide functionality
}
slate delta
#

1:

2:

That was tier

#

and values was

block: chance

cloud crane
#

hey i have a question

#

is the book page limit on the bookmeta or bookitem?

#

because if its on bookitem then it would make my life much easier

#

since I'm trying to run Player.openBook() with a bookmeta that may be more than 50 pages

tender shard
#

yo everyone

#

?interactevent

undone axleBOT
#

The PlayerInteractEvent may be called once per hand. If you only want code to be executed once, you can check the result of https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/player/PlayerInteractEvent.html#getHand(), then decide functionality.

For example, only executing code if the main hand was used:

@EventHandler
public void onPlayerInteract(PlayerInteractEvent event) {
    if (event.getHand() != EquipmentSlot.HAND) { // * if the hand used is NOT the main hand:
        return; // do not progress past this point  |
    }
    // provide functionality
}
quaint mantle
#

๐Ÿฅฒ

tender shard
#

that's awesome, thanks!

rotund sun
quaint mantle
#

Send your pom

tender shard
undone axleBOT
#

"Does not working" is a useless statement. Please describe what exactly is not working, what you expect it to do, and what actually happens. If you get any console errors, also ?paste the entire stacktrace.

tender shard
#

then you should have a working .jar without geyser shaded

#

btw geyser's naming scheme is fucked

#

they only called the artifacts "api" and "core" lmao

#

it should be "geyser-api" and "geyser-core" lol

#

(not something that YOU have to change, it's just geyser's fault)

rotund sun
slate delta
#

How can I get the block back in relation to a probability

My configuration looks like this

TIER:
blockId: probality

And at each tier there is 1 block which is added and thus the probality changes according to the tier but it is not the goal here

How can I get the key (blockId) of the tier I'm asking for according to a probality

1:
  0: 80
  1: 20
2:
  0: 80
  1: 10
  2: 10
peak depot
rotund sun
chrome beacon
#

Did you use the new jar

rotund sun
chrome beacon
#

Doesn't look like it

#

Make sure you did a restart and that you don't have 2 of the jars

crude charm
#

How do skyblock islands / private prison mines work technically? With having multiple world borders and stuff in one world?

#

Instead of having 1000 worlds, one for each player

rotund sun
tardy delta
#

isnt that just one big world with different islands and different borders?

rotund sun
#

its so hard to fix that

quaint mantle
crude charm
#

How should I go about placing thousands of blocks and breaking hundreads at a time without lag? Like those enchants do on prison servers

tardy delta
#

there is a forum thread for that

crude charm
#

Can I have a link

tardy delta
viral temple
#

any difference between Plugin.getLogger() and Bukkit.getLogger()

tardy delta
#

yes

glossy venture
tardy delta
#

plugins logger with your plugins prefix

viral temple
#

nevermind

glossy venture
#

yeah

halcyon mica
#

After a entire days worth of debugging

#

I am still not a single step closer to figuring out why my custom entity does not send update packets

eternal oxide
#

packet entity or Bukkit?

halcyon mica
#

Neither

#

NMS Pathfinder entity wrapped into a custom bukkit entity and added to the world via bukkit

eternal oxide
#

then a Bukkit entity

#

a Pathfinder is just the AI

halcyon mica
#

it's no existing bukkit entity

#

But whatever

eternal oxide
#

what about the entity is not working?

halcyon mica
#

The issue is that the entity is created and ticked properly on the server, but the client is simply not receiving any update packets about it

eternal oxide
#

If you added it to teh nmsWorld, it exists as a Bukkit entity

opal juniper
#

well if itโ€™s added via bukkit, bukkit is aware of the entity and should deal with it

halcyon mica
#

Indeed, it should

#

And the server processed it properly

#

Plays step sounds, attacks players etc, etc

#

And yet, it does not send a single update packet to the client after initial spawn

opal juniper
halcyon mica
#

Default datawatchers are initialized

opal juniper
#

have you looked at how mojang spawns an entity

halcyon mica
#

Yes, I have

#

And there is nothing different about it

opal juniper
#

well, there must be something lol

halcyon mica
#

And yet somewhere between 1.18.2 and now, there has to have been some change that broke it

#

As it worked just fine before

opal juniper
#

well, 1.19 didnโ€™t change that much to do with entities afaik, very weird

halcyon mica
#

The entity exists and is processed

#

The server even plays step sounds apropriately

#

And yet not a single update packet is sent to the player

opal juniper
#

weird, can you share your code for spawning? iโ€™m admittedly not at my computer but if elgarl is still around

halcyon mica
#
    static Pathfinder spawn(Location loc) {
        CraftWorld w = (CraftWorld)loc.getWorld();
        PathfinderMob mob = new PathfinderMob(w.getHandle());
        w.addEntity(mob, CreatureSpawnEvent.SpawnReason.CUSTOM, (e) -> e.teleport(loc), false);
        return new CraftPathfinder(mob);
    }```
eternal oxide
#

I am, ish

#

we'd need to see your pathfinder mob

halcyon mica
eternal oxide
#

you don;t everride doTick?

halcyon mica
#

doTick is not a thing

eternal oxide
#

it is in mine, but I only have ServerPlayer code as an example

halcyon mica
#

I am using mojmap for what its worth

eternal oxide
#

same

halcyon mica
#

But doTick is not a method in the superclass

eternal oxide
#

I call super.baseTick()

halcyon mica
#

Well, baseTick is not doTick

#

But I do not override it, keeping it as the default

eternal oxide
#

else I'm afraid I can;t help you on that. I've not messed with Mobs yet

halcyon mica
#

Which does not do anything in terms of mob updates

#

Well, I have found the issue

#

The EntityAdd packet has changed, which you have to provide when defining the entity

#

In 1.18, the entity was determined by a registry check for the object type

#

So I was forced to overwrite the entity type via reflection

#

Apperantly, that behaviour broke it

eternal oxide
#

ah

halcyon mica
#

Simply providing a non-spoofed packet solved it

rustic pecan
#

Hello everyone, I have a small problem with my config file.
In this file you can add colour codes to texts, this works fine with the & sign. However, if you use a ยง, this special A symbol is displayed in the chat. Doesn't this symbol have the same meaning as "\u00a7"?

dusk flicker
#

Just don't use ยง?

#

Im assuming its an encoding issue, like not saved in the right UTF-8 or whatever system

#

But it shouldn't matter, ยง shouldn't be used either way

abstract sleet
#

I use the MineDown library to do that plus much more

tardy delta
#

^^

gray merlin
#

Right so, I need to develop something for 1.7.10, does the Minecraft Development plugin for IntelliJ not support it?

eternal oxide
#

Nothing supports it

gray merlin
#

ah, pain.

dusk flicker
#

the joys of 1.7.10

#

there are none

eternal night
#

1.7.10 is a new low ๐Ÿ˜‚

eternal oxide
#

popular for modded

#

I believe it was the last version that had the really good redstone mod

gray merlin
#

I've searched the internet and there seems to be absolutely nothing that supports it anymore nor any documentation available that I can find lol. I found the API and how to set it up but i can't do much from here

#

it's pain

eternal oxide
#

you would do better learning plugins writing with a current API

tall dragon
#

-,-

eternal oxide
#

crippling yourself with an ancient API is like doing it all while blind

gray merlin
gray merlin
visual tide
#

is craftbukkit/spigot even availiable for 1.7?

gray merlin
#

time is going by too fast i dont like this

visual tide
#

i though that was when the dmca hit

azure hawk
#

?

#

Pls help

#

thx

#

Guys

eternal oxide
visual tide
azure hawk
#

ik

#

bu none of them are working

delicate lynx
#

thanks for the information you provided

visual tide
#

i diagnose you with: did you read the whole thing

tardy delta
#

is there a better way?

abstract class Command<T> {
  String name;
  
  abstract void execute(T t);
}

class DiscordCommand extends Command<SlashCommandInteractionEvent> {
  void execute(SlashCommandInteractionEvent event) {}
}```
azure hawk
#

my englsih not good sry

tall dragon
visual tide
#

?paste what you did

undone axleBOT
azure hawk
#

@tall dragon

tall dragon
#

yea thats ur pom.xml

azure hawk
#

yeah but that not working

tall dragon
#

the dependency isnt even in there

azure hawk
#

didnt work two

#

@tall dragon

tall dragon
#

could you stop tagging me

#

people will reply when they have time im not in the mood for this now

azure hawk
#

sorry

peak depot
#

do a rnd 50 50 and then on that damage armor or not

rain mason
#

which team are you

1)java Player.closeInventory(); Player.sendMessage("some error message");
2)java Player.sendMessage("some error message"); Player.closeInventory();

eternal night
#

probably the one that doesn't capitalise a variable name ๐Ÿค”

rain mason
#

damn

river oracle
vast raven
#

I'm trying to change an item in the PickupEvent using .setItemStack() in the Item class, this doesn't work, I even tried to cancel the event and remove the cancellation putting a delay of 1 tick between them, doesn't work, any clues?

rapid vigil
#

Hello, I'm facing something weird with Bungeecord, so when I execute bungeecord commands it sends me the messages as actionbar, like that:

#

And at first it wasn't a problem but when I coded a Bungee plugin that has a command to send you a message, it sent the message as actionbar too, why is that and is there a way to disable it?

peak depot
#

wich maven repo do I need for packets like net.minecraft.server.v1.8_R3

eternal night
#

you have to install that locally

#

using build tools

#

also 1.8 is legacy

dusk flicker
#

?1.8

undone axleBOT
peak depot
slate delta
#

?1.0

#

๐Ÿ˜ข

ivory sleet
#

๐Ÿ’€

tender shard
#

have you already seen my recent contribution to this community?

#

if no, enter ?interactevent

ivory sleet
#

Oh yeah I saw

tender shard
#

it would be nice if we could also get a list of all "custom commands" ๐Ÿ™‚

#

e.g. ?configs, ?pdc, ?notworking, ?learnjava, etc

ivory sleet
#

Yeah, we used to have ?cc list publicly accessible

#

However, it was often used to flood channels

#

Hence the removal

tender shard
#

ooh

#

well but people could also just spam ?learnjava

ivory sleet
#

Yeah

tender shard
#

?learnjava

undone axleBOT
tender shard
#

?learnjava

undone axleBOT
tender shard
#

?learnjava

undone axleBOT
tender shard
#

?learnjava

undone axleBOT
tender shard
#

so yeah

#

(sorry was just testing)

ivory sleet
#

I mean Id definitely want some upgrade in terms of the discord bot, like using individually virtual interactions etc

tender shard
#

there should just be a cooldown for custom commands for everyone

ivory sleet
#

Ill see what md has to say, maybe we can cook up a solution of some sort

#

Ye

tender shard
#

we could just make a spigotmc wiki page that lists all the commands