Nowadays, they might take away a sailor’s liberty by placing them on restriction (confine them to quarters and extra musters), assigning them extra duties, dock their pay (and/or reduce your rank), or put them in the brig (on large ships that still have them).