In order to use z-moves, the player must have a Key Stone equipped (which can be obtained from defeating a mega-evolved boss pokemon or the /megaring command), and their pokemon must be holding a z-crystal corresponding to one of their moves.