#help-development

1 messages · Page 154 of 1

vestal moat
#

yup

wet breach
#

prebot or preboot?

near kite
vestal moat
#

bro, i respond

#

it's just a project we working on

near kite
#

It’s meant to be a better version of core bot

#

Lol

vestal moat
#

BRO

near kite
#

wat

#

I’m sayin truth

#

bruh he thinks I’m advertising

wet breach
#

not sure how any of that is advertising lol

vestal moat
#

it isn't, but some people assume mentioning of purpose is advertising

#

so i don't like it

near kite
#

He screamed at me

#

😦

wet breach
#

one of my plugins 🙂

vestal moat
#

pretty cool actually

wet breach
#

but point is, that isn't advertising

vestal moat
#

but i wouldn't risk sending anything i work on, i got banned before for that

onyx fjord
near kite
#

lol

wet breach
#

but since I posted that, at least you can point out that if your statement is advertising, then I am obviously blatantly advertising XD

near kite
#

Point is

#

Don’t be a monkey

#

🙈

vestal moat
#

creeperz, what is a static method?

near kite
#

In Java, a static method is a method that belongs to a class rather than an instance of a class. The method is accessible to every instance of a class, but methods defined in an instance are only able to be accessed by that object of a class.Jan 15, 2021
› static-...
What is a Static Method? - Definition from Techopedia

vestal moat
#

using google is not allowed

near kite
#

Cry

vestal moat
#

explain with your own words lol

near kite
#

I sent the whole page bc it’s funny

wet breach
vestal moat
#

bro you can't do correct syntax and ur trying to work with classloaders

#

r u kidding me

#

this is the best description so far

#

kacper

near kite
#

Idiot it’s a copy paste

vestal moat
#

multiple times ive tried to explain it but my tiny brain can't explain it the right way lmfao

near kite
#

so your brain is tiny

#

Confirmed

vestal moat
#

yeah, while yours is tinier

near kite
#

I’ll google my problems

near kite
#

I use google

#

You use Java docs

wet breach
#

a static method, is a method that is a member of an object that is accessible directly from the objects constructor, rather then from an object instance created via the constructor

near kite
#

We are not the same

vestal moat
#

you can't rlly google syntax problems, when u mess up ur {}

near kite
#

I fucking know how to use }

vestal moat
#

i remember the forms plugin u messed it so bad

#

tons of IDE errors

near kite
#

Because it wasn’t meant for your IDE

wet breach
#

you can setup formatting in your IDE so you never have to worry about fixing it later 🙂

onyx fjord
#

nerdy shit

#

who cares about definitions

vestal moat
#

nobody, i was talking to creeperz he is trying to deal with classloaders and he hasn't learned enough java

near kite
#

Also it was in beta dumbass

#

I have the full repo on my pc

#

Don’t feel like committing

onyx fjord
#

what

wet breach
#

doubt you have full github on your pc

#

but ok

onyx fjord
#

github on pc

near kite
onyx fjord
#

you mean gh desktop

#

or gh CLI

#

so git repo

#

git != github

vestal moat
near kite
#

no it has

#

More features

#

Then the uploaded one

#

Lol

vestal moat
#

"uploaded"

onyx fjord
#

what

vestal moat
#

ok gimme minute to laugh irl

#

and brb

#

commit & push them if your serious then

near kite
#

Shut up mr I got banned for 2 years on notcordsrv

vestal moat
#

notcordsrv? you know this is temporary

onyx fjord
#

guys this is not general

vestal moat
#

yeah lol

near kite
#

Oh yeah you know Java

#

Name every method

vestal moat
#

another dumb thing from you

onyx fjord
#

i can but i wont

vestal moat
#

there are infinite methods

near kite
#

exactly

onyx fjord
#

well in java itself

#

there are

#

until you make your own

near kite
#

you know c+ name every string

#

You know react

#

Name every bit of code

onyx fjord
#

object react sucks

vestal moat
#

a string is a collection of bits (and bytes), it's almost infinite

#

just go work on your classloader

near kite
#

lol

#

@vestal moat

vestal moat
#

you can't program without knowing the syntax

sterile token
#

As I have been looking into the spigot

sterile token
#

Is not possible to get the boostrap netty instance

#

😬

#

I would have to do even more hacky things

fluid cypress
#

how can i know the eye angles of a player?

#

i mean, the direction they are looking at

#

yaw and pitch

wet breach
fluid cypress
#

nvm, the location object has that, im stupid

#

i thought it was just the position

quaint mantle
#

Does 1.17 support java 17?

#

It keeps saying unsupported class

#

Then why does it keep saying unsupported class everytime i change the maven version to 17 and the project version to 17

#

Compile

river oracle
#

Of

#

My question is why does it go e1 e2 instead of e...

#

Or e[]

#

I mean I highly doubt it's there for no reason but could be wrong

wet breach
quaint mantle
#

I did dat

#

Still doesn't work

river oracle
#

?paste

undone axleBOT
river oracle
#

^

#

?

#

Ohhhh the rapper?

#

No clue then

#

Hmmm no my clothing style is tight sweat pants and a jacket or sweatshirt

#

I wasn't even Alive in 2000 no clue what the style was

sterile token
river oracle
#

Could it be that I'm just young ??? Yes it is

sterile token
sterile token
river oracle
#

You have short term memory loss

#

I've told you

sterile token
#

Oh yes

#

20

#

😂 😂

river oracle
#

Oh lord no

sterile token
#

No

#

He told me he is 21

river oracle
#

Perfect

river oracle
#

Your crazy

sterile token
#

Maybe

#

Let me look our dls

#

Maybe

#

I have memory prohlens

#

Idk told me his age 2d ago

#

And i dont remember

river oracle
#

Ugh I have to go to class school sucks ass

#

Byrbyeeee

sterile token
#

Cpp

river oracle
#

C

sterile token
#

Cpp doesnt c++

#

The same

#

Bruh is what I said

#

🤔 🤔

#

I was asking you

#

If cpp equals c++

#

🤣

#

Na do T worry

#

Im bad today

#

Idk

river oracle
#

Verano is going insane

sterile token
#

Hi pvble

#

Zacken I need your help because you have experiencia with reflections

#

Oh really

river oracle
#

I also have experience with reflection

onyx fjord
#

So do I

river oracle
#

But I gtg lol

sterile token
#

I need to clone the netty instance from the server

onyx fjord
#

Car pfp does

sterile token
#

I mean I need to get the current server netty instance and make some things

#

I have been looking on the shity spigot and doesnt have a getter for the boostrap netty

#

😡

river oracle
#

Cars reflect

onyx fjord
#

Not all

sterile token
#

Pvble can we dm

onyx fjord
#

Tesla?

sterile token
#

Because here are talking about Manú things

#

I have been looking into the spigot source code

#

But i cannot find Where is stored the boostrap netty instance

#

Is there a field or not?

#

Oh that why

#

I was looking into the spigot api

wet breach
sterile token
#

Okay

#

I cannot find the spigot src

#

What a shity life

vagrant stratus
#
Function getFormattedDate
    getFormattedDate = Year(Date) & fixNum (Month(Date)) & fixNum (Day(Date))
End Function

Function getFormattedDate()
    getFormattedDate = Year(Date) & fixNum (Month(Date)) & fixNum (Day(Date))
End Function

Trying to get a regex for both of these.

( +.*?)\\( works... but only for the first one 😐

Trying to get the getFormattedDate part of the function, since that's the name but pain

These need to pass as well. Not sure if a single regex would work for all of them or if it would be better to handle them separately 🤔

Function ShowOutput()
    WScript.Echo strOutput
End Function

Function Lpad(strInput, length, character)
    Dim strOutput
    If Len(strInput) >= length Then
        strOutput = strInput
    Else
        Do While Len(strOutput) <= length - Len(strInput)-1
            strOutput = character & strOutput 
        Loop
        strOutput = strOutput & strInput
    End if
    Lpad = strOutput
End Function
torn oyster
#

if spigot sends a plugin message via a player, wouldn't that make it really unsecure?

#

or is that not how it works

torn oyster
wet breach
#

yes, but something has to be listening for it

#

but you would have to be extremely lucky

echo basalt
#

Can't they be stripped from the packet during the bungee layer?

wet breach
#

yes

#

its part of the protocol and not something that is necessary

#

so yeah you could strip plugin messages

vagrant stratus
# vagrant stratus ``` Function getFormattedDate getFormattedDate = Year(Date) & fixNum (Month(...

Gotta love crashing burning lmao

[Kitsune] [18:58:58] [INFO]: Line: Function getFormattedDate
Exception in thread "Thread-0" java.lang.IllegalStateException: No match found
    at java.base/java.util.regex.Matcher.group(Matcher.java:644)
    at optic_fusion1.kitsune.parser.vbs.StatementFactory.buildFunctionStatements(StatementFactory.java:44)
    at optic_fusion1.kitsune.parser.vbs.VBSParser.identifyAndConvert(VBSParser.java:64)
    at optic_fusion1.kitsune.parser.vbs.VBSParser.parse(VBSParser.java:57)
fluid cypress
#

is there an event that is triggered with smaller mouse movements?

#

bc you have to move the mouse quite a few degrees for the PlayerMoveEvent to be triggered

young knoll
#

No

vagrant stratus
#

So. much. to. figure. out. reeee

fringe hemlock
#

What are the current ways to disable chat reporting with your own code?

young knoll
#

Strip the message signature with a packet listener

torn oyster
#
    public void destroy() {
        sendPacket(((CraftPlayer) owner).getHandle(), new ClientboundRemoveEntitiesPacket(npc.getId()));
    }
#

how come this doesn't delete the npc?

#

it's still visible

torn oyster
#

how would I cancel a potionevent for only one player

ionic summit
#

Hey so I've been working on my server setting up the bungeecord but for some reason I can't get the bungeecord to communicate with the host world. I've changed all the spigot.yml files, server.properties, and bukkit.yml info along with updating the config.yml inside of waterfall. Whenever I try to connect it just says "disconnected" and in my console says it started a query at : 0.0.0.0:25565. Any ideas?

dim palm
#

is there a way to get a player version?

remote swallow
charred blaze
#

What's wrong with my command?

#

I can't see any errors in console

charred blaze
ionic summit
ionic summit
# charred blaze idk then

Right? That’s how I feel. I’ve looked over it all 100 times and I have it set up like everyone else, just doesn’t work 🤷‍♂️

glossy venture
#

or is it querying the wrong address

ionic summit
#

So in the config the host world is at 0.0.0.0:25565 but the actual server IP which I set up on the server section is 108.62.106.69:46717

charred blaze
glossy venture
charred blaze
ionic summit
#

All of the servers have different ports, the host server port is 52712 would I replace that there and enable a query port?

#

Yes it is

glossy venture
#

because then you might have to use the public ip

#

yeah try setting the public ip there

ionic summit
#

I tried but when I put the IP in it says it can’t connect to the world

glossy venture
#

weird

#

do you have your server on offline mode

#

your host server not the proxy

ionic summit
#

I did, had to turn it back on so people could join

glossy venture
#

you need to have your spigot server on offline mode, while your proxy can be either but online is recommended

quaint mantle
#

?paste

undone axleBOT
ionic summit
#

Correct, which my Hub server was in offline mode, the link server just won’t connect to the hub server no matter what I try.

quaint mantle
#

hm I would like the health to show up in like 5m/5m
how do I do that?

glossy venture
ionic summit
#

When I try to connect it just says “disconnected” and then it says it can’t verify host of pvp and a bunch of other generating stuff

ionic summit
glossy venture
#

nah im on my phone srry

#

in ttain

#

train

charred blaze
#

can anyone help me?

ionic summit
#

That’s alright, my server just isn’t set up for waterfall right now because people are on

charred blaze
agile anvil
agile anvil
charred blaze
#

hm?

charred blaze
#

Logs is empty too

agile anvil
charred blaze
agile anvil
#

can you test it not on multicraft ?

charred blaze
agile anvil
#

Yeah but NOT on multicraft ^^

charred blaze
charred blaze
agile anvil
charred blaze
agile anvil
#

oh

#

?paste your command code

undone axleBOT
agile anvil
#

omg

charred blaze
agile anvil
#

2 questions

#
  1. Can you do early returns, so we can easily read your code
charred blaze
agile anvil
#
  1. Why the hell are you reading YML files with File streams ?
charred blaze
#

answers, i meann

#

hm

agile anvil
charred blaze
#

I don't get it + why

agile anvil
agile anvil
charred blaze
agile anvil
#

?javadoc

charred blaze
agile anvil
charred blaze
#

what to do instead?

agile anvil
#

Use the configuration api to read the correct value in like few lines

#

and safely

#

And you are using try catch inside try catch and even without a catch

#

You have to add returns in your conditions, otherwise the whole code would be executed. but much better

#

remove that first try catch block it's useless

charred blaze
agile anvil
#

So use Configuration api

charred blaze
agile anvil
agile anvil
charred blaze
#

So you preferr to do getString on all paths?

#

;/

#

isnt it easier with reader?

agile anvil
#

But why do you need to go through all paths ?

charred blaze
agile anvil
#

Can you explain and vulgarize what you wanna do ?

charred blaze
#

i want to read this column

#

Strings after ":"s

agile anvil
#

Why don't you make it a list ?

#

then getStringList

charred blaze
agile anvil
#

ArrayList#contains

charred blaze
#

i dont think you understand

agile anvil
#

This really does not make sense since you still didn't explain me what is the purpose of the feature

charred blaze
agile anvil
charred blaze
#

im storing discordmemberid: verifycode

#

so im reading first verifycode

#

and then discordmemberid

agile anvil
#

So

charred blaze
#

and then doing some things with it

agile anvil
#

Ohhh

#

And why don't you reverse it ?

charred blaze
agile anvil
#

fourndigit code (or more to make it unique) : discord id

#

so you only have to getString(code) and check if there is a discord member

#

no need to read all lines

#

(this is bad to do it)

charred blaze
agile anvil
#

then just save uuid : discordId

charred blaze
#

Bruh

agile anvil
#

and when the user linked its discord, remove the fourdigits:discordid

charred blaze
#

i dont understand my own code now

#

lol

agile anvil
#

let me give you a recap

charred blaze
#

lol

#

i have to go

agile anvil
# charred blaze i have to go

Have a verify.yml file where you put "verificationCode:discordId"
When the player verify, use configuration APi to get the string at "verificationCode"
if it doesnt exist it means it's wrong, otherwise
remove line from verify.yml ( using the configuration api)
and add in discord.yml "uuid:discordId"

crystal palm
#

heya. i want to check to see if 2 players share the same permission group (luckperms). what might be the best way of doing this?

young knoll
#

Only through NMS afaik

agile anvil
tall dragon
#

if any1 here is using Lettuce, is there a way to check if you are already listening to X channel ?

young knoll
#

I mean

#

I’ve made some stuff with lettuce before

#

But I ate it all

tall dragon
#

since if you cannot that explain alot

tall dragon
#

sounds like i did not get the joke lmao

young knoll
#

Heh

#

People really need to stop naming software while making lunch

smoky oak
#

i name my software after whatever i have in the hand when i make it if i dont have an idea

#

or i name it literally

#

one of the two

kindred valley
#

paste

#

?paste

undone axleBOT
kindred valley
smoky oak
#

paste ur pom

kindred valley
#
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>me.limpeex</groupId>
    <artifactId>java-discord-bot</artifactId>
    <version>1.0-SNAPSHOT</version>

    <properties>
        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>
    </properties>
    <dependencies>
        <dependency>
            <groupId>net.dv8tion</groupId>
            <artifactId>JDA</artifactId>
            <version>5.0.0-alpha.20</version>
        </dependency>
        <dependency>
            <groupId>org.spigotmc</groupId>
            <artifactId>spigot-api</artifactId>
            <version>1.19-R0.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>

    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.3.1</version>
                <configuration>
                    <outputDirectory>C:\Users\tekin\Desktop\Yeni klasör\plugins</outputDirectory>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <repositories>
        <repository>
        <id>spigot-repo</id>
        <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
    </repository>
        <repository>
            <id>jcenter</id>
            <name>jcenter-bintray</name>
            <url>https://jcenter.bintray.com</url>
        </repository>
    </repositories>

</project>```
fluid river
#

good morning comrades

#

where are newbies

#

show me

kindred valley
#

what

fluid river
#

too lazy to scroll up

kindred valley
#

then delete discord

fluid river
#

oh discord api

#

are u sure it's right version

kindred valley
#

yes latest

fluid river
#

JDA made me die once

#

i resurrected

kindred valley
#

good

smoky oak
#

try adding <type>jar</type> to ur api dependency

eternal oxide
#

You are not running this as a Plugin on Spigot so of course you can;t use Bukkit methods

hazy parrot
fluid river
#
<repository>
  <id>spigot-repo</id>
  <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<dependency>
  <groupId>org.spigotmc</groupId>
  <artifactId>spigot-api</artifactId>
  <version>1.19.2-R0.1-SNAPSHOT</version>
  <scope>provided</scope>
</dependency>
hazy parrot
#

Or standalone bot

kindred valley
#

I am making both in same executor

hazy parrot
#

What

fluid river
#

you know you need to run it as a plugin

#

on your server

#

and connect to discord in onEnable() or smth

hazy parrot
#

Also you have to block thread on on disable

#

To fully shutdown jda

fluid river
#

yea smth like this

hazy parrot
#

And prevent zipclosing errors

fluid river
#

don't remember but definitely need smth in onDisable

kindred valley
#

for JDA this time

hazy parrot
#

Do you run it as a plugin?

#

You didn't answer that

kindred valley
#

wdym by plugin

hazy parrot
#

Like put it in plugins folder and start mc server

kindred valley
#

let me

hazy parrot
#

If yes, you didn't shade ir right

fluid river
#

of JDA

#

if i find i'm gonna send how it should look like

hazy parrot
#

Jda dep is alright?

fluid river
#

no

hazy parrot
#

It is?

fluid river
#

There are 2 things you can do

#

Download JDA jar

#

as a plugin

#

Which is somewhere on spigotmc

hazy parrot
#

You can just shade it in jar lol

fluid river
#

or shade entire thing into your plugin

#

yeah and here is no shade as you can see

#

this one is a plugin

#

here is the repo

kindred valley
#

i have already put that

#

what is shading

#

tf

hazy parrot
#

It will shade by default...

hazy parrot
fluid river
#

i'm 100% sure i added stuff to pom to make it run as it should

kindred valley
#

Can you tell me what is shade

fluid river
#

i went to JDA discord and they helped me

#

here it is

hazy parrot
#

Which is not needed for spigot pl

#

And his error is that class Bukkit can't be found

#

Nothing related to jda

fluid river
#

when he runs as a plugin he can not find JDA class

#

cuz it's not provided

#

cuz plugins depend on another plugins which are in depend: section iirc and on spigot api

kindred valley
#

i did shade but still same

fluid river
#

same thing suggested here

fluid river
#

on eclipse i just right click on project, go to maven section and click Update

remote swallow
#

there should be a button right on IJ

fluid river
remote swallow
#

what error is it

fluid river
#

go to jdas discord and ask urself xD

eternal oxide
#

throw your jar in here

remote swallow
#

send code

kindred valley
quaint mantle
#

[1.19.2]

ThrownPotion thrownPotion = (ThrownPotion) player.getWorld().spawnEntity(Utils.getTricker().getLocation(), EntityType.SPLASH_POTION , false);
thrownPotion.getEffects().add(new PotionEffect(PotionEffectType.BLINDNESS, 20, 2, false, true));  << ERROR
Vector v = player.getLocation().add(0, 3, 0).getDirection();
v.multiply(1.01);
thrownPotion.setVelocity(v);
``` There was an error setting the effect of the thrown potion.

I also googled it, but it was either an old NMS or a solution that didn't work for me.

**Is there a way to set the effect of potions thrown?**
fluid river
kindred valley
#

?paste

undone axleBOT
crude charm
#

Tryna make a system where glass appears around spawn if someone is in combat, how would I spawn red glass around a cuboid for one player?

young knoll
#

Player.sendBlockChange

remote swallow
#

was about to type that

crude charm
#

Aight I'll try it out

remote swallow
#

?paste

undone axleBOT
smoky oak
#

how do i check if a player is within render distance of a block, assuming their RD is the same as the servers? Compute the distance from the player to the closest edge of the chunk and check if the distance divided by 16 is less than the RD?

#

or do i just call sendBlockChange and let the server handle it

zealous osprey
#

Quick question:
I get a list of Role via #getRoles. I want to check if this list contains a role with the name "logged in". For this I am currently using the following code:
event.getMember().getRoles().stream().filter(role -> role.getName().equals("logged in")).findAny().isEmpty() Please tell me there is a better way...

smoky oak
#

what's the data type getRoles returns

zealous osprey
#

List<Role>

smoky oak
#

List#contains should work then

remote swallow
zealous osprey
smoky oak
#

so isnt it a List<String> then?

remote swallow
#

i dont remember if jda lets you create a role from name

zealous osprey
remote swallow
#

ill check it

zealous osprey
#

ye, but how do I neatly get that?
That's why I'm using a stream with filter.

remote swallow
#

just pulling the code up

zealous osprey
#

ah yeah, I was looking for something like that, thx <3

#

yup, did that

#

for some reason I wanted to use #findAny and thaught that'd take a predicate, overlooked #anyMatch

remote swallow
#

is it possible for you to get the role from id? or only name

zealous osprey
#

I saw no id field in the Role class

#

an id would be preferable

#

nvm, I'm stupid ._.

remote swallow
#

Role staff = event.getJDA().getGuildById(guildid).getRoleById(roleidL);
if (event.getMember().getRoles().contains(staff)) {

#

would work

#

yeah

twin venture
#

Hello , iam trying to make a check if the day of the daily quest that i started is the same as today , and the weekly quest is withing the current week then continue

#

if its not today , and the weekly quest is not within this week then return

#

this is my current code

#

yes i already set that

#

startedDate is the the long where i start the quest

#

when i click on gui , i set it there

#

^

#

i have been trying to fix this for the last 2 day's , i never worked with TimeUtils before

#

before day

#

and after day?

#

right?

#

this one , i set the started quest date in this one

smoky oak
#

uh question
why dont u just save timeMilis and stuff it into a calender once u want to diplay it

twin venture
#

i do save it in sql once player start a quest

smoky oak
#

ah

twin venture
#

yes

fluid river
#

what's happenin

twin venture
tranquil dome
#

I am not sure if I am to ask this here, but I have recently turned my plugin into a multi module maven project (pom project). One of the dependencies I use requires relocation, but when relocating the dependency in my parent pom, my code breaks.

The code in my modules expect dev.group.dependency.YamlDocument instead of dev.bloedarend.plugin.YamlDocument.

fluid river
#

and check on onEnable

#

no need for calendars

#

other way create a task which executes after 86400000 ms

#

store + run

#

onEnable() check

#

i personally made timers

twin venture
#

yeb

fluid river
#

which just execute each minute

smoky oak
fluid river
#

and if curren time hit the date then omagad

fluid river
twin venture
#

from what you can see

smoky oak
#

yea sure yall think im dumb enough i need to hear it twice lolbruh

twin venture
fluid river
#

no worries

twin venture
#

iam setting the started date , and currentValue , and set completed

fluid river
#

electrons inside wifi router started a strike

smoky oak
#

electrons are slow asf

#

if anything it was the currents

#

^ this guy wrote physics gcsc

fluid river
#

gcsc?

remote swallow
#

exam you take at 16 in england

fluid river
#

oof

remote swallow
#

end of secondary school

fluid river
#

i just had a physX exam in 9th grade so basically at 15 i guess

smoky oak
#

not sure what you mean, what i mean is that electrons are like water

#

and currents like waves

#

waves move a lot faster than the water that make them up

#

someting something quantum weirdness iirc

fluid river
#

something something goes brr

remote swallow
#

does cafebabe list all the commands we get to shame people with anywhere

smoky oak
#

its been like 5 years since i read about it, im amazed i still remember it

#

?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 names and nicknames of a member.
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.

fluid river
#

¯_(ツ)_/¯

remote swallow
#

?tas

undone axleBOT
remote swallow
#

wonder why that doesnt embed anymore

smoky oak
#

?help all

#

?help <all>

#

?cleanup

undone axleBOT
#
CafeBabe Help Menu
Syntax: ?cleanup 
Base command for deleting messages.

smoky oak
#

im out of ideas

remote swallow
#

lol

#

i know who probably would know

#

choco

smoky oak
#

oh he just got online

#

u can ping him if u want but i aint stupid enough to do that

remote swallow
#

im not gonna risk it

smoky oak
#

exactly

remote swallow
#

bet someone will come in and ping him

smoky oak
#

just make a throwaway account and ping him on that lol

remote swallow
#

takes too long

smoky oak
#

ur perspective on time is really messed up then

fluid river
#

@worldly ingot help EpicEbic please

remote swallow
#

true

fluid river
#

done

remote swallow
#

would be funny if choco watched me and @smoky oak not wanting to ping him

worldly ingot
#

?cc list

#

Doesn't seem to work outside of mod channels lol

#

So no

vocal cloud
#

Mods keeping the fun commands to themselves ):

remote swallow
#

poor us

hasty obsidian
#

How do I clear potion effects?

marsh burrow
#

Hey mates. Would anyone know if there is a way to call an event both from a synchronous and asynchronous context?

vocal cloud
#

You can create a sync runnable and run it in that

fluid river
#

removePortionEffect probably

marsh burrow
smoky oak
#

#bot-commands @worldly ingot

worldly ingot
#

Oh there you go

smoky oak
#

welp i unleashed hell

remote swallow
#

you pinged choco, how could you

smoky oak
#

theres a difference between pinging someone cuz you want an answer from them and pinging them to prove your superiority cuz you know more

remote swallow
#

are you marking your territory

smoky oak
#

no

#

im just an arrogant piece of shi

drowsy helm
#

Atleast you’re honest

smoky oak
#

well im aware of my flaws

#

yea thats what im not gonna do

#

i accept it if other people correct me

#

that has to be enough

warm light
#

Material.values() return all materials?

storm cloak
#

Whats the best way to do this

//code
wait a couple of seconds
//code```
undone axleBOT
remote swallow
#

2nd one / the one with the lamba is better

cold field
#

Does anyone think that using native serialization is ok given that if someone can manipulate the content of a plugin folder the server is already compromised?

vocal cloud
#

If someone has access to the plugins folder it's not your concern. Your job isn't file security

safe hatch
#

Hey, how can I code it that a player gets moved to another bungeecord server. For example from Lobby to Bedwars Server or something like that?

#

okay, thank you

chrome beacon
#

?scheduling

undone axleBOT
grim ice
#

No.

#

when JIT inlines lambdas

#

the worst case scenario is that its as fast as an anonymous inner class

#

meaning, in most cases you should use lambdas, for the tiny performance difference, if you care

#

its slower to warm up though -

red sedge
#

l.forEach(Utils::coloured);
return l;

l being a List<String> will this modify the list?

lost matrix
#

If you care for (cold) performance then you should create a concrete class implementation.
But this performance gain is void as soon as the jit optimizes it as it creates a "class" for lambdas
anyways.

red sedge
lost matrix
red sedge
#

awh bummer

#

is there anyway to construct a new list in like a one liner

lost matrix
#

But there is List#replaceAll()

#

There are 2 ways:
Destructive and non destructive

red sedge
#

so
l.replaceAll(Utils::coloured);

lost matrix
#

Creating a new list:

List<String> newList = oldList.stream().map(this::modification).toList();

Modifying the old list:

oldList.replaceAll(this::modification);
green prism
#

?paste

undone axleBOT
green prism
#

https://paste.md-5.net/migemegire.cs
I'm not that good at Mockito, it's my first time. Could you help me fix this problem?

[16:33:48 WARN]: org.mockito.exceptions.misusing.MissingMethodInvocationException:
[16:33:48 WARN]: when() requires an argument which has to be 'a method call on a mock'.
[16:33:48 WARN]: For example:
[16:33:48 WARN]:     when(mock.getArticles()).thenReturn(articles);
[16:33:48 WARN]:
[16:33:48 WARN]: Also, this error might show up because:
[16:33:48 WARN]: 1. you stub either of: final/private/equals()/hashCode() methods.
[16:33:48 WARN]:    Those methods *cannot* be stubbed/verified.
[16:33:48 WARN]:    Mocking methods declared on non-public parent classes is not supported.
[16:33:48 WARN]: 2. inside when() you don't call method on mock but on some other object.
[16:33:48 WARN]:
[16:33:48 WARN]:        at HQueue-Bridge-1.0-SNAPSHOT-shaded.jar//it.myke.util.TestingUnit.testLoginEvent(TestingUnit.java:37)
[16:33:48 WARN]:        at HQueue-Bridge-1.0-SNAPSHOT-shaded.jar//it.myke.util.TestingUnit.lambda$new$0(TestingUnit.java:21)
[16:33:48 WARN]:        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101)
[16:33:48 WARN]:        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
[16:33:48 WARN]:        at net.minecraft.server.MinecraftServer.v(MinecraftServer.java:1140)
[16:33:48 WARN]:        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305)
[16:33:48 WARN]:        at java.base/java.lang.Thread.run(Thread.java:833)

(In my mind, a bot should enter the server and, once inside, run a cmd)
Credits: https://www.spigotmc.org/threads/using-junit-to-test-plugins.71420/

red sedge
wet breach
#

it really depends on the lambda as they tend to hide away a lot of implementation details

#

or another way of saying it, hides what it is really doing

knotty meteor
#
for (ProtectedRegion region : main.getWorldGuard().getRegionManager(p.getWorld()).getRegions().values()) {```
How can i get the protectedregion of all the worlds in the server, and not of p.getworld? with worldguard
lost matrix
# green prism https://paste.md-5.net/migemegire.cs I'm not that good at Mockito, it's my first...

Mockito is meant to mainly provide mock implementations of interfaces so that you can test a unit
in a clearly defined environment without having to worry about faulty implementations which have nothing
to do with your currently tested unit. Its not suitable for spigot testing unless you provide an entire
mock implementation of Spigot. This has been attempted and is called MockBukkit:
https://github.com/MockBukkit/MockBukkit

GitHub

MockBukkit is a mocking framework for bukkit to allow the easy unit testing of Bukkit plugins. - GitHub - MockBukkit/MockBukkit: MockBukkit is a mocking framework for bukkit to allow the easy unit ...

lost matrix
ivory sleet
knotty meteor
lost matrix
onyx fjord
#

how much XP a bottle contains?

green prism
lost matrix
onyx fjord
#

bruhh

dire marsh
vocal cloud
#

Why is it two randoms added together

pseudo hazel
#

to make the end result less extreme

#

just like how you more often throw multiple smaller dice compared to 1 big die in DnD

vocal cloud
#

Haha that's funny

lost matrix
#

Or was that sarcasm

pseudo hazel
#

idk, what dnd do you play where every damage roll is a single die

#

fireball is like 6d8 or some shit

lost matrix
#

Pretty much all rolls besides damage rolls are done with d20s

pseudo hazel
#

okay so to clarfiy I was talking about damage rolls

#

as the application here is similar

#

you want the potion exp to be random, but not too random

echo basalt
#

7smile7 you're disappointing me by knowing dnd

vocal cloud
#

Adding two randoms isn't going to produce anything special is it? I can't imagine that does anything than just one

tall jewel
#

How to check if player respawn on spawn after dying? PlayerRespawnEvent perform also after moving to the end world.

pseudo hazel
#

well its like you know atleast is cant ever be 1 so the minimum out of 2 rolls js 2

#

meaning you already have less end results

#

and you would basically need less rolls to get your average

#

kinda hard to explain

#

but it has to do with probability stuff

#

so they used 2 random numbers because of balancing reasons likely

#

or they are just stupid

echo basalt
vocal cloud
#

I don't think it changes anything

#

But maybe it's a pay by the line moment

pseudo hazel
#

well if thats the case using more random calls would make even less sense

echo basalt
#

it's like when I try to be fancy and start pulling numbers out of my ass

#

that's pretty much all development nowadays

lost matrix
#

On a bigger scale it doesnt matter if you roll twice with smaller numbers or once with a larger.
Rolling [0, 4] twice has the same average as rolling [0, 8] once.

echo basalt
#

I mean

#

0-3 + 0-3 is the same as 0-6

#

nextInt's upper bound is exclusive

molten hearth
#

omg dnd enjoyers?

echo basalt
onyx fjord
#

is it possibul to make plugins in groovy, just wondering

#

im talking possible without pain in ass

vocal cloud
#

Plugin for Gradle or

lost matrix
# echo basalt nextInt's upper bound is exclusive

This is a mathematical notation: inclusive -> [0, 4] <- inclusive
If i would have wanted to exclude the upper bound then i would have said
rolling [0, 5[ twice is the same as rolling [0, 9[ once.

pseudo hazel
rugged kettle
#
ItemStack[] menu = {item}

Adds the item to the GUI, but I am wondering if I can make this an arraylist? I would prefer if it is an arraylist because eventually I want to make the plugin be able to add more options to the GUI through a command.

Like /gui add string adds an option to the GUI opened with /gui. So it would be possible to do if it was an array list right ?

echo basalt
#

Yes I do remember 7th grade math

molten hearth
#

cant relate

echo basalt
#

I thought the teacher was initializing the array wrong

#

I was pissed

pseudo hazel
#

you can just keep an arraylist of items and add those to the menu you are gonna show when you create it

lost matrix
#

PS: This is a horrible approach to guis

pseudo hazel
#

is there a better approach in spigot?

remote swallow
#

save stuff to configs or databases

pseudo hazel
#

what do configs have to do with guis

remote swallow
#

save the items you want to add to a config, read from config when you need to use it

molten hearth
#

some people want guis based on configs

#

quite annoying I'd say

pseudo hazel
#

how is that less horrible compared to changing a list at runtime

lost matrix
# pseudo hazel is there a better approach in spigot?

There is one approach which is currently agreed upon to be the best. There are some variations but generally
you want to use a class which creates a "button" by combining the ItemStack and a Consumer<InventoryClickEvent>.
All of this is then mapped int to button

dire marsh
#

wtf all i posted was the xp bottle code and somehow we got to DnD and magical numbers lmao

#

spigot moment

rugged kettle
#

well i want it to add items to the gui through a command would this be possible with doing it through config ?

molten hearth
#

dnd gang

#

we all hit a crit failure on intelligence

remote swallow
#

imo @rugged kettle 's name is pretty shady

lost matrix
pseudo hazel
lost matrix
pseudo hazel
#

okay

#

thats way different from what I use lmao

rugged kettle
pseudo hazel
#

maybe I should try this system

rapid vigil
#

Hello, I'm facing a problem right here, I'm trying to spawn an NPC with NMS and Packets but It's not working even though it should:

        Player p = (Player) sender;
        Location location = p.getLocation();

        MinecraftServer server = ((CraftServer) Bukkit.getServer()).getServer();
        WorldServer world = ((CraftWorld) location.getWorld()).getHandle();
        GameProfile gameProfile = new GameProfile(UUID.randomUUID(), "Cat");

        PlayerInteractManager playerInteractManager = new PlayerInteractManager(world);

        EntityPlayer npc = new EntityPlayer(server, world, gameProfile, playerInteractManager);
        npc.setLocation(location.getX(), location.getY(), location.getX(), location.getYaw(), location.getPitch());

        PlayerConnection connection = ((CraftPlayer) p).getHandle().playerConnection;
        connection.sendPacket(new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.ADD_PLAYER, npc));
        connection.sendPacket(new PacketPlayOutNamedEntitySpawn(npc));
        connection.sendPacket(new PacketPlayOutEntityHeadRotation(npc, (byte) (npc.yaw * 256 / 360)));

        p.sendMessage("Spawned");```
This is the code, and my dependency:
```java
        <dependency>
            <groupId>org.spigotmc</groupId>
            <artifactId>spigot</artifactId>
            <version>1.16.5-R0.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>```
tawdry python
#
 @EventHandler
    public void Cacto(BlockGrowEvent e) {
        if(e.getBlock() == null || e.getBlock().getType() == Material.AIR) {
            return;
        }
        e.setCancelled(true);
        if(e.getBlock().getType().equals(Material.CACTUS)) {
            Bukkit.getConsoleSender().sendMessage("§aCactus");
          return;
        }
         Bukkit.getConsoleSender().sendMessage("§cNOT CACTUS");
    }

Because it does not work? It doesn't run anything, it looks like it's all AIR?

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.

rapid vigil
# lost matrix ?notworking

Oh oops. When I execute the command it seems to work half, in tab it shows that there is a NPC but I can't see it, it just is like it spawned but the packets that let me see it infront of me are not working

remote swallow
#

send errors

lost matrix
rapid vigil
#

It says 'Spawned' I just can't see it

echo basalt
#

yo 7smile7 rate my new desktop

#

my work laptop is looking extra fancy

lost matrix
echo basalt
#

john's code be like

lost matrix
#

Blew some air out my nose

echo basalt
#

e x h a l e

remote swallow
rapid vigil
#

Is there like something wrong in the code?

lost matrix
remote swallow
#

ill stay in here for now, quite warm

lost matrix
#

My room is probably the only warm one in the house rn. Gotta save that gaz so we dont need to import it...

echo basalt
#

my room's like 32C

#

about 24C outside

molten hearth
#

I use this simple technique called invading the middle east

#

I mean apparently there was oil leaks in some northern pipes

remote swallow
#

my room is normally the warmest

echo basalt
#

I don't like making noise so I make sure to close all my windows and doors before hopping on calls

lost matrix
echo basalt
#

then put my beast 24kg pc on full throttle

#

3 old monitors that warm up tons

#

and nanoleaf lights on full brightness

remote swallow
#

because ive got leds and the windows right next to my pc i have my curtains closed and a like black cover over my window to stop all light getting in

molten hearth
#

I mean russia does have weapons of mass destruction

#

go bonk

grave plover
lost matrix
# rapid vigil

There are not many people with a 1.16 setup around anymore so it will be a bit hard to get an answer.

onyx fjord
#

whats the name of command palette in intellij?

#

need it for keymap

echo basalt
#

you gotta like

#

add, spawn, teleport, remove

rapid vigil
# echo basalt add, spawn, teleport, remove

Uh like this:

        PlayerConnection connection = ((CraftPlayer) p).getHandle().playerConnection;
        connection.sendPacket(new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.ADD_PLAYER, npc));
        connection.sendPacket(new PacketPlayOutNamedEntitySpawn(npc));
        connection.sendPacket(new PacketPlayOutEntityTeleport(npc));
        connection.sendPacket(new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.REMOVE_PLAYER, npc));```?
echo basalt
#

try it and see

rapid vigil
#

Still not working

remote swallow
#

?tas

undone axleBOT
rapid vigil
#

I also tried:

        PlayerConnection connection = ((CraftPlayer) p).getHandle().playerConnection;
        Bukkit.getServer().getScheduler().runTaskLater(plugin, task -> {
            connection.sendPacket(new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.ADD_PLAYER, npc));
            connection.sendPacket(new PacketPlayOutNamedEntitySpawn(npc));
            connection.sendPacket(new PacketPlayOutEntityTeleport(npc));
            connection.sendPacket(new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.REMOVE_PLAYER, npc));
        }, 20L);``` but same result, didn't work
#

IT WORKEED FINALLY

#

I went to spigotmc.org and copy pasted the first resource that showed up to see if the problem is code or smth else and it worked

knotty meteor
#

How do i run a task every 3 days, and if i restart server taht the timer doesnt start over again?

fluid river
#

save end time millis to config and run a task timer in onenable which checks if time is met every minute

echo basalt
#

why is minecraft's color pallette so bad

pseudo hazel
#

save the timer to a file if you are stopping the server

echo basalt
#

original image

#

I might've broken the alpha part but eh

molten hearth
#

its alright we know you're a beta

#

gotem

smoky oak
echo basalt
#

no

#

I mean

#

it's a ton of code and I got 9% battery on my laptop

#

basically it just spawns itemframes with the colored sub-maps

#

just look at cerus/canvas on github

smoky oak
#

?

echo basalt
#

similar enough

smoky oak
#

maps have more colors than that

echo basalt
#

no they don't

#

I mean

#

they have enough colors

#

they have like 80 colors with 4 variants each

#

one of the variants being the color itself

#

if I put the image on a black background instead of transparent you'll see a lot more

smoky oak
#

ah that'd do it

#

i was confused cuz particles have full rgb colors

#

those u can color at any rate

echo basalt
#

maps dont

#

you pass a byte[] where each byte is a pixel, and it indicates the index in the color array

smoky oak
#

yea no idea how to go around that. maybe possible with resource packs but im not sure

echo basalt
#

hardcoded on client

#

each color also represents a block category

#

the 4 variants are actually used for height

smoky oak
#

yea i knew that one

#

map art is a pain in the ass to build

echo basalt
#

just use ploogin

#

easy to optimize

smoky oak
#

well

#

i would

#

would it have been my server yknow

echo basalt
#

mf hypixel

knotty meteor
pseudo hazel
#

like nuker said, when you enable the plugin

#

I meant save teh time left on the timer

#

not the actual timer object

knotty meteor
#

Thanks i will try that

red sedge
#

okay I was going to fix this later on but this is annoying me so much
When the player is mining I do player#sendBlockDamage cuz I have a custom mining system right
But since its the block the player is mining at the current time minecraft just kind of overrides it.
I tried mining fatigue -1, and -128 but none of them work, I honestly dunno what to do at this point

I checked the implementation and it just sends the damage packet so it shouldnt have anything quirky about it

wet breach
red sedge
subtle folio
twin venture
#

Hello , why iam having a problem with System.currentTimeMillis()
it give me a big number , but i only started the server 3 seconds ago

#

on Inventory click :

worldly ingot
#

System time

red sedge
#

its systemtime

worldly ingot
#

Since January 1st, 1970

red sedge
#

not server time

smoky oak
#

if you want a really big number call nanos

twin venture
#

ok so , how would i get the server time running?

smoky oak
#

uh

twin venture
#

like if i restart server it restart

smoky oak
#

world or server?

twin venture
#

not the vps ..

#

server

#

not the entire vps

red sedge
#

we get it

#

not the vps

twin venture
#

ok thanks

red sedge
#

Uh

dim palm
#

where can i enable the java annotation processor for lombok?

red sedge
#

I think theres something like Bukkit.ticksSinceStart()

#

but thats not really precise

#

what you can do is save the system.currenttime into a varialbe at the start

#

and when you want to get the time

#

just substract the current one with the variable

twin venture
#

what iam trying to do is :
when i click on item it start timings from 0 [its In milis]

red sedge
#

yeah so save the system.currenttime into a variable

#

and then subtract that from the current one when you need it

twin venture
twin venture
#

anyone have experince with Calendar?

tardy delta
#

just use Instants?

twin venture
#

its better?

worldly ingot
#

Java's time API is way more modern

tardy delta
#

depends what you wanna do

#

have no idea what your question was

twin venture
#

as i said before iam making a quest system , i finished everything i only have some problems with checking for the time if player finish a quest today , and he join tmorrow , the quest should be reset , checks if the started week of the quest is the same as the current week
and if day, if the day the quest has started at is the same as the current day
if there's no match, it'll say false

tardy delta
#

hold the time they started?

twin venture
#

that's what i have been trying to do for the last 2 day's

#

and its not working ..

tardy delta
#

so you wanna check if day and week is the same or smth?

twin venture
#

so i have 2 quests type

#

1- daily
2- weekly

smoky oak
#

isnt there a seperate java method to get the date directly

twin venture
#

so the daily one , if i finish a quest today , and i join tomrrow , its reseted so i can do it again

smoky oak
#

just save when it was finished then check if it passed the 'reset time' which usually would be midnight, or for weekly, midnight from sunday to monday

tardy delta
#

Calendar.getInstance().getDayOfWeek()?

#

quick search

twin venture
#

i have a started date in my code , when i click on the quest in the gui , it set it

tardy delta
#

damn i havent come to the point i started dating my code

twin venture
#

i have been trying for 3 day's do you really think i didn't google about it xd?

#

i checked every page for the last 3 day's and i didnt get it working

#

this is my code for now :

#

ideas? it keep reseting it the same minute , if i log out , login again its reseted

#

and that's wrong , it should be 1 day , till i can do the quest again

#

and the weekly too ..

tardy delta
#

just have an Instant for each user who started the quest or smth

#

compare the type and check if the day of the instant is before the instant.plus(Duration.ofDays(1)) or smth

onyx fjord
#

I have a weird problem, in ExpBottleEvent i set XP to 10, but on PlayerExpChangeEvent it shows as 11 for some reason

#

any ides why that mighr happen?

civic wind
#

Can anyone tell me why the lore isn't working? It's setting the name, but lore it is not

onyx fjord
#
    @EventHandler
    public void onExp(ExpBottleEvent event) {
        if (event.getEntity().getPersistentDataContainer()
                    .has(getBottleKey(), PersistentDataType.INTEGER)) {
            System.out.println("ExpBottleEvent1 " + event.getExperience());
            event.setExperience(event.getEntity().getPersistentDataContainer().getOrDefault(
                    getBottleKey(), PersistentDataType.INTEGER, 0));
            System.out.println("ExpBottleEvent2 " + event.getExperience());
        }
    }
    @EventHandler
    public void onGain(PlayerExpChangeEvent event) {
        System.out.println(event.getAmount() + " xp");
        System.out.println(event.getPlayer().getExp() + " i " + ExpUtils.getExp(event.getPlayer()));
    }

ExpBottleEvent1 7
ExpBottleEvent2 10
11 xp

^ this is what prints

tardy delta
#

why setting meta twice

harsh totem
#

?learnjava

undone axleBOT
smoky oak
tardy delta
#

i see alot of meta there lol

smoky oak
#

ur better off not asking i think

red sedge
tardy delta
#

clean u p that code mye

onyx fjord
#

i mean sure i can subtract just one and call it a day

#

but i will not be able to sleep well

smoky oak
#

i absolutely would be able to sleep well

vocal cloud
#

I'll do it for you

#
  • 1
tardy delta
#

getting pdc key twice 🥺

onyx fjord
#

i dont have time to write it as it should be for 10 times

onyx fjord
#

if its 1 for some reason it gives 0

#

if i subtract 1

#

so something math related goin on

#

oh yea definetly

smoky oak
#

code is math in disguise

#

welcome to hell

onyx fjord
#

with 200 for example it gives 2 too much

#

1 = 1
2 = 3
10 = 11
200 = 202

#

:/

onyx fjord
smoky oak
civic wind
red sedge
onyx fjord
#

withdraw math is correct btw

remote swallow
undone axleBOT
onyx fjord
#

weird shit

smoky oak
#

also @echo basalt this is your fault too since its powered by your code
if slightly frankensteined to create circle segments if asked for

echo basalt
#

👍

pseudo hazel
#

tbh all good codebases can summon a frankenstein monster so its probably fine

onyx fjord
#

fr if someone helps me

#

ill give you tf2 bananas

#

they go for like 1 cent

remote swallow
#

whats your issue

red sedge
#

what do u need help with

#

i dont even play tf2

remote swallow
#

same lol

#

what even is the ExpBottleEvent

onyx fjord
#

its when bottle splashes

#

basically

#

depending on number, it gives wrong amount of xp

#

on PlayerExpChangeEvent

#

possible impostor might be orb spawning with additional 1 XP or something

red sedge
#

whats the issue?

onyx fjord
#

bottle should give 10 xp and it gives 11

#

and that problem scales

#

with 200xp it gives 202

smoky oak
red sedge
#

i see...

#

Hmm

onyx fjord
#

realtalk i should run it on clean server

#

i just saw ecoskills in it

#

bruh i don have any

smoky oak
#

money or skills?

red sedge
#

both

#

and intelligence

#

im lacking in all of em

onyx fjord
smoky oak
onyx fjord
#

OOM

smoky oak
#

thats how i test intrusive stuff

#

to not brick my online server

remote swallow
#

i always test localhost unless i need more people

smoky oak
#

i AM more people

#

i have 3 accounts

onyx fjord
#

bruh it was ecoskills looks like

smoky oak
#

i use them to confuse my brother

red sedge
#

dude how is your pc alive w runnign 3 INSTANCES OF MINECRAFT

#

and A MINEDCRAFT SERVER

#

and probably intellij

#

and probably 20+ tabs

smoky oak
#

its called having a 3060 lite and a 2.4ghz processor

#

*4.2

onyx fjord
#

send me some ram

remote swallow
#

i was about to say 2.4 with 4 mc instances and ij

red sedge
#

Ah I seeeeeee

smoky oak
#

also minecraft is single threaded

#

most software is

#

and since i have 6 cores

red sedge
#

I might be getting a 4080 soon™️ so thats nice

smoky oak
#

the actual limitation is my RAM

remote swallow
onyx fjord
#

hm

#

but ecoskills uses NaturalExpGainEvent :/

red sedge
onyx fjord
#

its not even a thing

remote swallow
#

could be an old event

red sedge
#

could be a paper event

remote swallow
#

yeah

onyx fjord
#

nah

#

custom

smoky oak
#

theres 1 search result on google exactly

#

so yes

#

custom

#

and something internal nobody ever touched

onyx fjord
#

tf are handlers

remote swallow
#

its so sad lmgtfy isnt working

smoky oak
#

i think

#

i always forget which @ annotation is the correct one

red sedge
#

i dont think so

#

eventhandler is just telling spigot that well

#

this is an event method

remote swallow
#

this be event

red sedge
#

call it if said event occurs

onyx fjord
#

is ther event for orb pickup

#

PlayerExpChangeEvent pretty limited

smoky oak
#

theres an event list

#

also might be an idea to add this to ?cc for quick access

onyx fjord
#

2012

smoky oak
#

so what

#

bite me