forked from 2009Scape/Server
Ironman restricted to own house
This commit is contained in:
parent
b6e2403866
commit
7dd9d08972
1 changed files with 5 additions and 0 deletions
|
|
@ -119,6 +119,11 @@ public final class PortalOptionPlugin extends OptionHandler {
|
|||
player.getHouseManager().enter(player, buttonId == 2, true);
|
||||
break;
|
||||
case 3:
|
||||
if(player.getIronmanManager().isIronman()){
|
||||
end();
|
||||
ContentAPI.sendMessage(player, "You can't do that as an ironman.");
|
||||
return true;
|
||||
}
|
||||
ContentAPI.sendInputDialogue(player, false, "Enter friend's name:", (value) -> {
|
||||
Player p = Repository.getPlayerByName((String) value);
|
||||
if (p == null || !p.isActive()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue