mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 08:39:04 +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,27 @@
|
||||
package plugin.click.obj;
|
||||
|
||||
import com.rs2.event.EventContext;
|
||||
import com.rs2.event.EventSubscriber;
|
||||
import com.rs2.event.SubscribesTo;
|
||||
import com.rs2.event.impl.ObjectFourthClickEvent;
|
||||
import com.rs2.game.content.skills.farming.Farming;
|
||||
import com.rs2.game.players.Player;
|
||||
import com.rs2.world.clip.Region;
|
||||
|
||||
@SubscribesTo(ObjectFourthClickEvent.class)
|
||||
public final class ObjectFourthClick implements EventSubscriber<ObjectFourthClickEvent> {
|
||||
|
||||
@Override
|
||||
public void subscribe(EventContext context, Player player, ObjectFourthClickEvent event) {
|
||||
if (player.playerRights == 3) {
|
||||
player.getPacketSender().sendMessage("[click= object], [type= fourth], [id= " + player.objectId + "], [location= x:" + player.objectX + " y:" + player.objectY + "]");
|
||||
}
|
||||
|
||||
if (!Region.objectExists(player.objectId, player.objectX, player.objectY, player.heightLevel)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Farming.guide(player, player.objectX, player.objectY);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user