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,19 @@
|
||||
package plugin.click.npc;
|
||||
|
||||
import com.rs2.event.EventContext;
|
||||
import com.rs2.event.EventSubscriber;
|
||||
import com.rs2.event.SubscribesTo;
|
||||
import com.rs2.event.impl.NpcThirdClickEvent;
|
||||
import com.rs2.game.players.Player;
|
||||
|
||||
@SubscribesTo(NpcThirdClickEvent.class)
|
||||
public final class NpcThirdClick implements EventSubscriber<NpcThirdClickEvent> {
|
||||
|
||||
@Override
|
||||
public void subscribe(EventContext context, Player player, NpcThirdClickEvent event) {
|
||||
if (player.playerRights == 3) {
|
||||
player.getPacketSender().sendMessage("[click= npc], [type = third], [id= " + event.getNpc() + "], [Type= " + event.getNpc() + "]");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user