#help-development

1 messages · Page 703 of 1

chrome beacon
#

That's not going to work very well

sterile sapphire
#

Alr

#

But when I get onto the pc

chrome beacon
#

You could do it if you had an android tablet

sterile sapphire
#

Don’t I right click it and press send to and the. Click zipped file

chrome beacon
#

No

#

You need to actually compile the code

sterile sapphire
#

I mostly download the files not make them

#

. How do I do that

chrome beacon
#

You should just get the one who wrote the code for you to compile it

sterile sapphire
#

Alr but he can not

#

He sent it to me

#

So when I’m on my pc what should I do?

#

Coz he doesn’t have a pc at all

chrome beacon
#

?learnjava

undone axleBOT
eternal oxide
#

Steps

  1. Learn Java.
  2. Download an IDE.
  3. Make your plugin.
  4. Profit.
chrome beacon
#

Flip 1 and 2

sterile sapphire
#

But okay

eternal oxide
#

don;t need an IDE to learn, but I guess

chrome beacon
#

It's easier

eternal oxide
#

yep

sterile sapphire
#

Let’s say u haven’t learnt but a friend sent it and you now have the code

#

What now?

chrome beacon
#

You tell that friend to compile it

eternal oxide
#

?services

undone axleBOT
sterile sapphire
#

But he can’t

#

So how do I compile it?

chrome beacon
#

If they can write the code

#

they can tell you how to compile it

sterile sapphire
#

They told me they dk how to but I’ll ask them again cya

eternal oxide
#

I'm going to guess it's a ChatGPT moment

chrome beacon
#

Probably

#

or just stolen of github

sterile sapphire
#

No

#

It was a friend

tender shard
#

X doubt ^2

sterile sapphire
#

And I do have a solid 5

eternal oxide
#

NPC's don;t count

sterile sapphire
#

?

tender shard
#

a solid 5k unpaid debt?

sterile sapphire
near mason
#

i found how to make text bold | italic but couldnt find color yet

tender shard
#

that's great! but you shuold always have at least a bit of debts for tax purposes

near mason
#

😐

sterile sapphire
#

Gtg bye

tender shard
#

have a nice day

eternal oxide
tender shard
#

yeah because you hate yourself

sterile sapphire
#

What?

eternal oxide
#

it even has pretty pictures

sterile sapphire
#

Anyway bye

tender shard
eternal oxide
#

its pure Love

tender shard
#

people who enjioy pain = usually daddy issues or self-esteem problems or suicidal

#

I got the daddy issues, hence I'm currently trying to learn gradle

#

and the funny thing is that gradle is a fucking pain

eternal oxide
#

I'm only interested in females with daddy issues 😉

#

or grandad issues would be better

tender shard
#

what about grandmas with grandson issues

#

and then she's like "you know hun, you could be one of my issues ; - ) `

eternal oxide
#

They'd probably creak a little too much for me.

tender shard
#

i better shut up

near mason
#

@round finch

round finch
#

code!?

near mason
#

text is the text pane variable

round finch
#

feed me baby

near mason
#

uploading

#

it took a lot to find it

tender shard
near mason
#

ayo chilll

round finch
tender shard
#

or sth

near mason
#

no

tender shard
#

then I hope you die a slow painful death

round finch
#

hamit can you paste code

#

i'm lazy

tall dragon
#

bruv just type it out

round finch
#

😂

near mason
#
        text.setText("Hello world");
        DefaultStyledDocument doc = (DefaultStyledDocument) text.getStyledDocument();
        
        StyleContext cont = StyleContext.getDefaultStyleContext();
        final AttributeSet red = cont.addAttribute(cont.getEmptySet(), StyleConstants.Foreground, Color.RED);
        final AttributeSet blue = cont.addAttribute(cont.getEmptySet(), StyleConstants.Foreground, Color.BLUE);
        doc.setCharacterAttributes(0, 3, red, false);
        doc.setCharacterAttributes(3, 3, blue, false);
round finch
#

you're the best ❤️

near mason
#

ty

round finch
#

lmao

tender shard
#

"text" must not be called be called text unless it's a string, list of strings, or a string array

fickle rivet
#
private boolean isMatureWheat(BlockState state) {
        if (state instanceof Crops) {
            Crops crops = (Crops) state;
            return crops.isFullyGrown();
        }
        return false;
    }

Cannot resolve method 'isFullyGrown' in 'Crops

Hey guys, how can I solve the problem in isFullyGrown?

isMatureWheat verifies that the block being broken is a mature wheat seed. If it is not a ripe wheat seed, we cancel the event to prevent further blocks from being broken.

tender shard
#

what's the issue?

#

yeah that method doesn't exist

#

there's getAge() and getMaxAge()

#

so check if getAge() == getMaxAge(), if yes it's fully grown

fickle rivet
#

in this case, for spigot 1.8 neither getAge nor getMaxAge exists, only setstate and getState

tender shard
#

I don't know anything about 1.8 api, sorry

tall dragon
#

crops in 1.8 is a pain 😄

lilac dagger
tall dragon
#

biiiig pain

lilac dagger
#

they have similar names for the interfaces

tender shard
river oracle
#

BlockData is weird and I don't get it

#

BlockState makes sense, but BlockData just seems weird

tender shard
#

BlockData basically is "what you see" (e.g. a stair is left/right), while the state is more like "the internal things", e.g. how much redstone power does it have, what are the inventory contents (if it's a container)

#

that's not 100% correct but it's a good approximity

river oracle
#

ahhh i see

tender shard
#

e.g. a sign, it has text - the text belongs to the BlockState. But whether that sign is facing EAST, WEST, etc, that's part of the BlockData

fickle rivet
#
private boolean isMatureWheat(BlockState state) {
        if (state.getType() == Material.CROPS) {
            byte data = state.getData().getData();
            return data == 7;
        }
        return false;
    }

I hope you go, let's test lol

tender shard
#

is there a specific reason why you use 1.8? in 1.13+ you'd just cast the BlockState to Ageable and then check if getAge() >= getMaxAge()

fickle rivet
eternal oxide
#

Its Brazil so they are likely all cracked

#

Price of tech and games down there is crazy

glossy venture
slender elbow
#

BlockData is what vanilla calls block state, yes

#

and BlockState is the block entity data

glossy venture
#

yeah

#

why tf did bukkit do that

slender elbow
#

the BlockState interface existed long before 1.13 when the concept of (vanilla) block state was introduced

#

unfortunate naming

glossy venture
#

oh true ig direction was stored with magic value shit before 1.13

#

which was called block data

#

id call it TileData tho or some shit like that

tender shard
#

they only released them in 1.17 IIRC?

glossy venture
civic zenith
#

I am facing a probelm can someone help please?

#

18:46:09 [INFO] [BHARAT_OP] disconnected with: Could not connect to a default or fallback server. Incorrectly configured address/port/firewall? io.netty.channel.ConnectTimeoutException
18:46:09 [INFO] [BHARAT_OP] -> UpstreamBridge has disconnected

lost matrix
#

Just a wild guess, but this is probably due to an incorrectly configured address/port/firewall

civic zenith
#

how to fix that?

#

I tried my lvl best

lost matrix
#

Correctly configure your address/port/firewall

civic zenith
#

still showing

#

I have done that

lost matrix
#

Im guessing that your bungeecord config isnt setup properly

quaint mantle
#

Couldn’t they just use tebex wallet like bbb

gaunt geyser
#

I would like to send a packet on a custom channel to a player when they join, from the research I've done it would seem I need to setup NMS but I can't find anything on doing that for 1.20.1, only 1.18 and below

#

how would I setup nms for 1.20? with maven

chrome beacon
#

?nms

chrome beacon
gaunt geyser
sterile token
#

Hello, i have a nice shity issue related to how i coded something. Atm im not sure how the heck im going to replace the placeholders from PAPI inside the custom menus. Because so i far i designed a system for loading the menus, adding the items and the actions. But now, i just realize how i would replace papi placeholder, because the papi methods needs a player to apply the placeholders 🤔

Please reply or tag me if you have any idea because i can see the message fast, thanks

echo basalt
#

Make each menu tied to a viewer

lost matrix
echo basalt
#

Or if you really care much, replace all the placeholders in all the items when you render the menu to a viewer

twin venture
#

Hello there iam trying to make something , so i have this interface :
it extend a BaseProfile which have a UUIID and String .
and the GameModeProfileDAO is being implmemnted in 8 diffrent Profiles types ..

my question is how i can make a addProfile which each profile implementd have its own hashmap with uuid , profile .

  • load from mysql
  • load in hashmap
#

what i want to do now is :

lost matrix
#

A DAO should be stateless.
saveProfile should be generic and take T and the key

#

Or if the key can be derived from T then only T

twin venture
#

the save works fine , my problem is with loadprofile and then accpet

#

i want to make it so it load all of the profiles for this uuid

#

add them each one to his own map

lost matrix
#

You need type inference and unsafe casts for this

twin venture
#

can you show me an example?

sterile sapphire
#

I asked the same thing a day or 2 ago and I am sorry but I’ve forgotten what you said. So ima ask again if that’s okay. If I have 9 150x150 servers running on a pc. Will it be any different to running 1 big world?

lost matrix
lost matrix
# twin venture can you show me an example?

First i would strongly advise you to make your DAOs stateless. They should not have a map.
A type inferred unsafe cast could look like this:

private void loadProfiles(UUID playerId) {
  for(GameProfileDAO<? extends BaseProfile> profileDAO : profileManager.getGamesLoaded()) {
    Class<? extends BaseProfile> type = profileDAO.getProfileType();
    CompletableFuture<? extends BaseProfile> profileFuture = profileDAO.loadProfile(playerID);
    profileFuture.thenAccept(profile -> profileDAO.addProfile(type.cast(profile));
  }
}

But let me double check

sterile sapphire
twin venture
#

this being implemented in 8 diffrent profiles types

lost matrix
twin venture
#

for example :

lost matrix
twin venture
#

oky thank you

#

just to let you understand it :
this is for example the pvp profileDAO

zealous osprey
#

btw, what is a DAO?

twin venture
#

there are more code down but its not needed .

#

Data Access Object

zealous osprey
#

Ahh, so the mediator between saving and loading data from a certain data-source?

twin venture
#

yes but not exactly ik there is a better way to do it using redis , but i never worked with it ..

zealous osprey
#

But that matters only for the implementation of the DAO, not the structure itself

lost matrix
#

?paste

undone axleBOT
sterile sapphire
chrome ferry
#

uhm

#

i have something really really weird

chrome ferry
#

on the server

kindred sentinel
#

How to use Brigadier ,_,

chrome ferry
#

but when i test it on the IDE

#

it returns true

zealous osprey
#

quality comments

lost matrix
#

Just doesnt belong in a DAO but whatever

zealous osprey
#

Why isn't it in the manager then?
Or where else would you recommend putting it.

lost matrix
#

Not in the DAO

sterile sapphire
lost matrix
lost matrix
#

Send your specs and we can give you advise

sterile sapphire
#

Somthing massive

chrome ferry
#

its in the command, its only with b:3:1

kindred sentinel
#

How to use Brigadier..?

#

Is there any tutorials?

chrome ferry
#

if i do it with a different name, its just fine

lost matrix
lost matrix
#

I would probably suggest another command library first. Unless you really need brigadier features.

sterile sapphire
#

If I wanna make a quick command I just use skript 💀 99% of time

lost matrix
chrome ferry
#

i know what id is, its the exact argument (3)

#

String#startsWith works fine with the argument being "b:test"

chrome ferry
#

I dont not modify the arguments of the id variable

#

it does indeed print out "b:3:1"

lost matrix
twin venture
#

for mysql

#

so each profile have a coonection to mysql

#

and each profile have diffrent values to loadded / saved

lost matrix
lost matrix
fervent robin
#

When I try to print out the names of these blocks they all come out as white wool? Why does this happen? Im on 1.20

eternal oxide
#

?nocode

undone axleBOT
#

It’s hard to answer a programming question without code
Oh no! You ran into a problem. But no worries, people are willing to help, but first they need to see your code. This is because otherwise, they would be providing help based on guesses instead of concrete knowledge. Whether it be a compile error, runtime error, or an unexpected output, I'm sure that if you were to provide code, you'd receive a quick solution.

fervent robin
#

my fault

#
System.out.println(modItem.getItemStack().getType().getBlockTranslationKey());
#

#getType()#name() just prints WOOL

eternal oxide
#

you forgot an api version in your plugin.yml

fervent robin
#

thanks

eternal oxide
#

Azu typing a book by the looks

lost matrix
#

Yeah

valid anvil
#

https://github.com/NerdNu/BeastMaster/blob/master/src/nu/nerd/beastmaster/BeastMaster.java#L1068

so my server admins put together a custom mob spawning plugin that replaces all mob spawns and checks if a new version of a mob can spawn somewhere by getting the mob position, and going !isPassable on the next block upward -- therefore "spawn mob if, if a block is here, it is also in the list of passable blocks", but trapdoors aren't in the list apparently.

unfortunately there's a creeper mob farm design out there where you can prevent everything but creepers from spawning by filling the head space with trapdoors, and I've discovered that this works out to "since the plugin replaces all natural spawns, it will always return false in this design, therefore no spawns"

is there a good way of checking the head space of >1-tall mobs that will take trapdoors into account? that I can pass on to them?

lost matrix
#

Hm, let me think of one that doesnt impact performance for too much

twin venture
#

Hi 7smile7 do you suggest a better system to load the diffrent profiles?

lost matrix
valid anvil
#

yikes

lost matrix
twin venture
lost matrix
#

DAOs are a perfectly fine abstraction for data access. You should be able to do anything with this.

valid anvil
#

feels like a plausible inelegant bandaid

lost matrix
#

I thought about that as well. But you would have to check the state of the trapdoor as well.

valid anvil
#

hrm

dawn flower
#

is it possible to always set the player's max health to 20 even if he has custom attribute gear i want his max health to be 20 i tried looping through all players every second and setting their health but when i wore a +100 heath helmet it just gave me 50 hearts that are always empty

lost matrix
dawn flower
#

no i want his actual hearts to always be 10 not just display

lost matrix
#

Then dont add health to the player...

shadow night
#

100iq move

#

Forgot a 0

#

1000iq*

dawn flower
#

ok i might sound stupid but how about just displaying the hearts to 10 and show the actual health in an action bar

lost matrix
#

I dont... understand. I asked you if you wanted to always display 10 hearts regardless of how much health the player
has and you said no.
10 hearts with 100hp would mean each heart displays 10hp

dawn flower
#

so uh

shadow night
dawn flower
#

idk how to explain this

dawn flower
dawn flower
#

so basically i want to just display the hearts

#

as 10

shadow night
#

Like showing the actual amount of hp in an actionbar and then do maths to find out how many hearts to color

lost matrix
#

You can call Player#setHealthScale(double scale) with 20 for example.
This way the player will always see 10 hearts regardless of how much hp the player has.
Those hearts are scaled as a percentage of the players health.

dawn flower
#

hm

#

i hate my life

#

theres a method for that

#

and i didnt know

#

ty tho

tall dragon
#

    @Subcommand("give")
    public void onGive(Player player, @Optional OnlinePlayer target, int amount) {

    }

any1 know how this would work in acf?, like how can an argument not at the end be optional

#

its just going to try to resolve the amount to the target if i leave it out isnt it

lost matrix
#

This looks like it shouldnt work

tall dragon
#

well i havent tested it but im afraid it wont yea

#

am i forced to have optional args at the end?

#

ah yea the documentation even sais so im just blind

lost matrix
#

How else would you resolve the parameters? There is no way to check if an optional parameter
was left out in the middle.

tall dragon
#

i know 😄

#

i guess il just take the args then

slender elbow
#

nothing a bunch of if then elses can't fix :kappa:

tall dragon
#

;d

#

orrr wel i can switch them around

#

thats not that bad is it?, give 1 Player

#

its fineeeee

lost matrix
#

I would leave the server if i had to use a cmd like this

tall dragon
#

notlikethis

lost matrix
#

Cant you make a union type for this?

tall dragon
#

i probably could

#

tf would u name sometihng like that xD

lost matrix
#

Union<K, V> PlayerOr<P> extends Union<OnlinePlayer, V> PlayerOrNumber extends PlayerOr<Number>
kappa

#

There must be a better way to handle this in acf

slender elbow
#

might as well use dfu for this

tall dragon
lost matrix
#

Its just an over engineered way of translating schemas between versions

gaunt geyser
lost matrix
#

Why the fk would you do that?

slender elbow
#

i just love seeing InjTagged<PStore.Instance<Traversable.Mu<I, J, K>, X>, Y.ListTraverser<T, O, L>> across my codebase

gaunt geyser
lost matrix
#

Anyways, did you listen to the right channel on the client side?
The plugin messaging channel.

slender elbow
gaunt geyser
# lost matrix Anyways, did you listen to the right channel on the client side? The plugin mess...

I have a mixin that prints any incoming channel:

@Mixin(ClientPlayNetworkHandler.class)
public abstract class ClientPlayNetworkHandlerMixin {
    @ModifyExpressionValue(method = "onCustomPayload", at = @At(value = "INVOKE", target = "Lnet/minecraft/network/packet/s2c/play/CustomPayloadS2CPacket;getChannel()Lnet/minecraft/util/Identifier;"))
    private Identifier printChannel(Identifier channel) {
        System.out.println("Channel: " + channel);
        return channel;
    }
}

And that prints out other mod => mod channels, can't figure out why this one doesn't get recieved

lost matrix
#

The plugin messaging channel is already implemented in the current notchian protocol

gaunt geyser
#

That mixin is the exact receiver for those packets, it works with the minecraft brand one, so I know it's working as intended. Issue is with the server sending it

[16:35:33] [Render thread/INFO] (Minecraft) [STDOUT]: Channel: minecraft:brand

lost matrix
#

Well, minecraft:brand is the wrong channel, no?

gaunt geyser
#

under here

worldly ingot
#

o.O Are you doing this in Fabric? If so, tf you using a mixin for?

#

They have a networking API

#

Forge also has one

slender elbow
#

iirc (craft)bukkit expects the client to send the channel name via a custom payload packet under the channel minecraft:register, so something like c->s send("minecraft:register", "my-cool-mod:uncool-channel")

gaunt geyser
slender elbow
#

then the plugin can use it

worldly ingot
#

Okay... but why are you not doing that via Fabric's networking API?

#

It will handle channel registration for you

#

iirc it's under the ClientNetworking class or something like that

gaunt geyser
#

yes, I have that all setup on the fabric side

#
public class ServerConfigUpdateClientFabric {
    public static void startListening() {
        ClientPlayNetworking.registerReceiver(DoABarrelRoll.SERVER_CONFIG_UPDATE_CHANNEL, (client, handler, buf, responseSender) -> {
            ServerConfigUpdateClient.updateAcknowledged(buf);
        });
    }
}
#

fabric -> fabric works fine

#

I am trying to make the plugin for non-fabric servers

worldly ingot
#

Did you register an outgoing channel on the Bukkit side?

gaunt geyser
kindred sentinel
#

How to use abstract classes in plugins correctly?

gaunt geyser
worldly ingot
#

I've never found that it works the way that I expect

gaunt geyser
#

I switched to registerGlobalReciever earlier to see if there was any difference, prior to making the print everything mixin, and that was not working either, but that was because the client is never sent the packet anyway

worldly ingot
#

I guess just make sure your channels match correctly and that you've actually invoked the startListening() method on the client. I'm really not sure how else to help

gaunt geyser
#

the channels not matching doesn't matter atm, any packet sent on any channel will be printed, issue is it's not being sent. Well thanks for trying to help anyway.

worldly ingot
#

Well a good place to start would be to have the same channels 😛

gaunt geyser
#

it was before, I just set it to garbage to prompt the error message that happens when you recieve an unrecognised channel

#

inside client custom packet reciever

fervent robin
#

I have a PlayerInteractEvent and a PlayerInteractEntityEvent that both fire when someone interacts with an entity how do I check in the PlayerInteractEvent if they are interacting with an entity?

#

I dont want the code to run if they are

echo basalt
#

Uhh

#

Print both out

near mason
worldly ingot
#

Depends on the layout you're using

fervent robin
near mason
#

im using grid bag layout

#

i dont know much about layouts

kind hatch
#

Uhhh, @tender shard knows a lot about GridBagLayout.

river oracle
#

yeah sorry I'm insane and use whatever layout BuildTools uses

kind hatch
#

I think with GridBagLayout, you need to define constraints using GridBagConstraints. I think #REMAINDER would fill out the space.

river oracle
#

GridBagLayout is cursed

kind hatch
#

Swing in general is cursed

near mason
#

i changed it ok

#

i gtg

slender elbow
gilded granite
#

what is framland material in 1.8?

gaunt geyser
#

Well I have had it both as the exact channel and garbage and neither are received

#

And I have the client register the channels in the mod

#

With the minecraft register packet

#

I know this works fabric -> fabric, it just doesn't seem to work for plug-in -> fabric

chrome beacon
slender elbow
#

check the Player#getListeningPluginChannels set

gilded granite
#

what is framland material in 1.8?

slender elbow
#

i dont know

gilded granite
#

it doesnt exist

slender elbow
#

if the client is sending the registration, the channel will be in that set, if it isn't there then something's wrong with what the client is doing

kind hatch
gilded granite
#

how can i cancel all sound for a player

chrome beacon
#

You can't

#

some sounds are client sided

kind hatch
#

Isn't there a stop sound packet?

gilded granite
#

like i want to cancel the player death sound im making instant respawn

kind hatch
#

Doesn't the doImmediateRespawn gamerule cover that?

gilded granite
#

1.8

#

there is not this command in 1.8

chrome beacon
kind hatch
#

Just send them all. :kek:

gilded granite
chrome beacon
#

Well what sound

gilded granite
#

The death sound

thin iris
#

can you remove nbt data

sullen marlin
#

From?

echo basalt
#

nice website I wonder if you're ban evading

remote swallow
#

dont seem like it

fervent robin
#

How do I check if a spigot server is part of a bungeecord network?

sullen marlin
#

Why does it matter

fervent robin
#

Im going to use a messaging channel if it is

#

ig it rlly doesnt matter if i send and its not part of bungee

echo basalt
#

uhh

#

you can check if BungeeCord is set to true

#

OR

#

just have a config option

fervent robin
#

yeah true

sterile sapphire
# fervent robin yeah true

If you have a bungee cord server idk if it’s just me but I can suggest having a back up hub. So if you have lets say a server like hypixle and it crashes. Instead of kicking everyone of the games and lobby, they get taken to the back up hub/lobby. This way ppl don’t leave

slender elbow
#

i know the answer to that one!

echo basalt
#

Please do not attempt to help by providing completely unrelated info that no one asked for

fervent robin
#

u realize most ppl in this channel are devs not server owners

remote swallow
#

comparing to hypixel while only having like 2 servers doesnt add up

echo basalt
#

Hypixel doesn't manually setup their proxies either

sterile sapphire
#

Alr I’m sorry

echo basalt
#

And their extra redundant servers aren't there for crashes, more that their traffic is wide enough that a single instance can't handle player spikes

echo basalt
fervent robin
#

hypixel is so ahead of the game

echo basalt
#

I've worked on infra like this

#

It's nothing special

fervent robin
#

yeah but a lot of stuff they have is pretty special

echo basalt
#

They have the budget

tranquil beacon
#

they actually did a dev blog post at some point explaining how their proxies/servers work

remote swallow
#

you think they use mysql, mongo or cockroach or different

fervent robin
echo basalt
#

a mix

#

Influx is for metrics

remote swallow
slender elbow
#

mygodbroach

echo basalt
#

Mongo for general data

#

Mysql somewhere in there

#

Bungee (fork) proxies

remote swallow
#

think of how much data storage that would even be

echo basalt
#

SeaweedFS for bucket storage

remote swallow
#

wouldnt it be redis bungee fork

sterile sapphire
#

If you set up a .jar file correctly will it auto create a file on server restart? Or do u have to add that?

remote swallow
#

auto create what file

sterile sapphire
#

So the file chat you can enter and have all the other info

#

I’ll get an example rq

remote swallow
#

a config file?

echo basalt
#

Grafana for monitoring all their stuff

sterile sapphire
#

Like that will a .jar file do this if correctly set up on server restart?

echo basalt
#

Mans pulling up random folders and tossing keywords and a question mark

sterile sapphire
#

It wasn’t random it was my plugins folder

sterile sapphire
echo basalt
#

Hurray

sterile sapphire
echo basalt
#

Except you aren't even asking about programming

sterile sapphire
#

I was asking about a .jar file

fervent robin
echo basalt
#

It's nice

fervent robin
#

i use it on a server i develop/admin on and we use it to monitor so much

echo basalt
#

I wrote a guide into how to do graphs with influx

#

Need to update it to support profiling methods n shit

sweet kiln
#

Hello, I'm trying to move the head of this entity (allay) down a bit, as if it were reading a book. However, I've tried various ways to position its head like that, but it's not working. Can you help me?

#

Im tried to sum yaw 180 and nothing

spare mason
#

should i put spigot.jar or buildtools in the ide?

tender shard
#

very powerful

#

very annoying

#

a pain in the ass

#

but I'm gay so I'm into that stuff

#

gridbaglayouts are like oldschool webdesign where you use a <table>

sullen marlin
#

<blink>

lost matrix
eternal oxide
#

?maven

undone axleBOT
fervent robin
#

I send a plugin message like this. These are both in same spigot plugin and the goal is for the plugin to send the message and for bungee to forward it all and the servers that have the event run

Player player = event.getPlayer();
ByteArrayDataOutput out = ByteStreams.newDataOutput();
out.writeUTF("Forward");
out.writeUTF("ONLINE");
out.writeUTF("BungeeCord");
ByteArrayOutputStream msgbytes = new ByteArrayOutputStream();
DataOutputStream msgout = new DataOutputStream(msgbytes);
try {
     msgout.writeUTF(player.getDisplayName());
} catch (IOException exception){
     exception.printStackTrace();
}
out.writeShort(msgbytes.toByteArray().length);
out.write(msgbytes.toByteArray());
event.getPlayer().sendPluginMessage(vantageStaff, "BungeeCord", out.toByteArray());
System.out.println("Sent message");

but this never runs

 @Override
    public void onPluginMessageReceived(String s, Player player, byte[] bytes) {
        this.vantageStaff.getLogger().info("Received a message");
    }
#

I register the incomingChannel and outgoingChannel in the constructor of the class for those 2 snippets of code

golden maple
#

can someone help?

ancient plank
#

Ignore

#

spigot instantiates your plugin on load, but intellij obviously doesn't know that so it says "hey this isn't used"

glad prawn
golden maple
river oracle
golden maple
tawdry pilot
#

ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
DataOutputStream dataOutput = new DataOutputStream(outputStream);

dataOutput.writeUTF("PlayerRankAdd");
dataOutput.writeUTF(e.getUuid());
dataOutput.writeUTF(e.getRank().getName());
Bukkit.getServer().sendPluginMessage(plugin,"SyncData", outputStream.toByteArray());
this code works properly when theres a player online on the server but it doesnt work when noone on

ivory sleet
#

u using plugin messaging?

tawdry pilot
#

yes

ivory sleet
#

It relies on player connections

#

So a player has to be on

tawdry pilot
#

bruh

ivory sleet
#

Yep

tawdry pilot
#

thx

opal carbon
#

if you really need to fix that i would reccomend to use some sorta external system like rabbitmq or redis

tawdry pilot
#

would dummy players work

opal carbon
#

depends what you mean by dummy players

#

basically it has to be connected to the server through the proxy for it to work

#

because thats how the proxy recieves the messages, intersepting the bungeecord plugin messages

tawdry pilot
#

manually creating a player instance?

echo granite
#

How to get a list of a world's entities when the server is enabled? World#getEntities returns an empty list...

sullen marlin
#

?

echo granite
sullen marlin
#

Oh I see what you mean

#

You can only get entities in loaded chunks

#

If chunks aren't loaded then no entities

echo granite
#

I guess I'll have to create a listener for ChunkLoadEvent then

tawdry pilot
#

?help

undone axleBOT
#
CafeBabe Help Menu
*Red V3*
__**Admin:**__

selfrole Add or remove a selfrole from yourself.

__**Cleanup:**__

cleanup Base command for deleting messages.

__**Core:**__

embedset Commands for toggling embeds on or off.
info Shows info about CafeBabe.
licenseinfo Get info about Red's licenses.
mydata Commands which interact with the data CafeBabe has about...
set Commands for changing CafeBabe's settings.
uptime Shows CafeBabe's uptime.

__**Downloader:**__

findcog Find which cog a command comes from.

__**Mod:**__

names Show previous usernames, global display names, and server...
userinfo Show information about a member.

__**ModLog:**__

listcases List cases for the specified member.
reason Specify a reason for a modlog case.

__**Permissions:**__

permissions Command permission management tools.

tawdry pilot
#

a

#

ono

#

why isnt this code working?

#

it seems to not send the plugin message at all

warm mica
bitter rune
#

i uploaded my project to another computer, and the new computer tha thas the project like isnt recognizing im using minecraft development, everything is red, how can i fix this?

warm mica
echo granite
bitter rune
echo granite
#

The image cannot be found

bitter rune
echo granite
bitter rune
#

issue is in my modules under project settings it didnt carry over the dependencies and i have no idea how to fix this

echo granite
bitter rune
#

yeah my other computer is linux though if that matters

echo granite
#

please show your pom.xml or build.gradle

bitter rune
#

to big to upload second

echo granite
#

lol it's a tiny pom.xml 😄

#

you only have 1 dependency and that's spigot, does maven show any problems with it?

#

try to reload the project with maven

bitter rune
#

there we go thank you

novel mauve
#

how do i delete a bossbar?

kind hatch
#

BossBar#removePlayer(Player) if you want to remove it for one player.
or
Bukkit#removeBossBar(NamespacedKey) if you want to delete it entirely.

novel mauve
#

thanks

novel mauve
kind hatch
#

You'd have to use KeyedBossBar if you want to get the NamespacedKey tied to it. Otherwise it doesn't have one.

civic zenith
#

can someone help me regarding bungee fix I will pay 5 $

upper hazel
#

help i'm a bit confused. This is the block regen code. I'm confused what each Time variable is responsible for? It's just that all this will be configured, but I don't know what is responsible for what

#

I know but I don't know what it will look like

#

their interaction

near mason
#

you are getting the new block

#

oh no

#

misunderstand

upper hazel
#

what

#

every X seconds all blocks will be regenerated. Each block will be regenerated every Y seconds - this true?

grizzled oasis
#

Hi, how can i convert the longs into countdown for the scheduler (i don't want to do 2 schedulers but one in this way i can check for the mobs and time)

My logic is:
if Cracker is Years then years are minutes and months seconds
if Cracker is Month then months into minutes, days into seconds and years if detected into hours
if Cracker is Days then days into minutes, hours into seconds, if month is detected as month and years same logic
if Cracker is Hours then Hours into minutes, minutes into seconds, if days into days etc...

https://paste.md-5.net/wigesaxeku.cs

novel mauve
#

how do i iterate through a loop of NamespacedKeys? provided by Bukkit.getBossBars

#
for (Iterator i = Bukkit.getBossBars(); i.hasNext();){ // Iterating through all existing boss bars (keyed boss bar as we need the namespacedkey attribute)
                KeyedBossBar bossBar = (KeyedBossBar) i.next();
                Bukkit.broadcastMessage(bossBar.getTitle());
                if(bossBar.getTitle().equals("Elder Guardian BOSS")){ // If it's an elder guardian boss' bossbar
                    Bukkit.broadcastMessage(Boolean.toString(Bukkit.removeBossBar(bossBar.getKey()))); // Then delete it
                }
            }

this is my code

near mason
#

final int[] countdown = {start};
new BukkitRunnable(){@Override
public void run(){
  //do stuff
  countdawn[0]-=1;
  if (countdown[0]==0){
    cancel();
  }
}}.runTaskTimer(Plugin, 20L, 20L);
grizzled oasis
grizzled oasis
near mason
#

ohhh

kind hatch
#

Is there a reliable way to get how much disk storage is currently being used with a MySQL database?

SELECT table_schema, sum((data_length+index_length)) AS B
FROM information_schema.tables
GROUP BY 1;

This recommended way doesn't seem to return what I am expecting. I'm looking for realtime numbers and when I add data to the database, the number stays the same for some reason.

grizzled oasis
eternal night
#

Or preferably do so

kind hatch
#

I was kinda assuming that, but I was expecting that to be some way to determine actual used space.
I guess a pre allocated/cached value is fine, but I just want to know the circumstances it's under.

eternal night
kind hatch
#

Well, that's interesting.

upper hazel
#

can there be bugs in such dependency?

chilly hearth
#

so

#

i added scoreboardtag to an entity and in another class checked if that entity has that tag and send the message but its not working

#

i even tried with pdc

kind hatch
upper hazel
#

help why map is void

teal wagon
#

probably because your listener isn't registered

upper hazel
abstract spindle
#

Is it possible to change the path from witch an Inventory gets it looks ?
I know you can change it for all if you have a recourcepack and edit the files in asset\minecraft\textures\gui\container
But I want to add a container and want to open that if the Invenory the player opens has a custom Name

chrome beacon
#

or use custom text in the title

#

It does depend on what version you're on

abstract spindle
upper hazel
#

bugs may occur if you create an object 2 object in the constructor 1 and put an object reference to 1 in the constructor 2

#

?

chrome beacon
#

???

#

As long as you're not creating an infinite loop it should be fine

upper hazel
#

this is not a cycle, but the creation of an incomplete object inside another

hazy parrot
#

What is "incomplete object"

abstract spindle
rigid otter
#

What if I register BungeeCord channel for plugin message multiple times?

chrome beacon
tall dragon
#

does any1 know why my gradle build script completely breaks after each intellij restart? im forced to delete my .idea folder and then it will work again on the next open

#

dont understand

chrome beacon
#

Try asking Paper

tall dragon
#

that makes absolutely zero sense

#

this is not a spigot question to begin with

#

so if ur going to answer that dont bother at all

chrome beacon
#

You're using their plugins and most of us use maven here

#

You will get a better response there

tall dragon
#

no harm in trying is there

abstract spindle
chrome beacon
#

Just one with CraftPlayer which is the implementation and Player which is the interface

#

The methods do the same thing

abstract spindle
#

okay

chilly hearth
#

Bro I added a scoreboard tag to an entity and checked 8f that entity has that tag in another class but it's not working

#

I even tried with pdc

chrome beacon
#

?nocode

undone axleBOT
#

It’s hard to answer a programming question without code
Oh no! You ran into a problem. But no worries, people are willing to help, but first they need to see your code. This is because otherwise, they would be providing help based on guesses instead of concrete knowledge. Whether it be a compile error, runtime error, or an unexpected output, I'm sure that if you were to provide code, you'd receive a quick solution.

chrome beacon
#

?paste

undone axleBOT
upper hazel
#

how i can get break block ? blockBreakEvent not give me block

echo basalt
#

it does

chrome beacon
#

^^

echo basalt
#

Event#getBlock

chrome beacon
#

BlockEvent#getBlock uwu

upper hazel
#

i checked in debug and it returns block after it was broken

echo basalt
#

uhh no

#

nocode moment

chrome beacon
#

Make sure you're actually using Spigot

#

also yeah nocode moment

upper hazel
#

yes this spigot

#

i can give screen

chrome beacon
#

?paste

undone axleBOT
upper hazel
#

yea

chrome beacon
#

So it will always remain empty

echo basalt
#

yeah no clue what that empty block check is for

upper hazel
chrome beacon
#

It's not just log

#

You're returning

upper hazel
#

ah

#

well this nevermind bc this will regen if map not empty

#

and the map itself is filled in the event

#

but for some reason, when I break the block, i was get air

chrome beacon
upper hazel
echo basalt
#

disappointment you're holding the block reference

#

Instead of blockdata

chrome beacon
#

That's not in the event

echo basalt
#

mans holding a mutable reference

#

oh no

upper hazel
#

wym

whole surge
#

Hello. How can I get text (around 5000 letters) from player?

upper hazel
echo basalt
upper hazel
chrome beacon
upper hazel
#

data?

#

end material?

chrome beacon
#

You're checking the material so store the material

upper hazel
#

blockData?

#

or this no need

#

LOL

#

yea

chrome beacon
#

?

echo basalt
upper hazel
#

using a block object is a terrible idea

#

block doesn't have equals end hashcode?

echo basalt
#

It does but you're still hard-referencing the block

#

Not only does it cause mutability issues (probably why your checks are failing) but you're also keeping the block (and world) in memory

#

So if the chunk (or world) unloads you have a potential memory leak

tawdry pilot
#

how can i send a plugin message using a simulated player connection instnace

echo basalt
#

Mans trying to bypass the bungee thing

upper hazel
#

aaa block contains a link to the world

echo basalt
#

That's not how it works

#

Plugin messages are weird

#

The spigot instance sends a packet to the player

#

And bungee intercepts that packet

#

If the connection is simulated directly on spigot, it won't ever reach bungee

hybrid spoke
#

tldr use redis

echo basalt
#

or velocity or whatever

#

Use redis or rabbitmq or whatever

tawdry pilot
#

ok

echo basalt
#

As long as it has pubsub functionality

#

time to add support for all of these

hollow raptor
#

Boys n girls any idea where I can look for paid devs?

chrome beacon
#

?services

undone axleBOT
echo basalt
#

^ They have annoying minimum requirements

hybrid spoke
#

if you look for a beginner, pick me

echo basalt
#

if you look for an expert, pick me

#

😛

hybrid spoke
#

if you look for an certified expert, dont pick me, im too lazy

chrome beacon
#

without meeting requirements

echo basalt
#

True

#

But have you seen those

chrome beacon
#

No not really

echo basalt
#

It's always like

#

"I have 1 year experience"

#

Small plugin - 50$

#

And either the most beautiful thread design

#

or comic sans

hybrid spoke
#

the spigotmc section is weird af

#

1 in 100 is a good dev

echo basalt
#

And it's completely impossible to tell because the really good devs don't do much to show their experience

#

and the complete beginners often lie

onyx fjord
echo basalt
#

Saying they got 19 years of experience because they played minecraft back in the womb

echo basalt
onyx fjord
#

i wrote my first compiler when i was 5

quaint mantle
#

I have 6 years of java because I played minecraft.

onyx fjord
#

(it worked just in time and ahead of time)

echo basalt
#

I wrote C# and C code when I was 6

#

Started making plugins when I was 11

hybrid spoke
#

i wrote java

#

when i was born

echo basalt
#

Started to dabble in minecraft servers when I was like 9

#

time to say I'm 18 with 12 years of experience clown_2

hollow raptor
#

Bruh

#

I just need someone for a Mmo Core and I pay good 😂

hybrid spoke
hollow raptor
#

I’ll write in the forum I guess

hybrid spoke
#

lmao hope you have those 10 grand

quaint mantle
#

I wrote bat files when I was a kid.

hollow raptor
hybrid spoke
#

yeah sure buddy

echo basalt
#

yeah sure

hollow raptor
#

Bros typing like he got more insight than me

hybrid spoke
#

ok

hollow raptor
#

Bro invented my issue boards

echo basalt
#

maybe because we do this for a living?

hollow raptor
#

Bro actually inside my brain

hybrid spoke
#

he underestimates my 3 days of programming

hollow raptor
#

Im a Softwareengineer man i also develop for a living I’m just tryna save some time no need to be a dick xd

hybrid spoke
#

alright

#

good luck

hollow raptor
#

Thank you very much bro

#

I wish you gl too

onyx fjord
#

realtalk

#

i have 2 years of experience

#

its over

echo basalt
#

NOOOoo woeisme

#

he has 2 years of experience

onyx fjord
#

actually 4

hybrid spoke
#

oh it doubled

echo basalt
#

yeah I forgot you made an aternos server

#

back when you were eating sand

onyx fjord
#

because i wrote a multithreaded 🧌 ddos tool (in gta) 🧌 ||in bat||

echo basalt
#

my life is over

hybrid spoke
#

ping adress
ping adress
ping adress

echo basalt
#

ping localhost

#

PAUSE

onyx fjord
#

it was really realistic lol

#

i think i have a gif somewhere

onyx fjord
#

is drinking underage bad

chilly hearth
#

Nooe

hybrid spoke
#

nah

#

ask alex

chilly hearth
#

Nope

hybrid spoke
#

he started with 9

onyx fjord
#

ah ok

chilly hearth
#

Everything legal when pooolice not there

onyx fjord
#

i mean being drunk isnt illegal

#

youll just spend the night in a sad room

chilly hearth
#

Welp driving without it 8s

#

With i*

hybrid spoke
eternal oxide
#

depends where you live

chilly hearth
#

Lmfaooooo

chilly hearth
upper hazel
#

how can I get a region by all its locations, I heard about some way there is something to be divided

echo basalt
#

just ask good questions ffs

upper hazel
#

how to get Protection Region with 1 location without FOR using Map

upper hazel
onyx fjord
#

thats one block then

echo basalt
#

shit my scroll wheel is dying

upper hazel
#

in short, there are all sorts of skywars, I heard that the island is received there through the Map

eternal oxide
#

getting a protection region from where?

echo basalt
#

should I pay 30$ for a new mouse

onyx fjord
#

idk

#

buy a heavy mouse tho

#

and profiled

echo basalt
#

I use the g502

onyx fjord
#

best decision of my life

#

i can literally open that shit and remove or add weight

echo basalt
#

might just get the wireless variant

onyx fjord
#

worst mistake

eternal oxide
#

I love wireless mouse

onyx fjord
#

unreliable

#

and batteries 😭

eternal oxide
#

I still use an M705 Logitech

echo basalt
#

blew on it and it's much worse now

eternal oxide
#

my batteries last around 2 years

onyx fjord
#

bluetooth mouse will never beat wired oen

echo basalt
#

it's not bluetooth tho

onyx fjord
#

then whatever current wireless technology is used

echo basalt
#

blew on it extra hard

#

seems better now

upper hazel
#

ok, here's a shorter question how to get region without this method

onyx fjord
#

i have that air compressor thing

#

that makes the whole house vibrate

upper hazel
#

how to optimize

onyx fjord
upper hazel
#

what you mean

onyx fjord
#

its annoying to work with

#

barely anyone understands it properly

#

and if you dont they scream at you on their discord

upper hazel
#

what??

echo basalt
#

What's wrong with that method

#

let's start with that

#

Is it giving substantial performance issues?

upper hazel
#

yes

onyx fjord
#

did you benchmark it

upper hazel
#

because there is for and the volume of the region can be large

#

hashMap is better

#

but

#

how to connect

onyx fjord
#

but how slow it is

#

did you even test it?

echo basalt
#

Mans worried about time complexity

#

while holding hard-references to blocks n shit

#

Just found this gem

upper hazel
#

considering what kind of event this is, I'm sure it's a bad way to get

upper hazel
onyx fjord
#

"Hypixel really needs to stop using Java for their projects because it's old and inefficient."

#

use python instead

upper hazel
#

it requires a lot of resources, and if the breaking of blocks is fast and a lot in 1 second, then the server may crash

onyx fjord
#

so fast and modern

young knoll
#

It’s interesting that schematic files are potentially smaller than their format

#

Wonder why

onyx fjord
#

no

upper hazel
echo basalt
#

While schematics just hold a palette, dimensions and a huge array of palette indexes

#

Their format also has to account for lighting and all that

upper hazel
#

oh

young knoll
#

Ah it holds lighting

#

Is it really worth the extra storage to not calculate that on load

echo basalt
#

it's a couple kb

#

at best

young knoll
#

Fair

#

I assume they also store some other stuff

#

Like furniture, minions, etc

echo basalt
#

Yeah that's their "extra" tag

upper hazel
#

hmm, I wanted to try something to make my schematics

chilly hearth
#
public class EntityEvent implements Listener {


    @EventHandler
    public void OnBossKill(PlayerDeathEvent e){

      Player player = e.getEntity().getPlayer();
      Entity killer = e.getEntity().getKiller();
     

        if(killer.getScoreboardTags().contains("s")){
            
            player.sendMessage(ChatColor.RED + "YES");
            
            
        }

#

its not working

#

i gave that entity a scorebaord tag in another class

eternal oxide
#

show code where you add the tag

quaint mantle
#

hey, I found the setMaxStackSize() method while coding. does this also apply when putting items in as a player or does it only apply when setting inventory Items using code?

echo basalt
#

Try it!

#

No clue but probably works both ways

quaint mantle
#

this would be cool

tender shard
quaint mantle
#

Max stack sizes cannot be set to higher than 64, because the vanilla client woudln't let you stack items beyond this amount anyway. This might be possible in the future, though.

I dont need. When I need an modded client I dont need to implement this feature in my plugin.

remote swallow
#

hypixel should move away from java and use public plugins that their paid devs have already made 100x better plugins of made for their exact server

tender shard
quaint mantle
#

okay, but I dont need this. thanks anyways

young knoll
#

Did the client change? I know in the past in kind of tolerated stacks up to 127

tender shard
#

that is still allowed but the client won't try to actually stack them itself

young knoll
#

Ah

tender shard
#

meaning you can only stack them with commands or by manually doing stuff in InventoryClickEvent etc

young knoll
#

Still increasing some of the 1 stacks sounds nice

#

Potions stacking to like 4 or 8 sounds cool

chilly hearth
# eternal oxide show code where you add the tag
     WitherSkeleton ent = Bukkit.getWorld("world").spawn(player.getLocation(), WitherSkeleton.class);
                ent.setCustomName(ChatColor.BLUE + "" + ChatColor.BOLD + "Ancient Wither Skeleton");
                ent.setCustomNameVisible(true);
                ent.getEquipment().setChestplate(new ItemStack(Material.DIAMOND_CHESTPLATE));
                ent.getEquipment().setLeggings(new ItemStack(Material.DIAMOND_LEGGINGS));
                ent.getEquipment().setItemInMainHand(new ItemStack(item));
                ent.setMaxHealth(2048);
                ent.setHealth(plugin.getConfig().getDouble("Ancient.health"));
                ent.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, Integer.MAX_VALUE, plugin.getConfig().getInt("Ancient.strength")));
                ent.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, Integer.MAX_VALUE, plugin.getConfig().getInt("Ancient.speed")));
                ent.getNearbyEntities(30, 30, 30);

                Double x = ent.getLocation().getX();
                Double y = ent.getLocation().getY();
                Double z = ent.getLocation().getZ();

                PersistentDataContainer ancdata = ent.getPersistentDataContainer();

                ancdata.set(new NamespacedKey(Bosses.getPlugin(), "anc") , PersistentDataType.STRING , "anc");

                ent.addScoreboardTag("s");
#

there u go

#

i added tag there and checked it on other class didnt worked

tender shard
young knoll
#

Is it reflection into the NMS item

#

I remember doing that way back in like 1.12

tender shard
young knoll
#

Ye

#

I remember setting it to max value and messing around

#

Didn’t really work in the inventory but I did stack thousands of items on the ground

ivory sleet
#

The client sort of denies overwriting max stack size to a certain extent

young knoll
#

Could make a simple companion fabric mod to make it less messy

#

VeinMiner style

chilly hearth
#
     WitherSkeleton ent = Bukkit.getWorld("world").spawn(player.getLocation(), WitherSkeleton.class);
                ent.setCustomName(ChatColor.BLUE + "" + ChatColor.BOLD + "Ancient Wither Skeleton");
                ent.setCustomNameVisible(true);
                ent.getEquipment().setChestplate(new ItemStack(Material.DIAMOND_CHESTPLATE));
                ent.getEquipment().setLeggings(new ItemStack(Material.DIAMOND_LEGGINGS));
                ent.getEquipment().setItemInMainHand(new ItemStack(item));
                ent.setMaxHealth(2048);
                ent.setHealth(plugin.getConfig().getDouble("Ancient.health"));
                ent.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, Integer.MAX_VALUE, plugin.getConfig().getInt("Ancient.strength")));
                ent.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, Integer.MAX_VALUE, plugin.getConfig().getInt("Ancient.speed")));
                ent.getNearbyEntities(30, 30, 30);

                Double x = ent.getLocation().getX();
                Double y = ent.getLocation().getY();
                Double z = ent.getLocation().getZ();

                PersistentDataContainer ancdata = ent.getPersistentDataContainer();

                ancdata.set(new NamespacedKey(Bosses.getPlugin(), "anc") , PersistentDataType.STRING , "anc");

                ent.addScoreboardTag("s");
#

someone help please

#

i added this tag to that entity

#
public class EntityEvent implements Listener {


    @EventHandler
    public void OnBossKill(PlayerDeathEvent e){

      Player player = e.getEntity().getPlayer();
      Entity killer = e.getEntity().getKiller();


        if(killer.getScoreboardTags().contains("s")){

            player.sendMessage(ChatColor.RED + "YES");


        }
#

and tried to chekc if that eneity has that tag but its not working

young knoll
#

Why a scoreboard tag

#

And not pdc

chilly hearth
#

pdc not working as well

eternal oxide
#

then either you are not creating the entity you think you are, or you are not registering your listener

chilly hearth
#

i did registered it and idk what u mean by the 1st one

eternal oxide
#

a pdc can't "not work"

#

So either the mob you are using is not the mob you think you spawned

chilly hearth
#

u can see in code i gave that entity a key value

eternal oxide
#

or your listener is not registered.

chilly hearth
#

my code is above

eternal oxide
#

add more sysout debug

young knoll
#

Wait

chilly hearth
#

i added a key value and check if it has that key value didnt worked as well

eternal oxide
#

You are letting the boss kill your player I hope

young knoll
#

getKiller is always a player

#

Or null

#

So it will never be your boss

chilly hearth
#

cast it ?

young knoll
#

Get the last damage cause

#

Check if it’s an EntityDamageByEntity event

#

And then get the damager from that

tawdry pilot
#

?paste

undone axleBOT
tawdry pilot
#

could anyone help me with this error

chrome beacon
#

You need to shade it

tawdry pilot
#

so i need to use the shaded jar?

chrome beacon
#

Maven?

tawdry pilot
#

?paste

undone axleBOT
tawdry pilot
civic apex
#

how can i send some data from a bungeecord proxy to a spigot server if the spigot server has no players

chrome beacon
civic apex
chrome beacon
#

No

#

You'd need to handle it yourself

#

The API requires a player to be online

civic apex
#

and security wise is there anything i need to worry abt

civic apex
chrome beacon
#

You'd still need to make your own connection

#

The API uses the players connection to the server to send data

#

which is why at least one needs to be online

civic apex
#

hm

chrome beacon
#

You can use ssl if you want

#

Depending on what you're trying to do you can also use a messaging system like RabbitMQ or Redis pub sub

civic apex
#

just trying to send an int in between servers

sterile token
#

Anyone looking for a server crasher?

civic apex
#

just while(true)

pseudo hazel
#

lmao

sterile token
pseudo hazel
#

why even try sleeping at that point xD

sterile token
#

yeah i dont know things like i have seen many, they even do it for scorebaords 💀

#

Instead of using bukkit tasks which are designed for that specific things

sterile token
civic apex
#

im doing it w sockets

sterile token
#

oh

#

💀

#

If you mess with them do it hah i wouldnt recommend. But are preferences

shadow night
#

Is it possible to lower the server tps by sleeping the thread every tick?

hybrid spoke
#

no it would just stutter

#

what are you trying to do

tawdry pilot
#

why does my server just stop loading when it gets to my plugin it works fine with the normal jar but not with the shaded jar

#

is it memory problems?

lost matrix
tawdry pilot
#

minimum of 1024MB

lost matrix
#

and an unbound max?

tawdry pilot
#

2048MB

lost matrix
#

Its a bit tight but should be fine

tawdry pilot
#

the server just stops entirely during the start up process when it says its enabling my plugin

lost matrix
#

How does this 'stop loading' manifest? Ive never seen that.

upper hazel
#

what is the common interface between BlockPlaceEvent and BlockBreakEvent

chilly hearth
#

e

tawdry pilot
#

just loads normally until it gets to this
[23:45:51 INFO]: [StaffUtilities] Enabling StaffUtilities v1.0-SNAPSHOT
then it just freezes

chilly hearth
#

did you made that plugin ?

tawdry pilot
#

yes

chilly hearth
#

so ur server is working great without that plugin

lost matrix
tawdry pilot
#

well yea

upper hazel
#

bruh

tawdry pilot
#

its only when i use the shaded jar

chilly hearth
#

cuz if it is then there is a problem in the plugin and since u coded it we dont know whats inside

chilly hearth
tawdry pilot
#

im using jedis so i have to shade

chilly hearth
#

thats why intellJ better

lost matrix
#

The jar with the -shaded tag is the wrong one

chilly hearth
#

ikr

#

u must rerun it and ig jedis will give u the new resource

tawdry pilot
#

when i use the normal one i get a classdefnotfound error

chrome beacon
#

Don't use the one named -original

chilly hearth
#

use the normal one

chrome beacon
#

nor the -shaded

#

Just the regular jar

chilly hearth
#

and if your still getting an error then must be problem with ur plugin and since u created it we dont know whats inside it

tawdry pilot
#

ok

lilac dagger
lost matrix
#

Oh i was on PlayerInteractEvent. Did he edit this?

barren peak
#

quick question, does:
player.isInWater()
return true if it is raining? or only if they are in phisical water

lost matrix
#

the latter

barren peak
#

ok ty

#

how would I check if the player is standing in rain then? Like there is nothing above them, and they are getting rained on? Do I need to check the weather, then check the biome and then check blocks above them? It seems like it would be easier because riptide already does it...

tawdry pilot
#

my pom.xml replaces the jar file with the shaded one

gilded granite
#

java.lang.NoClassDefFoundError: com/mongodb/client/MongoClients

tawdry pilot
#

the 2 jars in my target folder is the original- and the one that got replaced wtih the shaded one

lost matrix
chrome beacon
gilded granite
#

how to do so?

chrome beacon
#

Are you using maven or gradle

gilded granite
#

maven

chrome beacon
#

Use the maven shade plugin

gilded granite
#

ok

#

does it automaticaly shade the plugin then export to the server?

grizzled oasis
#

Hi, im trying adding into an Instant Months and years but they are not supported, how can i add them (i just don't care about being precise, because none gonna spent 1 month on the server non stop waiting or a year)

chrome beacon
slender elbow
#

what an avatar

near mason
#

xD

gilded granite
golden turret
#

I did some shit with my partitions and I tried to run ddrescue to recover my data. It didnt finish because the output file didnt found enough space, but it has 854gb and my data had around 700gb. How can I open the .img file now?

lost matrix
dawn flower
#

is it possible to get the action bar showed to the player?

grizzled oasis
dawn flower
gilded granite
# dawn flower how?

player.spigot().sendMessage(ChatMessageType.ACTION_BAR, new TextComponent(text));

dawn flower
#

no i mean like

#

i dont want to overwrite an action bar if the player already has one shown

#

cuz it makes it look weird

gilded granite
#

u should use packets ig

tawdry pilot
#

[00:24:37 WARN]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[00:24:37 WARN]: SLF4J: Defaulting to no-operation (NOP) logger implementation
[00:24:37 WARN]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
what is this error

lost matrix