a100affda2
Unified kotlin and java into just src/main Unified the rs09 and core packages Took all content out of the core package, and placed it into the new content package Reorganised all source code relating to content to be easier to find and explore
30 lines
781 B
Java
30 lines
781 B
Java
package content.global.skill.summoning.familiar;
|
|
|
|
import core.cache.def.impl.NPCDefinition;
|
|
import core.game.interaction.OptionHandler;
|
|
import core.game.node.Node;
|
|
import core.game.node.entity.player.Player;
|
|
import core.plugin.Initializable;
|
|
import core.plugin.Plugin;
|
|
|
|
/**
|
|
* Represents the plugin used to handle the spirit graahk familiar
|
|
* @author Splinter
|
|
*/
|
|
@Initializable
|
|
public final class SpiritGraahkOptionPlugin extends OptionHandler {
|
|
|
|
@Override
|
|
public Plugin<Object> newInstance(Object arg) throws Throwable {
|
|
NPCDefinition.forId(7363).getHandlers().put("option:interact", this);
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public boolean handle(final Player player, Node node, String option) {
|
|
player.getDialogueInterpreter().open(7353, node.asNpc());
|
|
return true;
|
|
}
|
|
|
|
}
|