mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
Wanted Posted interaction
This commit is contained in:
parent
f2ad79410f
commit
6e58329a25
1 changed files with 26 additions and 0 deletions
26
Server/src/plugin/interaction/object/WantedPoster.java
Normal file
26
Server/src/plugin/interaction/object/WantedPoster.java
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
package plugin.interaction.object;
|
||||||
|
|
||||||
|
import org.crandor.cache.def.impl.ObjectDefinition;
|
||||||
|
import org.crandor.game.interaction.OptionHandler;
|
||||||
|
import org.crandor.game.node.Node;
|
||||||
|
import org.crandor.game.node.entity.player.Player;
|
||||||
|
import org.crandor.plugin.InitializablePlugin;
|
||||||
|
import org.crandor.plugin.Plugin;
|
||||||
|
|
||||||
|
@InitializablePlugin
|
||||||
|
public class WantedPoster extends OptionHandler {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Plugin<Object> newInstance(Object arg) throws Throwable {
|
||||||
|
ObjectDefinition.forId(40992).getConfigurations().put("option:look-at", this);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean handle(Player player, Node node, String option) {
|
||||||
|
//Can do fun stuff related to a player being wanted or something.
|
||||||
|
player.getDialogueInterpreter().sendPlainMessage(false, "Looks like a generic wanted poster.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue