#armor equip event

1 messages ยท Page 1 of 1 (latest)

summer shadow
#

so basically

#

i want to know how to use it

#

i have 3 files in

#

ArmorEquipEvent
ArmorListener
ArmorType

#

and i dont know how to use the event

wanton lintel
#

hi

#

so

#

I have made a proper maven version of it

#

there's information on what you have to add to your pom

#

everything else is described in the README.md ๐Ÿ™‚

#

pls ping me if you have further questions @summer shadow

summer shadow
#

Oh okay thanks

#

@wanton lintel Looks like something went wrong!

We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try refreshing.

#

girhub

#

idk if thats ur problem or mine

#

thanks a llot though

#

I'll try again later

#

ping to reply

#

WORKS NOW

wanton lintel
#

perfect ๐Ÿ™‚

wanton lintel
summer shadow
#

Ah ok

summer shadow
wanton lintel
#

it's all explained in the README of my repo

#

you have to add:

#
  1. the repositry and dependency
  2. the maven-shade-plugin thing
summer shadow
#

Oky

wanton lintel
#

if you don't get it to work, send your pom.xml

summer shadow
#

how do i use the actual event?

#

@wanton lintel

wanton lintel
#

you just listen to it like usual

#
@EventHandler
public void onArmorChance(ArmorEquipEvent event) {
  ...
}
summer shadow
#

as in like "event"

summer shadow
#

huh?

#

O ok

#

ty

wanton lintel
#

np ๐Ÿ™‚

summer shadow
#

ill try and use this

#

@wanton lintel is there a way to check someone's armor pieces

wanton lintel
#

erm sure

#

PlayerInventory has getHelmet(), getBoots(), etc

summer shadow
#

alr

#

ty

#

also

summer shadow
#

nvm

#

@wanton lintel Is the actual content of the java files the same

wanton lintel
#

wdym?

summer shadow
wanton lintel
#

what java files? I have no idea what you are talking about lol

summer shadow
#

doesn't matter

#

lol

#

@wanton lintel how would i get the user with the event

#

doesn't matter i thnk i got it

#

thanks!

wanton lintel
#

getPlayer()

summer shadow
#

i got it