Kotlin -> Java (#586)

* Convert All Plugins To Java

* Convert Rest Of Kt To Java & Remove Kt From Maven
This commit is contained in:
Josh Shippam
2023-02-05 22:30:52 +00:00
committed by GitHub
parent eab153ee3f
commit 5db6da334d
83 changed files with 1324 additions and 1354 deletions
@@ -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();
}
}
}
@@ -1,18 +0,0 @@
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 com.rs2.game.content.StaticNpcList.FADLI
@SubscribesTo(NpcSecondClickEvent::class)
class SecondClick : EventSubscriber<NpcSecondClickEvent> {
override fun subscribe(context: EventContext, player: Player, event: NpcSecondClickEvent) {
if (event.npc == FADLI) {
player.packetSender.openUpBank()
}
}
}