#help-development

1 messages ยท Page 373 of 1

iron palm
#

damn

lost matrix
#

Only if you use mongodb

iron palm
#

then what am i missing

#

may i have to have apache started?

lost matrix
#

You need a running redis server

iron palm
#

but there's no redis for windows actually

#

or i have to use wls

torn shuttle
#

yo I heard you liked tasks

#

let's make them go 15 layers deep

#

this sure is a lot of work for a feature people will complain about

lost matrix
#

Eh nvm dont use it. Its quite outdated. CF is a better approach

iron palm
#

good thing is that i already have ubuntu on my windows so

#

gotta install redis

lost matrix
#

Just run a redis docker

iron palm
#

oj

torn shuttle
#

ah yes this is great code, where you can both win and lose at the same time

iron palm
#

oh

#

thats a thing

torn shuttle
#

winning and losing are just two sides of the same coin

iron palm
torn shuttle
#

I don't know what mobarena is but I assume from the name that yes it will

#

probably a bit more elaborate but w/ever

tardy delta
#

/kill @e[name="boss"]

#

ez

iron palm
torn shuttle
iron palm
#

mobs will be spawned randomly

torn shuttle
torn shuttle
#

there's a default pool of 10 different arenas but the bosses are fixed inside of those arenas

#

and you can just make more

timid jetty
#

Anyone know how to improve the rayTraceEntities consistency

eternal oxide
#

raytrace is accurate

#

If you are using the Player#getLocation() getDirection() you are tracing the direction the body is facing not the head.

#

use getEyeLocation() if you want it to rayTrace the direction you are looking

unique sable
#

public static HashMap<Player, Double> map = new HashMap<>(); How do I save and load the hashmap from a file

tender shard
#

You for-loop your data into a YAMLConfiguration

#

Then save that

remote swallow
#

You can just save the map

tender shard
#

And the key should be UUID

tender shard
remote swallow
#

Ah trur

tender shard
#

The player object is not consistent across restarts

#

Erm

#

Rejoins*

#

the playerโ€˜s UUID should be used instead

unique sable
#

alright

golden raven
#

BlackCloverUHC.api.getPotionEffectProvider().applyPotionEffect(player,new KTBSEffect(PotionEffectType.INCREASE_DAMAGE,0,60));
the getPotionEffectProvider is not true can you help me ?

rough drift
#

player.getEyeLocation().getDirection()

timid jetty
lost matrix
golden raven
#

BlackCloverUHC from the class

lost matrix
#

Is this your class? Is it an external api you are trying to use?

golden raven
#

yes

lost matrix
#

If someone asks you "x or y" then you answer either "x" or "y" but not "yes"...

golden raven
#

yes i use a api extern

lost matrix
#

Send it, then we might be able to help

quaint mantle
#

Anyone knows why the entity player is not showing up

MinecraftServer server = ...;
WorldServer world = ...;

    character = new EntityPlayer(
        server,
        world,
        new GameProfile(id, name),
        new PlayerInteractManager(world)
      );

    character.setLocation(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch());

    PlayerConnection connection = new PlayerConnection(server, new NetworkManager(EnumProtocolDirection.SERVERBOUND), character);
    character.playerConnection = connection;

    if(world.getEntity(id) == null) {
      world.addEntity(character);
      world.getChunkAt(loc.getBlockX(), loc.getBlockZ()).addEntities();
    }

i'm sending a second nms packet but it sometimes duplicated for some reason

quaint mantle
lost matrix
#

Why do you send nms packets when actually trying to spawn a physical player?

tender shard
#

I currently do not recall the actual name

quaint mantle
#

yeah im doing it but it duplicates when i left & rejoin the server

#

sending an addplayer packet to user when joined

tender shard
#

whut? at first, you said there's no entity at all. now you claim it gets duplicated

quaint mantle
#

If i send it it duplicates if i dont send any nothing shows up

lost matrix
#

Again: You dont need to send any packets yourself when you actually spawn an entity in the world

quaint mantle
lost matrix
#

You either have virtual or a physical entity. Not both.

quaint mantle
#

i'll try again

lost matrix
#

What version are you on and are you trying to spawn an actual player (which will get attacked by mobs and draws actual server resources)
or do you just want a fake player to spawn?

quaint mantle
#

using 1.16.5. I needed to make a right click to an npc handler and it was a bit hard than i tought cuz right_click_air is not emitting when user is not holding anything. so i made it an real npc

lost matrix
#

The client sends interaction packets when right clicking a fake entity. You just wont see the event being fired but the packet
will be received

quaint mantle
#

should i use protocol lib etc for it, as built in spigot thing is not working?

lost matrix
#

Yes if you want to check for interactions with fake entities then you need a packet listener because the server
itself is unaware that those entities exist and just throws away the packets without firing any events.

quaint mantle
#

it'd be better i guess this thing is hiding from me

#

i cant place blocks to its location, so it exists but i cant see for some reason

lost matrix
#

Getting an actual player with a live connection to spawn is pretty hard. Way harder than just spawning a fake player
and listening for some packets.
Keep in mind that you need to keep track of your entity ids somehow (Map<Integer, YourFakeEntityHandler>) so that
you can check which of your entities got interacted with

quaint mantle
#

yeah you are right

#

thank you so much for the help

stone jackal
#

Hey, what is the best skyblock plugin full customizable ?

hybrid spoke
#

@tender shard do you still have the code for evaluating the chunks around a center chunk?

smoky oak
#

very crappy solution here

#

if you scroll down a bit it should increase in quality @hybrid spoke

thick oracle
#

?paste

undone axleBOT
thick oracle
#

This is probably not the right place to ask this, but I'm not sure where else to ask:

I'm using MongoDB in my plugin (with username+password auth). When first starting my plugin it will auto generate a password.
The logs show a successful connection as far as I can tell (https://paste.md-5.net/ovajalavob.md), however this combination of username and password shouldn't work.

When trying the same combination in MongoDB Compass I get an error "Authentication failed".

This is my Database class https://paste.md-5.net/kehekizeve.java

desert tinsel
#

?paste

undone axleBOT
tardy delta
#

@twilit summit i dont answer dms, ask it here

#

use some location.add().getBlock() stuff

fluid river
#

hello brush

#

need jree fava lessons?

tardy delta
#

hi

#

i probably need lessons on how to let minestom work

fluid river
#

what is minestom

tardy delta
#

me struggling with terrain generation

#

so these chunks get generated whenever the client joins

molten hearth
#

pizza box chunk

tardy delta
#

bruh my vid tool broken

#

simple but powerful ig

fluid river
#

what's the problem tho

tardy delta
#

uh just creating a reasonable landscape

fluid river
#

why are your blocks separated then

tardy delta
#

oh i was just testing to see how a single chunk looks

fluid river
#

nice ground

#

awesome tree

tardy delta
#

whole terrain looks like this

#

but i have no idea what im doing lol, just copied the perlin noise tutorial

chrome beacon
dusk flicker
#

that in Spigot Fourteen? or smth else

#

im assuming by Olivo's sticker is is not lol

chrome beacon
#

^

tardy delta
#

^

#

i gotta add so many code just to implement events that arent doing anything rn lol

molten hearth
#

Minestom lighting is fucked

#

generally people just set light level to max

tardy delta
smoky oak
#

question

molten hearth
smoky oak
#

isnt minecraft lighting super simple

#

like

#

if light source each adjacent transparent block one less

tardy delta
#

idk

smoky oak
#

and under clear skies its just depending on time of day

#

why is it so broken then

tardy delta
#

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

#

i havent looked into the code

#

and i have no clue how it works or how to implement it

smoky oak
#

i dont envy the guy who declared hes writing minecraft server software in rust

tardy delta
#

bruh chrome crashed and my pc had a stroke

twilit summit
tardy delta
#

just ask here

idle palm
#

Goodmorning I'm looking for 1.8.9 plugin that will allow me to summon NPCs which when I hit particles generate

twilit summit
#

Some way to get block 2 blocks far ways of the left side of player?

tardy delta
#

Bruh chrome crashing took down my whole pc

#

Nice bsod

timid jetty
#

Hola is there any custom model data that's built into spigot, more specifically if the old parrying models still exist?

tardy delta
#

are you talking about ItemMeta#setCustomModelData?

timid jetty
#

Yep

signal kettle
#

Hello, is there any way to archieve that when ItemStack is given to player then he can't place that block or craft with it?

tardy delta
#

me doing weird stuff lol

small hawk
tardy delta
#

just to modify stuff on runtime i shouldnt be modifying lol

smoky oak
#

fucks a static block

small hawk
#

Does anyone have example code of creatingSection in custom config file? I am trying to log BlockPlacement into my config, but i get some errors, and I probably do it wrong, so any links or examples ?

tardy delta
#

i bet minestom doesnt allow to add custom keybinds :(

#

fuck

dry yacht
drowsy elm
#

hello

#

also, i don't know why but i can't send my code with the ```

eternal oxide
#

?notworking

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.

crimson relic
#

?paste

undone axleBOT
signal kettle
eternal oxide
#

!verify

undone axleBOT
#

Usage: !verify <forums username>

drowsy elm
#

Description Resource Path Location Type
The method setCustomModelData(int) is undefined for the type ItemMeta CraftsCustoms.java /BC9_Plugin/src/main/java/me/jesuismister/crafts line 44 Java Problem

eternal oxide
#

what version of Spigot?

drowsy elm
#

1.19.3

eternal oxide
#

unlikely

#

?paste the full stacktrace error

undone axleBOT
eternal oxide
#

probably

crimson relic
#

...

opal juniper
#

this is 1.19.2

#

but still weird

drowsy elm
#

yes i forgot i had to change for 1.19.2 in order to have optifine 3D model

#

but still, why can't i use only this method ?

eternal oxide
#

yeah, the error makes no sense

#

run mvn clean

drowsy elm
#

i'm quite a newbie so where should i run the command ?

tardy delta
eternal oxide
#

Which IDE do you use?

opal juniper
#

at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:27)

Artifact of the reload?

drowsy elm
#

oh shit

eternal oxide
#

best IDE ๐Ÿ˜‰

drowsy elm
#

i don't like where this is coming

subtle folio
#

this is my new favorite image

opal juniper
#

eclipse is fine

#

its personal preference after all

tardy delta
#

i probably shouldnt be mutating final double fields on runtime

eternal oxide
#

justy openign Eclipse so I can tell you precisely ๐Ÿ™‚

tardy delta
#

unsafe is crying at me

drowsy elm
#

i'm force to use it at school sorry lol

tardy delta
#

we are forced to use ij lol

#

and all this stuff

subtle folio
#

web storm the goat

river oracle
#

vscodeeeee

eternal oxide
#

Select project, Project menu -> clean

river oracle
#

oh wait I forgot I'm the only insane man here

drowsy elm
hasty prawn
#

I'm glad my professors never force me to use their IDE, since they IDE of choice is usually the worst option. NetBeans for Java? Notepad++ for JS/WebGL anyone?

eternal oxide
#

then use right click -> Maven -> update project

subtle folio
#

Netbeans is awesome

twin venture
#

hello , iam trying to remove all enchantments from itemstack

twin venture
#

its not working ,-,

subtle folio
#

use item meta

drowsy elm
eternal oxide
drowsy elm
#

yes i did it like that

#

with force option

eternal oxide
#

did you tick to force update SNAPSHOTS?

#

ok

#

then theres no reason you are getting that error.

opal juniper
#

maybe recompile server?

hasty prawn
# twin venture its not working ,-,

Try removing the itemStack.setItemMeta(itemMeta). Pretty sure you're removing the enchantments directly from the ItemStack, but then you're not changing the ItemMeta so they're still on that, and then you're re-applying them.

drowsy elm
#

The error show up in eclipse at first, so i don't think it's from the server

eternal oxide
#

I'm running Eclipse

#

?paste your pom

undone axleBOT
drowsy elm
#

may be due to my pom.xml, but i've already have verify on the Bukkit server

eternal oxide
#

have you run buildtools?

drowsy elm
#

yes

opal juniper
#

looks fine then

drowsy elm
#

for the 1.19.3 version

eternal oxide
#

for 1.19.3?

drowsy elm
#

java -jar BuildTools.jar --rev 1.19.3

#

i know my server is in 1.19.2 but no reason to get the error in eclipse ?

eternal oxide
#

your stacktrace says the error is on 1.19.2 your pom is saying 1.19.3

opal juniper
#

they are devving against .3 for a .2 server

drowsy elm
#

i can pass my server in 1.19.3 if you want

eternal oxide
#

change to 1.19.2 in your pom

tardy delta
#

uhh is there any chance that access violations in the jvm corrupt it?

#

its still working so ig not

drowsy elm
eternal oxide
#

yes as you have no repositories in your pom

drowsy elm
#

ok

eternal oxide
#

else

drowsy elm
#

i come back asap

#

else ?

opal juniper
#

else put the spigot repo and spigot-api dependency is where he was going i think

eternal oxide
#
    <repositories>
        <repository>
            <id>spigot-repo</id>
            <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
        </repository>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>```
tardy delta
#

i dont see any reason why this would cause a access violation?

opal juniper
#

yeah i see one thing

#

UNSAFE

tardy delta
#

its either unsafe or reflections and idk if reflections can easily modify final fields

eternal oxide
drowsy elm
#

but i can rewrite spigot-api if you want

eternal oxide
#

you only depend on spigot if you are using NMS

#

or shaded libs

final monolith
#

Hey guys, when i spawn an EntityItem using packets, the item drops on the floor, i wanna to leave it fixed on the location, how i can do that?

tardy delta
#

cant i get the offset of a double or smth

drowsy elm
eternal oxide
#

are you using those for skins?

drowsy elm
#

yes

eternal oxide
#

you no longer need them in 1.19

#

sec

tardy delta
#

how does that make sense

drowsy elm
eternal oxide
#

Spigot now has a profile API

drowsy elm
#

ok

drowsy elm
#

and how does it work ? any doc or example ?

#

tks

ancient jackal
#

Is there a way I can change the way Spigot runs from a plugin or replace components of the API with my own implementation?

tardy delta
#

ofc all the stuff im looking at is native

ancient jackal
#

Not an option

crimson relic
#

lol

subtle folio
#

Then no..

eternal oxide
ancient jackal
#

Alright

eternal oxide
#

you can't be using 1.18.2+

drowsy elm
#

but you said it was the new method for 1.19 ?

eternal oxide
#

yes it exists in all versions above 1.18.2

drowsy elm
#

and i'm in 1.19.2 or 1.19.3

quiet ice
#

But if you are not using 1.18.2+, it won't be available

#

At compile time that is.

eternal oxide
#

I have this exact code in a tst plugin using 1.19.2

quiet ice
#

Maven, gradle or none?

eternal oxide
#

maven

quiet ice
#

what's the pom.xml?

#

Ah I found it

#

Although the updated one would be neat

twilit roost
#

can I somehow calculate/get the system resources, spigot uses when loading/generating world?
So I can see eg.
world - 10% CPU 15% RAM
world_nether - 15% CPU 8% RAM

drowsy elm
#

i've copy paste your example and i've got the same problem

eternal oxide
#

?paste yoru current pom

undone axleBOT
drowsy elm
eternal oxide
#

now show me a pic of yoru project structure

quiet ice
eternal oxide
#

gradle AND maven?

chrome beacon
#

๐Ÿ‘€ That's a first

eternal oxide
#

yeah, no IDE is going to be ok with that

quiet ice
#

Only maven is being used though, the grade nature does not seem to be present

drowsy elm
#

no problem since then ๐Ÿ˜ญ

quiet ice
#

Send the projects .classpath file @drowsy elm

eternal oxide
#

I'm guessing it's the issue as your maven setup is all correct now for spigot 1.19.2

quiet ice
#

Yep, gradle is not present on the classpath.

#

So it won't pose an issue

eternal oxide
#

Can you expand your Maven Dependencies and give us a screenshot

eternal oxide
#

bukkit 1.13.1?

#

do you have manually add resources?

drowsy elm
#

maybe some lost file lol

#

maybe i've tried this afternoon

#

i did a lot of manipulation

twilit roost
#

I have a method and I want to call it and attach any another method to it.
So I can eg. generate new world and after thats done, print something to player. Without having to have additional argument in my methods

#

How shall I do it?

quiet ice
# drowsy elm

I guess you should try excluding bukkit from vault

quaint mantle
#

Can someone help me with my ram i launch my server and after a few hours of running it i come back and if it was on 6GB of RAM when i come back it would be like 8

eternal oxide
#

or switch vault and spigot in your pom

#

so spigot is first before vault

drowsy elm
#

ok

eternal oxide
#

they are added in order

drowsy elm
#

can i delete bukkit 1.13 ?

quiet ice
quiet ice
drowsy elm
#

THAT'S IT !!

eternal oxide
#

it affects the order dependencies are searched

quiet ice
#

Yes but spigot doesn't provide bukkit these days

eternal oxide
#

it still has the api

quiet ice
#

ah that you mean.

eternal oxide
#

so whatever comes first gets to provide the api, in this case vaul was offering up 1.13 by th elooks

quiet ice
#

I'll keep that in mind for my maven resolver.

drowsy elm
#

and the setCustomModelData, is also recognise

#

thanks a lot for the help guys !

tardy delta
#

this better works lol

drowsy elm
#

and sorry for the bother ๐Ÿ™‚

quaint mantle
#

Can someone help me with my ram i launch my server and after a few hours of running it i come back and if it was on 6GB of RAM when i come back it would be like 8

#

can someone pls help me with that

twilit roost
iron palm
#

why do i receive this error?

 java.sql.SQLException: invalid database address: jdbc:mysql://localhost:3306/tickets```
everything was working fine before i restart the server
tardy delta
#

bruh if only the dude from that library took the time to write a toString

#

lemme just write a proxy for it lol

#

bruh ofc he also made his class final

#

pfff

iron palm
tardy delta
#

wait if i have an array that i obtain from Field#get, does changing it also reflect to the original array?

#

i might drop my varhandle then

rough drift
#

Custom Advancements

quaint mantle
#

anyone got a plugin like this

#

updated

tawdry parcel
#

PlayerLoginEvent?

iron palm
#

eh

#

then nvm

#

i think that even tho PlayerLoginEvent would be working well they cannot change the kick message since PlayerLoginEvent is no really based on banned players right so i guess PlayerKickEvent should work fine

tawdry parcel
#

for some reason it sais ALLOWED

iron palm
#

oh

#

in that case there is nothing to discuss

torn shuttle
#

man I would kill to have a 24/7 gym

#

this is seriously messing with me

#

I keep having to go to the gym pretty early during my workday and then I'm just too tired to work efficiently

tawdry parcel
#

Thank you. That's working:

package com.koner.the5utils.punishments;

import org.bukkit.ChatColor;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerLoginEvent;

public class BanEvent implements Listener {
    @EventHandler
    public void onBannedPlayerJoin(PlayerLoginEvent event) {
        String reason = "Hacking";
        String player = "CONSOLE";
        event.setKickMessage(ChatColor.RED + "Du wurdest gebannt!\n\n" + ChatColor.RESET +
                ChatColor.BOLD + "Grund: " + ChatColor.RESET + reason + "\n" +
                ChatColor.BOLD + "Autor: " + ChatColor.RESET + player + "\n"
        );
    }
}
iron palm
#

eh

#

cool

#

is there anything wrong with jdbc:mysql://localhost:3306/tickets as jdbc url? server can't stop throwing weird errors for no reason

tawdry parcel
#

Like this: ```java
package com.koner.the5utils.punishments;

import org.bukkit.ChatColor;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerLoginEvent;

public class BanEvent implements Listener {
@EventHandler
public void onBannedPlayerJoin(PlayerLoginEvent event) {
String reason = "Hacking";
String player = "CONSOLE";
if (event.getResult() == PlayerLoginEvent.Result.KICK_BANNED) {
event.setKickMessage(ChatColor.RED + "Du wurdest gebannt!\n\n" + ChatColor.RESET +
ChatColor.BOLD + "Grund: " + ChatColor.RESET + reason + "\n" +
ChatColor.BOLD + "Autor: " + ChatColor.RESET + player + "\n"
);
}
}
}

iron palm
#

it does actually

                    con = DriverManager.getConnection(url, user, password);
#

the url is this and the user is root i guess

#

lemme check

#

oh

#

i think i found the problem

#

the mysql has no password but i've given that a password

twilit roost
#

Can I append multiple values onto CompletableFuture?
Im returning it with <Component>
And I would like to return multiple Components via same call

iron palm
#

thanks for detailing the password and user

graceful oyster
#

Im quite new to plugin development, and i've been wondering for a while now; Why are methods like getDisplayName() and setDisplayName() deprecated? Sorry if its a dumb question.

twilit roost
#

oh dayum
tysm even tho ๐Ÿ˜„

eternal oxide
#

they are not deprecated in Spigot

graceful oyster
#

Makes sense, thank you! I wasn't aware that it was paper deprecating them.

tardy delta
#

minestom also uses components ๐Ÿฅบ

torn shuttle
#

wth is going on with my internet connection today

#

I can't reach authentication servers, I can't reach nordvpn, half the time I refresh a page it fails

#

are auth servers down for anyone else?

#

also I can't join discord vc

eternal oxide
#

routing issues or you are getting ddos

torn shuttle
#

I'll eat my own shoe if someone is ddosing me, I am almost always behind a vpn these days

pseudo hazel
#

use early returns

#

that will atleast reduce indentation

torn shuttle
#

man playing around with directory cloning is, uh, fun, and very consistent too

#

turns out File.copy with replace_existing will create a directory when what you are moving is inside a directory, but not when it isn't?

#

what a bizarre issue

#

but hey I got it to stop crashing

pseudo hazel
#

yikes

signal kettle
#
    @EventHandler
    public void onCraft(final PrepareItemCraftEvent event) {

        if (event.getInventory().getMatrix()[3].hasItemMeta()) {
            event.getInventory().setResult(null);
        }
        if (event.getInventory().getMatrix()[0].hasItemMeta()) {
            event.getInventory().setResult(null);
        }
    }

Why it's work only for the first matrix and don't for second?

#

Is there a way to set it as any or every?

pseudo hazel
#

any or every what

signal kettle
#

like if item has meta and will be put in any of the 9 matrix(crafting table windows) then set result

round pendant
#

how do I save information per player, for example: skills, stats and more?

pseudo hazel
#

loop over all the slots

tardy delta
#

i kinda like the syntax

pseudo hazel
#

an keep a boolean value to decide if you need to reset the result

tardy delta
#

only ArgumentType.String ๐Ÿค”

pseudo hazel
#

do you know how to save data in a file

#

oh hmm

round pendant
pseudo hazel
#

yeah saving it into the player's pdc would also work

#

okay well then I would look at that first

#

?pdc

pseudo hazel
#

or read this

signal kettle
tawdry parcel
#

If I use Bukkit.getBanList().getBanEntry(event.getPlayer().getName()).getReason() it sais I need either Type.IP or Type.NAME, but how can I have both?

signal kettle
# pseudo hazel loop over all the slots
    @EventHandler
    public void onCraft(final PrepareItemCraftEvent event) {

        for (int i = 0; i < 9; i++) {
            if (event.getInventory().getMatrix()[i].hasItemMeta()) {
                event.getInventory().setResult(null);
            }
        }
    }
pseudo hazel
#

wdym both

tawdry parcel
pseudo hazel
#

just call it again

tawdry parcel
#

wait can a player be name banned and ip banned at the same time?

#

oh

#

but which ban reason is then showed?

pseudo hazel
#

well if you use ip-ban it will show as IP

#

xD

signal kettle
tawdry parcel
#

should you even use /ip-ban?

pseudo hazel
#

no I wasnt talking to you sorry

#

can you show the loop you made?

signal kettle
#

ahh okay np

#

sure!

    @EventHandler
    public void onCraft(final PrepareItemCraftEvent event) {

        for (int i = 0; i < 9; i++) {
            if (event.getInventory().getMatrix()[i].hasItemMeta()) {
                event.getInventory().setResult(null);
            }
        }
    }
pseudo hazel
#

no? this is just a presence check

#

he isnt getting any meta

signal kettle
#

oh your right my bad

ERROR Could not pass event PrepareItemCraftEvent to CITPicker v1.0-1.19
20.02 18:04:17 [Server] INFO java.lang.NullPointerException: Cannot invoke "org.bukkit.inventory.ItemStack.hasItemMeta()" because "org.bukkit.inventory.CraftingInventory.getMatrix()[i]" is null
pseudo hazel
#

see thats another issue xD

tawdry parcel
#

ok then I'll add it to my commands.yml xD

command-block-overrides: []
ignore-vanilla-permissions: false
aliases:
  icanhasbukkit:
  - []
  tell:
  - []
  w:
  - []
  statisticshare:
  - []
  statshare:
  - []
  statsshare:
  - []
  unban:
  - minecraft:pardon $$1
  pardon:
  - []
  ban-ip:
  - []
  pardon-ip:
  - []
pseudo hazel
#

yes because empty slots will return null

#

which is the reason why if there is nothing in the first slot, it fails since then it throws the error

signal kettle
#

Thank you! is working, appreciate โค๏ธ

signal kettle
#

yes continue { not return;

#

soo that's right?

    @EventHandler
    public void onCraft(final PrepareItemCraftEvent event) {

        for (int i = 0; i < 9; i++) {
            if (event.getInventory().getMatrix()[i] != null) {
                if (event.getInventory().getMatrix()[i].hasItemMeta()) {
                    event.getInventory().setResult(null);
                }
            }
        }
    }
#
    @EventHandler
    public void onCraft(final PrepareItemCraftEvent event) {

        for (int i = 0; i < 9; i++) {
            if (event.getInventory().getMatrix()[i] != null) continue;
            if (event.getInventory().getMatrix()[i].hasItemMeta()) {
                event.getInventory().setResult(null);
            }
        }
    }
}

I do like this and it's stop working

#

ahh let me try like you

tawdry parcel
#

What is the "source" of a ban lol?

#

oh okay thank you

signal kettle
#

this one with double continue not work but that work perfect:

    @EventHandler
    public void onCraft(final PrepareItemCraftEvent event) {

        for (int i = 0; i < 9; i++) {
            if (event.getInventory().getMatrix()[i] == null) continue;
            if (event.getInventory().getMatrix()[i].hasItemMeta()) {
                event.getInventory().setResult(null);
            }
        }
    }
#

thank you very much again, I learned a new thing today and really appreciate it

tawdry parcel
#

yeah it's really lovely that so many of the people here are using their time to help other people

balmy valve
#

Anyone know if itโ€™s possible just spawn a firework explosion without needing to spawn and detonate a firework?

green prism
#

Hello everyone.
So, Configuration config value still null even if loaded, can you help me please?

ConfigHandler class:
https://paste.md-5.net/cibudelezo.java

onEnable:

    @Override
    public void onEnable() {
        instance = this;

        new ConfigHandler().loadConfig();
        initDbHandler();
        registerListeners();

        getLogger().info("Persistify has been enabled!");
    }```

StackTrace:
```cmd
19:30:36 [WARNING] Exception encountered when loading plugin: Persistify
java.lang.NullPointerException: Cannot invoke "net.md_5.bungee.config.Configuration.getString(String)" because "config" is null
    at it.mikeslab.persistify.Persistify.initDbHandler(Persistify.java:41)
    at it.mikeslab.persistify.Persistify.onEnable(Persistify.java:22)
    at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:265)
    at net.md_5.bungee.BungeeCord.start(BungeeCord.java:295)
    at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:67)
    at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
lost matrix
tardy delta
#

call saveDefaultCOnfig()

#

i believe calling JavaPlugin#getCOnfig loads it if first time

green prism
#

There's no method like that

tardy delta
#

smh

#

isnt there a bungeecore server

green prism
#

Yeah, sure

#

But they are different APIs

balmy valve
signal kettle
#

I used ArrayList for block place event and it's cancel placing but only when there is one item in hand, when more then one in stack then it's just not cancel placing

balmy valve
#

And itโ€™s sound

lost matrix
signal kettle
balmy valve
green prism
#

BlackBytes, I believe in you
Help me

#

please

dry yacht
signal kettle
dry yacht
signal kettle
#

did you know maybe what causing the problem that when more items then one in stack then it not block the placement?

green prism
# dry yacht Send `initDbHandler`, as that's what's causing your stacktrace.
    private void initDbHandler() {
        Configuration config = ConfigHandler.getConfig();

        String connectionString = config.getString("connection-string");
        String database = config.getString("database");
        String collection = config.getString("collection");

        dbHandler = new MongoDBHandler(connectionString, database, collection);
    }
signal kettle
dry yacht
green prism
#

Yeah I'm sorry, I just renamed the Config class

#

Config == ConfigHandler

dry yacht
# signal kettle did you know maybe what causing the problem that when more items then one in sta...

Hard to explain, as you're quite new, but the contains checks on memory location equality. If you stack two items, it's not guaranteed that the item is at the same location in memory. I guess they take either A or B, increment by the other's amount and use that onwards, but I'm not sure. It's best to have a "scalar" value like int, string, etc, which you can pick out of that item-stack in question to then compare. That's what the data container would be for, so you can attach that value to the item.

signal kettle
#

okay thank you I will do it like you said then to just make sure

dry yacht
dry yacht
lost matrix
# balmy valve Or are you meaning that there is a FireworkExplosion entity?
  @EventHandler
  public void onSneak(PlayerToggleSneakEvent event) {
    if (event.isSneaking()) {
      return;
    }

    Location playerLoc = event.getPlayer().getEyeLocation();
    Location fireworkLoc = playerLoc.add(playerLoc.getDirection().multiply(8));
    World world = event.getPlayer().getWorld();

    world.spawn(fireworkLoc, Firework.class, firework -> {
      FireworkMeta meta = firework.getFireworkMeta();
      FireworkEffect effect = FireworkEffect.builder()
              .flicker(true)
              .trail(true)
              .withColor(Color.RED)
              .with(FireworkEffect.Type.BALL)
              .build();
      meta.addEffect(effect);
      firework.setFireworkMeta(meta);
      firework.detonate();
    });
  }

Detonates the firework before it is being spawned. No launch sound and no firework rocket visible.

green prism
lost matrix
#

No, sry i dont have tutorials for resourcepack related stuff...

dry yacht
green prism
#
20:00:05 [WARNING] Error dispatching event ServerConnectedEvent(player=Jaamin, server=net.md_5.bungee.ServerConnection@96bf875) to listener it.mikeslab.persistify.listener.UserConnectedEvent@51684e4a
java.lang.NullPointerException: Cannot invoke "net.md_5.bungee.api.connection.Server.getInfo()" because the return value of "net.md_5.bungee.api.connection.ProxiedPlayer.getServer()" is null

Help?

I'm doing this:

    public static User reduce(ProxiedPlayer subject) {
        return new User(subject.getServer().getInfo().getName(), subject.getName(), subject.getUniqueId(), 0);
    }
lost matrix
#

Sure. You need to create a custom font in your resourcepack and replace a character with an image.
Afterwards you simply rename the inventory with just your one character.

ivory horizon
#

hey why when i try to send something in help server it automaticly send with folder

signal kettle
#

Got repaired it with:

if (citPickerList.contains(heldID) || player.getInventory().containsAtLeast(heldID, 1)) {
balmy valve
# lost matrix ```java @EventHandler public void onSneak(PlayerToggleSneakEvent event) { ...

interesting, this is what I was doing and it was causing the visible firework with the noise etc:

            final Firework firework = arrow.getWorld().spawn(arrow.getLocation(), Firework.class);
            final FireworkMeta fireworkMeta = firework.getFireworkMeta();
            fireworkMeta.addEffects(PersistentDataAPI.get(arrow, Keys.fireworkData, DataType.FIREWORK_EFFECT_ARRAY, new FireworkEffect[0]));
            firework.setFireworkMeta(fireworkMeta);
            firework.detonate();

I'll try switching it to work like that

lost matrix
green prism
lost matrix
#

Get the server from the ServerConnectedEvent and not the ProxiedPlayer

green prism
#

ServerConnectedEvent

#

ohuch

#

sorry

#

my bad

sterile token
#

I think they are really useful for this things... i always use them but some time they are not pretty descriptive

lost matrix
sterile token
#

Are discord images ssytem bug?

#

Because a friend sent me 2 images, and discord is displaying them as the same image

#

Nothing that a 1.5x can fix or 2x

balmy valve
sterile token
#

Oh my bad

#

Wrong reply i just realized

balmy valve
#

(all good)

green prism
#

So, every BungeeCord task should be executed Async but it constantly says this.
What does that mean?
20:05:49 [WARNING] Plugin listener it.mikeslab.persistify.listener.UserConnectedEvent took 126ms to process event ServerConnectedEvent(player=Jaamin, server=net.md_5.bungee.ServerConnection@2f2061fe)!

sterile token
#

Its just a warning telling that your listener taken much time to be processed

dry yacht
sterile token
dry yacht
dry yacht
sterile token
#

I will read and i wil lexplain you, 1m please

dry yacht
sterile token
#

I will look in the github code and sent what line sends that warning

dry yacht
#

Exactly what I said, xD.

hazy parrot
#

fyi you can shift click to select line on github

sterile token
dry yacht
#

But I get that you're nitpicky about calling an event-bus an observer-chain. I will call it bus next time.

sterile token
#

oh thanks

#

I would but i have currently 60 tabs per each chrome instance and 6 instances

#

i mean i thinking that 64gb is too low for a dev, i would think i need around 128 or 256gb to work well

#

oh lol, how you can code '

#

My vanilla IJ on sleep process just eat 12gb

dry yacht
#

16 can get tight, but 32 is kind of the sweet spot for me, xD.

sterile token
#

And even up to 24gb when coding a multi module project

#

Currently coding a 20 multi module project and ram is 26gb ๐Ÿ’€

#

Its pretty crazy the IJ ram usage, but there is no other IDE better than it

sterile token
#

scheduling moment, its somehting difficult tho. I alays have problems with them

hazy parrot
#

i don't have any problem with 16gb lmao

sterile token
dry yacht
green prism
sterile token
#

The problem is that so far im joining to multi proxy coding, i need to have many instances of same network to achive the multi proxy testing

hazy parrot
#

dk what you guys are doing xd

sterile token
green prism
dry yacht
#

Yeah, it's a bloated pice of crap.

sterile token
#

ITs take to much ram compared with VScode for example, in Vscode you can even do more things

green prism
#

IntelliJ > VsCode.

dry yacht
# green prism IntelliJ Bad Designed? Are you for real?

If it impresses you, just know that most of the features come from an external language server. IntelliJ only augments some functionalities, no need to hold them in high esteem. They've produced a heavy and laggy IDE for giving you a hand full of more features.

sterile token
# green prism IntelliJ > VsCode.

I wont think that, IJ is more resource intesive rather Vscode where you can literally code what ever. When IJ doesnt allow it for free and also they paid version is the same as the free one because resources are not even optimized

sterile token
green prism
#

What do you think about Eclipse, instead? md_5

dry yacht
#

VSCode is also quite bloated, but it's still a lot faster than IntelliJ, xDD.

dry yacht
#

I really need to stop postponing my vim setup, xD.

sterile token
#

I wont touch that thin in the rest of my life

sterile token
#

I think its really oddy

dry yacht
#

Eclipse = OG, xDD

hazy parrot
#

dk what are you doing with that much ram xd

sterile token
#

and i dont have a small screen if you think about it

green prism
#

I've 32gb

#

haha

sterile token
hazy parrot
dry yacht
#

Yeah, well, I got three instances open, so 9GB seem fair.

hazy parrot
#

and i say my ij is taking 2gb

sterile token
#

That they created a heavy IDE which is too much resource intensive, too adding some extra functionalities

dry yacht
sterile token
#

I can open 1 IJ project per IDE

slate sapphire
#

Hello, i have a problem, i want to compare a location with another location and but the locations don't want to overrule even though they are right

sterile token
undone axleBOT
hazy parrot
dry yacht
# sterile token Howw?

I guess you've literally got a huge monolith of a project open which you've visited and thus cached every single class in, xDD

sterile token
#

I just want to see then like does eclipse for example, where you can see all proejcts and swap to them, without chaging the screen view

slate sapphire
#

ik ik, code is horrible

#

terrible

sterile token
#

Why heck the ItemStack doesnt use @SerializableAs("ItemStack") annotation? ๐Ÿค”

#

Lmao my english is awful today

slate sapphire
#

you mean me?

sterile token
#

Its a general question but maybe i acccidentally replayed to you

slate sapphire
#

hmm

cunning canopy
#

can I trigger PlayerInteractAtEntity programatically?

timid jetty
dry yacht
lost matrix
# slate sapphire

First of all:

Location bed1down = new Location(Bukkit.getWorld(event.getPlayer().getWorld().getName()), bed1downx, bed1downy, bed1downz);

Can be just

Location bed1down = new Location(event.getPlayer().getWorld(), bed1downx, bed1downy, bed1downz);
slate sapphire
#

Good one

lost matrix
# slate sapphire Good one

A simple fix for you would be: Get the block on that location and check for Block equality instead.
And keep in mind that Beds have multiple locations! They span over two Blocks!

sterile token
slate sapphire
lost matrix
#

Thats not... how you do this. But ok.
Then try using Block equality for now

slate sapphire
#

you mean if block == bed

#

but i have 2 beds

#

or im dumb

sterile token
slate sapphire
sterile token
#

I cant understand what you are doing, the why, etc

slate sapphire
#

wait i translate from german with google

#

so there are 2 beds on the map one for player 1, one for player 2 and if player 1 breaks bed 2 he gets a point and vice versa

timid jetty
#

player.getWorld().rayTraceEntities(player.getLocation(), player.getLocation().getDirection(), attackRange)

I've got the following line of code to get the entity that the player is looking at. For some reason it misses the entity unless I jump. Has anyone worked with raytracing and knows what else I should be using as variables here?

eternal oxide
#

getEyeLocation().getDirection()

timid jetty
eternal oxide
#

yes it does

timid jetty
#

do i need to do that for the location as well or only the direction vector?

eternal oxide
#

location-direction is the BODY facing direction. Eye-direction is where teh player head is looking

timid jetty
#

its still not returning the entity any idea what could be causing it?

eternal oxide
#

use EyeLocation for both, what is your attackRange?

timid jetty
#

5 blocks

eternal oxide
#

then it will find any entity in line with the player looking for 5 blocks

timid jetty
#

yup but even 1 block away it wasn't finding anything ill try again with both as eye location

cunning canopy
#

what is the best minecraft thing that I can use to visualize and debug direction stuff

#

like can I make an arrow point from the player or something?

eternal oxide
#

impossible unless you are leaving soethign out you are not telling us

#

you are looking at an actual Entity?

timid jetty
#
            if(p.getWorld().rayTraceEntities(p.getEyeLocation(), p.getEyeLocation().getDirection(), attackRange) != null
                Entity entity = p.getWorld().rayTraceEntities(p.getEyeLocation(), p.getEyeLocation().getDirection(), attackRange).getHitEntity();
                LogsUtil.testing(entity.getName());```
#

this is the entirety of everything

timid jetty
eternal oxide
#

yes so long as it is real and not somethign spawned by packets

eternal oxide
#

don;t do a rayTrace three times

rough drift
#

^

#

store it

#
var hit = world.rayTrace(...);

if(hit != null) {
  var entity = hit.getHitEntity();
}
timid jetty
#

yeah was gonna store it once I got it working but ill just clean that now then

cunning canopy
sterile token
cunning canopy
#

So no types?

sterile token
#

But please its really ugly to use it ๐Ÿ˜‚

cunning canopy
#

Thats what I was about to sy

eternal oxide
#

lazy type don't use if you don't need to

cunning canopy
#

say

timid jetty
#

im not no

sterile token
#

Tell me you are lazy, without saying it

#

๐Ÿ˜‚

timid jetty
#

should i be?

hazy warren
#

How do you build the latest versions for plugin development again

eternal oxide
#

?bt

timid jetty
#

build a working plugin?

undone axleBOT
hazy warren
#

is it ?bootstrap

sterile token
#

If you mean building the api and server jars, must use Build Tools

hazy warren
#

?bootstrap

undone axleBOT
#

Bootstrap Jar
The main spigot-1.18.jar is now a bootstrap jar which contains all libraries. You cannot directly depend on this jar. You should depend on Spigot/Spigot-API/target/spigot-api-1.18-R0.1-SNAPSHOT-shaded.jar, or the entire contents of the bundler directory from your server, or use a dependency manager such as Maven or Gradle to handle this automatically.

Please read the release notes for further information: https://www.spigotmc.org/threads/9-years-of-spigotmc-spigot-bungeecord-1-18-1-18-1-release.534760/#post-4305163

timid jetty
#

skill plugin

#

similar to mcmmo i guess

sterile token
#

Lmao theyre all obcess with mcmmo or mroopg games

#

I dont find them that good

timid jetty
#

yo um

#

so i just decided to output my raytrace

#

and its literally calling me as the entity

sterile token
#

Lol

#

Discord picture system is broken

timid jetty
eternal oxide
sterile token
#

Any reason that can cause object list deserialization not getting done from a yaml file?

slate sapphire
#

Verano i did my system in like 15 lines new

sterile token
#

nice

#

Now i need to find the why of my previews not getting deserialized from the data file

#

๐Ÿ˜ฌ

dry yacht
#

That moment when you try to patch chunk packets and you messed something up, lol

slate sapphire
#

can you get flint and steel and right click on a tnt block?

sterile token
#

Any reasons, previews not getting load?

timid jetty
dry yacht
sterile token
timid jetty
#

ill take alook then

eternal oxide
#

location.getWorld().rayTraceEntities(location, location.getDirection(), 5, collision -> collision != player);

timid jetty
#

ill take a look thanks sorry about the bother

sterile token
#

COnclure, such a long time i rlly miss u

#

Specially when u help me because you really have patient for helping me

dry yacht
ivory sleet
#

predicate comes from mathematics where its some statement concerning some variables and when passing values to the variables the statement becomes truthy or falsy

even the method
boolean hi(String x) {
//...
}
can be considered a predicate

sterile token
#

Conclure?

ivory sleet
#

ye

#

hi

sterile token
#

Is discord image system broken?

ivory sleet
#

nope

sterile token
#

Hmnn

#

weird look this

sterile token
#

they are bad displayed, maybe its my own discord

timid jetty
sterile token
timid jetty
#

i have eyes :(

sterile token
#

Sorry i had to say it

timid jetty
#

i mean i know the issue

#

can't imagine why that would be null

#

if its the player

eternal oxide
#

my code is fine, so long as location = player.getEyeLocation();

timid jetty
#

oh i found the issue its a monkey moment

#

sorry ty :)

sterile token
#

So? What can cause a List of custom obejct not being deserialized from Yaml filesss?

pseudo hazel
#

is there a way to disable git stuff in intellij

pseudo hazel
#

but still use git outside of it?

sterile token
sterile token
eternal oxide
#

So am I ๐Ÿ™‚

pseudo hazel
#

where

sterile token
eternal oxide
#

Not enough information

sterile token
sterile token
pseudo hazel
#

im using new ui

sterile token
#

I never seen that

pseudo hazel
#

and also I still see no option there to turn it off

sterile token
#

Im running 2021 version

crimson relic
#

yeah theres a new one

pseudo hazel
#

yeah im using 2022.3

#

.whatever

sterile token
#

oh weird that why dont use beta versions

#

๐Ÿ˜‚

pseudo hazel
#

2022 is not beta xD

sterile token
#

Doesnt make ense

pseudo hazel
#

wdym

sterile token
#

Stable versions are supoused and must not to having issues that why tey are stables

pseudo hazel
#

with the screenshot you sent I still cant figure out how you are supposed t turn it off

sterile token
#

But if you already have git, shopuld tell to disable vesionm control

pseudo hazel
#

nvm I found it

#

it was hidden somewhere else

sterile token
#

So what can be the reason of custom ConfigurationSeriliazable not being deserialized from file??

eternal oxide
#

many reasons

sterile token
#

right, i listening, because i dont find the reason

eternal oxide
#

not registering yoru class before touching the file

sterile token
#

okay i think that the issue

eternal oxide
#

if its in your config you MUST register your class object before you ever call getConfig

sterile token
#

Yeah it was that

#

i think because i was loading the manager

#

and then understand registering the custom obj

crisp coral
#

When adding arguments to a command, do you need to register it somehow in plugin.yml?

if (args.length == 2) {
                if (args[2].equalsIgnoreCase("settings")) {
                    return Arrays.asList("test");
                }

This code does not work and I can't find a reason why it wouldn't on youtube. Does anybody know why?

I also have an on command function with

else if (args[1].equalsIgnoreCase("player2")) 

This also does not work.

I can not find a reason why? Anybody

lost matrix
#

?notworking

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.

hazy parrot
#

If args length is equals to 2, args[2] will always throw exception

crisp coral
crisp coral
hazy parrot
#

What I said is still true

#

You can't have length==2 condition and args[2]

#

It will throw index out of bounds

lost matrix
#

If you cant then you did not understand a line you just wrote

#

?paste your whole code and we will see

undone axleBOT
crisp coral
#

I am still learning java and I do not know much. I have been learning for about 2-3 months now (properly) and I do not know much. I have mostly been learning from youtube and java websites. I do know how to code though and I coded about half of the code by myself

hazy parrot
#

Then you should probably learnt that array indexes start at 0,not 1

eternal oxide
#

^

#

So if you have length == 2 your last element is [1]

crisp coral
#

Ah.

I thought that it was 1 and 2 before that in java.

I did not realise it was the same as javascript.
Thanks

hazy parrot
#

It's same in nearly every language

#

Except for visual basic for example

#

It all originated from c pointers

crisp coral
hazy parrot
#

You don't have to be sorry, we are all here to learn ๐Ÿ˜„

eternal oxide
#

Not me, I'm perfect ๐Ÿ˜‰

crisp coral
eternal oxide
#

TabComplete the first space after the command gives args.length of 1 it's an empty arg as you've not typed anything yet

eternal oxide
#

as you begin to type letters they appear in new events in args 1 until you hit space again

crisp coral
#

Oh ok.

crisp coral
eternal oxide
#

no idea on yoru code logic

crisp coral
eternal oxide
#

args[1] will be equal when you have typed that in or selected it

#

but only when it's actually IN the command line

#

you can see what its doing by sysout args[1]

crisp coral
#

ok..

frank pumice
#

Is there any documentation for using the factions plugin as a dependency? Everything I try gives the problem.

crisp coral
crisp coral
rough drift
cunning canopy
#

can I get rotation from PLayerInteractAtEntity event?

eternal oxide
#

rotation of what?

cunning canopy
#

the direction it was interacted with

eternal oxide
#

you can get the Entities direction

#

and you have the players direction

#

you can calculate where you interacted

#

but why?

cunning canopy
#

Basically

#

what I am trying to di

#

is that I have an armor stand that stands in front of another armor stand

#

and I need the PlayerInteractAtEntity event to go through the first armor stand and call the event for my second armor stand

#

so what I was planning to do

#

is when the armor stand is clicked. it checks what direction it was interacted with and then proceeds to call that event for other armor stands behind it

#

if that makes any sense

eternal oxide
#

why?

cunning canopy
#

I am making a mini block plugin

#

so you can build with blocks that are the size of armor stands

#

for example here if I want to right click to place

#

I would need the armor stand behind it to get the event called

#

and not the one I am actually looking at

eternal oxide
#

why?

cunning canopy
#

so I am checking if the armor stand was interacted with below the head

#

so I cann make the event pass through the first armor stand

#

to the second

eternal oxide
#

If you click a place surely thats the place you want to build

cunning canopy
#

so the block places correcty

cunning canopy
#

is that if you click on the right side of the armor stand

#

the block will be placed on the right side of the armor stand

#

but if there is something already to the right but on another height level

#

for example the image I sent

#

I would need the first armor stand to ignore the click

#

and rather pass it back to the armor stand behind it

eternal oxide
#

you don't pass events from one stand to another. Thats not how MC/Spigot works

#

you recieve the click event and YOU deal with it there and then

cunning canopy
#

my plan was to call the event programatically

#

for the armor stand behind it

eternal oxide
#

you could raise an event and pass in the stand behind

cunning canopy
#

that was my plan

#

but I am trying to figure out how to implement

#

should I maybe just use raycasts?

eternal oxide
#

if you want to raise your own event

hallow locust
#

NMS remapped issue.

eternal oxide
#

?nms

cunning canopy
#

why cafebabe?

hallow locust
# eternal oxide ?nms

I already understand all of that. and done all of that. But the 4th jar isn't populating in the target folder.

eternal oxide
#

the top jar is the one to use/distribute

#

I have 4, you shoudl as well

hallow locust
#

no it's not. Not with mojang mappings.. There should be a 4th jar that is remapped.jar

#

I only have 3

#

that is the issue

eternal oxide
#

no the jar with the shortest name is the one you use for deployment

#

it looks like you are missing a Minigame.jar

#

did your build complete?

hallow locust
#

It did. The only reason you have "Planter.jar" is because you dont have it setup to add the snapshot messages

#

I need help figuring out why I'm not getting the remapped.jar

eternal oxide
#

I do I however also have a jar.finalName

#

?paste your full build log

undone axleBOT
hallow locust
eternal oxide
#

No clue your pom is pretty much identical to mine

hallow locust
#

yeah that is why im confused lol

eternal oxide
#

it is creating it

#

Replacing /Users/rootuserirl/IdeaProjects/smash-minigame-plugin/target/Minigame-1.0-SNAPSHOT.jar with /Users/rootuserirl/IdeaProjects/smash-minigame-plugin/target/Minigame-1.0-SNAPSHOT-remapped.jar

hallow locust
#

that isn't in there

hallow locust
#

yeah that definitely isnt in that directory. triple checked.

eternal oxide
#

yeah no clue

regal scaffold
#

Hey. I'm getting some very weird TPS drops on my timings report. Specifically this line.

#

I'm trying to understand what I'm looking for in the source code to this

#

It says task $2. Which I assume is the second task queued for the plugin

tawny remnant
opal juniper
#

This is a 26 minute video with IP leaks in it

regal scaffold
tawny remnant
regal scaffold
#

It has to do with public void hit(EntityDamageByEntityEvent event, PlayerInteractEvent playerInteractEvent) {

spice shoal
#

hi guys , i wanna make a plugin for calculate ms of an item switch , like this

sterile token
#

something is not well there

spice shoal
#

wdym

#

it's a video

#

lmao

sterile token
#

i dont think...

spice shoal
#

do u want mp4 format?

sterile token
#

videos are directly displayed over discord

spice shoal
#

in mkv not

sterile token
#

So that must contain smth else but dont worry i will can it

#

and then watch it

#

double work >> running a virus

#

When working, with events right, where should be implemented cancellable? On the master event or in the sub types? Im open to suggestions

spice shoal
#

this?

spice shoal
sterile token
#

but modding != plugin, mainly spigot != forge || fabric

tardy delta
sterile token
tardy delta
#

probably do it in the parent class then

sterile token
#

right thanks

tawny remnant
sterile token
#

"isnt working"

#

?ask

undone axleBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

spice shoal
tawny remnant
sterile token
tardy delta
#

what error? npe?

sterile token
tardy delta
#

also is two event types in one event method possible, i heard ElgarL talk about it or smth

#

ok not

opaque scarab
#

Some reason this dependency isnโ€™t found:

<dependency>
<groupId>com.github.BeYkeRYkt</groupId>
<artifactId>lightapi-bukkit-common</artifactId>
<version>5.1.0</version>
<scope>provided</scope>
</dependency>

Any suggestions?

spice shoal
#

hi guys i wanna make a plugin for

tardy delta
#

did you reload maven?

sterile token
opaque scarab
tardy delta
#

and you added the repo if theres one?

#

by not found do you mean when compiling or what?

sterile token
#

In case not working, try invalidating cache or installing the dependency to your local repo, using mvn install:file <path/to/jar>

opaque scarab
sterile token
tawny remnant
#

best "help-development"

sterile token
tawny remnant
sterile token
#

๐Ÿคฃ

opaque scarab
sterile token
opaque scarab
sterile token
#

As i have told before you can use mvn install:file <path/to/jar>

#

but check the command im not sure about the arguments

#

If need something else, where are here

regal scaffold
#

Is this sqlite guide up to date?

stoic minnow
#

guys

#

Can you tell me how can I upgrade my spigot version from 1.13.2 to 1.13.3? (TR)

tardy delta
regal scaffold
#

xd

#

Looks old for sure

cold tartan
#

Does anyone know what RecipeChoice.test() does?

regal scaffold
#

Do you know an up to date

tardy delta
regal scaffold
#

โค๏ธ

#

Thanks brush

#

I assume mostly I need to change the connection driver to make it compatible with sqlite

tardy delta
#

ye

dry yacht
#

That should be about the only thing you need to change.

regal scaffold
#

And does the driver need to go in this /lib folder or something?

#

Or is that outdated

tardy delta
#

spigot ships an sqlite driver but dont ask me how up to date it is

regal scaffold
#

oof

#

In md5 we trust

dry yacht
#

Tbh, if it works, it works. There's nothing critical about a sqlite driver...

tardy delta
#

performance

dry yacht
#

Peanuts, lol

tardy delta
#

shouldnt be talking about this cuz its already slow asf

#

the fun thing about making db libs is that you dont have to care about speeds

balmy valve
# lost matrix ```java @EventHandler public void onSneak(PlayerToggleSneakEvent event) { ...

Okay sorry for such a late reply I just got able to actually test this
I went ahead and modeled my code after yours and this is what that looks like:

            arrow.getWorld().spawn(arrow.getLocation(), Firework.class, firework -> {
                final FireworkMeta fireworkMeta = firework.getFireworkMeta();
                fireworkMeta.addEffects(PersistentDataAPI.get(arrow, Keys.fireworkData, DataType.FIREWORK_EFFECT_ARRAY, new FireworkEffect[0]));
                firework.setFireworkMeta(fireworkMeta);
                firework.detonate();
            });

But as you can see in this video, that did not fix the issue I am having: https://www.youtube.com/watch?v=VgdmJMt_lTE

#

As you can see I can still see the firework for a quick bit and hear the sound of it launch (subtitles)

dry yacht
# balmy valve As you can see I can still see the firework for a quick bit and hear the sound o...

CraftFirework#detonate sets the lifetime of the firework to it's max lifetime + 1, effectively marking it for explosion on the next tick. The next tick will inevitably play the launch sound, as the rocket is not silent (nms Entity#isSilent). Afterwards, FireworkRocketEntity#explode is invoked, which will do a few things, one of them being sending the ClientboundEntityEventPacket to nearby players with the event-id 17. As this is an entity event by design, I don't know whether you can get rid of the bang. Maybe isSilent could help there. The main issue now is that CraftFirework doesn't expose explode. Firework does expose setSilent through Entity tho, which is something you could try right now.

balmy valve
dry yacht
balmy valve
#

Gotcha, ill try setting it to silent as yeah that would probably help, i'm working in 1.19.2 not sure about smile

dry yacht
#

If it's actually silent then, that would be at least a step in the right direction.

balmy valve
#

yeah

dry yacht
#

If you want to, you could also try adding the following below the call to detonate:

((CraftFirework) firework).getHandle().inactiveTick();
firework.remove();

This should trigger the necessary explosion code and prevent the next "normal" tick through the call to remove.

modest garnet
#

anyone able to help with mongoDB errors. i get this error when plugin starts. i dont think its connecting

chrome beacon
#

Looks like a class is not present on the server

#

Make sure you shaded or used the libraries feature with the right artifact

#

Also try just restarting instead of reloading

regal scaffold
#

Unsupported class file major version 60

This is related to my pom.xml right?

#
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>9</source>
                    <target>9</target>
                </configuration>
            </plugin>
chrome beacon
#

Use Java 8

modest garnet
chrome beacon
#

I'm going to get some sleep so ask here or wait until tmrow

regal scaffold
#

The problem occurs when I try to shade

        <dependency>
            <groupId>com.mysql</groupId>
            <artifactId>mysql-connector-j</artifactId>
            <version>8.0.32</version>
        </dependency>
#

Does that mean the mysql-connector-j is only compatible with java 8?

vocal cloud
#

60 is java 16 isn't it?

regal scaffold
#

I have 19

#

So I need 16 then?

vocal cloud
#

Java is backwards compatible for the most part

regal scaffold
#

Then why would it not allow me to package

vocal cloud
#

?paste pom

undone axleBOT
regal scaffold
#

Clarification I've been changing the java.version testing stuff

vocal cloud
#

That pom says java 8?

regal scaffold
#

I had it on 16

#

19