private static void AddPacketListener(ProtocolManager manager, Class classes, ListenerPriority priority, PacketType[] type) {
manager.addPacketListener(new PacketAdapter(plugin, priority, type) {
@Override
public void onPacketReceiving(PacketEvent event) {
new BowBomb();
}
});
}
#how can i register class this way
24 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @mortal lion! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
check the picture first
you'd have to use reflection, are you sure you're supposed to have this pattern
don't you usually accept an instance of the listener and then just call a method on the listener?

how can i register the class using reflection
not like that
reflection is a concept, not just a class named "reflection"
Class itself is already reflection
can you maybe add it to this code please
no
i never used reflection thats the issue
anyway im going to search how reflection works than
well no, why not just use this
my english is being short there, do you expect me to add all classes in it?