#help-development

1 messages ยท Page 147 of 1

kindred valley
#

i dont want to use plugin

#

I am trying to do it myself

pseudo hazel
#

he is talking about vanilla statistics im pretty sure

eternal oxide
#

Statistics are in Bukkit

kindred valley
#

Elgar

pseudo hazel
#

anyways, ideally you only need to check stats from online players

eternal oxide
#

Its not a plugin

kindred valley
#

My problem is the thing i set in config file is wiping

pseudo hazel
#

how are you trying to read the config

kindred valley
#

I want to understand it

eternal oxide
#

I already told you wy it was wiping

#

its your newHashSet() method call

kind hatch
kindred valley
#

I have tried newHashSet(); because i couldnt get any consequences

#

Without it still wiping

eternal oxide
#

newHashSet() is giving you a BLANK Set every time you call it

kind hatch
#

My guy, what do you think the new keyword does?

eternal oxide
#

all you do is throw the results away and store a NEW blank Set.

kindred valley
#

Elgar i deleted it bro forget that method please Elgar๐Ÿฅฒ๐Ÿฅฒ

eternal oxide
#

I told you this hours ago

#

ok, show me your current code

#

?paste

undone axleBOT
kindred valley
#

I dont use newHashSet();

#

Okay

fluid river
#

give me at least one reason to store all players in config everytime player joins

#

still why

kind hatch
#

Next best option?

pseudo hazel
#

its quite obvious, everytime a player joins, you just overwrite the players list in the file

kindred valley
#

Wait Elgar

kind hatch
dim palm
#

how can i simulate block break particles?

fluid river
#

?learnjava

undone axleBOT
fluid river
dim palm
#

how

undone axleBOT
fluid river
#

Get world and location and spawn a particle

#

if exists

eternal oxide
#

particles or teh texture on the block?

kindred valley
dim palm
pseudo hazel
#

yes so why are you still confused by it

fluid river
#

your brain is not able to create a full idea and code it

#

we don't understand your goal

eternal oxide
#

then yes spawn prticle

dim palm
#

this isnt working

fluid river
#

interesting question

#

go to spigot javadocs particle section maybe

dim palm
#

oh wait im dumb

fluid river
#

lol

dim palm
#

im using 1.8 effect

#

instead of 1.19

#

my bad

fluid river
#

bruuuuh

eternal oxide
#

I'd guess BLOCK_CRACK ?

tardy delta
#

public HashSet newHashSet wait wha

glass mauve
#

how can I look up current existing variables like a debugger but only for my plugin?

red sedge
#

so uh I do player#sendBlockDamage and it works.. kinda. It changes the blocks damage for a split second and then it turns back to whatever was on the clients side

red sedge
#

I tried sending it every tick but its flashy

fluid river
#

just print every second

red sedge
#

I tried mining fatigue, didnt owkr

echo basalt
#

yeah you need both

glass mauve
echo basalt
#

mining fatigue -1 iirc

#

or -128

glass mauve
#

my goal is to see if my variable will be garbage collected

dim palm
#

nice

glass mauve
#

WeakReference the way to go?

echo basalt
#

it might trip if you make negative levels with spigot's api, so you might need to send effect packets directly

red sedge
echo basalt
#

ye

tardy delta
glass mauve
#

isnt it unsafe to use finalize ๐Ÿ‘€

dim palm
#

help

tardy delta
#

what version

dim palm
#

1.8

tardy delta
#

fuck off then

dim palm
#

lol

red sedge
dim palm
#

it only happens on 1.8

tardy delta
#

?1.8

undone axleBOT
molten hearth
#

Didn't you just change it from 1.8 to be a 1.19 animation

red sedge
# dim palm

that does seem like a java error, are you using the vanilla client?

molten hearth
#

That is an error I've seen plenty of times with invalid packets

#

It works in later game versions right?

dim palm
#

yeah

red sedge
#

in that case

#

just dont use 1.8

molten hearth
#

Do you have viaversion

dim palm
#

it kicks on 1.8 but not 1.19

molten hearth
#

Or is it viabackwards

dim palm
molten hearth
#

Damn it really is a skill issue then

red sedge
#

Full plugin list?

dim palm
red sedge
red sedge
molten hearth
#

I mean its weird that you can connect and the packet isn't being translated

#

Idk a 7 year old version is still the best one I've used so far

#

I don't use it anymore because I'm forced to but its still bussin

red sedge
molten hearth
#

I love opening a voxel game and my laptop not exploding

red sedge
#

gameplay wise? its great!

#

developing wise? fuck no

molten hearth
#

Just make a better 1.8 api what can I say

tardy delta
#

i remember the time my old laptop took 5 minutes to start minecraft 1.14

molten hearth
#

Ikr

tardy delta
molten hearth
#

I have a threadripper now and it loads the latest versions fast but I will never forget how good of hardware I need to run such a simple game so I will forever support 1.8 users

red sedge
molten hearth
#

The new versions are a lot more resource intensive

red sedge
#

p.p skill issue what can I say

dim palm
#

just removed a line and now its working

#

skill issue

molten hearth
#

yea mojang developer skill issue in optimisation

red sedge
#

definitely

#

the performance is bullshit#

red sedge
#

but optimisation simply doesnt make money

#

so why bother

#

it doesnt bring new players, shiny cool toys bring new players

molten hearth
#

Idk probably because people would finally stop playing 1.8 ๐Ÿ’€

tardy delta
#

got it ig

red sedge
#

most ppl who use 1.8 are usin it for pvp

molten hearth
#

After 1.8 the only updates i played were 1.12, 1.16 and 1.18

#

Because they actually had content

red sedge
#

also people playing newer versions dont give money to mojang

molten hearth
#

That I found enjoyable

red sedge
#

New customers do

#

they dont make money from you after you buy the game

molten hearth
#

Are you sure about that

red sedge
#

Btw what the fuck does PotionEffect#ambient do? Makes potion effect produce more, translucent, particles. made no sense to me

molten hearth
#

Maybe I'm a minecraft marketplace user

red sedge
#

then you cant choose the version you want

molten hearth
#

Maybe I'm a realms 1.8 user

red sedge
#

youre forced to the latest version

molten hearth
#

Idk if realms even has versioning lol probably not

red sedge
molten hearth
#

Lame

red sedge
#

it simple, optimisation doenst make them money

molten hearth
#

Idk people tend to not use unoptimised stuff

#

People don't play star citizen cause they need a spaceship gpu to play a spaceship game

#

Also because its overpriced but that's different lol

red sedge
#

Yeah, but a update like "Look guys we made it faster!" doesnt bring in new players now does it?

molten hearth
#

I mean it would bring my gf back

red sedge
#

But "look at these new shiny toys you can play with" keeps people engaged

molten hearth
#

She used to play but over time with all the updates her laptop can't run it anymore

#

But I guess she already owns the game so she's not new lol

red sedge
#

Eh, is she gonna buy a new account? No? Doesnt make em money now does it

echo basalt
dim palm
#

is there a way to make a task run faster than 1 tick?

red sedge
#

also eventho people say minecraft is terribly optimised

eternal oxide
#

yes an executorservice

red sedge
#

They host realms as far as im aware but they can just charge more

echo basalt
#

Oh you mean the server itself

#

afaik the server is run internally along with the client

molten hearth
#

Well player counts not being there becsuse there's other performant games also doesn't bring them money

red sedge
echo basalt
#

So it optimizes single player performance

molten hearth
#

Try running it on an i5 ๐Ÿฅฒ

red sedge
echo basalt
#

I've put like 1.5k into my pc and can barely run 1.19 above 200 fps

molten hearth
#

Yes lol

#

Me and her play fortnite instead ๐Ÿ˜‚

red sedge
molten hearth
#

Sodium only ever did Jack shit for me

echo basalt
#

my old pc could barely run 1.8 above 60fps

red sedge
#

bro idk what to say except still issue

molten hearth
#

I installed sodium and some other weird element mods and it gave me like 10fps more 40 fps still ain't fun

red sedge
#

upgrade your computer

molten hearth
#

Idk or mojang can upgrade their code

echo basalt
#

you gotta realize that poor people exist

red sedge
#

They CANT tho

#

like

molten hearth
#

They can tho

echo basalt
#

they can

red sedge
#

its not as easy as "oo lets just make it faster!"

echo basalt
#

there are some pretty stupid things going on

molten hearth
#

It really is

red sedge
#

Most major performance gains will require a whole rewrite of a system

#

which will require more systems to change

echo basalt
molten hearth
#

If there's whole mods dedicated to optimisations don't you think there is a major skill issue

red sedge
#

MODS are NOT the same as a official version

#

They add on top of the official version

minor garnet
#
            @EventHandler
            public void PlayerLoginEvent (final PlayerJoinEvent event) {
                inject(event.getPlayer());
            }

    public void inject( final Player player) {
        (((CraftPlayer)player).getHandle().playerConnection // being null why ?```

**why the playerConnection is null?**
molten hearth
#

Yes because the official version was incompetent so mod devs took it upon themselves?

#

It doesn't change the fact it can be optimised

red sedge
#

God

echo basalt
#

mods inject into the game's code

red sedge
#

you clearly have 0 experience with making games

red sedge
molten hearth
#

Yeah sure it does

red sedge
#

If the game wasnt fucking optimised the performance between 1.17 and 1.19 would be major

molten hearth
#

Let the mod devs do the work for you to fix your own skill issue gg

red sedge
#

but the new stuff and optimisation kinda cancel each otehr out

echo basalt
#

ehh not really no

#

you can make new, optimized stuff

#

or grab old code and rework it

#

while adding new features

red sedge
#

Its not as easy as just "lets optimise th is function"

echo basalt
#

minecraft is a billion dollar game

molten hearth
#

If you're adding a new feature on top of a non performant base you can always rewrite that

echo basalt
red sedge
#

gosh i cant be bothered to argue lets just say youre right so i can get back to my work

tardy delta
molten hearth
#

Enjoy

echo basalt
#

paper optimized nms collisions

#

integrating those patches directly on the base game would bring a performance boost

minor garnet
echo basalt
#

the player connection should be initialized during preLogin

#

as it's used for the handshake process

minor garnet
#

what i need to do then?

tardy delta
#

ah i thought there was PlayerLoginEvent

#

probabl changed it

red sedge
#

again doesnt bring as many players as new stuff

minor garnet
red sedge
#

players quitting doesnt make them lose money, thye dont give 2 fucks if you buy the game and never play it

#

most peoples pc can run minecraft at a decent fps even without mods

#

not really

dim palm
#

is there a way to make a task run faster than 1 tick?

red sedge
#

it can run faster than 1 tick

tardy delta
#

use a timertask ig

red sedge
#

but the server will only update it after 1 tick

dim palm
#

uh

echo basalt
#

If I had quit minecraft due to shitty performance like 8 years ago

#

I wouldn't have given them hundreds of dollars in merch

#

mousepads, lights, mugs etc

#

It also ruins their reputation

minor garnet
echo basalt
#

cyberpunk flopped a bit because of its shitty bugs and performance

red sedge
#

yeah but you wouldnt quit minecraft due to having 150 fps instead of 200

echo basalt
#

I ran the game on a computer that had a pentium 4 and couldn't handle windows xp

#

ran that shit in linux mint 16.04

#

playing on 1.5.2

#

with 20 fps

#

sure the game crashed a ton

#

but it was still playable

#

I only built my 10/10 rig like 2 years ago

#

after saving up for months

#

got all my cash from 5$ plugin commissions

red sedge
#

I'd say 30-60 fps is playable

echo basalt
#

but how is it that I get more FPS on the newer call of duties than minecraft

red sedge
#

oh im not saying minecraft is optimised

#

its performance is shit

#

but ppl are acting like its as easy as just "yee lets just.. um make it fast"

echo basalt
#

good code runs fast

echo basalt
#

Thing is, minecraft's a weird ball of tape

#

some things are fast, others are slow

red sedge
#

yeah cuz u dont have 800 different stuff constantlyy interacting

echo basalt
#

and it's always easy to just build on top of an existing foundation that isn't as big as it should be

#

depends on the plugin

echo basalt
#

Ehh actually it is

#

I'm making a learning platform

#

that has to synchronize guis across instances

#

raytracing client-sided image boards and all

#

I've had some tough code to optimize

red sedge
#

Yeah no I dont think this wroks lmao-
e.getPlayer().addPotionEffect(new PotionEffect(PotionEffectType.SLOW_DIGGING, Integer.MAX_VALUE, -128, false, false));

echo basalt
#

went from about 640 iterations to about 6

#

with fancy trig

red sedge
#

imma try changing it to haste?

echo basalt
#

set it to -1

#

pretty sure haste won't work

red sedge
#

I tried -1 didnt work

red sedge
#

yeah no doesnt work

cobalt thorn
#

how i can check in the event EntityDamageEvent who attacked the player

eternal night
#

listen to the EntityDamangeByEntityEvent instead

cobalt thorn
#

im in 1.12.2

red sedge
#

is tehre anyway to monitor packets client side

tawdry finch
#

how do yall join spigot plugin dev groups? is there anywhere to look for one or is it a get approached thing?

abstract sleet
molten hearth
#

I look for local cults

abstract sleet
tawdry finch
abstract sleet
tawdry finch
#

Sweet! Ty lol

wet breach
abstract sleet
#

I have started 2 projects with myself maintaining it and two other maintainers joined me for both respective projects. It can just happen ๐Ÿ™‚

worldly ingot
#

you didn't have to personally attack me like that

wet breach
#

lol

tawdry finch
abstract sleet
#

plan your plug-in, write it and test it in baby steps, and itโ€™ll be a treat to finish ๐Ÿ™‚

wet breach
#

generally mc is most active around holidays and summer time

tawdry finch
wet breach
#

nice

tawdry finch
#

But yeh looking for smtn good arround xmas lol

abstract sleet
#

I remember that milestone, lol.

#

Recently our plug-in hit 100k. But it doesnโ€™t mean much. Servers actively using it, user contributions, etc are far more important metrics I think.

red sedge
#

Omgggg im gonna cry

#

I TRIED FUCKING EVERYTHING

#

I even tried to find a fucking packet listener to see how hypixel does it

#

BUT I CANT FIND IT DUDE

tardy delta
#

ok

hasty prawn
red sedge
worldly ingot
#

While the player is breaking the block? Yeah. Because the client is re-sending that block damage packet while they're breaking the block

red sedge
#

Yeah, but how do I fix thattttt

dusk flicker
#

I'm not familiar with the hypixel system, but is it similar to cosmic prisons one?

hasty prawn
#

So basically you want to change how the block damage looks?

red sedge
#

yes

dusk flicker
#

This might be of help

hasty prawn
#

Yeah, I know it's definitely possible to do bc I've done it before ๐Ÿ˜›

#

I just don't remember what I did

dusk flicker
#

That exact code in that thread does work, I've used it before. Obviously version changes are probably needed

red sedge
#

well okay I only tried the

public void addSlowDig(Player player, int duration) {
        player.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_DIGGING, duration, -1, false, false), true);
}

public void removeSlowDig(Player player) {
        player.removePotionEffect(PotionEffectType.SLOW_DIGGING);
}
#

part

#

but that should be it to prevent it

dusk flicker
#

That stops them from actually breaking the block

red sedge
#

Yeah so the client shouldnt be able to override it

#

maybe its smth with player#sendBlockAnimation

smoky oak
#

someone might remember this atrocity: java ArrayList<ArrayList<ArrayList<ItemStack>>> rItems
What's the best way to store a Material => Collection<ItemStack> map, and what's the best way of collapsing the first into the second?
I've been thinking of collapsing everything into one ArrayList<ItemStack>, make a list of all materials, then make a list for every material, insert the itemStacks into it and return it as a HashMap<Material, ArrayList<ItemStack>>. Does anyone from the top of their head know if there's a better way than doing it like this?

public static HashMap<Material, ArrayList<ItemStack>> itemListSorter(ArrayList<ArrayList<ArrayList<ItemStack>>> rItems){
        HashMap<Material, ArrayList<ItemStack>> returnMap = new HashMap<>();
        HashSet<Material> materialHashSet = new HashSet<>();
        ArrayList<ItemStack> rItemsCollapsed = new ArrayList<>();
        ArrayList<ItemStack> addList = new ArrayList<>();
        for(ArrayList<ArrayList<ItemStack>> t0 : rItems) for(ArrayList<ItemStack> t1 : t0) for(ItemStack t2 : t1) rItemsCollapsed.add(t2);
        for(ItemStack stack : rItemsCollapsed) materialHashSet.add(stack.getType());
        for(Material m : materialHashSet){
            for(ItemStack stack : rItemsCollapsed){
                if(stack.getType()==m) addList.add(stack);
            }
            returnMap.put(m,new ArrayList<>(addList));
            addList.clear();
        }
        return returnMap;
    }
worldly ingot
#

Holy fuck KEKW

smoky oak
#

theres actually a reason for that too

#

have to do that stacked arraylist

tardy delta
#

what the

#

atleast use var then

smoky oak
#

wym

tardy delta
#

var x = new HashMap

smoky oak
#

any reason to use var instead of saying what the hashmap actually contains?

red sedge
#

it just looks ugly?

smoky oak
#

no it also changes the method whatsthatword to <Object, Object>

worldly ingot
#

I mean if you're using a Map<Material, List<ItemStack>>, you could at least make use of an ListMultimap<Material, ItemStack>

smoky oak
#

so im not 100% sure i should

smoky oak
#

is it a new thing

worldly ingot
#

It's part of Guava, shaded into Bukkit

#

Basically a list-valued map

tardy delta
#

guava kekw

worldly ingot
#

ListMultimap<Material, ItemStack> map = MultimapBuilder.hashKeys().arrayListValues().build();

#

Or something like that. I forget the exact verbage on the methods

tardy delta
#

kinda verbose

worldly ingot
#

Then it's just simple .put(material, itemstack) calls and it will automatically generate lists for you

#

Anything that's fetched with a get(material) is a List

smoky oak
#

ah

#

that'd remove the redundant loop

#

considering the list inserts have to be called either way it should be faster

#

huh thats weird

#

it wants my multimap to be object, object with that builder

worldly ingot
#

Might have to type the methods

#

Sec

#

Nah seems to work fine for me. Just make sure you have everything imported

red sedge
smoky oak
#

whats ur code

#

ArrayListMultimap<Material, ItemStack> multimap = MultimapBuilder.hashKeys().arrayListValues().build();

#

cuz that says please make ur variable <Object, Object>

worldly ingot
#

It's a ListMultimap, not an ArrayLIstMultimap

#

That was my bad ;p

smoky oak
#

ah

#

k thx

#

that did it

worldly ingot
#

If you really don't care about the list type being an actual List with you get() it, you can just use a Multimap instead

smoky oak
#

it needs to still be iterable

worldly ingot
#

Yeah you can iterate over a Collection

civic wind
#

Can anyone show me an example of creating a inventory(gui) for the target player so for example /inv <player> it would open for specific player

smoky oak
#

yea my thought

worldly ingot
#

With a for-each anyways. You can't get(i) it

smoky oak
#

nah thats not the intended use

#

the structuve vanishes if i collapse it anyways

#

oh on that topic

worldly ingot
#

Then yeah I'd just change ListMultimap to a Multimap instead

#

Highest possible denominator

smoky oak
#

is there a better way to collapse it than doing

ArrayList<ItemStack> collapsed = new ArrayList>();
for(ArrayList<ArrayList<ItemStack>> t0 : list) for(ArrayList<ITemStack> t1 : t0) for(ItemStack t2 : t1) collapsed.add(t2)
#

i thought maybe some consumer stuff but idk if thatd work

tardy delta
#

i'm making my cache classes implement Iterable now so i can do userCache.forEach(database::saveUser) lol

smoky oak
#

dont u have to implement that foreach urself anyways

#

also

#

the issue with foreach here is that the consumer wants a ArrayList<ArrayList<ItemStack>> not a ItemStack

tardy delta
#

only iterator()

#

default forEach is just for(T elem : this) {consumer.accept(elem)}

smoky oak
#

which only collapses the outermost layer of that list inside a list stuff

#

hence the question

tardy delta
#

Consumer<ArrayList<ArrayList<ItemStack>>> hehe

smoky oak
civic wind
#

Anyone know why im getting this error? I use this all the time, never had it before

worldly ingot
#

You're running a CraftBukkit server

civic wind
#

ahh yeah hex

#

forgot about that

vocal cloud
#

Wow, I think that's the first time I've seen some1 running raw bukkit

river oracle
#

๐Ÿ’€ CraftBukkit

#

If they using craft bukkit good chance they got a nice illegally redistributed copy

civic wind
#

its just my localhost

#

illegally redistributed copy? Take a break pal

#

Bet you're fun at partys

river oracle
#

This isn't a party may be wrong but I believe this is discord

#

I don't have to be fun for you

civic wind
river oracle
#

Also such redistributed jars may contain malware it was of my best intent to inform you that you may have installed some form of malware

civic wind
#

I haven't

river oracle
#

FileConfiguration#set

#

Yep that should work make sure to save it

worldly ingot
river oracle
#

Especially since you installed it from spigot

worldly ingot
#

Agreed, but it does build CraftBukkit

#

So it's still legal to get

green prism
#

Hello there, I'm currently using BungeeCord and wanna make a check if player has permissions.
What can I do if Server is using luckperms bungee or something related?

hazy parrot
#

getDouble

#

or cast get to Double

civic wind
#

Confused :/

#

This is the config

hazy parrot
kindred valley
#

Can someone take look at this topic

hazy parrot
#

?

#

that is to get value

#

if you want set value, its set

hasty prawn
#

You're getting the String "Punish.Inventory.Items." from the config and then adding i + item

#

Yes

#

ItemStack#setAmount(item.getAmount() - 1)

civic wind
hasty prawn
#

No, just move your parenthesis

#

Uhh, lemme see where I used it and what I did. Sec

civic wind
#

Ohhh shit yeah i see

#

Thanks

#

Must have been a typ, didnt see that

shrewd sphinx
#

ong about to start offering free services just so i can get ideas

hasty prawn
#

So the listener is the instance that implements Listener, and the EventExecutor is what is called when the event is fired

#

Uh, I suppose that'd work. I'm honestly not sure how it uses that Listener object you pass

#

I'm calling registerEvent in a method, and that class implements Listener so I just used this.

undone axleBOT
glass mauve
#

how can I add my plugin to the gradle local "repo" so I can use it locally in a different project using gradle

vocal cloud
#

That looks like an extremely convoluted way of just checking to see if someone is clicking a specific block.

hasty prawn
hasty prawn
#

Does it work? Everything looks fine to me with the only difference being how we're passing Listeners

vocal cloud
#

Is it though?

hasty prawn
vocal cloud
#

Looks like a much more difficult setup

hasty prawn
#

You probably don't need that empty method btw

#

Since it's calling whatever is in the EventExecutor and not that method

#

new Listener() {} might also work PeepoShrug

#

If you have 3 and click does it go to 1?

#

If it does that means you're not checking for EquipmentSlot

#

Because PlayerInteractEvent is fired once for main hand and once for offhand

#

Oh I was talking to Enes sorry

#

It just so happens you guys are working with the same event LOL

sterile token
#

Hi

hasty prawn
#

Hi Verano

shrewd sphinx
#

someone explain to me

#

what kind of whichery is this

#

is it only texture packs?

#

because when he goes through the wider buttons the text doesn't dissapear

#

aka hitbox of the item is expanded in the menu

sterile token
#

I dont thi l you can manage the hitbox

#

Isnt client side that?

hasty prawn
#

I honestly have no idea how to make those inventories lol

#

Well I know that much

#

But the hitboxes and stuff I've no idea how they do that

hasty prawn
#

One day I'll figure it out

shrewd sphinx
#

because switching between items in the inventory should make the item info flash while it switches between slots

hasty prawn
#

Yeah I have no idea lol

#

MCCI uses them too

shrewd sphinx
#

joink

hasty prawn
#

35 minutes wahh

undone axleBOT
tardy delta
#

new BlockUtils.Click

#

i mean wtf

vocal cloud
#

Looks literally like registering a listener with extra useless steps to me

tardy delta
#

make it generic then

vocal cloud
#

Yes really

tardy delta
#

dang

vocal cloud
#

What difference would it be from just having a Set with a location check?

#

Then passing it into a function

#

If you want to make it convoluted be my guest lol

#

It's more complex than it needs to be

#

Yes really yes

#

You could just have a method call that takes in a listener and a Set<Location> and it would function the exact same.

#

Yes and you can do the exact same for pretty much every event

#

Cause it's easier and faster to write?

tardy delta
#

i dont think you will convince him

vocal cloud
#

Send the BlockUtils

glass mauve
eternal oxide
#

if you want it in your local maven just mvn install

glass mauve
#

both are gradle projects

eternal oxide
#

ah

glass mauve
#

but I want to use the one in the other project via local repo

hasty prawn
#

Just make sure you have mavenLocal() in your repositories block

glass mauve
#

but which url should I use?

#

also I cant find the repo locally even after publishMavenToLocal

kindred valley
#

Sir, if even i use save method to save my config and it actually happens, why does it wipes the config after reloading?

#

fileConfig = new YamlConfiguration().loadConfiguration(file);

#

fileConfig = new YamlConfiguration();

#

What is the difference

tardy delta
#

whats wrong with YamlConfiguration.loadConfiguration(file)

tender shard
#

and the second one obviously only creates a new one without loading anything

kindred valley
#

It helped to save single variables

tender shard
#

also the first one doesnt make sense since loadConfiguration is a static method, not an isntance method

#

you should call it from YamlConfiguration and not from any YamlConfiguration instance

kindred valley
#

but HashSet still wiping

tardy delta
#

ah man abusing static method

tender shard
#
YamlConfiguration fileConfig = YamlConfiguration.loadConfiguration(file);
#

that's how to load a .yml file

tardy delta
#

how the ide didnt warn about that

#

probably did

kindred valley
#

FileConfiguration.load(File file); And what is this

tender shard
tender shard
tardy delta
#

people ignoring ide warnings as usually

green prism
#

Guys Iโ€™m freaking out when I do getServers(). keyset(), in the ProxyServer instance, I get a few times both servers, sometimes only the main one. These API drive me crazy, theyโ€™re not stable

#

(Bungee)

kindred valley
#
@EventHandler
    public void onJoin(PlayerJoinEvent e) {
        Player p = e.getPlayer();
        TestConfig.load();
        Main.getPlayers().add(p.getUniqueId().toString());
//This part TestConfig.getConfig().set("players", Main.getPlayers());
        TestConfig.getConfig().set(p.getName() + ".deaths", 0);
        TestConfig.getConfig().set(p.getName() + ".kills", 0);
        TestConfig.save();
    }```
tardy delta
#

why exposing collections tho

#

and List<Player> -> Set<UUID>

kindred valley
sterile token
#

Hmn which are the parameters that maven deploy exposes?

tender shard
sterile token
#

I mean I need to know the request body

tender shard
#

that depends on which deployment method you use

sterile token
#

Because im trying to do my own sever side for maven Artifacts

tender shard
#

just the builtin https provider?

sterile token
#

I need the parameters used when you deploy vรญa http

tender shard
#

no idea what you mean with parameters

#

it does a normal HTTPS put request

sterile token
#

Yes

#

I need the vody from the request

sterile token
#

Hmn

#

Have you seen nexus?

#

Im trying to replay it myself but custom @tender shard

#

Sorry for ping ๐Ÿ˜ฌ

kindred valley
#

why do you always fking tweezing stuff from the code instead of advicing something

civic wind
#

Was just about to say here we go again morice the mong talking down on someone

tardy delta
#

||i love abuse||

vocal cloud
#

https://haste.miketheshadow.ca/iletuzayav.csharp

When you call the method it goes from

blockUtils.createClickableBlock(block, player.getLocation(), new BlockUtils.Click((listener, interactedEvent) -> {
            PlayerInteractEvent customEvent = (PlayerInteractEvent) interactedEvent;

            if (customEvent.getAction() != Action.LEFT_CLICK_BLOCK || customEvent.getClickedBlock() == null) return;

            if (customEvent.getClickedBlock().equals(block)) {
                customEvent.getPlayer().sendMessage("It works!");
            }
        }, block, EventPriority.HIGHEST));

To

        blockClickListener.getBlockMap().put(location,new Context(example -> {
            event.getPlayer().sendMessage("It works!");
        }));

Probably some ways to improve it but drastically improves readability

tardy delta
#

you can decide

tawdry python
#
int level = p.getItemInHand().getEnchantmentLevel(Enchantment.DIG_SPEED);
int levelupgrade = level + 1;
p.getItemInHand().addEnchantment(Enchantment.DIG_SPEED, levelupgrade);

Someone help me? I'm trying to enchant the item without limit, but when it reaches level 5, it gives error to enchant for level 6, how can I enchant without limit?

magic wigeon
hasty prawn
magic wigeon
#

TABLE IF NOT EXISTS tickets (reporter VARCHAR(16), reason VARCHAR(48))
This is my Table, i just wanna get the "reason" as a string

#

From the reporter (playername)

#

public String getTicketReason(String message) { String qry = "SELECT FROM tickets WHERE reason='"+message+"'"; mySQL.update(qry); return qry; }
You think make it like that or what?

#

I thinks its the return isn't it?

tawdry python
glass mauve
hazy parrot
magic wigeon
#

Im basicly just returning the qry command

tender shard
#

you basically currently say "give me the 'reason string' of the ban where the 'reason string' is "message"

#

so you already have the reason

#

?

jolly gust
#

How do I create my own building in the world?

tender shard
lost matrix
jolly gust
tender shard
lost matrix
jolly gust
shut field
#

I was told that maybe a metadata packet isn't being sent? I have a magma cube and around half the time using mob.setInvisible(true) and mob.setSize(2) the magmacubes will still show and the magmacubes will be larger or smaller than 2

shut field
lost matrix
shut field
#

in addition to this there are zombies I spawn that are supposed to be visible, I teleport them to look at each other, but one player will see them looking somewhere random while the other player will see them looking at each other (the same zombie will have different yaw/pitch values)

lost matrix
#

Which server version?

shut field
#

paper-118

lost matrix
#

Do you use a proxy (bungeecord etc) or a viaversion?

#

?whereami

shut field
lost matrix
shut field
#

is waterfall bad or smth?

lost matrix
#

Could be anything. No way to tell.

shut field
lost matrix
shut field
#

uhhh what would the error sources be?

ornate mantle
#

i have an NMS class of an entity which implements another class

#

if i get the entity and check if its an instance of that another class

#

will i get an error or will it actually be an instance

#

public class LostAdventurer extends Zombie implements PlayerEntityStats, EntityStats {

lost matrix
#

It will actually be an instance of your class

ornate mantle
#

event in question:

#
    @EventHandler
    public void onAttack(EntityDamageByEntityEvent event){
        if (Utilities.getEntityClass(event.getDamager()) != null && !(event.getEntity() instanceof Player)){
            ((EntityStats) ((CraftEntity) event.getEntity()).getHandle()).onAttack((LivingEntity) event.getDamager(), (LivingEntity) event.getEntity(), event);
        }
    }```
#

the LostAdventurer has an onAttack method which gets triggered in this event

#

the check for Player is redundant

#

idk why i put that there

ornate mantle
lost matrix
ornate mantle
#

splendid

#

thanks for spoonfeeding lol

#

instanceof EntityStats stats wont work in jdk17

lost matrix
ornate mantle
#

damn

#
    @EventHandler
    public void onAttack(EntityDamageByEntityEvent event) {
        if (((CraftEntity) event.getEntity()).getHandle() instanceof EntityStats) {
            ((EntityStats) ((CraftEntity) event.getEntity()).getHandle()).onAttack((LivingEntity) event.getDamager(), (LivingEntity) event.getEntity(), event);
        }
    }```so this would work basically the same right?
eternal night
ornate mantle
#

onattack only takes LivingEntity

#

just trynna make sure

eternal night
#

at least store ((CraftEntity) event.getEntity()).getHandle()

ornate mantle
#

lmao

#

too much work

lost matrix
ornate mantle
#

yep

#

the point of these events are that i wont have to look at them ever again

#

because the onAttack methods do all the modifications

lost matrix
# shut field

Pretty clear, right? You are referencing a non-static method on a static context.

shut field
#

I know what that means

#

I don't know how I'm supposed to put it in a consumer cause it isn't static.

lost matrix
#

Example usage:

  public void spawnHugeGlowSlime(Location location) {
    World world = location.getWorld();
    world.spawn(location, Slime.class, slime -> {
      slime.setSize(4);
      slime.setGlowing(true);
      slime.setCollidable(false);
    });
  }
torn shuttle
#

how can I set a player on fire?

lost matrix
#

setFireTicks(200)

torn shuttle
#

alright I'll do that instead

lost matrix
torn shuttle
#

๐Ÿ”ฅ

lost matrix
torn shuttle
#

๐Ÿ”ฅ โ˜๏ธ

lost matrix
torn shuttle
#

๐Ÿ”ฅ ๐Ÿ”ซ

shut field
smoky oak
#

โค๏ธโ€๐Ÿ”ฅ โ–ถ๏ธ ๐Ÿ–ค

torn shuttle
#

I wonder if it would be worth doing reflections to call my methods based on enums to save me on precious fistfuls of code lines

#

it's like a whole 4 lines of code for every enum that I am using, that's cringe

echo basalt
#

Consumer

lost matrix
#

BiFunction

torn shuttle
#

only use that one during pride month

lost matrix
#

...

torn shuttle
#

check the calendar it's set people on fire month

lime moat
#
        <dependency>
            <groupId>be.maximvdw</groupId>
            <artifactId>MVdWPlaceholderAPI</artifactId>
            <version>2.1.1-SNAPSHOT</version>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.spigotmc</groupId>
                    <artifactId>spigot</artifactId>
                </exclusion>
            </exclusions>
        </dependency>``` I have this, however, I need some help to figure out how add this custom repo to my intellij.
lost matrix
lime moat
#

I have no idea what exclusions means, I'm attempting to fork this plugin ๐Ÿ˜…

lost matrix
#

Does it transitively pull an old spigotmc version?

lime moat
#

First time ever trying to add something to a plugin, so not sure

lost matrix
lime moat
#

Could you explain how to do the install? I'm sorry :P

lost matrix
#

mvn install

lime moat
#

Just that?

lost matrix
#

This builds and installs a project into your local maven repository

lime moat
#

Like so, yes?

lost matrix
#

You can also just use ijs maven tab

lime moat
#

Hm

#

The normal install in Lifecycle appears to be working

eternal night
#

remove the initial mvn

lime moat
#

Nope, never mind

eternal night
#

just install

lime moat
eternal night
#

mvn is the "binary"

lime moat
#

Yeah, same error.

lost matrix
# lime moat

Yes because you didnt install the depencencies

lime moat
#

:P how would I install them? that was basically my first question, sorry

lost matrix
#

If they are not on maven central or another repo then you need to clone and install them as well

lime moat
#

Where/how would I do so (if you can link a guide or something)

lost matrix
#

Literally like you cloned your current project.
Find their github, clone the project, and build it using mvn install.

lime moat
#

Huh, so, in a new window, I just clone in my first case, MVdWPlaceholderAPI and install it?

lost matrix
#

There is a github src on this page

lime moat
#

Since Maven 3.8.1 http repositories are blocked.

Possible solutions:
- Check that Maven pom files do not contain http repository http://repo.mvdw-software.be/content/groups/public/
- Add a mirror(s) for http://repo.mvdw-software.be/content/groups/public/ that allows http url in the Maven settings.xml
- Downgrade Maven to version 3.8.1 or earlier in settings```
#

Hm

#

Do I downgrade Maven?

lost matrix
#

No you dont downgrade maven

eternal night
#

oh god

lime moat
#

lol, I'm so lost.

eternal night
#

they have a repo ?

#

why are you trying to install it yourself

lime moat
eternal night
#

oh, repo is dead ?

lime moat
#

I have no clue, never tried to use the normal repo

lost matrix
#

I think repo is private and needs credentials

lime moat
#

Should I try to put this in my Skywars POX?

eternal night
#

the repo seems unresponsive

#

so yea, private I guess ?

#

which also, gl building this yourself then

lime moat
#

welp

eternal night
#

concerning that it depends on something else from that repo

lime moat
#

Is that also dead?

#

It doesn't match the one in the spigot repo stuff

eternal night
#

oh

#

that one does seem open yea

lime moat
#

How shall I use that?

eternal night
#

basically add the repo like in the screenshot

lime moat
floral drum
#

chicken pox?!?!

lime moat
#

It should work, just doesn't ๐Ÿ˜‚

lime moat
#

Any ideas, Lynx?

#

The developer of the plugin isn't very helpful, so yeah ๐Ÿ˜…

eternal night
#

just add basically the stuff in the screenshot you linked

lime moat
#

I'll try it

eternal night
#

btw latest version of that is 3.1.1-SNAPSHOT

#

not 2.1.1

#

that screenshot is rather outdated

molten hearth
#

uh

eternal night
#

but we knew that ๐Ÿ˜…

molten hearth
eternal night
#

that was a third party project ^

#

not their own

molten hearth
#

oh rip

lime moat
#
Could not find artifact be.maximvdw:MVdWPlaceholderAPI:pom:3.1.1-SNAPSHOT in bukkitmc (https://nexuslite.gcnt.net/repos/bukkit/)```
#

lmao

lost matrix
lime moat
#

If I use 2.1.1, I get a different error, but it's still red. ```xml
de.simonsator:paf-spigot:jar:1.5.1 was not found in https://nexuslite.gcnt.net/repos/bukkit/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of bukkitmc has elapsed or updates are forced

Try to run Maven import with -U flag (force update snapshots)```

molten hearth
#

it does it has a wildcard for the domain

molten hearth
lime moat
#

I added xml <repository> <id>mvdw-software</id> <name>MVdW Public Repositories</name> <url>https://repo.mvdw-software.com/service/rest/repository/browse/public/</url> </repository>, so yes

molten hearth
#
        <repository>
            <id>simonsators Repo</id>
            <url>https://simonsator.de/repo</url>
        </repository>```
hasty prawn
#

I'm kinda surprised, I thought Maximvdw was a pretty well-known person in the Spigot community and it surprises me that his repo is private/outdated

lime moat
#

I can prolly message him, not sure if he has a discord tho.

molten hearth
#

actually paf-spigot doesnt exist anymore apparently lol

lime moat
#

PFT

molten hearth
#

in that repo anyway

#

maybe its in some random one

lime moat
#

how did the developer of this plugin manage to do this lmao

molten hearth
#

I think

#

I found it

molten hearth
#

great naming

lime moat
lime moat
molten hearth
#

yeah

lime moat
#

Then I do this? xml <dependency> <groupId>de.simonsator</groupId> <artifactId>Party-and-Friends-MySQL-Edition-Spigot-API</artifactId> <version>1.5.1</version> <scope>provided</scope> </dependency>

molten hearth
#

yeah

lime moat
#

That fixed that one lol

#

We also have a paf-bungee xml <dependency> <groupId>de.simonsator</groupId> <artifactId>paf-bungee</artifactId> <version>1.0.1</version> <scope>provided</scope> </dependency>

molten hearth
#

yeah the author renamed the project

#

oh for FUCKS sake

lime moat
#

lmao

#

The MVDV doesn't work still either, it's weird.

molten hearth
#

BungeecordPartyAndFriends

#

is the new name

#

no wait

#

there's no 1.0.1

#

AHA

lime moat
#

how the hell is this working for the plugin dev

molten hearth
#

its called

#

Spigot-Party-API-For-RedisBungee

#

wait

#

thats redisbungee

#

uhhh

#

well only that one has version 1.0.1 I guess go for it

lime moat
#
de.simonsator:Spigot-Party-API-For-RedisBungee:jar:1.0.1 was not found in https://nexuslite.gcnt.net/repos/bukkit/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of bukkitmc has elapsed or updates are forced

Try to run Maven import with -U flag (force update snapshots)``` ๐Ÿ˜‚
#

Prolly the repo isn't updated

molten hearth
#

wat

lime moat
molten hearth
#

oh wait

#

1.0.1-SNAPSHOT

#

not just 1.0.1

#

this dev enjoys renaming things

lime moat
#

:D that worked, 3 remain ๐Ÿ˜…

molten hearth
#

sheesh

#

which ones

lime moat
#
        <dependency>
            <groupId>com.grinderwolf</groupId>
            <artifactId>slimeworldmanager</artifactId>
            <version>2.2.1</version>
            <scope>provided</scope>
        </dependency>```
molten hearth
#

HE DOESNT EVEN OWN THE DOMAAAIN

lime moat
#

BRUH

#

this plugin dev ๐Ÿ˜ญ

molten hearth
#
<repository>
    <id>rapture-snapshots</id>
    <url>https://repo.rapture.pw/repository/maven-snapshots/</url>
  </repository>```
#

this guy really bought rapture.pw just to proceed to only host com.grinderwolf projects

#

oh wait there's 1 project under the pw. ...

lime moat
#

What should I change the dependency to?

molten hearth
#

keep it the same no?

lime moat
#

Doesn't work :P

molten hearth
#

ofc ofc

lime moat
#

lol

molten hearth
#

its not on his own repo

#

๐Ÿ’€

#

uh

#

2.3.0-SNAPSHOT and pray it works?

lime moat
#

IT DID

molten hearth
#

gg

lime moat
#

2 more ๐Ÿ˜…

molten hearth
#

if not I just realised https://repo.glaremasters.me/repository/concuncan/ has the right version if you really need it

lime moat
#
        <dependency>
            <groupId>net.gaagjescraft</groupId>
            <artifactId>swr-extension</artifactId>
            <version>1.7.1</version>
            <scope>provided</scope>
        </dependency>``` link to the spigot page: https://www.spigotmc.org/resources/skywarsreloaded-extension-new-playagain-feature-kit-menu-editor-npcs-1-8x-1-17x.69111/
#

Not sure if I need to buy it

hasty prawn
#

An example might be helpful here

molten hearth
#

oh their repo doesnt work

#

ofc it doesnt

#

why SHOULD IT WORK

soft tendon
#

sorry for the question, since what version is GameProfile a thing? Can't seem to find it on 1.12

lime moat
#

๐Ÿ˜‚ i'm so sorry for putting this on you, xpdz

molten hearth
#

np

lime moat
#

Christ, maybe we can contact em?

molten hearth
#

probablly

dim palm
molten hearth
#

oh wait

soft tendon
#

ope, imma do that. Sorry for the ping, forgot to turn it off

molten hearth
#

yeah uhm

#

https://nexuslite.gcnt.net/ works but its not there lol

lime moat
#

Huh

#

Where shall I add that?

molten hearth
#

uh its fine dont add it

#

you could build it yourself but then it doesnt work because you need SWR built first

#

and im assuming you're trying to build SWR

lime moat
#

Yes, I'm trying to build it and make some changes in the code

#

So, what should I do to SWR-Extension?

molten hearth
#

idek

lime moat
#

lol, i asked the dev, but we can go to the last one

#
        <dependency>
            <groupId>be.maximvdw</groupId>
            <artifactId>MVdWPlaceholderAPI</artifactId>
            <version>2.1.1-SNAPSHOT</version>
        </dependency>``` still this thing
molten hearth
#

bruh

#

well this genius' repo doesnt work

lime moat
#

I'm not sure where to contact max, so yeah

molten hearth
#

or perhaps it does its just slow

lime moat
#
        <repository>
            <id>mvdw-software</id>
            <name>MVdW Public Repositories</name>
            <url>https://repo.mvdw-software.com/service/rest/repository/browse/public/</url>
        </repository>``` I have this in here
#

that appears to work

glass mauve
#

how can I calculate in which direction the player is looking?
I'm not that good with Vector calculation but I know I can get the looking direction
as a Vector via player.getLocation().getDirection() but then?

#

can I somehow calculate an angle?

dim palm
#

player#getEyeLocation

molten hearth
#

its not even in the codemc repo waat

#

well

#
<repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
</repository>```
lime moat
#

What version?

molten hearth
#

idk just leave it as it is ig

#

if not try 8b5f4baa44

lime moat
#
Could not find artifact be.maximvdw:MVdWPlaceholderAPI:pom:8b5f4baa44 in bukkitmc (https://nexuslite.gcnt.net/repos/bukkit/)``` nope and nope
#
        <dependency>
            <groupId>be.maximvdw</groupId>
            <artifactId>MVdWPlaceholderAPI</artifactId>
            <version>2.1.1-SNAPSHOT</version>
        </dependency>```
molten hearth
#

for the version use ce97b8e

dim palm
#

why just not download the file and use it as systemPath

lime moat
molten hearth
#

bru

lime moat
#

I'm now getting this... oml ```xml
com.grinderwolf:slimeworldmanager:jar:2.3.0-SNAPSHOT was not found in https://nexuslite.gcnt.net/repos/bukkit/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of bukkitmc has elapsed or updates are forced

Try to run Maven import with -U flag (force update snapshots)```

tender shard
#

it says what to do: add the -U flag once

#

mvn clean -U

lime moat
#

One sec

molten hearth
#

bruv 2.1.1 isnt even on spigot

lime moat
# tender shard mvn clean -U
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.078 s
[INFO] Finished at: 2022-09-23T14:05:07-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException

Process finished with exit code 1```
tender shard
#

btw it's typical that jitpack doesn't properly work

#

it also doesn't work for me when using the tag

lime moat
tender shard
molten hearth
#

uh no its different

#

when does jitpack ever work ๐Ÿคฆ

tender shard
tender shard
molten hearth
#

๐Ÿ˜‚

lime moat
#

Whoops

#
com.grinderwolf:slimeworldmanager:jar:2.3.0-SNAPSHOT was not found in https://nexuslite.gcnt.net/repos/bukkit/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of bukkitmc has elapsed or updates are forced

Try to run Maven import with -U flag (force update snapshots)``` still happens even after build success.
molten hearth
#

Try to run Maven import with -U flag (force update snapshots)

lime moat
molten hearth
#

did you already do that? bcus I think we fixed that

tender shard
#

World world = myPlayerObject.world;

Is the same as

World world = myPlayerObject.getClass().getField("world").get(myPlayerObject);
lime moat
#

The slime one is fixed... i think

tender shard
#

just manually install the file to your repo

#

that's the only proper solution if you cannot build it yourself and if it isn't available in any repository

sterile token
#

Maybe wrong channel but is there a website Where I can read about the request body from the maven deploy plugin?

tender shard
#

I still dont get why you're asking this

#

the body is the actual file that it's about to upload

sterile token
#

I mean

#

I need the parameters that the plugin put on the request

#

Because i need to know them to build the rest api

#

๐Ÿค”

tender shard
#

there are no "parameters"

#

the body is the file content, nothing else

sterile token
#

And what about the repo id

#

And the Username and password

#

!!

#

Also how does the sever know the groupId, etc from the jar?

tender shard
#

that's the request line

sterile token
#

Okay

#

Isnt it, what ima asking?

#

๐Ÿ˜ฌ

tender shard
#

PUT /repositories/com/jeff_media/filename HTTP/1.1
[Headers...]

[Body]

tender shard
sterile token
#

Okay

tender shard
#

you only said "how can I see the parameters in the body"

sterile token
#

So i wasnt asking corr3ctly

#

My bad

tender shard
#

so your question is "how does a http put request look like"

sterile token
#

I just want to know how does the maven deploy plugin formas the request

#

I recognize I wasnt explain really good

sterile token
#

Do you know?

sterile token
#

Oh ok

#

But Where does it form the request?

tender shard
quiet ice
sterile token
#

I just don tknow whst things contains the request

#

Because the request for deploying an artifact its diff from the download one

tender shard
#

upload is "PUT", download is "GET"

#

followed by the path, e.g. /file.txt, followed by the protocol version, e.g. HTTP/1.1

#

so the "http verb" is PUT or GET

#

and it's part of the request

sterile token
#

I already know that

#

I dont think you understand me

#

I asking what DATA is sent IN the REQUEST

tender shard
#

NONE

sterile token
#

Not what verb I need to use

tender shard
#

well the URI and the version

#

GET /file.txt HTTP/1.1

#

that's the full request part

#

there is never anything more in that part

sterile token
#

So how the heck the sever know what usernae, password, repository id

#

๐Ÿค”

quiet ice
#

repository id is irrelevant

sterile token
#

They are not taken from heaven

#

I know that

#

But that why I want to know how the request is form

#

๐Ÿคฃ ๐Ÿคฃ

tender shard
quiet ice
#

They are sent as an unencrypted base64 string it seems

tender shard
#

e.g.

GET /protect-file.txt HTTP/1.1
Authorization: <type> <credentials>
#

everything about that is explained here ^

quiet ice
#

But you should already know that if you read the links that I sent

tender shard
#

in 90% of cases you have a "Basic" auth

sterile token
#

Whst links

sterile token
#

Oh sorry

quiet ice
#

I myself do not use that way though as I went the FTP route

#

Sadly stupid gradle does not support it, so right now I am working on alternatives.

vital ridge
#

I have a yml file I'm creating in my plugin folder, but I manually wrote the data to the yml file in the intellij, but the manually written data doesn't appear in the yml file inside the plugins folder. How can I get the manually written data to be loaded with the yml file itself?

mellow edge
#

is there a way to assign data to an item, like an unique id

torn oyster
#

how would I just generate 2x2 chunk area?

mellow edge
fluid river
#

persistentdatacontainer

#

mc 1.14+

#

same as nbt but a lot easier

mellow edge
#

ok

fluid river
#

ItemStack#getPersistentDataContainer()

#

.set()
.get()
.has()

mellow edge
#

thank you

fluid river
#

also can be applied to entites including player

#

Entity#getPersistentDataContainer()

delicate lynx
#

the idea is, you can set custom data onto items, so you could set a custom string as an ID on an item

fluid river
#

There are multiple types of values which can be stored

#

Also you can create own types

mellow edge
#

ok

lethal knoll
#

Anyone has a proper reference for NMS 1.19?

fluid river
#

But basic are like string, int and so on

lethal knoll
#

I'm trying to include the dependency in maven but can't find it

fluid river
lethal knoll
fluid river
#

sucks to be you

#

no offense

lethal knoll
#

there is also no spigot artifact id

#

only spigot-api

#

unless the repo is wrong

dusty marsh
#

it will not let me create a name for my mine i am in 1.17.1

fluid river
#

sucks to be mojang and spigotmc

lethal knoll
#

So if anyone could give a useful answer would be much appreciated

dusty marsh
#

i am trying to use MineResetLite and it will not let me create a name for my mine i am in 1.17.1 can someone help me with it

vocal cloud
sterile token
#

public class FileHandler extends YamlConfiguration {

private final Plugin plugin;
private final String name;

public FileHandler(Plugin plugin, String name) {
this.plugin = plugin;
this.name = name;
this.reload();

public void save() {
  try
 } catch (Exception ex) {

}
}

}

#

Lmao really harful to type it on cellphone

shrewd sphinx
#

i figured it out!!