mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-21 09:02:07 -07:00
closes #224
This commit is contained in:
parent
6e2f06812e
commit
ae9130aa95
1 changed files with 33 additions and 0 deletions
33
Server/src/plugin/interaction/city/RCGuildPortal.java
Normal file
33
Server/src/plugin/interaction/city/RCGuildPortal.java
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
package plugin.interaction.city;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Portal in wiz tower
|
||||
* @author ceik
|
||||
*/
|
||||
|
||||
@InitializablePlugin
|
||||
public class RCGuildPortal extends OptionHandler {
|
||||
@Override
|
||||
public Plugin<Object> newInstance(Object arg) throws Throwable {
|
||||
ObjectDefinition.forId(38279).getConfigurations().put("option:examine",this);
|
||||
ObjectDefinition.forId(38279).getConfigurations().put("option:enter",this);
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean handle(Player player, Node node, String string){
|
||||
if(string.equals("examine")){
|
||||
player.getPacketDispatch().sendMessage("The portal to the runecrafting guild.");
|
||||
}else {
|
||||
player.getPacketDispatch().sendMessage("Currently under construction.");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue