mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +00:00
Kotlin -> Java (#586)
* Convert All Plugins To Java * Convert Rest Of Kt To Java & Remove Kt From Maven
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user