mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 08:39:04 +00:00
5db6da334d
* Convert All Plugins To Java * Convert Rest Of Kt To Java & Remove Kt From Maven
22 lines
614 B
Java
22 lines
614 B
Java
package plugin.npc.fadli;
|
|
|
|
import com.rs2.event.EventContext;
|
|
import com.rs2.event.EventSubscriber;
|
|
import com.rs2.event.SubscribesTo;
|
|
import com.rs2.event.impl.NpcSecondClickEvent;
|
|
import com.rs2.game.players.Player;
|
|
|
|
import static com.rs2.game.content.StaticNpcList.FADLI;
|
|
|
|
@SubscribesTo(NpcSecondClickEvent.class)
|
|
public final class SecondClick implements EventSubscriber<NpcSecondClickEvent> {
|
|
|
|
@Override
|
|
public void subscribe(EventContext context, Player player, NpcSecondClickEvent event) {
|
|
if (event.getNpc() == FADLI) {
|
|
player.getPacketSender().openUpBank();
|
|
}
|
|
}
|
|
|
|
}
|