Having trouble hooking into a plugin

Discussion in 'Spigot Plugin Development' started by Lear, May 20, 2015.

  1. Hey guys,
    Sorry for this question, it's my first time doing anything with Java, but I'm having trouble hooking into a plugin called crackshot. The plugin maker posted a guide on how to hook into it (https://github.com/Shampaggon/CrackShot/wiki/Hooking-into-CrackShot) but it says "Create an instance of CSUtility and assign it to a field." and I have absolutely no idea how to do that. I searched on google but didn't really find out how to do that. Also, how would you go about listening to one of the Crackshot events? Again, sorry to bother you with these simple questions and thanks for your time.
  2. Code (Text):
    CSUtility csu = new CSUtility();
    Would be one way to create an instance of CSUtility.
  3. There are some tutorials over on Oracle's website that include how to do this, as well as the basics of Java. [Oracle: Creating Objects]
  4. Thanks a lot guys, what you said really helped me out. Sorry, I should have known that it was the same as creating an object.
    • Friendly Friendly x 1