Jump to content
  • 0
Sign in to follow this  
Aquel

Server hooks

Question

Hey, was looking into to hooking PkHonor back into Parabot, however I came across some parts that I'm unfortunately unsure about.

Looking into the XML files I see some things, which is not clear for me.

Callbacks, what is it? What do they do? And why does the copy I found of Pkhonor's look like:

   <callbacks>
   <add>
      <accessor>Client</accessor>
      <methodname>tEh</methodname>
      <desc>(Ljava/lang/String;ILjava/lang/String;I)V</desc>
      <callclass>org/rev317/min/callback/MessageCallback</callclass>
      <calldesc>(ILjava/lang/String;Ljava/lang/String;)V</calldesc>
      <callmethod>messageListenerHook</callmethod>
      <callargs>1,2,0</callargs>
   </add>
</callbacks>

Invokers, what do they do?

And the setter seems to be clear enough, however mine says setInterface?

 

<setters>
    <add>
        <classname>pkhonor/Client</classname>
        <into>pkhonor/Client</into>
        <field>JO</field>
        <methodname>setInterface</methodname>
        <descfield>I</descfield>
    </add>
</setters>

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Sorry to disappoint you but getting pkhonor working isn't as simple as just hooking it.

But to answer your question callbacks are methods parabot will intercept when they are called and invokers are methods parabot will call to perform an action.
As for the setter, that seems fine not sure why you'd think it's wrong.

If what I just said doesn't make sense you'll have a hard time working it out, good luck though.

Share this post


Link to post
Share on other sites
  • 0
On 2/17/2019 at 12:54 PM, Atex said:

Sorry to disappoint you but getting pkhonor working isn't as simple as just hooking it.

But to answer your question callbacks are methods parabot will intercept when they are called and invokers are methods parabot will call to perform an action.
As for the setter, that seems fine not sure why you'd think it's wrong.

If what I just said doesn't make sense you'll have a hard time working it out, good luck though.

What else but hooking should be done? :curious:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×