package plugin.objects.flourmill import com.rs2.event.EventContext import com.rs2.event.EventSubscriber import com.rs2.event.SubscribesTo import com.rs2.event.impl.ObjectFirstClickEvent import com.rs2.game.content.StaticObjectList.FLOUR_BIN import com.rs2.game.content.StaticObjectList.HOPPER_CONTROLS import com.rs2.game.content.StaticObjectList.NULL_1781 import com.rs2.game.players.Player @SubscribesTo(ObjectFirstClickEvent::class) class FlourMillObjectPlugin : EventSubscriber { override fun subscribe(context: EventContext, player: Player, event: ObjectFirstClickEvent) { when (event.gameObject) { FLOUR_BIN -> FlourMillActions.collectFlour(player) NULL_1781 -> player.packetSender.sendMessage("The flour bin is already empty.") HOPPER_CONTROLS -> FlourMillActions.operateHopper(player) } } }